Expressivity of Shallow and Deep Neural Networks for Polynomial Approximation

Itai ShapiraarXiv 2023

Abstract: This study explores the number of neurons required for a Rectified Linear Unit (ReLU) neural network to approximate multivariate monomials. We establish an exponential lower bound on the complexity of any shallow network approximating the product function over a general compact domain. We also demonstrate this lower bound doesn't apply to normalized Lipschitz monomials over the unit cube. These findings suggest that shallow ReLU networks experience the curse of dimensionality when expressing functions with a Lipschitz parameter scaling with the dimension of the input, and that the expressive power of neural networks is more dependent on their depth rather than overall complexity.

Introduction: The Depth vs. Width Debate

A fundamental question in deep learning theory is why deep neural networks often outperform shallow ones, even when both are theoretically capable of approximating the same functions. According to the Universal Approximation Theorem, a single hidden layer is sufficient to represent any continuous function on a compact set. However, this theorem does not address the efficiency of such a representation.

This paper investigates "depth separation"—the phenomenon where a deep network requires significantly fewer neurons than a shallow network to achieve the same level of accuracy. By focusing on the approximation of multivariate monomials (simple products like $x_1 \cdot x_2 \cdot \dots \cdot x_d$), the research identifies the specific conditions under which shallow networks fail and when they can surprisingly match the efficiency of deep architectures.

The Problem: Approximating Multivariate Monomials

The product function $f(x) = \prod_{i=1}^d x_i$ serves as a classic benchmark for testing network expressivity. Deep networks can compute this product efficiently by recursively multiplying pairs of variables in a tree-like structure, requiring only $O(d)$ neurons. The central question of this study is whether a shallow network necessarily requires an exponential number of neurons to approximate this same function, or if the complexity depends on the size of the input domain.

Methodology: Geometric Bounds and Flattening

The author employs two distinct mathematical strategies to analyze the complexity of ReLU networks:

  1. Geometric Lower Bounds: To prove the inefficiency of shallow networks, the author utilizes an argument based on linear regions. Because a ReLU network is a continuous piecewise linear (CPWL) function, it approximates smooth, curved functions by joining flat segments. The author calculates the number of linear pieces required to approximate a strongly convex function within a specific error tolerance ($\epsilon$). If the function exhibits high curvature over a large domain, the number of required segments—and thus neurons—grows exponentially.
  2. Flattening Upper Bounds: To demonstrate cases where shallow networks are efficient, the author uses a "flattening" technique. By representing the product as $\exp(\sum \ln x_i)$, they show that on restricted domains (like the unit cube), the exponential function can be approximated by a polynomial of fixed degree. This polynomial can then be collapsed into a single hidden layer using only a polynomial number of neurons relative to the dimension $d$.

Key Insights: The Role of the Lipschitz Constant

A major contribution of this paper is the observation that the "curse of dimensionality" for shallow networks is tied to the Lipschitz constant (the maximum slope) of the target function.

  • Domain Sensitivity: On the unit cube $[0, 1]^d$, the product function is well-behaved. However, on a larger domain such as $[-k, k]^d$ where $k > 1$, the slope of the product grows exponentially with the dimension $d$.
  • Depth as a Slope-Handler: The results suggest that the primary advantage of depth is the ability to efficiently represent functions with high derivatives. Shallow networks can handle high-dimensional inputs effectively, provided the function does not "stretch" or scale its slope excessively as $d$ increases.

Key Results

Theorem 3: The Inefficiency of Shallow Networks

When approximating the product $\prod x_i$ over a domain $[-k, k]^d$ with $k > 1$, a ReLU network with $L$ layers requires a number of neurons $n$ that scales exponentially with the dimension $d$. Specifically, the complexity is bounded by $n \approx \exp(O(d/L))$. This confirms that for high-slope functions, shallow networks are exponentially less efficient than deep ones.

Theorem 5: The Efficiency of Normalized Monomials

Conversely, if the target is a normalized monomial (where the output is scaled down by $k^{-d}$ to keep the Lipschitz constant small), a shallow (one-hidden-layer) ReLU network can achieve the approximation using only a polynomial number of neurons ($poly(d)$). This suggests that depth separation is not an inherent property of the product function itself, but rather a consequence of how the function scales over its domain.

ReLU vs. Smooth Activations

The paper also notes a distinction between activation functions. For smooth activations like Sigmoid or Tanh, the number of neurons required is $2^d$, which remains independent of the domain size $k$ or the error $\epsilon$. This highlights a unique behavior in ReLU networks regarding domain sensitivity.

Conclusion and Future Work

This research clarifies that the expressive power of depth is most visible when dealing with functions that have high-frequency components or large slopes. While shallow networks can be efficient for normalized functions, they struggle with the "exploding" slopes inherent in multivariate products over large domains.

It is important to note that these findings are representational. They prove the existence of efficient shallow networks for certain tasks but do not guarantee that standard training algorithms, such as Stochastic Gradient Descent (SGD), will successfully converge to these solutions. Future research may explore whether these theoretical insights can lead to better initialization or normalization schemes in practical deep learning applications.

Summary updated

BibTeX
@misc{shapira2023expressivity,
  author = {Itai Shapira},
  title = {{Expressivity of Shallow and Deep Neural Networks for Polynomial Approximation}},
  year = {2023},
  eprint = {2303.03544},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.03544},
}
Figure