arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.08301cs.LGcs.AI
收藏

预训练:从预训练变换器中获得的混合状态空间模型

Priming: Hybrid State Space Models From Pre-trained Transformers

AWS Agentic AI(AWS 代理AI)

Aditya Chattopadhyay, Elvis Nunez, Prannay Kaul, Benjamin Bowman, Evan Becker, Luca Zancato, David Thomas, Wei Xia, Stefano Soatto

AI总结:

预训练通过从预训练变换器初始化混合模型,利用短对齐和微调阶段,在少于源模型预训练token预算的情况下恢复下游性能,实现了大规模混合架构设计的可控比较。

摘要:

混合状态空间模型结合注意力与递归状态空间模型(SSM)层,平衡了注意力的 eidetic 记忆与 SSMs 的压缩衰减记忆。这导致了更小的键值缓存和比变换器更快的解码速度,同时拥有更丰富的架构设计空间。探索该设计空间规模曾需要从头开始训练,这限制了大多数大模型混合研究的架构范围。我们介绍了预训练,一种将混合架构设计从预训练问题转化为知识转移问题的方法。预训练从预训练变换器初始化混合模型,并通过短对齐和微调阶段,使用少于源模型预训练token预算的资源恢复下游性能。预训练对源变换器家族(如 Qwen、Llama、Mistral)、模型类别(密集或专家混合)和模型规模均无偏见。预训练使我们能够在相同条件下大规模运行首次可控的 SSM 层类型比较。我们评估了 Gated KalmaNet(GKA)、Gated DeltaNet(GDN)和 Mamba-2,并显示其表达性层级 GKA>GDN>Mamba-2 直接预测长上下文推理任务的下游性能。我们将预训练扩展到 8B/32B 推理模型,具有原生 128K 上下文。我们的混合 GKA 32B 比其源 Qwen3-32B 提高了 3.8 平均推理点,同时保持在 Transformer 在相同数据上微调后的 1% 以内,使解码吞吐量提高至 2.3 倍。为了促进混合架构的研究,我们发布了一个混合模型动物园,用于长上下文推理和指令跟随,以及预训练和推理代码(长上下文训练的序列并行算法、优化的 GKA 核和 vLLM 服务插件),均在 Apache~2.0 许可证下发布。

英文摘要:

Hybrid State-Space models combine Attention with recurrent State-Space Model (SSM) layers, balancing eidetic memory from Attention with compressed fading memory from SSMs. This yields smaller Key-Value caches and faster decoding than Transformers, along with a richer architectural design space. Exploring that design space at scale has so far required training from scratch, a barrier that has kept most large-model Hybrid research within a narrow range of architectures. We introduce Priming, a method that turns Hybrid architecture design from a pre-training problem into a knowledge transfer one. Priming initializes a Hybrid model from a pre-trained Transformer and, through short alignment and post-training phases, recovers downstream quality using less than 0.5% of the source model's pre-training token budget. Priming is agnostic to the source Transformer family (e.g., Qwen, Llama, Mistral), model class (dense or Mixture-of-Experts), and model scale. Priming enables us to run the first controlled comparison of SSM layer types at scale under identical conditions. We evaluate, Gated KalmaNet (GKA), Gated DeltaNet (GDN), and Mamba-2, and show that their expressiveness hierarchy, GKA>GDN>Mamba-2, directly predicts downstream performance on long-context reasoning tasks. We scale Priming to 8B/32B reasoning models with native 128K contexts. Our Hybrid GKA 32B improves over its source Qwen3-32B by +3.8 average reasoning points, while staying within 1% of a Transformer post-trained on the same data and enabling up to 2.3x higher decode throughput. To foster research on Hybrid architectures, we release a model zoo of primed Hybrid models for long-context reasoning and instruction following, together with the Priming training and inference code (Sequence Parallelism algorithms for long-context training, optimized GKA kernels, and vLLM serving plugin), all under Apache~2.0 License.

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

↑