Can Memory-Augmented Language Models Generalize on Reasoning-in-a-Haystack Tasks?
On the map: LLM reasoning → Knowledge- and tool-augmented reasoning
Abstract (arXiv)
Large language models often expose their brittleness in reasoning tasks, especially while executing long chains of reasoning over context. We propose MemReasoner, a new and simple memory-augmented LLM architecture, in which the memory learns the relative order of facts in context, and enables hopping over them, while the decoder selectively attends to the memory. MemReasoner is trained end-to-end, with optional supporting fact supervision of varying degrees. We train MemReasoner, along with existing memory-augmented transformer models and a state-space model, on two distinct synthetic multi-hop reasoning tasks. Experiments performed under a variety of challenging scenarios, including the presence of long distractor text or target answer changes in test set, show strong generalization of MemReasoner on both single- and two-hop tasks. This generalization of MemReasoner is achieved using none-to-weak supporting fact supervision (using none and 1% of supporting facts for one- and two-hop tasks, respectively). In contrast, baseline models overall struggle to generalize and benefit far less from using full supporting fact supervision. The results highlight the importance of explicit memory mechanisms, combined with additional weak supervision, for improving large language model's context processing ability toward reasoning tasks.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Knowledge- and tool-augmented reasoning, one of 17 directions in LLM reasoning. Builds on 28 of its 41 references that are in the map. First posted on arXiv 10 Mar 2025.
Builds on
28 of 41 references.
Closest ancestors · 2
Same direction, newest first
- 2024Cofca: A Step-Wise Counterfactual Multi-hop QA benchmark19 Feb
- 2024Investigating Multi-Hop Factual Shortcuts in Knowledge Editing of Large Language Models19 Feb
Other references · 26
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2022STaR: Bootstrapping Reasoning With Reasoningcited by 895
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
- 2020Long Range Arena: A Benchmark for Efficient Transformerscited by 696
- 2014Memory Networkscited by 354
- 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 309
- 2022Transformers Learn Shortcuts to Automatacited by 260
14 more
- 2024Iterative Reasoning Preference Optimizationcited by 244
- 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 211
- 2024An Empirical Study of Mamba-based Language Modelscited by 177
- 2024Same Task, More Tokens: the Impact of Input Length on the Reasoning Performance of Large Language Modelscited by 150
- 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Taskscited by 104
- 2020Memory Transformercited by 74
- 2023Exposing Attention Glitches with Flip-Flop Language Modelingcited by 74
- 2024Larimar: Large Language Models with Episodic Memory Controlcited by 53
- 2023GRACE: Discriminator-Guided Chain-of-Thought Reasoningcited by 35
- 2024NeedleBench: Evaluating LLM Retrieval and Reasoning Across Varying Information Densitiescited by 32
- 2024Not All LLM Reasoners Are Created Equalcited by 29
- 2024LogicAsker: Evaluating and Improving the Logical Reasoning Ability of Large Language Modelscited by 23
- 2015End-To-End Memory Networkscited by 6
- 2024Generation Constraint Scaling Can Mitigate Hallucinationcited by 4
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026G-MemLLM: Gated Latent Memory Augmentation for Long-Context Reasoning in Large Language Models
- 2023Memory Injections: Correcting Multi-Hop Reasoning Failures during Inference in Transformer-Based Language Models
- 2024Towards Interpreting Language Models: A Case Study in Multi-Hop Reasoning
- 2025Hierarchical Memory for High-Efficiency Long-Term Reasoning in LLM Agents
- 2025Look Back to Reason Forward: Revisitable Memory for Long-Context LLM Agents
- 2026Unlocking the Working Memory of Large Language Models for Latent Reasoning
- 2024On Memorization of Large Language Models in Logical Reasoning
- 2023Large Language Models Are Not Strong Abstract Reasoners