paper-with-me

홈 › Papers

LinearARD: Linear-Memory Attention Distillation for RoPE Restoration

2026-03-09 · Ning Yang, Hengyu Zhong, Wentao Wang, Baoliang Tian, Haijun Zhang, Jun Wang 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 \times 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 \textbf{4.25M} training tokens compared to the \textbf{256M} tokens required by LongReD and CPT. Our code is available at https://github.com/gracefulning/LinearARD.

📄 PDF Abstract BibTeX arXiv:2604.00004

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

ReHyAt: Recurrent Hybrid Attention for Video Diffusion Transformers

2026-01-07 · Mohsen Ghafoorian, Amirhossein Habibian arxiv

Recent advances in video diffusion models have shifted towards transformer-based architectures, achieving state-of-the-art video generation but at the cost of quadratic attention complexity, which severely limits scalabi…

Video Generation

Attention to Mamba: A Recipe for Cross-Architecture Distillation

2026-04-01 · Abhinav Moudgil, Ningyuan Huang, Eeshan Gunesh Dhekane, Pau Rodríguez 외 arxiv

State Space Models (SSMs) such as Mamba have become a popular alternative to Transformer models, due to their reduced memory consumption and higher throughput at generation compared to their Attention-based counterparts.…

Long-Horizon Streaming Video Generation via Hybrid Attention with Decoupled Distillation

2026-04-11 · Ruibin Li, Tao Yang, Fangzhou Ai, Tianhe Wu 외 arxiv

Streaming video generation (SVG) distills a pretrained bidirectional video diffusion model into an autoregressive model equipped with sliding window attention (SWA). However, SWA inevitably loses distant history during l…

Computational EfficiencyModel CompressionVideo Generation

On-the-Fly Adaptive Distillation of Transformer to Dual-State Linear Attention

2025-06-11 · Yeonju Ro, Zhenyu Zhang, Souvik Kundu, Zhangyang Wang 외

Large language models (LLMs) excel at capturing global token dependencies via self-attention but face prohibitive compute and memory costs on lengthy inputs. While sub-quadratic methods (e.g., linear attention) can reduc…

Text Summarization

WAND: Windowed Attention and Knowledge Distillation for Efficient Autoregressive Text-to-Speech Models

2026-03-17 · Hanna Lee, Tan Dat Nguyen, Jaehoon Kang, Kyuhong Shim arxiv

Recent decoder-only autoregressive text-to-speech (AR-TTS) models produce high-fidelity speech, but their memory and compute costs scale quadratically with sequence length due to full self-attention. In this paper, we pr…

Knowledge Distillation