微小架构差异竟让长文本模型性能暴跌47%
Cracks in the Foundation: Seemingly Minor Architectural Choices Impact Long Context Extension
- 固定数据与训练流程,只改归一化、GQA等四类细节
- 三处以上调整组合后,长文本任务性能最高下降47%
- 适合关注长文本建模的开发者和研究者
人们常认为密集型Transformer架构的细微差异对精度影响有限,但在长上下文场景下并非如此。我们发现,由Olmo、Llama、Qwen等模型家族采用的四项看似微不足道的架构选择,会显著抑制长上下文扩展能力。单个选择影响轻微,但三者及以上组合可导致下游任务性能最高下降47%。这些差异无法通过短上下文损失或验证集察觉。我们通过控制实验(固定数据、分词器、扩展方法)验证:归一化方式、GQA、预训练上下文长度、滑动窗口注意力等是关键因素。经过超过17万GPU小时训练,我们发布奥尔姆池(OlmPool),包含26个7B参数的可比模型,涵盖多个优于Llama 3长文本扩展能力的架构。分析显示,特定架构差异会导致注意力汇聚行为与分布模式的系统性变化。
原文摘要 · Abstract (English)
One might imagine that architectural variations within the dense transformer paradigm have a limited effect on accuracy. However, we demonstrate that this is not the case in the long context setting. Specifically, we show that a set of four minor architectural decisions --- all made by at least one of the Olmo, Llama, and Qwen dense model families --- have a compoundingly negative effect on long context extensibility. Any one of these choices alone has a minor impact on long context performance, but combining three or more can drop the performance downstream by up to 47%. Furthermore, these differences are not detectable from short-context loss or validation datasets. We show that much of the variation in long context ability across model families is driven by these architectural features and detectable from applying context extension early in pretraining. We demonstrate this with controlled ablations that hold data, tokenizer, and extension recipe fixed while varying normalization, GQA, pretraining context length, and sliding window attention. After over 170,000 GPU hours of training, we release the resulting set of models as OlmPool, a set of 26 comparable 7B models with checkpoints before and after long-context extension. This pool includes several architectures that outperform the Llama 3 architecture on long context extensibility. In an analysis of our ablation models, we identify patterns in attention sink behavior and attention distributions across context that are attributable to specific architectural differences.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。