Internalized Experience: How Training Data Shapes Memory Formation in LLMs
Not on the map. Why?
Abstract (arXiv)
Parametric memory enables large language models (LLMs) to retain information from past experience and reuse it in subsequent tasks. Yet how training data supports the internalization of reusable task rules remains unclear. We introduce FSMem (Finite-State Machine Memory), a state-transition framework for constructing training data and studying how data content and organization shape memory formation. We evaluate rule reuse across synthetic worlds, classical planning, and code execution through valid-action identification and execution-outcome prediction, complemented by next-operation prediction in code. Our experiments reveal several systematic learning patterns. Under matched training conditions, even unchanged task rules become harder to internalize when learned alongside a larger variety of action types; by contrast, scaling the training data to provide broader state-action coverage generally improves rule learning. We further find that training at a single execution depth produces depth-specialized behavior, with models performing best when training and test executions have similar lengths. Motivated by this finding, we construct cumulative corpora that combine short and long trajectories, which can outperform long-trajectory-only training while using fewer training tokens. Together, these results demonstrate that the same task rules can be internalized differently depending on how execution experience is constructed, and that understanding these learning patterns can guide the design of more effective training data for parametric memory.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 42 of its 47 references that are in the map. Submitted 21 Nov 2026, announced 24 Nov 2026.
Builds on
42 of 47 references.
References · 42
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 15,591
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,866
- 2025Qwen3 Technical Reportcited by 9,994
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,845
- 2022Locating and Editing Factual Associations in GPTcited by 2,951
- 2019Language Models as Knowledge Bases?cited by 1,987
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,424
- 2022Mass-Editing Memory in a Transformercited by 1,110
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 934
- 2022Quantifying Memorization Across Neural Language Modelscited by 810
- 2021Deduplicating Training Data Makes Language Models Bettercited by 762
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 738
30 more
- 2021Knowledge Neurons in Pretrained Transformerscited by 635
- 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 630
- 2021Editing Factual Knowledge in Language Modelscited by 581
- 2021Fast Model Editing at Scalecited by 543
- 2024Titans: Learning to Memorize at Test Timecited by 383
- 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 299
- 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 297
- 2024AlphaEdit: Null-Space Constrained Knowledge Editing for Language Modelscited by 272
- 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 228
- 2022Exploring Length Generalization in Large Language Modelscited by 219
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 219
- 2023Transformer-Patcher: One Mistake worth One Neuroncited by 207
- 2024Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Lawscited by 167
- 2023Physics of Language Models: Part 3.2, Knowledge Manipulationcited by 158
- 2019Large Memory Layers with Product Keyscited by 134
- 2024WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Modelscited by 107
- 2024How Do Large Language Models Acquire Factual Knowledge During Pretraining?cited by 105
- 2023MemoChat: Tuning LLMs to Use Memos for Consistent Long-Range Open-Domain Conversationcited by 103
- 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Modelscited by 102
- 2022Calibrating Factual Knowledge in Pretrained Language Modelscited by 96
- 2024Grokked Transformers are Implicit Reasoners: A Mechanistic Journey to the Edge of Generalizationcited by 90
- 2026Doc-to-LoRA: Learning to Instantly Internalize Contextscited by 65
- 2025CodeI/O: Condensing Reasoning Patterns via Code Input-Output Predictioncited by 61
- 2024ACPBench: Reasoning about Action, Change, and Planningcited by 46
- 2026SHINE: A Scalable In-Context Hypernetwork for Mapping Context to LoRA in a Single Passcited by 39
- 2025MLP Memory: A Retriever-Pretrained Memory for Large Language Modelscited by 25
- 2026Understanding LoRA as Knowledge Memory: An Empirical Analysiscited by 19
- 2026Language Models Need Sleep: Learning to Self-Modify and Consolidate Memoriescited by 12
- 2026How LoRA Remembers? A Parametric Memory Law for LLM Finetuningcited by 8
- 2026Cram Less to Fit More: Training Data Pruning Improves Memorization of Factscited by 5
Built on by
Not cited yet.