Variability of Artificial Neural Networks

Yin Zhang, Yueyao YuarXiv 2021

Abstract

Deep neural networks often face training difficulties as depth increases, even when maintaining a fixed parameter budget. This paper introduces variability as a fundamental metric to explain this phenomenon. By analyzing the richness of the network's function landscape, we identify the "Collapse to Constant" (C2C) effect, where deep models lose their ability to distinguish inputs. We demonstrate that variability follows a non-monotonic "hump" relative to depth and show that the Absolute Value (ABS) activation function significantly outperforms ReLU in maintaining trainability at extreme depths.

Introduction

While deep learning's success is undeniable, the "trainability" of a model—the ease with which an optimizer finds a high-quality solution—remains poorly understood. Traditional studies often focus on the infinite-width limit, yet practical models operate with finite parameters. This research addresses a specific paradox: for a fixed number of parameters, increasing the depth of a Multi-layer Perceptron (MLP) initially improves performance but eventually renders the model untrainable. We propose that the structural property vanishing at these depths is "variability."

Measuring Variability

Variability represents the complexity and richness of the patterns a network can represent in data space. To quantify this, we utilize two primary metrics:

  1. Activation Ratio: A straightforward count of the number of nonlinear activations per weight in the architecture.
  2. $V_3$ Metric: A sophisticated measure based on the third partial derivatives of the network's output with respect to its input. For non-smooth functions like ReLU and ABS, we compute third-order finite differences over a grid to capture the "wiggliness" of the representational landscape.

Additionally, we introduce the C-matrix (Characterization matrix). Unlike the standard Jacobian (G-matrix) which tracks gradient flow, the C-matrix monitors whether the network's output is collapsing toward a constant value, independent of the input.

The Collapse to Constant (C2C) Phenomenon

A critical insight of this work is the identification of Collapse to Constant (C2C). As networks grow deeper, their internal representations can become increasingly flat. This is not merely a vanishing gradient problem; rather, the network's functional landscape loses its ability to express variation across the input space.

Visualizing the loss of variability across different activation functions and depths. As depth ($L$) increases, Sigmoid and ReLU landscapes flatten significantly compared to ABS.

As shown in the figure above, Sigmoid activations exhibit almost zero variability even at low depths. ReLU maintains some complexity at moderate depths ($L=10$) but collapses by $L=30$. In contrast, the Absolute Value (ABS) activation function preserves a rich, varied landscape even at great depths.

The Variability "Hump"

For a fixed parameter budget, variability is not a monotonic function of depth. Instead, it follows a "hump" pattern. Initially, increasing depth adds more nonlinearities, raising variability. However, beyond a certain point, the structural overhead of depth causes a crash in representational richness, coinciding with the onset of C2C.

The variability 'hump' and the transition towards Collapse to Constant (C2C) as depth ($L$) increases for a fixed parameter budget.

This crash in variability directly correlates with increased training loss. In our experiments using a stylized 8x8 "checkerboard" classification task—a problem requiring high-frequency representational power—we found that ReLU variability peaked at $L=17$ before plummeting. Training loss followed this trend, becoming nearly impossible to minimize once the depth exceeded 20-25 layers.

Activation Functions: ReLU vs. Absolute Value (ABS)

The paper makes a compelling case for the Absolute Value (ABS) activation function. Mathematically, ABS is "distance-preserving" more frequently than ReLU, which zeros out half of the input space. This property allows ABS-based networks to maintain high variability and remain trainable at depths where ReLU-based networks fail completely. In the checkerboard experiment with 3200 parameters, ABS maintained near-zero training loss up to 40 layers.

Conclusion

The success of modern architectures like CNNs may be partially explained by their high "activation density"—the reuse of parameters leads to a higher activation-to-parameter ratio, naturally boosting variability. By focusing on variability and the C2C bottleneck, researchers can better understand the fundamental limits of depth and design more robust, trainable architectures. Future work will explore how these insights scale to high-dimensional datasets and interact with modern initialization schemes.

Summary updated

BibTeX
@misc{zhang2021variability,
  author = {Yin Zhang and Yueyao Yu},
  title = {{Variability of Artificial Neural Networks}},
  year = {2021},
  eprint = {2105.08911},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.08911},
}
Figure