On the Depth of Deep Neural Networks: A Theoretical View

Shizhao Sun, Wei Chen, Liwei Wang, Xiaoguang Liu, Tie‐Yan Liu · DOI

Abstract

People believe that depth plays an important role in success of deep neural networks (DNN). However, this belief lacks solid theoretical justifications as far as we know. We investigate role of depth from perspective of margin bound. In margin bound, expected error is upper bounded by empirical margin error plus Rademacher Average (RA) based capacity term. First, we derive an upper bound for RA of DNN, and show that it increases with increasing depth. This indicates negative impact of depth on test performance. Second, we show that deeper networks tend to have larger representation power (measured by Betti numbers based complexity) than shallower networks in multi-class setting, and thus can lead to smaller empirical margin error. This implies positive impact of depth. The combination of these two results shows that for DNN with restricted number of hidden units, increasing depth is not always good since there is a tradeoff between positive and negative impacts. These results inspire us to seek alternative ways to achieve positive impact of depth, e.g., imposing margin-based penalty terms to cross entropy loss so as to reduce empirical margin error without increasing depth. Our experiments show that in this way, we achieve significantly better test performance.

Introduction

While the deep learning community often operates under the assumption that "deeper is better," the theoretical underpinnings of this success remain partially understood. Standard generalization bounds, such as those based on VC dimension, often fail to explain why massive networks generalize well in practice. This paper addresses this gap by analyzing the role of depth through the lens of margin bounds, revealing a fundamental trade-off between representation power and model complexity.

The Depth Trade-off

The authors decompose the generalization error into two primary components:

  1. Rademacher Average (RA): This represents the model's capacity to fit arbitrary noise. The paper proves that for a fixed number of hidden units, the RA increases exponentially with depth ($L$). This is the "negative" impact of depth: deeper models are more prone to overfitting.
  2. Empirical Margin Error: This measures how well the model separates training data with a specific safety margin. Using Betti numbers from algebraic topology, the authors show that deeper networks have exponentially higher representation power, allowing them to achieve much lower empirical margin errors. This is the "positive" impact of depth.

Empirical Observations

The interplay between these two forces results in a characteristic "U-shaped" test error curve. As depth increases, the gain in representation power initially outweighs the increase in complexity, leading to lower test error. However, beyond an optimal point, the exploding Rademacher complexity dominates, and generalization performance degrades.

Figure 1: Test error vs. depth for MNIST, showing the characteristic U-shaped curve where error increases after an optimal depth.

Furthermore, the authors empirically confirmed that deeper networks consistently achieve lower empirical margin errors across various margin coefficients ($\gamma$), validating their theoretical claim regarding representation power.

Figure 3: Empirical margin error vs. margin coefficient for CIFAR-10. Deeper networks (higher L) consistently show lower margin error, indicating greater representation power.

Large Margin DNN (LMDNN)

To harness the benefits of depth without the associated complexity costs, the authors propose Large Margin DNN (LMDNN). Instead of simply adding layers, LMDNN modifies the loss function to include a margin-based penalty. This forces the network to find a solution with a larger classification margin, effectively reducing the empirical margin error in a way that mimics the benefits of a deeper network but with a shallower, less complex architecture.

Results and Conclusion

Experiments on MNIST and CIFAR-10 benchmarks demonstrate that LMDNN significantly improves test performance over standard cross-entropy training. For example, on MNIST, test error was reduced from 0.899% to 0.734%. These findings suggest that the success of deep networks is not just about depth itself, but about the ability to create large-margin separations in high-dimensional space—a goal that can be pursued more directly through specialized training objectives.

Summary updated

BibTeX
@inproceedings{sun2016depth,
  author = {Shizhao Sun and Wei Chen and Liwei Wang and Xiaoguang Liu and Tie‐Yan Liu},
  title = {{On the Depth of Deep Neural Networks: A Theoretical View}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2016},
  doi = {10.1609/aaai.v30i1.10243},
}
Figure