Formula

Formula for FIFO Memory Update

The memory update process using a First-In, First-Out (FIFO) function can be defined mathematically. By treating the update function, Update()\mathrm{Update}(\cdot), as a FIFO operation, the new memory state, Mem\mathrm{Mem}, is calculated by adding the current key-value segment, SkvS_{\mathrm{kv}}, into the memory and removing the oldest key-value segment from the previous memory state, Mempre\mathrm{Mem}_{\mathrm{pre}}. This is given by the formula: Mem=FIFO(Skv,Mempre)\mathrm{Mem} = \mathrm{FIFO}(S_{\mathrm{kv}}, \mathrm{Mem}_{\mathrm{pre}})

Image 0

0

1

Updated 2026-04-23

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences