Understanding the Effects of Hyper-Connections on Self-Attention Dynamics: A Bifurcation Analysis
Yen N Pham ⋅ Dung V Nguyen ⋅ Trinh Nguyen ⋅ Thieu Vo ⋅ Tan Nguyen
Abstract
A central challenge in understanding deep sequence models is characterizing how token representations evolve across layers: whether they collapse, diverge, or converge to nontrivial structures. We study this question for Transformers with hyper-connections, whose learnable cross-layer coupling makes the stability of representation collapse analytically tractable. In contrast to standard residual connections, hyper-connections introduce additional parameters that directly control the hyperbolicity of the zero fixed point, where hyperbolicity allows the Jacobian to determine local stability, thereby enabling a rigorous and precise bifurcation analysis of the dynamical system underlying the model. In particular, we derive a continuous-depth ODE limit of self-attention with hyper-connections and use bifurcation theory to characterize its token dynamics. For the 1-stream case, we obtain a closed-form critical threshold {and give conditions under which crossing this threshold produces a pitchfork bifurcation}, separating representation local collapse from escape or convergence to nontrivial stable states. {For the 2-stream case, the richer coupling structure yields two distinct types of stability boundaries: one where a real eigenvalue of the Jacobian reaches zero (static type), and another where a complex-conjugate pair reaches the imaginary axis at $\pm i\omega$, with $\omega>0$ (oscillatory type)}. Experiments on pretrained hyper-connected language models provide qualitative comparisons with the ODE regimes.
Successful Page Load