mlsanityData to 14 Oct 2026

LinearARD: Linear-Memory Attention Distillation for RoPE Restoration

arXiv 2604.00004 ↗First posted 9 Mar 2026cs.CL cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

The extension of context windows in Large Language Models is typically facilitated by scaling positional encodings followed by lightweight Continual Pre-Training (CPT). While effective for processing long sequences, this paradigm often disrupts original model capabilities, leading to performance degradation on standard short-text benchmarks. We propose LinearARD, a self-distillation method that restores Rotary Position Embeddings (RoPE)-scaled students through attention-structure consistency with a frozen native-RoPE teacher. Rather than matching opaque hidden states, LinearARD aligns the row-wise distributions of dense Q/Q, K/K, and V/V self-relation matrices to directly supervise attention dynamics. To overcome the quadratic memory bottleneck of n × n relation maps, we introduce a linear-memory kernel. This kernel leverages per-token log-sum-exp statistics and fuses logit recomputation into the backward pass to compute exact Kullback-Leibler divergence and gradients. On LLaMA2-7B extended from 4K to 32K, LinearARD recovers 98.3% of the short-text performance of state-of-the-art baselines while surpassing them on long-context benchmarks. Notably, our method achieves these results using only 4.25M training tokens compared to the 256M tokens required by LongReD and CPT. Our code is available at https://github.com/gracefulning/LinearARD.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 32 of its 33 references that are in the map. First posted on arXiv 9 Mar 2026.

Builds on

32 of 33 references.

References · 32

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  5. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  6. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  7. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  8. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  9. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  10. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  11. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  12. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
20 more
  1. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  2. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  3. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
  4. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
  5. 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
  6. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,463
  7. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
  8. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,167
  9. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
  10. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
  11. 2019MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalismscited by 662
  12. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
  13. 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 482
  14. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 457
  15. 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 313
  16. 2020MiniLMv2: Multi-Head Self-Attention Relation Distillation for Compressing Pretrained Transformerscited by 245
  17. 2023Continual Pre-training of Language Modelscited by 198
  18. 2023PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Trainingcited by 111
  19. 2025LongReD: Mitigating Short-Text Degradation of Long-Context Large Language Models via Restoration Distillationcited by 14
  20. 2024SEEKR: Selective Attention-Guided Knowledge Retention for Continual Learning of Large Language Modelscited by 11

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026RunningTensor: Generalizing Linear Attention to Higher-Order Recurrent States
  2. 2026Adaptive Memory Decay for Log-Linear Attention
  3. 2023SEA: Sparse Linear Attention with Estimated Attention Mask
  4. 2026Sliding-window beats linear attention
  5. 2026On-Policy Attention Linearization
  6. 2025Towards Long-window Anchoring in Vision-Language Model Distillation
  7. 2025Breaking Quadratic Barriers: A Non-Attention LLM for Ultra-Long Context Horizons
  8. 2026Switching Linear Attention