Frac-Connections: Fractional Extension of Hyper-Connections
Defa Zhu, Hongzhi Huang, Jundong Zhou, Zihao Huang, Yutao Zeng, Banggu Wu, Qiyang Min, Xun Zhou
TL;DR
Frac-Connections introduce a memory-efficient fractional extension of Hyper-Connections by partitioning hidden states into $m=1/n$ fractions, enabling multiple connection strengths without widening activations. This dynamic/static framework maintains expressiveness while reducing memory access and computational overhead, with initialization and normalization strategies ensuring stable training. Empirical results on large-scale pretraining with dense and Mixture-of-Experts transformers show improved training stability and downstream performance across diverse NLP benchmarks, particularly when training to trillions of tokens. The approach offers a scalable, practical enhancement for next-generation transformers in both dense and sparse settings.
Abstract
Residual connections are central to modern deep learning architectures, enabling the training of very deep networks by mitigating gradient vanishing. Hyper-Connections recently generalized residual connections by introducing multiple connection strengths at different depths, thereby addressing the seesaw effect between gradient vanishing and representation collapse. However, Hyper-Connections increase memory access costs by expanding the width of hidden states. In this paper, we propose Frac-Connections, a novel approach that divides hidden states into multiple parts rather than expanding their width. Frac-Connections retain partial benefits of Hyper-Connections while reducing memory consumption. To validate their effectiveness, we conduct large-scale experiments on language tasks, with the largest being a 7B MoE model trained on up to 3T tokens, demonstrating that Frac-Connections significantly outperform residual connections.
