2025-02-19 · 专家 · 自然语言处理 · 机器学习

MUDDFormer: Breaking Residual Bottlenecks in Transformers via Multiway Dynamic Dense Connections

MUDDFormer通过多路动态稠密连接,有效解决了Transformer中残差连接的局限性,显著提升了跨层信息流动,并在语言模型预训练和下游任务中取得了优异的性能。

更新于 2025-07-03。作者:Da Xiao、Qingye Meng、Shengping Li、Xingyuan Yuan。

中文摘要

我们提出了一种名为MUltiway Dynamic Dense(MUDD)连接的方法,这是一种简单而有效的解决残差连接局限性并增强Transformer中跨层信息流的方法。与现有具有静态和共享连接权重的密集连接方法不同,MUDD根据每个序列位置和每个解耦输入流(查询、键、值或残差)的隐藏状态动态生成连接权重。MUDD连接可以无缝集成到任何Transformer架构中,以创建MUDDFormer。大量实验表明,MUDDFormer在各种模型架构和规模的语言建模中显著优于Transformer,其性能相当于使用1.8倍至2.4倍计算量训练的Transformer。值得注意的是,MUDDPythia-2.8B在预训练ppl和下游任务中与Pythia-6.9B相匹配,甚至在五次射击设置中与Pythia-12B不相上下,同时仅增加了0.23%的参数和0.4%的计算量。JAX和PyTorch中的代码以及预训练模型可在https://github.com/Caiyun-AI/MUDDFormer上获取。

英文摘要

We propose MUltiway Dynamic Dense (MUDD) connections, a simple yet effective method to address the limitations of residual connections and enhance cross-layer information flow in Transformers. Unlike existing dense connection approaches with static and shared connection weights, MUDD generates connection weights dynamically depending on hidden states at each sequence position and for each decoupled input stream (the query, key, value or residual) of a Transformer block. MUDD connections can be seamlessly integrated into any Transformer architecture to create MUDDFormer. Extensive experiments show that MUDDFormer significantly outperforms Transformers across various model architectures and scales in language modeling, achieving the performance of Transformers trained with 1.8X-2.4X compute. Notably, MUDDPythia-2.8B matches Pythia-6.9B in pretraining ppl and downstream tasks and even rivals Pythia-12B in five-shot settings, while adding only 0.23% parameters and 0.4% computation. Code in JAX and PyTorch and pre-trained models are available at https://github.com/Caiyun-AI/MUDDFormer .

解读

一句话总结

MUDDFormer通过多路动态稠密连接,有效解决了Transformer中残差连接的局限性,显著提升了跨层信息流动,并在语言模型预训练和下游任务中取得了优异的性能。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源