Learning Real and Boolean Functions: When Is Deep Better Than Shallow

Hrushikesh N. Mhaskar, Qianli Liao, Tomaso A. PoggioDSpace@MIT 2016

Introduction: The Universal Approximation Paradox

Since the 1980s, the "Universal Approximation Theorem" has been a cornerstone of neural network theory. It states that a shallow network—one with a single hidden layer—can approximate any continuous function to any desired degree of accuracy, provided it has enough neurons. This theoretical guarantee led many to wonder: if shallow networks are universal, why has the deep learning revolution, characterized by many layers, been so transformative?

The answer lies in the "curse of dimensionality." While shallow networks can learn any function, the number of neurons required to maintain accuracy grows exponentially with the number of input variables ($d$). For a target accuracy $\epsilon$, a shallow network might require $O(\epsilon^{-d})$ parameters. In high-dimensional spaces like images or natural language, this makes shallow networks practically untrainable.

Architectural Comparison: Exploiting Compositionality

The core thesis of this research is that deep networks escape the curse of dimensionality by exploiting the inherent hierarchical structure of real-world data. The authors compare two primary architectures:

  1. Shallow Networks: A single hidden layer where every input is connected to every hidden unit.
  2. Deep Hierarchical Networks: Modeled as binary trees, where each node represents a local function of its children.
A comparison of a shallow network (left) and a deep hierarchical network modeled as a binary tree (right).

This hierarchical structure aligns with how we perceive the world: pixels form edges, edges form parts, and parts form objects. The authors define these as "compositional functions." For example, a function of eight variables might be represented as $f(x_1, \dots, x_8) = h_3(h_{21}(h_{11}(x_1, x_2), h_{12}(x_3, x_4)), \dots)$.

Theoretical Results: Breaking the Exponential Barrier

The paper provides a rigorous mathematical foundation for the "Deep Advantage" using approximation theory.

Theorem 1: Exponential Savings

The authors prove that for compositional functions, the dimension $d$ moves from the exponent to a linear factor. While a shallow network requires $O(\epsilon^{-d/r})$ parameters for accuracy $\epsilon$, a deep hierarchical network only needs $O(d \cdot \epsilon^{-2/r})$. This represents an exponential reduction in complexity. For a high-dimensional problem, this is the difference between a model that requires more atoms than exist in the universe and one that can run on a modern smartphone.

Generalization and VC-Dimension

Beyond mere approximation, the paper addresses generalization. Because deep networks require fewer parameters to achieve the same accuracy on compositional tasks, they possess a significantly lower VC-dimension (Vapnik-Chervonenkis dimension). A lower VC-dimension implies that the model is less likely to overfit the training data and will generalize better to unseen examples. This formally settles a long-standing conjecture by Yoshua Bengio regarding the necessity of depth for efficient representation.

Empirical Validation

While primarily a theoretical work, the authors validated their findings using a synthetic sparse trigonometric function: $f(x) = 2(2\cos^2(x) - 1)^2 - 1$. By training networks with 1, 2, and 3 hidden layers using Stochastic Gradient Descent (SGD), they observed that the 3-layer network achieved significantly lower test error than the shallow network, even when the shallow network was granted a much higher total number of parameters. This confirms that the theoretical "Deep Advantage" translates into practical performance gains.

The Logic of Convolutional Neural Networks (CNNs)

The authors argue that the success of Deep Convolutional Networks (DCNs) is the natural algorithmic manifestation of two requirements: scalability and shift-invariance. If a signal is compositional and local (like an image), a deep, weight-sharing architecture is mathematically the most efficient way to represent it.

Limitations and Future Outlook

The "Deep Advantage" is not a free lunch; it relies entirely on the assumption of compositionality. If a target function lacks this hierarchical structure, deep networks offer no theoretical advantage over shallow ones. Furthermore, the paper focuses on approximation (the capacity to represent a function) rather than optimization (the ability of algorithms like SGD to find the optimal weights).

Future work may extend these results from simple binary trees to more complex Directed Acyclic Graphs (DAGs), potentially providing theoretical insights into modern architectures like ResNets that utilize "skip connections."

Summary updated

BibTeX
@misc{mhaskar2016learning,
  author = {Hrushikesh N. Mhaskar and Qianli Liao and Tomaso A. Poggio},
  title = {{Learning Real and Boolean Functions: When Is Deep Better Than Shallow}},
  year = {2016},
  eprint = {1603.00988},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1603.00988},
}
Figure