Short Answer

Calculating a Recursive Memory State

A system updates its memory state at each step by calculating the cumulative average of all key-value pairs seen so far. It uses the following recursive formula, where 'i' is the 0-indexed step number:

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

Suppose that after processing 5 pairs (at step i=4), the memory state is Mem_4 = (10, 20). At the next step (i=5), the system observes a new key-value pair (k_5, v_5) = (16, 22).

What is the new memory state, Mem_5? Provide your answer as a pair of numbers (x, y), rounding to two decimal places if necessary.

0

1

Updated 2025-10-04

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