Robots Atlas>ROBOTS ATLAS
Architecture

HC

2024ResearchPublished
Key innovation
Replaces the single residual connection with learnable, multi-stream connections (depth-connections and width-connections), removing the seesaw trade-off between gradient vanishing and representation collapse.
Category
Architecture
Abstraction level
Building block
Operation level
Architecture blockModel
Use cases
Large language model pretraining (dense)Mixture-of-Experts (MoE) modelsVision transformers (ViT)Image generation (diffusion transformers, DiT)Deep network training stabilization

How it works

The input hidden state h0 is replicated n times to form a hyper hidden matrix H0 of shape n×d. Each layer applies two connection types: depth-connections (learnable weights linking layer inputs and outputs) and width-connections (a matrix that exchanges information among the n streams). In the static variant (SHC) the weights are fixed after initialization; in the dynamic variant (DHC) they depend on the normalized input through tanh activations. Initialization is chosen so the setup is equivalent to a Pre-Norm network at the start of training. Typical expansion rates are n=1,2,4,8, with n=4 performing best (n=8 adds minimal benefit).

Problem solved

Residual connections and their variants (Pre-Norm, Post-Norm) suffer from a seesaw effect: configurations that mitigate gradient vanishing tend to cause representation collapse, while those that prevent collapse worsen gradient propagation. Hyper-connections let the network learn this trade-off instead of hard-coding it.

Components

Depth-connectionsControls signal and gradient flow along the depth dimension

Learnable weights linking layer inputs and outputs across depths — a generalization of the scalar residual connection (weight 1) to a learnable weight matrix.

Width-connectionsMixes information across streams (width)

A weight matrix that exchanges information among the n parallel hidden-state streams within a layer.

Hyper hidden matrixCarrier of multiple parallel residual streams

The hidden state expanded into n copies (H in R^{n×d}); at the network input it is created by replicating the input vector n times.

Dynamic weight predictor (DHC)Input-dependent adaptation of connection strength

In the dynamic variant, connection weights are predicted from the current normalized input using tanh activations instead of being fixed.

Official

Implementation

Implementation pitfalls
Activation memory growth with larger nMedium

Replicating the hidden state into n streams increases memory usage (~15% for n=2, up to ~26% for n=4), which can limit batch size.

Fix:Choose n=2 or n=4 as a trade-off; n=8 is rarely worthwhile.
Pre-Norm-equivalent initialization requiredMedium

Connection weights must be initialized so the setup is equivalent to a Pre-Norm network at training start; incorrect initialization harms training stability.

Evolution

Original paper · 2024 · Defa Zhu
Hyper-Connections
Defa Zhu, Hongzhi Huang, Zihao Huang, Yutao Zeng, Yunyao Mao, Banggu Wu, Qiyang Min, Xun Zhou
2024
Introduction of Hyper-Connections by ByteDance Seed
Inflection point

arXiv 2409.19606 introduces depth- and width-connections and the SHC/DHC variants as an alternative to residual connections; validated on OLMo, OLMoE, ViT and DiT.

Hyperparameters (configurable axes)

Expansion rate (n)Critical

Number of parallel hidden-state streams. Tested values: 1, 2, 4, 8; n=4 is optimal, n=8 adds minimal benefit.

1Equivalent to a single residual stream
2~15% memory increase
4Optimal; ~26% memory increase
8Minimal additional benefit
Connection type (static/dynamic)High

SHC (Static Hyper-Connections) — learned, fixed weights; DHC (Dynamic Hyper-Connections) — input-dependent weights. DHC yields the best results.

SHCStatic, learned scalars
DHCDynamic, input-dependent

Computational complexity

Time complexity: O(n^2 · d) na warstwę (narzut width-connections). Space complexity: O(n · d) dla ukrytego stanu.

Execution paradigm

Primary mode
Dense

The mechanism is dense (all streams active) but works with both dense and sparse (MoE) models.

Activation pattern
All paths active
Routing mechanism

The dynamic variant (DHC) predicts connection weights from the input; all n streams remain active.

Parallelism

Parallelism level
Partially parallel

The n-stream (width-connection) computation is parallel, but propagation through layers remains sequential in depth, as with classic residual connections.

Scope
TrainingInference

Hardware requirements

Good fit

It is a purely architectural change with negligible FLOPs overhead (+0.15–0.2%); works on any accelerator that trains transformers.