Understanding the Effects of Hyper-Connections on Self-Attention Dynamics: A Bifurcation Analysis

Yen Nhi Pham, Dung Viet Nguyen, Trinh Tien Nguyen, Thieu Vo, Tan Minh NguyenNeurIPS 2026

TL;DR

Why do token representations in deep Transformers sometimes collapse into useless zeros, explode, or settle into rich, meaningful patterns? By replacing rigid residual connections with learnable "hyper-connections," the authors unlock the mathematical toolkit of bifurcation theory to map out the exact tipping points of token dynamics. They discover that hyper-connections don't just add model capacity—they act as explicit stability knobs that can even induce entirely new, oscillatory behaviors across layers.

What Problem Does This Paper Address?

Imagine tokens moving through the layers of a Transformer like particles flowing through time. A major headache in deep sequence models is representation collapse, where all tokens lose their unique, input-dependent information and converge to a trivial zero state as depth increases.

To understand when and why this happens, researchers often model layers as continuous-time dynamical systems using Ordinary Differential Equations (ODEs). However, standard Residual Connections (RCs)—where you simply add a layer's input $x$ to its output—lock the layer-to-layer coupling strength at 1. Mathematically, this creates persistent zero eigenvalues in the system's Jacobian at the origin. In dynamical systems, this is a "non-hyperbolic" state: standard linear math breaks down and can't tell you whether the collapsed state is stable or unstable.

Recently, Hyper-Connections (HCs) were introduced to replace the fixed residual link with $N$ parallel streams per token and learnable cross-layer weights. Until now, nobody knew what these learnable couplings actually did to the underlying physics of token evolution.

Methods

The authors take a first-principles mathematical approach, translating self-attention with Static Hyper-Connections (SHC)—where coupling weights are learned during training but stay fixed across inputs—into continuous-depth ODEs.

To make the math tractable, they analyze an attention-only setup with shared weights across layers and a symmetric value matrix. They examine two distinct architectures:

  • SHC-1 (1-stream): Replaces the residual identity weight of $1$ with a learnable scalar $h$ per token, plus input/output scaling scalars.
  • SHC-2 (2-stream): Expands each token into two parallel streams mixed by a shared $2 \times 2$ coupling matrix $H$.

Because the learnable parameter $h$ (or matrix $H$) shifts the eigenvalues of the Jacobian away from zero, the origin becomes hyperbolic. This novel analytical move allows the authors to apply bifurcation theory and center manifold reduction—tools from physics used to study sudden qualitative shifts in a system (like a beam buckling under pressure)—to map out exact stability boundaries.

Datasets

Not discussed in the paper. (Note: While the authors train 1-stream and 2-stream GPT-2 variants and report perplexity trends—deferring tables to Appendix H—specific training or evaluation datasets are not named in the main text).

Key Insights and Ideas

  • Hyper-connections fix a mathematical blind spot: By replacing the rigid identity shortcut with learnable weights, HCs eliminate the zero-eigenvalue degeneracy of standard residual networks. Representation collapse transforms from an empirical mystery into a solvable local stability problem.
  • The Carry-Over Parameter is a "Pitchfork" Knob: In the 1-stream model (SHC-1), the carry-over weight $h$ acts as an explicit control dial with a closed-form critical threshold ($h_1^*$). Dialing $h$ past this tipping point triggers a pitchfork bifurcation: if the value matrix is contractive ($\lambda_{\max} < 0$), tokens smoothly transition from collapsing to zero into two stable, nontrivial states (supercritical). If the value matrix is amplifying ($\lambda_{\max} > 0$), crossing the threshold causes local escape/divergence (subcritical).
ODE pitchfork bifurcation diagram showing stable branches emerging past the critical threshold
  • Parallel Streams Breed Oscillations: Moving from 1 stream to 2 streams (SHC-2) doesn't just give the network more bandwidth; it fundamentally alters the physics of depth. Because a $2 \times 2$ coupling matrix $H$ can have complex-conjugate eigenvalues, SHC-2 introduces an oscillatory stability boundary alongside the static one. Tokens can spiral or oscillate across layers—a dynamical regime completely impossible in the 1-stream setup under these assumptions.

Key Results

The authors validate their theoretical phase portraits using direct numerical ODE simulations alongside qualitative PCA projections of token trajectories from pretrained GPT-2 variants:

  • Exact Critical Thresholds: ODE simulations confirm the theoretical tipping points. For example, in SHC-1 with a contractive value matrix, token trajectories collapse below $h_1^* = 1.111$ and split into two stable nontrivial branches right above it. In an amplifying setup, the critical threshold holds steady at $h_1^* = 0.184$ regardless of whether the matrix has $1$, $2$, or $4$ positive eigenvalues, proving that the tipping point depends only on the largest eigenvalue ($\lambda_{\max}$).
  • Matching Qualitative Regimes: PCA trajectories of pretrained hyper-connected language models visually echo the ODE regimes—converging in stable settings, lingering or freezing near critical boundaries, and diverging in unstable ones.
Figure 2: SHC-1 Scenario 1 (λmax <0). (Left) ODE token trajectories with d=1, L=5, V =−1, W =1 and αk =βk =1. Cases 1, 3, and 5 illustrate configurations with a stable, critical, and unstable origin, respectively; their parameters are given in Appendix G. (Right) Shared-weight pretrained token trajectories projected by PCA. Circles and crosses denote initial and final layer positions. The pretrained trajectories provide a qualitative comparison.
  • Instability isn't always bad: Curiously, in their GPT-2 experiments, several configurations corresponding to "unstable" ODE regimes actually achieved better (lower) perplexity than stable-labelled ones, hinting that avoiding strict local collapse helps expressivity—though the authors caution against reading this as a direct causal proof due to implementation gaps between real GPUs and idealized ODEs.

Limitations and Future Work

The authors are admirably transparent about the boundaries of their math. To keep the ODEs autonomous and solvable, the theoretical framework omits standard Transformer staples: feed-forward networks, layer normalization, positional encodings, causal masking, and layer-dependent weights. Furthermore, it only covers Static HCs. Analyzing Dynamic Hyper-Connections (DHC)—where coupling weights change on the fly based on token inputs—makes the system non-autonomous and requires entirely new mathematical machinery, marking an exciting frontier for future work.

Summary updated

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.
BibTeX
@inproceedings{pham2026understanding,
  author = {Yen Nhi Pham and Dung Viet Nguyen and Trinh Tien Nguyen and Thieu Vo and Tan Minh Nguyen},
  title = {{Understanding the Effects of Hyper-Connections on Self-Attention Dynamics: A Bifurcation Analysis}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=aY3DfjqhAX},
}
Figure