mlsanityData to 14 Oct 2026

Memory Retrieval and Consolidation in Large Language Models through Function Tokens

arXiv 2510.08203 ↗First posted 9 Oct 2025cs.CL cs.AIcited by 4

Not on the map. Why?

Abstract (arXiv)

The remarkable success of large language models (LLMs) stems from their ability to consolidate vast amounts of knowledge into the memory during pre-training and to retrieve it from the memory during inference, enabling advanced capabilities such as knowledge memorization, instruction-following and reasoning. However, the mechanisms of memory retrieval and consolidation in LLMs remain poorly understood. In this paper, we propose the function token hypothesis to explain the workings of LLMs: During inference, function tokens activate the most predictive features from context and govern next token prediction (memory retrieval). During pre-training, predicting the next tokens (usually content tokens) that follow function tokens increases the number of learned features of LLMs and updates the model parameters (memory consolidation). Function tokens here roughly correspond to function words in linguistics, including punctuation marks, articles, prepositions, and conjunctions, in contrast to content tokens. We provide extensive experimental evidence supporting this hypothesis. Using bipartite graph analysis, we show that a small number of function tokens activate the majority of features. Case studies further reveal how function tokens activate the most predictive features from context to direct next token prediction. We also find that during pre-training, the training loss is dominated by predicting the next content tokens following function tokens, which forces the function tokens to select the most predictive features from context.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 30 of its 49 references that are in the map. First posted on arXiv 9 Oct 2025.

Builds on

30 of 49 references.

References · 30

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2022Training language models to follow instructions with human feedbackcited by 15,971
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  5. 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
  6. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  7. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,745
  8. 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
  9. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
  10. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  11. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
  12. 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,085
18 more
  1. 2016An overview of gradient descent optimization algorithmscited by 1,033
  2. 2022Toy Models of Superpositioncited by 971
  3. 2024Phi-4 Technical Reportcited by 711
  4. 2025Beyond the 80/20 Rule: High-Entropy Minority Tokens Drive Effective Reinforcement Learning for LLM Reasoningcited by 559
  5. 2024Scaling and evaluating sparse autoencoderscited by 553
  6. 2025LIMO: Less is More for Reasoningcited by 498
  7. 2024Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 2cited by 394
  8. 2025Persona Vectors: Monitoring and Controlling Character Traits in Language Modelscited by 345
  9. 2023In-Context Learning Creates Task Vectorscited by 312
  10. 2024Jumping Ahead: Improving Reconstruction Fidelity with JumpReLU Sparse Autoencoderscited by 300
  11. 2024Massive Activations in Large Language Modelscited by 294
  12. 2024Improving Dictionary Learning with Gated Sparse Autoencoderscited by 179
  13. 2025LLMs Can Easily Learn to Reason from Demonstrations Structure, not content, is what matters!cited by 132
  14. 2025SAEBench: A Comprehensive Benchmark for Sparse Autoencoders in Language Model Interpretabilitycited by 124
  15. 2023Circuit Component Reuse Across Tasks in Transformer Language Modelscited by 108
  16. 2025Convergent Linear Representations of Emergent Misalignmentcited by 71
  17. 2024SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separatorcited by 41
  18. 2025All for One: LLMs Solve Mental Math at the Last Token With Information Transferred From Other Tokenscited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 3.

4 papers.