ANCRe: Adaptive Neural Connection Reassignment for Efficient Depth Scaling

Yilang Zhang, Bingcong Li, Niao He, Georgios B. Giannakis

TL;DR

Standard residual connections bypass a single layer at a time by default, but this fixed layout can severely throttle training efficiency and leave deep layers underutilized. This paper reveals that shortcut topology alone can induce an exponential gap in convergence rates, and introduces ANCRe—a lightweight mechanism that dynamically learns data-driven inter-layer skip connections with less than 1% compute and memory overhead.

What Problem Does This Paper Address?

While deepening neural networks is a proven recipe for boosting foundation model capacity, scaling depth often leads to diminishing returns. Recent studies highlight that deeper layers in massive models often behave as redundant near-identity mappings, meaning added depth is heavily underutilized.

Residual connections are the default mechanism used to stabilize deep architectures, yet their placement—the topology of which layer connects to which—is treated as an immutable design default (typically cascaded block-by-block). The authors ask a fundamental question: Does the layout of residual shortcuts dictate optimization speed, and can we do better by learning the shortcut layout dynamically?

Methods

  • Theoretical Analysis on Linear Neural Networks (LNNs): The authors analyze gradient flow on 3-layer (and $K$-layer) linear networks. They prove that placing a shortcut between the input and layer 1 ($0:1$) leads to a slow, sublinear convergence rate ($\Omega(1/t^2)$), whereas bridging the input directly across layer 2 ($0:2$) guarantees linear convergence ($\mathcal{O}(e^{-ct})$).
  • Adaptive Neural Connection Reassignment (ANCRe):
  • Rather than manual combinatorial search over all $2^{K(K+1)/2}$ topologies, ANCRe parameterizes every possible shortcut $i:j$ ($0 \le i < j \le K$) with a learnable scalar coefficient $p_{ij}$, optimized end-to-end via gradient descent.
  • Ingoing Softmax Normalization: Routing weights are normalized entering each layer ($\sum_{i=0}^{j-1} p_{ij} = 1$) via temperature-scaled softmax. This stabilizes signal magnitude and acts as an ensemble over subnetworks of varying depths.
  • Transformer Integration: Placing ANCRe at the block level (bridging multi-head self-attention inputs) outperforms fine-grained module-level placement while adding only $K(K+1)/2$ scalar parameters—fewer parameters than a single hidden layer dimension.

Datasets

  • C4 (Colossal Clean Crawled Corpus): Used for pre-training LLaMA language models (60M to 1B parameters).
  • ImageNet-1K ($256 \times 256$): Used for pre-training Diffusion Transformers (DiT-S/2 and DiT-B/2).
  • Gymnasium Benchmarks: Four continuous control environments (Humanoid, Ant Big Maze, Arm Push Hard, and Arm Binpick Hard) used for contrastive goal-conditioned reinforcement learning with ResNets.
  • Note: No new datasets were introduced.

Key Insights and Ideas

  • Shortcut Topology Induces Exponential Convergence Gaps: Simply repositioning a skip connection alters the optimization landscape enough to cause an exponential gap between sublinear and linear convergence rates.
  • Deep Layers Crave Early Representations: Visualizing ANCRe’s learned weights shows that deeper layers consistently form dense connections back to the earliest 1–2 layers, bypassing middle layers rather than merely relying on immediately adjacent layer outputs.
  • Uniform and Purely Scaled Residuals Fail: Ablations reveal that assigning uniform weights ($1/j$) across all shortcuts diverges, and learning a single scalar on conventional cascaded connections underperforms. Adaptive topology learning is essential.
  • Virtual Ensembling of Depths: Ingoing normalization essentially allows layer $j$ to compute a dynamic weighted mixture of outputs from all preceding depths $\{0, \dots, j-1\}$, maximizing depth utilization without extra matrix multiplications.

Key Results

  • LLM Pre-training:
  • ANCRe consistently reduced validation perplexity across all model sizes (60M–1B) under both standard pre-training and GaLore (e.g., LLaMA-1B perplexity dropped from 16.64 to 15.41).
  • It matched baseline perplexity using an average of 34.3% fewer training iterations, achieving up to a $1.85\times$ training speedup on LLaMA-1B.
  • Diffusion Transformers: DiT-S/2 and DiT-B/2 improved by roughly 6% across generative metrics (FID, sFID, Inception Score, precision, recall), reducing DiT-B/2 FID from 44.31 to 41.66 without guidance and 22.41 to 20.53 with guidance.
  • Goal-Conditioned RL: A 16-layer ResNet equipped with ANCRe matched or outperformed a conventional 64-layer ResNet (a $4\times$ deeper model) across all four robotic control tasks.
  • Negligible Overhead: Adds $<1\%$ wall-clock runtime and $<0.12$ GB peak GPU memory across all tested architectures.

Limitations and Future Work

  • Theoretical Scope: Rigorous convergence proofs are currently restricted to deep linear neural networks (LNNs) under gradient flow; theoretical guarantees for non-linear models and discrete gradient descent remain open.
  • Scale: Evaluations were conducted up to 1B parameters; validation on frontier-scale foundation models (7B+ to 70B+) is left for future work.
  • Architecture-Specific Normalization: The authors note that more specialized parameterization and routing normalization schemes tailored specifically to Transformer blocks could be explored.

Summary updated

BibTeX
@inproceedings{zhang2026ancre,
  author = {Yilang Zhang and Bingcong Li and Niao He and Georgios B. Giannakis},
  title = {{ANCRe: Adaptive Neural Connection Reassignment for Efficient Depth Scaling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=PDLcIMayHD},
}
Figure