Towards Unifying Neural Architecture Space Exploration and Generalization

Kartikeya Bhardwaj, Radu Marculescu

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 evolution of deep learning has been marked by the discovery of increasingly complex "wiring" patterns, such as the concatenation-type skip connections in DenseNets. While these architectures achieve state-of-the-art performance, the underlying reason why specific topologies outperform others remains poorly understood. Traditional metrics like parameter count or FLOPs often fail to capture the nuances of how information flows through a network. This paper addresses this gap by bridging graph theory and deep learning to find a more reliable predictor of model success based on its structural topology.

Methodology: Defining NN-Mass

The authors propose NN-Mass, a novel topological metric derived from the density of skip connections within a network cell. By treating Deep Neural Networks (DNNs) as graphs, the research models DenseNet-type connections as "small-world networks"—structures that facilitate rapid information spread through a combination of local and long-range shortcuts.

Definition and calculation of NN-Mass based on skip connection density.

NN-Mass ($m$) is mathematically defined as the product of a cell's density (the ratio of actual to possible skip connections) and the number of neurons. This closed-form equation allows researchers to quantify the "trainability" of a network before a single weight is updated.

Theoretical Grounding and Gradient Flow

The core innovation of NN-Mass lies in its link to Layerwise Dynamical Isometry (LDI). Using random matrix theory, the authors demonstrate that the singular values of a network's Jacobian—which dictate gradient propagation—are predictable based on NN-Mass.

Extracted figure from page 3 of Towards Unifying Neural Architecture Space Exploration and Generalization

The theory suggests that if two networks share the same width and NN-Mass, they will exhibit similar gradient propagation properties and training convergence, regardless of differences in depth or total parameter count. This implies that the "speed" and "ceiling" of learning are structural properties determined at initialization.

Experimental Results

The validity of NN-Mass was tested across synthetic datasets (Seg20, Circle20) and standard benchmarks (MNIST, CIFAR-10/100, ImageNet). Key findings include:

  • Superior Correlation: NN-Mass is a far better predictor of accuracy than parameter count. On CIFAR-10, NN-Mass achieved an $R^2$ of 0.84, compared to just 0.14 for parameter counts at certain widths.
  • Effective Compression: By matching the NN-Mass of a large model with a smaller configuration, the authors designed a 3.82M parameter model for CIFAR-10 that achieved 96.82% accuracy, rivaling models with 11.89M parameters.
  • Efficiency on ImageNet: A MobileNet-v2 variant designed via NN-Mass achieved baseline accuracy while using 34% fewer MACs and 40% fewer parameters.

Conclusion and Future Work

NN-Mass offers a path toward "Zero-Shot" architecture design, identifying efficient models a priori without expensive training or searching. While currently validated for both concatenation and addition-type connections, future work includes integrating NN-Mass into automated NAS pipelines and extending the theoretical framework to fully account for non-linear activation functions. Ultimately, this research suggests that in neural networks, structure trumps scale: the "mass" of information flow is the true driver of performance.

Summary updated

BibTeX
@misc{bhardwaj2019towards,
  author = {Kartikeya Bhardwaj and Radu Marculescu},
  title = {{Towards Unifying Neural Architecture Space Exploration and Generalization}},
  year = {2019},
  eprint = {1910.00780},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.00780},
}
Figure