Improved Bounds on Neural Complexity for Representing Piecewise Linear Functions

Kuan-Lin Chen, Harinath Garudadri, Bhaskar D. Rao

TL;DR

This paper proves that any continuous piecewise linear (CPWL) function can be exactly represented by a ReLU neural network using far fewer neurons than previously thought. By demonstrating that the required number of neurons grows at most quadratically with the number of pieces—and is entirely independent of the input dimension—the authors offer a highly optimistic perspective on the efficiency of neural representations.

The Challenge of Neural Representation

Deep Neural Networks (DNNs) utilizing Rectified Linear Units (ReLU) are mathematically equivalent to continuous piecewise linear (CPWL) functions. A fundamental theoretical question arises: How many neurons are actually needed to represent a specific CPWL function?

Historically, the answer has been discouraging. Previous research indicated that the required number of neurons grew exponentially with the number of "pieces" in the function or its distinct linear components. Worse, these bounds were amplified by the input dimension ($n$). In high-dimensional spaces, such as those used for images or audio, this implied that even simple CPWL functions might need an impossibly large number of neurons for exact representation. This paper bridges that gap by establishing significantly tighter, dimension-invariant bounds.

Methodology

The authors pivot away from the standard "sum of max-affine" representation prevalent in prior proofs, which typically forced network depth to scale with the input dimension. Instead, they leverage a max-min representation (also known as a lattice representation).

Key methodological components include:

  • Constructive Algorithm: A polynomial-time algorithm that takes a CPWL function and systematically builds a corresponding ReLU network.
  • Piece-based Layer Scaling: Rather than scaling network depth based on the input dimension ($n$), the authors scale it based on the number of pieces ($q$).
  • Bilinear Complexity: They introduce a complexity measure utilizing both the number of pieces ($q$) and the number of distinct linear components ($k$). Because $k \leq q$, this yields even tighter bounds when linear components are reused across different regions of the input space.

(Note: As a theoretical paper focused on computational complexity and functional analysis, it relies on mathematical proofs and algorithmic verification rather than standard machine learning datasets.)

Key Insights

  • Dimension Invariance: The breakthrough realization is that the number of hidden neurons required is invariant to the input dimension $n$. Whether the input is 1D or 1,000,000D, the upper bound on neurons depends solely on the function's complexity (its number of pieces).
  • Quadratic vs. Exponential Growth: The paper shifts the paradigm from exponential growth to quadratic growth ($O(q^2)$). This proves that ReLU networks are vastly more efficient at representing these functions than previously assumed.
  • Depth vs. Complexity: By scaling depth with $\log(q)$ instead of $n$, the authors demonstrate that deeper networks are naturally suited to handle functions with many pieces, theoretically backing the empirical success of deep architectures.

Main Results

Comparison of hidden neuron bounds against prior work
  • Theorem 1 (Quadratic Bounds): Any CPWL function with $q$ pieces can be represented by a ReLU network where the number of hidden neurons $h$ is bounded by $O(q^2)$ and the depth is $O(\log q)$.
  • Theorem 2 (Bilinear Bounds): If the number of distinct linear components $k$ is known, the neuron count drops to $O(kq)$. Since $k$ is often much smaller than $q$, this represents a massive reduction.
  • Stark Contrast to Prior Work: The authors illustrate that for a function with $k=5$ components in a 1D space, their bound requires at most 3,615 neurons. In contrast, previous bounds estimated a staggering $7.92 \times 10^{28}$ neurons. As seen in the figure above, the new bounds remain flat regardless of $n$, unlike prior exponential scaling.
  • Computational Efficiency: They establish a polynomial-time algorithm to find a network satisfying these tighter bounds, proving that finding such an efficient representation is computationally feasible.

Limitations and Future Directions

  • Lower Bounds: While the paper establishes vastly improved upper bounds, it does not define the absolute minimum number of neurons (lower bounds) required for $n > 1$. More efficient representations might still exist.
  • Exact vs. Approximate: The study strictly focuses on exact representation. Because most practical neural networks are used for approximation, translating these complexity bounds to approximation error remains an open question.
  • Architectural Specificity: The results are tailored to standard ReLU multi-layer perceptrons. Extending these proofs to other architectures (like Transformers or ResNets) or activation functions (like GeLU or Swish) provides a rich avenue for future research.

Summary updated

BibTeX
@inproceedings{chen2022improved,
  author = {Kuan-Lin Chen and Harinath Garudadri and Bhaskar D. Rao},
  title = {{Improved Bounds on Neural Complexity for Representing Piecewise Linear Functions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure