paper-with-me

홈 › Papers

Gated Differentiable Working Memory for Long-Context Language Modeling

2026-01-19 · Lingrui Mei, Shenghua Liu, Yiwei Wang, Yuyao Ge, Baolong Bi, Jiayu Yao, Jun Wan, Ziling Yin, Jiafeng Guo, Xueqi Cheng 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$\times$ fewer gradient steps than uniform baselines, establishing a new efficiency-performance Pareto frontier for test-time adaptation.

📄 PDF Abstract BibTeX arXiv:2601.12906

Code (0)

등록된 구현이 없습니다.

Tasks

Test-time Adaptation

Similar Papers 제목 키워드 기반

A Brain-inspired Memory Transformation based Differentiable Neural Computer for Reasoning-based Question Answering

2023-01-07 · Yao Liang, Hongjian Fang, Yi Zeng, Feifei Zhao

Reasoning and question answering as a basic cognitive function for humans, is nevertheless a great challenge for current artificial intelligence. Although the Differentiable Neural Computer (DNC) model could solve such p…

Question Answering

Learning to Remember, Forget and Ignore using Attention Control in Memory

2018-09-28 · T. S. Jayram, Younes Bouhadjar, Ryan L. McAvoy, Tomasz Kornuta 외

Typical neural networks with external memory do not effectively separate capacity for episodic and working memory as is required for reasoning in humans. Applying knowledge gained from psychological studies, we designed …

Context by Distinct Information: An Auditable Dirichlet-Process Working Memory for Long, Redundant Context Streams

2026-07-11 · Siddharth Pal, Viktoria Rojkova arxiv

Context engineering decides what information a model carries forward, and current designs meter it in tokens: compressing the past into a bounded recurrent state, keeping a key-value entry for every token, or imposing a …

A Framework for Inference Inspired by Human Memory Mechanisms

2023-10-01 · Xiangyu Zeng, Jie Lin, Piao Hu, Ruizheng Huang 외

How humans and machines make sense of current inputs for relation reasoning and question-answering while putting the perceived information into context of our past memories, has been a challenging conundrum in cognitive …

image-classificationImage ClassificationLanguage ModelingLanguage Modelling+1

Tensor Memory: Fixed-Size Recurrent State for Long-Horizon Transformers

2026-05-26 · Kabir Swain, Sijie Han, Daniel Karl I. Weidele, Mauro Martino 외 arxiv

Transformers process images and videos by flattening space and time into long token sequences. While attention and KV caching preserve past features, their memory grows with sequence length and they lack an explicit, per…