Short Answer

Impact of Context Window Size on Memory

A memory component is defined by the formula below, which calculates the unweighted moving average of the last n_c key and value vectors. Analyze the primary trade-off when selecting the value for n_c. Specifically, contrast the characteristics of the memory component when n_c is very small versus when it is very large.

Mem=(j=inc+1ikjnc,j=inc+1ivjnc)\text{Mem} = \left( \frac{\sum_{j=i-n_c+1}^{i} \mathbf{k}_j}{n_c}, \frac{\sum_{j=i-n_c+1}^{i} \mathbf{v}_j}{n_c} \right)

0

1

Updated 2025-10-03

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

Analysis in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science