Avoiding pathologies in very deep networks

David Duvenaud, Oren Rippel, Ryan P. Adams, Zoubin Ghahramani

Abstract

Choosing appropriate architectures and regularization strategies of deep networks is crucial to good predictive performance. To shed light on this problem, we analyze the analogous problem of constructing useful priors on compositions of functions. Specifically, we study the deep Gaussian process, a type of infinitely-wide, deep neural network. We show that in standard architectures, the representational capacity of the network tends to capture fewer degrees of freedom as the number of layers increases, retaining only a single degree of freedom in the limit. We propose an alternate network architecture which does not suffer from this pathology. We also examine deep covariance functions, obtained by composing infinitely many feature transforms. Lastly, we characterize the class of models obtained by performing dropout on Gaussian processes.

Introduction

While deep neural networks have achieved remarkable success, their design often remains a "black art," relying on empirical trial-and-error for initialization and regularization. This research seeks to formalize the prior assumptions inherent in stacking multiple layers. Specifically, we investigate what kinds of functions a deep network is predisposed to represent before observing any data. As functions are composed layer by layer, the input signal can become warped or lost, leading to mathematical "pathologies" that hinder training and information retention.

Methods: Deep Gaussian Processes as a Theoretical Framework

To study these effects, we analyze Deep Gaussian Processes (Deep GPs). A Deep GP is an infinitely wide neural network where each layer’s output is drawn from a GP prior. This framework provides a mathematically tractable environment to isolate the effects of depth from the noise of specific weight initializations or finite hidden unit counts.

Comparison of standard Multi-Layer Perceptron (MLP) architectures and the Deep GP composition analyzed in this study.

The primary tool for our analysis is the Jacobian—the matrix of partial derivatives of the output with respect to the input. By examining the singular value spectrum of the Jacobian, we can quantify the "degrees of freedom" preserved by the network. A collapse in these singular values indicates that the network has effectively reduced its input into a lower-dimensional representation, losing critical information.

The Pathology of Depth: Representational Collapse

Our analysis reveals that in standard architectures, depth can be a double-edged sword. In 1D networks, the gradient magnitude follows a log-normal distribution whose variance explodes with depth. This results in functions that are "flat" across most of the input space, punctuated by rare, massive jumps.

Visualizing how function compositions become increasingly jagged and eventually "flat" or invariant as the number of layers increases from 1 to 10.

In multivariate networks, this manifests as representational collapse. The Jacobian of a deep composition is the product of independent Gaussian matrices. As depth increases, the largest singular value eventually dominates all others, causing the network to become sensitive to only a single direction in the input space. This "filamentary" density makes standard deep priors unsuitable for high-dimensional manifold modeling.

Key Results and Architectural Solutions

  • Standard Collapse: Numerical simulations show that in a 5-dimensional deep GP, the representation effectively collapses to 1D by layer 10.
  • Input-Connectivity: We propose an architectural remedy: connecting the original input $x$ to every layer. This "input-connected" architecture ensures a persistent path for the Jacobian, maintaining a flat singular value spectrum even at 50 layers deep.
  • Dropout Insights: We characterize dropout in GPs, showing that applying dropout to inputs is equivalent to a "spike-and-slab" prior on kernel lengthscales, providing a Bayesian mechanism for feature selection.

Conclusion

While depth is essential for representational power, standard compositions naturally lead to a loss of degrees of freedom. By understanding these priors, we can design architectures like input-connected networks that preserve information across many layers. Future work will explore how these findings interact with stochastic gradient descent and the potential for "locally fractal" behavior in the infinite-depth limit.

Summary updated

BibTeX
@inproceedings{duvenaud2014avoiding,
  author = {David Duvenaud and Oren Rippel and Ryan P. Adams and Zoubin Ghahramani},
  title = {{Avoiding pathologies in very deep networks}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2014},
  url = {https://openreview.net/forum?id=10FEyWXIE2},
}
Figure