TransMem: Transforming Hidden States into Memory for Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large language model (LLM) agents increasingly operate over long interaction histories, where effective reasoning requires identifying and exploiting task-relevant evidence distributed across past observations and actions. However, useful information encoded in previously computed representations is often underutilized during subsequent generation. We propose TransMem, a lightweight inference-time parametric memory module that transforms sparse historical hidden states from a frozen LLM backbone into reusable memory representations. TransMem uses a lightweight gating network to dynamically apply the latent intervention to the current hidden states, without repeatedly encoding the preceding context. To learn transferable memory utilization rather than task-specific knowledge, we introduce evidence-conditioned self-distillation. A memory-augmented student processes the full context and matches the predictive distribution of an evidence-only teacher that shares the same frozen backbone. Experiments on LoCoMo, HotpotQA, and MemoryAgentBench demonstrate consistent improvements across different model architectures and scales. TransMem yields gains of 11.58--29.25 F1 on LoCoMo and 10.20--13.03 F1 on HotpotQA, while improving the average MemoryAgentBench accuracy from 29.54% to 40.00%. These results establish sparse historical hidden states as an effective and efficient memory substrate for long-context LLM agents. Our code is available at https://github.com/Haodong-Lei-Ray/TransMem.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 29 of its 38 references that are in the map. First posted on arXiv 31 Jul 2026.
Builds on
29 of 38 references.
References · 29
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 656
- 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 622
- 2024EAGLE: Speculative Sampling Requires Rethinking Feature Uncertaintycited by 564
- 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 343
- 2025ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memorycited by 253
- 2025Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactionscited by 236
17 more
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
- 2025Agent S2: A Compositional Generalist-Specialist Framework for Computer Use Agentscited by 156
- 2026SimpleMem: Efficient Lifelong Memory for LLM Agentscited by 140
- 2025MemGen: Weaving Generative Latent Memory for Self-Evolving Agentscited by 99
- 2024Found in the Middle: Calibrating Positional Attention Bias Improves Long Context Utilizationcited by 97
- 2025Look Back to Reason Forward: Revisitable Memory for Long-Context LLM Agentscited by 37
- 2025MemVerse: Multimodal Memory for Lifelong Learning Agentscited by 31
- 2026OPSDL: On-Policy Self-Distillation for Long-Context Language Modelscited by 29
- 2025Coarse-to-Fine Grounded Memory for LLM Agent Planningcited by 16
- 2026Understanding LoRA as Knowledge Memory: An Empirical Analysiscited by 11
- 2024HELENE: Hessian Layer-wise Clipping and Gradient Annealing for Accelerating Fine-tuning LLM with Zeroth-order Optimizationcited by 7
- 2026MemSifter: Offloading LLM Memory Retrieval via Outcome-Driven Proxy Reasoningcited by 3
- 2026Mem-π: Adaptive Memory through Learning When and What to Generatecited by 3
- 2026MEMTS: Internalizing Domain Knowledge via Parameterized Memory for Retrieval-Free Domain Adaptation of Time Series Foundation Modelscited by 2
- 2026MemCoT: Test-Time Scaling through Memory-Driven Chain-of-Thoughtcited by 2
- 2026Rethinking How to Remember: Beyond Atomic Facts in Lifelong LLM Agent Memorycited by 2
- 2026Parametric Memory Decoding for Zero-Shot Routing in LoRA-Based External Parametric Memorycited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026Verifiable Memory: Learning Unified Memory Management with Local and Global Verifiers for Large Language Model Agents
- 2026DimMem: Dimensional Structuring for Efficient Long-Term Agent Memory
- 2026QUMem: Personalized Memory for Query-Conditioned User-State Inference in LLM Agents
- 2026RPMem: Learning Long-Term Recurrent Parametric Memory Across Sessions for LLM Agents
- 2026Memex(RL): Scaling Long-Horizon LLM Agents via Indexed Experience Memory
- 2026NextMem: Towards Latent Factual Memory for LLM-based Agents
- 2026MemRefine: LLM-Guided Compression for Long-Term Agent Memory
- 2026Memory is Reconstructed, Not Retrieved: Graph Memory for LLM Agents