Case Study

Step-by-Step Memory State Calculation

A system updates its memory state by calculating the cumulative average of all key-value pairs it has processed. It uses the following recursive formula, where i is the index of the current update step (e.g., for the second item, i=1):

Mem_i = ((k_i, v_i) + i * Mem_{i-1}) / (i+1)

Given the sequence of inputs below, calculate the final memory state Mem_2.

0

1

Updated 2025-10-08

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

Application in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science