RADLADS: Rapid Attention Distillation to Linear Attention Decoders at Scale

Daniel Goldstein, Eric Alcaide, Jie Lü, Eugene Cheah · DOI

Abstract

We present Rapid Attention Distillation to Linear Attention Decoders at Scale (RADLADS), a protocol for rapidly converting softmax attention transformers into linear attention decoder models, along with two new RWKV-variant architectures, and models converted from popular Qwen2.5 open source models in 7B, 32B, and 72B sizes. Our conversion process requires only 350-700M tokens, less than 0.005% of the token count used to train the original teacher models. Converting to our 72B linear attention model costs less than $2,000 USD at today's prices, yet quality at inference remains close to the original transformer. These models achieve state-of-the-art downstream performance across a set of standard benchmarks for linear attention models of their size.

Introduction

The "quadratic bottleneck" of standard Transformers is a primary obstacle for long-context applications. As sequence lengths grow, the memory and compute requirements for softmax attention increase quadratically ($O(N^2)$). While linear attention models like RWKV or Mamba offer $O(1)$ inference costs, training them from scratch to match the quality of state-of-the-art Transformers typically requires trillions of tokens and significant financial investment.

RADLADS introduces a breakthrough protocol that bypasses the need for massive pre-training. By distilling existing high-performance Transformers into efficient linear models, the authors achieve high-quality results using a tiny fraction of the original data.

The RADLADS Protocol

The core of RADLADS is a three-step distillation recipe designed to preserve the "knowledge" stored in a Transformer's Feed-Forward (MLP) layers while replacing its "engine" (the attention mechanism).

  1. Attention Hidden State Alignment: The student model's linear sequence mixer is trained to mimic the output of the teacher's attention layers while the rest of the model remains frozen.
  2. Knowledge Distillation: The entire model is unfrozen and trained to match the teacher's output logits, capturing the nuances of the teacher's reasoning.
  3. Context Length Extension: The model is fine-tuned on longer sequences to leverage the long-range dependency capabilities of linear attention.
Comparison of distillation protocols across different linear attention conversion methods.

To facilitate this, the authors developed RAD-RWKV6 ("RADFinch") and RAD-RWKV7 ("RADGoose"), architectures optimized to fit the patterns learned by softmax Transformers.

Efficiency and Performance

A key highlight of RADLADS is its extreme data efficiency. While previous methods like SUPRA required 100B tokens, RADLADS achieves superior results with only 350M to 700M tokens. This represents less than 0.005% of the data used to train the original teacher models.

Comparison of token requirements and relative performance scores across various conversion methods.

The resulting models, particularly the QRWKV6-72B-Instruct, achieve state-of-the-art performance for linear models. On the MMLU benchmark, the 72B model retained over 92% of its teacher's relative score, significantly outperforming prior conversion techniques.

Key Insights

  • Knowledge Retention: The hypothesis that factual knowledge resides primarily in MLP layers and embeddings is supported by the success of this partial-swap approach.
  • Architecture Alignment: Standard RNN architectures may not align well with Transformer hidden states. The authors found that removing specific "bonus" terms and utilizing Gated Linear Attention kernels was crucial for accurate mimicry.
  • Inference Speedups: The converted 32B model demonstrated a 3.41x speedup over the original Transformer in inference tests on H100 GPUs (6k/2k context).
  • Cost-Effectiveness: Converting a 72B model for under $2,000 USD democratizes access to high-performance linear attention models.

Conclusion

RADLADS provides a scalable and cost-effective pathway for the AI community to transition from quadratic Transformers to efficient linear models. By releasing their code and models (7B, 32B, and 72B) under open licenses, the authors offer a new foundation for large-scale, long-context AI.

Models: HuggingFace Collection
Code: GitHub Repository

Summary updated

Abstract

We present Rapid Attention Distillation to Linear Attention Decoders at Scale (RADLADS), a protocol for rapidly converting softmax attention transformers into linear attention decoder models, along with two new RWKV-variant architectures, and models converted from popular Qwen2.5 open source models in 7B, 32B, and 72B sizes. Our conversion process requires only 350-700M tokens, less than 0.005% of the token count used to train the original teacher models. Converting to our 72B linear attention model costs less than \$2,000 USD at today's prices, yet quality at inference remains close to the original transformer. These models achieve state-of-the-art downstream performance across a set of standard benchmarks for linear attention models of their size. We release all our models on HuggingFace under the Apache 2.0 license, with the exception of our 72B models which are also governed by the Qwen License Agreement. Models at https://huggingface.co/collections/recursal/radlads-6818ee69e99e729ba8a87102 Training Code at https://github.com/recursal/RADLADS-paper
BibTeX
@inproceedings{goldstein2025radlads,
  author = {Daniel Goldstein and Eric Alcaide and Jie Lü and Eugene Cheah},
  title = {{RADLADS: Rapid Attention Distillation to Linear Attention Decoders at Scale}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=38GehGepDd},
}
Figure