ANCRe: Adaptive Neural Connection Reassignment for Efficient Depth Scaling

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

Abstract

Scaling network depth has been a central driver behind the success of modern foundation models, yet recent investigations suggest that deep layers are often underutilized. This paper revisits the default mechanism for deepening neural networks, namely residual connections, from an optimization perspective. Rigorous analysis proves that the layout of residual connections can fundamentally shape convergence behavior, and even induces an exponential gap in convergence rates. Prompted by this insight, we introduce adaptive neural connection reassignment (ANCRe), a principled and lightweight framework that parameterizes and learns residual connectivities from the data. ANCRe adaptively reassigns residual connections with negligible computational and memory overhead ($<1\%$), while enabling more effective utilization of network depth. Extensive numerical tests across pre-training of large language models, diffusion models, and deep ResNets demonstrate consistently accelerated convergence, boosted performance, and enhanced depth efficiency over conventional residual connections.

Introduction

The evolution of deep learning has been marked by a consistent trend: increasing network depth correlates with improved representational power and performance. Residual connections (skip connections) have been the cornerstone of this scaling, enabling the training of hundreds or even thousands of layers by mitigating the vanishing gradient problem. However, the standard architectural choice for these connections—a cascaded, step-by-step layout—is often taken for granted.

Recent empirical evidence suggests that in very deep models, such as Llama 3, many layers contribute minimally to the final output, effectively acting as identity mappings. This observation raises a critical question: is the standard cascaded topology optimal for training efficiency and depth utilization? This paper investigates the impact of residual connection topology on optimization and proposes a method to learn the optimal routing dynamically.

Theoretical Motivation and ANCRe Framework

The authors first establish a theoretical foundation using Deep Linear Neural Networks (LNNs). Through gradient flow analysis, they demonstrate that the specific arrangement of residual connections is not merely a structural detail but a primary determinant of convergence speed. Specifically, they prove that different topologies can lead to an exponential gap in training rates, where a well-chosen shortcut can transform sublinear convergence into fast, linear convergence.

Comparison of different residual connection topologies: (a) no connection, (b) standard cascaded connections, and (c) a non-standard shortcut connection (0:2).

Building on this insight, the paper introduces Adaptive Neural Connection Reassignment (ANCRe). Rather than relying on a fixed, hand-designed topology, ANCRe treats the connectivity between layers as a learnable parameter.

The ANCRe Algorithm

ANCRe parameterizes all possible forward skip connections within a network. For a network with $K$ layers, each potential connection from layer $i$ to layer $j$ (where $j > i$) is assigned a learnable scalar weight. To maintain numerical stability during training, the framework employs ingoing normalization. A softmax function is applied to all incoming shortcut weights for each layer, ensuring they sum to unity. This effectively transforms each layer's input into a weighted ensemble of outputs from all preceding layers, allowing the model to dynamically determine which features are most relevant at each stage of processing.

Experimental Evaluation

The effectiveness of ANCRe was evaluated across three distinct domains: Large Language Model (LLM) pre-training, image generation with Diffusion Transformers, and reinforcement learning (RL) with deep ResNets.

Datasets and Models

  • LLM Pre-training: Models based on the LLaMA architecture (60M to 1B parameters) were pre-trained on the C4 dataset.
  • Diffusion Models: Diffusion Transformers (DiT-S/2 and DiT-B/2) were trained on ImageNet-1K.
  • Reinforcement Learning: Deep ResNets were tested on continuous control tasks in Gymnasium environments, including Humanoid and Ant_Big_Maze.

Key Results and Discussion

The empirical results across all tasks consistently favored the ANCRe approach over standard cascaded connections.

Convergence analysis showing the impact of (a) depth, (b) different fixed topologies for K=3, and (c) multiple shortcuts for K=4. ANCRe consistently achieves superior or competitive convergence rates.

Accelerated Convergence in LLMs

In LLM pre-training, ANCRe demonstrated significant efficiency gains. Across various model sizes, it reached the target validation perplexity using an average of 34.3% fewer training iterations. For the largest model tested (LLaMA-1B), ANCRe achieved a 1.85x speedup in training time compared to the baseline.

Enhanced Generative Performance

For diffusion models, ANCRe improved the quality of generated images. In the DiT-B/2 model, the FID-50K score improved from 22.41 to 20.53 when using ANCRe.

Depth Efficiency in Reinforcement Learning

The most dramatic results were observed in RL tasks. A 16-layer ResNet utilizing ANCRe was able to match or exceed the performance of a much deeper 64-layer standard ResNet. This suggests that ANCRe allows for a 4x improvement in depth efficiency, enabling shallower models to perform as well as their significantly deeper counterparts.

Minimal Computational Overhead

Crucially, these performance gains come at almost no cost. The addition of ANCRe increases training runtime by less than 1% and has a negligible impact on GPU memory usage (less than 0.12 GB increase).

Conclusion and Future Directions

ANCRe represents a principled shift from fixed to adaptive network architectures. By learning the optimal topology of residual connections, it addresses the underutilization of deep layers and significantly accelerates training.

While the current theoretical analysis focuses on linear networks, the empirical success across complex non-linear models like Transformers and Diffusion models is compelling. Future research will focus on extending the theoretical framework to non-linear dynamics, exploring specialized normalization schemes for massive models, and scaling ANCRe to foundation models exceeding 10 billion parameters.

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