mlsanityData to 7 Oct 2026

Gated Differentiable Working Memory for Long-Context Language Modeling

arXiv 2601.12906 ↗First posted 19 Jan 2026cs.CLcited by 6

Not on the map. Why?

Abstract (arXiv)

Long contexts challenge transformers: attention scores dilute across thousands of tokens, critical information is often lost in the middle, and models struggle to adapt to novel patterns at inference time. Recent work on test-time adaptation addresses this by maintaining a form of working memory -- transient parameters updated on the current context -- but existing approaches rely on uniform write policies that waste computation on low-utility regions and suffer from high gradient variance across semantically heterogeneous contexts. In this work, we reframe test-time adaptation as a budget-constrained memory consolidation problem, focusing on which parts of the context should be consolidated into working memory under limited computation. We propose Gdwm (Gated Differentiable Working Memory), a framework that introduces a write controller to gate the consolidation process. The controller estimates Contextual Utility, an information-theoretic measure of long-range contextual dependence, and allocates gradient steps accordingly while maintaining global coverage. Experiments on ZeroSCROLLS and LongBench v2 demonstrate that Gdwm achieves comparable or superior performance with 4× fewer gradient steps than uniform baselines, establishing a new efficiency-performance Pareto frontier for test-time adaptation.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 146 of its 198 references that are in the map. First posted on arXiv 19 Jan 2026.

Builds on

146 of 198 references.

References · 146

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  4. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  5. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
  6. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  7. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  8. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  9. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  10. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
  11. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,928
  12. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
38 more
  1. 2025A-MEM: Agentic Memory for LLM Agentscited by 1,000
  2. 2023ExpeL: LLM Agents Are Experiential Learnerscited by 814
  3. 2023Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizescited by 710
  4. 2019Passage Re-ranking with BERTcited by 629
  5. 2024A Survey on the Memory Mechanism of Large Language Model based Agentscited by 622
  6. 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
  7. 2022Efficient Test-Time Model Adaptation without Forgettingcited by 467
  8. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 428
  9. 2023Adapting Language Models to Compress Contextscited by 350
  10. 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 349
  11. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 343
  12. 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 339
  13. 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 319
  14. 2025Memory in the Age of AI Agentscited by 285
  15. 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentationcited by 253
  16. 2020AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Promptscited by 246
  17. 2025Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactionscited by 236
  18. 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 235
  19. 2024Data Engineering for Scaling Language Models to 128K Contextcited by 183
  20. 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 175
  21. 2016Using Fast Weights to Attend to the Recent Pastcited by 161
  22. 2023Large Language Models for Automated Data Science: Introducing CAAFE for Context-Aware Automated Feature Engineeringcited by 125
  23. 2024xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Tokencited by 123
  24. 2025Optimizing Test-Time Compute via Meta Reinforcement Fine-Tuningcited by 121
  25. 2025From Human Memory to AI Memory: A Survey on Memory Mechanisms in the Era of LLMscited by 119
  26. 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrievalcited by 118
  27. 2024A Survey on Large Language Model-Based Game Agentscited by 106
  28. 2024Long Context Compression with Activation Beaconcited by 101
  29. 2024AriGraph: Learning Knowledge Graph World Models with Episodic Memory for LLM Agentscited by 100
  30. 2025MemGen: Weaving Generative Latent Memory for Self-Evolving Agentscited by 99
  31. 2025How Memory Management Impacts LLM Agents: An Empirical Study of Experience-Following Behaviorcited by 95
  32. 2025AgentFold: Long-Horizon Web Agents with Proactive Context Managementcited by 95
  33. 2025MemInsight: Autonomous Memory Augmentation for LLM Agentscited by 84
  34. 2025MemEvolve: Meta-Evolution of Agent Memory Systemscited by 81
  35. 2024From Isolated Conversations to Hierarchical Schemas: Dynamic Tree Memory Representation for LLMscited by 77
  36. 2024ToolGen: Unified Tool Retrieval and Calling via Generationcited by 72
  37. 2025Remember Me, Refine Me: A Dynamic Procedural Memory Framework for Experience-Driven Agent Evolutioncited by 65
  38. 2024Steering Knowledge Selection Behaviours in LLMs via SAE-Based Representation Engineeringcited by 60

50 most cited of 146 All 146 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 6.

6 papers.