Abstract
This study investigates the high-dimensional approximation capacities of shallow versus deep artificial neural networks (ANNs) using the rectified linear unit (ReLU) activation function. We demonstrate that for specific classes of smooth and bounded functions—most notably product functions and the sine of products—shallow or insufficiently deep networks inevitably succumb to the "curse of dimensionality," requiring an exponential number of parameters to maintain accuracy. In contrast, we prove that sufficiently deep ANNs, where the number of layers scales with the input dimension, can approximate these functions with polynomial complexity. These findings establish depth as a fundamental requirement for the efficient approximation of certain simple yet critical mathematical operations in high-dimensional spaces.
Introduction: The Curse of Dimensionality
In machine learning, the "curse of dimensionality" refers to the exponential increase in computational resources or data required as the number of input variables ($d$) grows. While the Universal Approximation Theorem guarantees that a single hidden layer can approximate any continuous function, it does not guarantee efficiency. A long-standing theoretical challenge is determining when depth (adding layers) is strictly superior to width (adding neurons to a single layer). This paper addresses this by analyzing functions that are smooth and bounded—properties typically associated with "easy" learning tasks—and showing that even these require depth to avoid exponential parameter explosion.
Methods and Mathematical Framework
The researchers utilize a rigorous framework termed "ANN calculus" to analyze networks employing the ReLU activation function. The study focuses on two primary classes of target functions:
- Product functions: $f(x) = \prod_{i=1}^d x_i$
- Oscillating functions: $f(x) = \sin(\prod_{i=1}^d x_i)$
The analysis involves establishing both lower and upper bounds for the number of parameters required. The "insufficiently deep" networks are defined as those where the number of layers $L$ is fixed or grows too slowly relative to the dimension $d$. "Sufficiently deep" networks are those where $L$ is allowed to grow with $d$.
Key Insights: Depth as a Dimension-Beater
The core insight is that deep networks leverage composition to build complex operations. While a single layer is essentially additive, multiple layers can recursively compose simpler functions to create multiplicative or oscillatory behavior much more efficiently.
A critical finding is the $2^{d/L}$ threshold. The number of parameters required to approximate the target functions scales roughly with $2^{d/L}$. When $L$ (depth) is small, the cost grows exponentially with $d$. However, if $L$ grows proportionally to $d$, the exponent remains manageable, leading to polynomial tractability. Furthermore, the authors demonstrate that this limitation of shallow networks cannot be overcome by simply increasing the magnitude of the weights; even with infinite weight values, shallow networks remain inefficient.
Results
The theoretical results confirm a stark contrast between shallow and deep architectures:
- Shallow Failure: For the sine-of-product function, the paper proves that the number of parameters in a shallow ReLU ANN must grow at least exponentially in the dimension $d$.
- Deep Success: The same function can be approximated by a deep ReLU ANN with an accuracy $\epsilon$ using a total number of parameters that grows only polynomially in both $d$ and $1/\epsilon$ (specifically $O(d^3 \epsilon^{-2})$).
- Polynomial Tractability: These problems are formally classified as "polynomially tractable" for deep networks, meaning they remain computationally feasible even as input dimensions scale to massive sizes.
Discussion and Limitations
While this work provides a rigorous proof of the necessity of depth for approximation capacity, it does not address trainability. The existence of a small, deep network that can approximate a function does not guarantee that optimization algorithms like Stochastic Gradient Descent (SGD) will find it.
Additionally, the results are specific to the ReLU activation function. While ReLU is the industry standard, future research is needed to determine if these depth requirements are universal across other modern activation functions like GeLU or Swish, or if they apply to non-smooth function classes common in complex physical simulations.
Summary updated