DAGFormer: Global Topology Prediction for Transformer Cross-Layer Connections
Xiaocong YangYuren Hao
ChengXiang Zhai Xiaocong Yang
Yuren Hao

ChengXiang Zhai
+3
DAGFormer is a Transformer language model whose cross-layer connections are planned by a jointly trained topology predictor. Beyond standard residual connections, it adds direct connections from earlier to later layers, with connection strengths controlled by input tokens. Unlike existing architectures that set each layer's connections separately, DAGFormer plans whole-model routing at once. On OLMo-2 pairs from 75M to 1B parameters, it lowers WikiText-2 perplexity 17–25% over vanilla, outperforms a 1B model trained on half the tokens, and beats four routing baselines at every scale, with gains carrying to downstream tasks, instruction finetuning, and pruning robustness.

arXiv ·
· October 14, 2026