Analysis of Memory Efficiency in Running Average Algorithms
Analyze the memory requirements of the two algorithms described in the case study as the number of processed data points becomes very large. Based on your analysis, which algorithm is superior for a system with strict memory limitations, and why?
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
Analysis in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
Analysis of Memory Efficiency in Running Average Algorithms
A language model processes a very long document (10,000 tokens) and maintains a memory state by computing the cumulative average of all key-value pairs from the beginning of the sequence. If this average is updated at each step using a recursive formula, what information from the past must be stored in memory to compute the state for the 10,000th token?
Memory Usage Comparison: Recursive vs. Naive Cumulative Average