Learn Before
FIFO Function as a Memory Update Example
A special example of a segment-level memory update is defining the update function, , as a First-In, First-Out (FIFO) function. This mechanism maintains the memory by adding the most recent key-value segment, , into the memory while simultaneously removing the oldest key-value segment.

0
1
Tags
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
FIFO Function as a Memory Update Example
Two-Segment Memory in Segment-Level Recurrence
Recurrent Memory Update using Segments
A language model is designed to process very long documents. Two memory update strategies are being considered. Strategy A updates the model's memory after processing each individual input unit. Strategy B updates the memory only after processing a block of 128 consecutive input units. What is the primary trade-off when choosing Strategy B over Strategy A?
A language model processes text by grouping it into non-overlapping blocks of 128 tokens. The model's memory is updated only after an entire block is processed. A developer observes that the model frequently fails to capture dependencies between the last word of one block and the first word of the very next block. What is the most direct cause of this specific issue?
Trade-offs in Memory Update Strategies
Optimizing a Language Model for Long Document Processing
Learn After
Formula for FIFO Memory Update
A memory model processes a sequence of data segments and maintains a memory buffer with a fixed capacity of 3 segments. The update mechanism operates by adding the newest segment to the buffer while simultaneously removing the oldest one to maintain the fixed capacity. If the memory buffer currently contains [Segment A, Segment B, Segment C], with Segment A being the oldest, what will the buffer's contents be after a new 'Segment D' is processed?
Analyzing Memory Limitations in a Summarization System
Analyzing Information Loss in a Fixed-Size Memory System