How does topology influence gradient propagation and model performance\n of deep networks with DenseNet-type skip connections?

Kartikeya Bhardwaj, Guihong Li, Radu Mărculescu · DOI

Abstract

DenseNets introduce concatenation-type skip connections that achieve state-of-the-art accuracy in several computer vision tasks. In this paper, we reveal that the topology of the concatenation-type skip connections is closely related to the gradient propagation which, in turn, enables a predictable behavior of DNNs' test performance. To this end, we introduce a new metric called NN-Mass to quantify how effectively information flows through DNNs. Moreover, we empirically show that NN-Mass also works for other types of skip connections, e.g., for ResNets, Wide-ResNets (WRNs), and MobileNets, which contain addition-type skip connections (i.e., residuals or inverted residuals). As such, for both DenseNet-like CNNs and ResNets/WRNs/MobileNets, our theoretically grounded NN-Mass can identify models with similar accuracy, despite having significantly different size/compute requirements. Detailed experiments on both synthetic and real datasets (e.g., MNIST, CIFAR-10, CIFAR-100, ImageNet) provide extensive evidence for our insights. Finally, the closed-form equation of our NN-Mass enables us to design significantly compressed DenseNets (for CIFAR-10) and MobileNets (for ImageNet) directly at initialization without time-consuming training and/or searching.

Introduction: The Topology Challenge

In the pursuit of higher accuracy, deep learning architectures have increasingly relied on complex skip connections—such as the concatenation used in DenseNets or the addition used in ResNets. While these "shortcuts" are known to mitigate the vanishing gradient problem, the underlying relationship between specific wiring patterns (topologies) and model performance has remained largely opaque.

Currently, architecture design often relies on computationally expensive Neural Architecture Searches (NAS) or manual trial-and-error. Traditional metrics like parameter count or network depth are frequently misleading; two models with identical parameter counts can exhibit vastly different performance profiles. This research addresses the need for a theoretically grounded metric to measure a network's "trainability" based solely on its structural topology.

Methodology: Quantifying Information Flow with NN-Mass

We propose NN-Mass, a novel topological metric derived from graph theory concepts such as average degree and cell density. We model DenseNet-type architectures as "small-world networks," where neurons possess both local (layer-by-layer) and long-range (skip) connections.

Figure 1: (a) DNN modeled as a network of neurons with short and long-range links. (b) Theoretical link between NN-Mass and mean singular values, indicating gradient stability. (c) Single convolutional layer representation.

A critical contribution of this work is the mathematical link between NN-Mass and Layerwise Dynamical Isometry (LDI). LDI represents a state where gradients flow through a network without exploding or vanishing. By providing a closed-form formula for NN-Mass—dependent on network width, depth, and skip connection density—we can predict a model's learning capacity before training begins.

Experimental Evaluation

Our theory was validated across a diverse spectrum of complexity:

  • Synthetic Benchmarks: Datasets (Seg20, Seg30, Circle20) designed to test how topologies handle data fragmentation and non-linearity.
  • Standard Benchmarks: MNIST, CIFAR-10, and CIFAR-100 for object classification.
  • Large-Scale Evaluation: ImageNet, the gold standard for computer vision performance.

Results and Discussion

The Equivalence Principle

Our experiments revealed that models with the same width and NN-Mass exhibit nearly identical training dynamics and final test accuracy, regardless of their depth or parameter count. This suggests that NN-Mass captures a fundamental property of a network's learning capacity.

Figure 6: Training accuracy vs. epochs for models with different depths and parameters. Models F and H, which have matched NN-Mass (~2.1), show nearly identical convergence despite different layer counts.

Predictive Power and Model Compression

NN-Mass demonstrated exceptional predictive accuracy compared to traditional metrics. In MNIST tests, NN-Mass achieved a goodness-of-fit ($R^2$) of 0.85 for predicting accuracy, while parameter count managed only 0.19. On ImageNet with MobileNet-v2, NN-Mass achieved a near-perfect $R^2$ of 0.96.

This predictive power allows for "Zero-Shot Design"—identifying high-performing, compressed architectures at initialization. Key results include:

  • DenseNet Compression: A DenseNet for CIFAR-10 was designed that was 3x smaller than standard versions while maintaining ~97% accuracy.
  • MobileNet Optimization: On ImageNet, we identified a MobileNet-v2 variant with 34% fewer MACs and 40% fewer parameters that performed on par with the original model.

Conclusion and Future Directions

NN-Mass provides a robust, theoretically grounded framework for understanding how topology influences gradient propagation. While this study focuses on manual design as a proof-of-concept, future work will involve integrating NN-Mass into fully automated NAS pipelines. Additionally, exploring the interaction between NN-Mass and modern components like Attention mechanisms in Transformers, as well as its applicability to Natural Language Processing, remains a promising frontier for research.

Summary updated

BibTeX
@misc{bhardwaj2019how,
  author = {Kartikeya Bhardwaj and Guihong Li and Radu Mărculescu},
  title = {{How does topology influence gradient propagation and model performance\textbackslash\{\}n of deep networks with DenseNet-type skip connections?}},
  year = {2019},
  eprint = {1910.00780},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.00780},
}
Figure