mlsanityData to 24 Nov 2026

Can Language Models Learn While They Think? Testing Gradient Adaptation Across Architectures

arXiv 2610.33025 ↗Submitted 10 Oct 2026cs.LG cs.CLcited by 0

On the map: LLM reasoning → Diffusion reasoning and test-time scaling

also in 1 more
Abstract (arXiv)

Letting a language model take gradient steps on the text it is reading, known as dynamic evaluation, lowers its loss on the rest of the document. Its behaviour on hybrid linear-attention architectures, on diffusion language models, and on standard long-context benchmarks has not been measured. We measure it. With one SGD step per 128-token chunk on the MLP output projections of the last quarter of blocks, no training, and a 2k-token window, softmax-attention models (Qwen3-1.7B, Qwen3-4B, Gemma-4-E4B) lose 5-8% of their next-token loss over a document and outperform the same frozen model given the full 32k-token context. Hybrid Gated-DeltaNet models (Qwen3.5-4B, Qwen3.8-27B) gain under 1% at every learning rate: the linear-attention blocks already perform the adaptation. The mechanism transfers to masked-diffusion models with a larger effect, 8% on Nemotron-Diffusion-8B and 17-20% on DiffusionGemma-26B, once the rate is lowered and updates are clipped. Across RULER, BABILong, LongBench-v2, SCOTUS, HotpotQA, MuSiQue, ContractNLI and citation completion, at 100 or more items on two model sizes, weights updated on the full document recover none of the accuracy lost to context truncation: the adaptation is style and vocabulary, not retrieval. Writing facts with the next-token loss stores the prompt format rather than the fact (30% recall under chat prompting against 80% in context) and costs 36-38 GSM8K points at every dose. Writing a conclusion as behaviour instead, by distilling the model's own conclusion-conditioned judgments into a low-rank adapter, reaches the in-context ceiling (0.83 and 0.88 against 0.84 and 0.88 on 100 games) with GSM8K unchanged, and the conclusion can come from an inquiry loop that found it by asking information-gain questions.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Diffusion reasoning and test-time scaling, one of 17 directions in LLM reasoning. Builds on 28 of its 32 references that are in the map. Submitted 10 Oct 2026.

Builds on

28 of 32 references.

Closest ancestors · 1

Same direction, newest first

  1. 2025Test-Time Scaling in Diffusion LLMs via Hidden Semi-Autoregressive Experts6 Oct

Other references · 27

  1. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,986
  2. 2022Locating and Editing Factual Associations in GPTcited by 2,951
  3. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,559
  4. 2021A General Language Assistant as a Laboratory for Alignmentcited by 1,123
  5. 2022Mass-Editing Memory in a Transformercited by 1,110
  6. 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 1,011
  7. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 798
  8. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 690
  9. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 447
  10. 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 415
  11. 2024Titans: Learning to Memorize at Test Timecited by 383
  12. 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 364
15 more
  1. 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 338
  2. 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 247
  3. 2022Learning by Distilling Contextcited by 180
  4. 2024A Comprehensive Study of Knowledge Editing for Large Language Modelscited by 180
  5. 2021ContractNLI: A Dataset for Document-level Natural Language Inference for Contractscited by 168
  6. 2022Pile of Law: Learning Responsible Data Filtering from the Law and a 256GB Open-Source Legal Datasetcited by 122
  7. 2024Model Editing Harms General Abilities of Large Language Models: Regularization to the Rescuecited by 122
  8. 2025Self-Adapting Language Modelscited by 105
  9. 2023Test-Time Training on Nearest Neighbors for Large Language Modelscited by 96
  10. 2025End-to-End Test-Time Training for Long Contextcited by 78
  11. 2025MesaNet: Sequence Modeling by Locally Optimal Test-Time Trainingcited by 60
  12. 2019Dynamic Evaluation of Transformer Language Modelscited by 27
  13. 2026Test-Time Training with KV Binding Is Secretly Linear Attentioncited by 20
  14. 2024Revisiting Dynamic Evaluation: Online Adaptation for Large Language Modelscited by 11
  15. 2026Context Distillation as Latent Memory Managementcited by 8

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2023Diffusion Language Models Can Perform Many Tasks with Scaling and Instruction-Finetuning
  2. 2026dQwen3.5: Hybrid-Attention Diffusion Language Models
  3. 2026DreamingGoose: Staged Distillation from Autoregressive Transformers to Bidirectional Recurrent Diffusion Language Models
  4. 2026Understanding and Accelerating the Training of Masked Diffusion Language Models
  5. 2026One Token Is Enough: Improving Diffusion Language Models with a Sink Token
  6. 2025Attention Sinks in Diffusion Language Models
  7. 2024Scaling Diffusion Language Models via Adaptation from Autoregressive Models
  8. 2024When Attention Sink Emerges in Language Models: An Empirical View