LAWCAT: Efficient Distillation from Quadratic to Linear Attention with Convolution across Tokens for Long Context Modeling
Not on the map. Why?
Abstract (arXiv)
Although transformer architectures have achieved state-of-the-art performance across diverse domains, their quadratic computational complexity with respect to sequence length remains a significant bottleneck, particularly for latency-sensitive long-context applications. While recent linear-complexity alternatives are increasingly powerful, effectively training them from scratch is still resource-intensive. To overcome these limitations, we propose LAWCAT (Linear Attention with Convolution Across Time), a novel linearization framework designed to efficiently transfer the capabilities of pre-trained transformers into a performant linear attention architecture. LAWCAT integrates causal Conv1D layers to enhance local dependency modeling and employs normalized gated linear attention to improve generalization across varying context lengths. Our comprehensive evaluations demonstrate that, distilling Mistral-7B with only 1K-length sequences yields over 90% passkey retrieval accuracy up to 22K tokens, significantly extending its effective context window. Similarly, Llama3.2-1B LAWCAT variant achieves competitive performance on S-NIAH 1&2&3 tasks (1K-8K context length) and BABILong benchmark (QA2&QA3, 0K-16K context length), requiring less than 0.1% pre-training tokens compared with pre-training models. Furthermore, LAWCAT exhibits faster prefill speeds than FlashAttention-2 for sequences exceeding 8K tokens. LAWCAT thus provides an efficient pathway to high-performance, long-context linear models suitable for edge deployment, reducing reliance on extensive long-sequence training data and computational resources. Code is released at: https://github.com/zeyuliu1037/LAWCAT
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 23 of its 35 references that are in the map. First posted on arXiv 22 Sep 2025.
Builds on
23 of 35 references.
References · 23
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,845
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
- 2016Sequence-Level Knowledge Distillationcited by 801
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
- 2023Gated Linear Attention Transformers with Hardware-Efficient Trainingcited by 514
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
11 more
- 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 215
- 2021BookSum: A Collection of Datasets for Long-form Narrative Summarizationcited by 184
- 2024HGRN2: Gated Linear RNNs with State Expansioncited by 127
- 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Modelscited by 122
- 2024The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicrycited by 120
- 2022The Devil in Linear Transformercited by 98
- 2025SEAL: Steerable Reasoning Calibration of Large Language Models for Freecited by 68
- 2024Linearizing Large Language Modelscited by 51
- 2024Bridging the Divide: Reconsidering Softmax and Linear Attentioncited by 48
- 2025MoM: Linear Sequence Modeling with Mixture-of-Memoriescited by 47
- 2025OuroMamba: A Data-Free Quantization Framework for Vision Mambacited by 5
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Retrofitting Linear Attention into Diffusion Language Models6 Aug 2026
- 2026Residual-Mass Accounting for Partial-KV Decoding7 Apr 2026
- 2026ViT-AdaLA: Adapting Vision Transformers with Linear Attention17 Mar 2026