On the Universal Approximability of Quantized ReLU Neural Networks

Yukun Ding, Jinglan Liu, Yiyu Shi

Abstract

Quantized neural networks are essential for deploying deep learning models on resource-constrained edge devices. While empirical evidence suggests that low-precision weights (e.g., 4-bit or 1-bit) maintain high accuracy, a formal theoretical justification has been lacking. This paper establishes the universal approximability of quantized ReLU networks, proving they can represent any continuous function with only polylogarithmic overhead in the number of weights. By minimizing memory bounds, the authors identify a theoretical "sweet spot" for bit-width between 1 and 4 bits, matching industry practices for datasets like MNIST, CIFAR-10, and ImageNet.

Introduction

The deployment of deep learning on "edge" devices, such as smartphones and IoT sensors, necessitates quantization—reducing the bit-precision of network weights to save memory and power. A fundamental question remains: does this precision loss fundamentally limit a network's representational capacity? This research addresses this by providing the first Universal Approximation Theorem specifically for quantized networks, explaining why binarized or low-bit models work so effectively.

Methodology

The authors utilize a constructive proof to demonstrate how quantized networks can simulate high-precision counterparts. Key strategies include:

  • Sub-network "Gadgets": Replacing high-precision operations with small sub-networks of quantized weights.
  • Weight Simulation: Showing that a single high-precision weight can be effectively approximated by a cascade of low-precision weights.
  • Mathematical Operations: Constructing approximations for squaring and multiplication using only ReLU units with quantized weights (e.g., $\{-1/2, 1/2\}$).

Theoretical Insights

A primary finding is that binarization is sufficient for universal approximation; provided the network is deep enough, even two-value weights can approximate any continuous function. The "overhead" required to compensate for quantization is polylogarithmic ($O(\log^5(1/\epsilon))$), which is remarkably small in complexity terms.

Figure 1: (a) Scaled derivative of the memory bound $M(\lambda)$ used to find optimal bit-width. (b) Theoretical optimal bit-width $\log(\lambda_{opt})$ as a function of input dimension $d$, showing alignment with common datasets.

Results and Validation

The theory predicts an optimal bit-width of 1–4 bits for most practical tasks. By applying their formula to the input dimensions of standard datasets—MNIST ($28 \times 28$), CIFAR-10 ($32 \times 32 \times 3$), ImageNet ($256 \times 256 \times 3$), and ADNI MRI ($256 \times 256 \times 166$)—the authors show that their theoretical bounds closely track empirical industry standards for efficient inference. As shown in the figures, the required bit-width increases very slowly as the input dimension ($d$) grows, suggesting that quantization remains viable even for extremely high-dimensional data.

Conclusion and Limitations

While the paper provides robust upper bounds for quantized network complexity, formal lower bounds remain an area for future work. Additionally, the current analysis assumes uniform bit-width across layers and focuses on ReLU activations, leaving mixed-precision strategies and alternative activation functions for subsequent research.

Summary updated

BibTeX
@inproceedings{ding2019universal,
  author = {Yukun Ding and Jinglan Liu and Yiyu Shi},
  title = {{On the Universal Approximability of Quantized ReLU Neural Networks}},
  booktitle = {International Conference on Learning Representations},
  year = {2019},
  url = {https://openreview.net/forum?id=09oS7Me3U6},
}
Figure