arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.03005cs.CLcs.AIcs.LG
收藏

RADLADS: 在大规模上快速注意力蒸馏到线性注意力解码器

RADLADS: Rapid Attention Distillation to Linear Attention Decoders at Scale

Recursal AI;Eleuther AI;USI;IDSIA;GMU

Daniel Goldstein, Eric Alcaide, Janna Lu, Eugene Cheah

AI总结:

RADLADS通过快速注意力蒸馏技术,在大规模上将softmax注意力转换为线性注意力解码器,实现高效模型转换与高性能下游任务表现。

摘要:

我们提出了RADLADS,一种用于快速将softmax注意力转换为线性注意力解码器的协议,同时介绍了两种新的RWKV变体架构,以及从流行的Qwen2.5开源模型中转换出的7B、32B和72B大小的模型。我们的转换过程仅需350-700M个标记,不到原始教师模型所用标记数的0.005%。将模型转换为我们的72B线性注意力模型目前仅需不到2000美元,但推理质量接近原始Transformer。这些模型在一系列标准基准测试中实现了线性注意力模型的最先进下游性能。我们将在HuggingFace上发布所有模型,采用Apache 2.0许可证,除了72B模型外,还受Qwen许可证协议约束。模型地址:https://huggingface.co/collections/recursal/radlads-6818ee69e99e729ba8a87102 训练代码地址:https://github.com/recursal/RADLADS-paper

英文摘要:

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

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑