Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

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 .

Da Xiao, Qingye Meng, Shengping Li, Xingyuan Yuan• 2025

Related benchmarks

TaskDatasetResultRank
Commonsense ReasoningHellaSwag
HellaSwag Accuracy45.53
711
Question AnsweringARC Challenge
Accuracy (ARC)30.8
598
Language ModelingLAMBADA
Accuracy38.11
412
Language ModelingWikiText-103
PPL21.07
216
Question AnsweringARC Easy
Accuracy61.74
210
Question AnsweringBoolQ
Accuracy59.33
201
Commonsense ReasoningSocialIQA
Accuracy38.84
158
Structured Web Data ExtractionSWDE
Performance36.81
126
Language ModelingPre-training (val)
Validation Loss2.233
55
Question AnsweringSQuAD
Score34.78
35
Showing 10 of 15 rows

Other info

Follow for update