A Mean Field Theory of Quantized Deep Networks: The Quantization-Depth Trade-Off

Yaniv Blumenfeld, Dar Gilboa, Daniel Soudry

Abstract

Training deep neural networks with low-precision weights and activations is essential for edge deployment but often suffers from instability. This paper introduces a theoretical framework based on Mean Field Theory to analyze signal propagation in quantized networks. We derive a scaling law relating maximum trainable depth to the number of quantization levels ($L_{max} \propto N^{1.82}$) and propose a modified initialization scheme to enable training of significantly deeper quantized architectures.

Introduction

Quantization—reducing 32-bit floats to low-precision integers—is a key technique for deploying AI on resource-constrained devices. However, quantization is inherently destructive, introducing discretization errors that accumulate across layers. Standard initialization techniques, such as Xavier or He initialization, often fail for deep quantized networks. This research addresses the fundamental limits of depth in quantized networks and provides a principled approach to initialization.

Theoretical Framework: Mean Field Theory

The authors employ Mean Field Theory (MFT) to model wide neural networks as statistical systems. By analyzing how the correlation between two distinct inputs evolves as they pass through successive layers, they identify conditions for stable signal propagation.

Signal propagation across layers for varying weight variances. In quantized networks, correlations often converge rapidly, limiting the effective depth.

In quantized networks, the activation functions are modeled as "staircase" functions (sums of Heaviside steps). Unlike continuous activations like Tanh, these discrete functions cause signals to converge to fixed points much faster, creating a "depth scale" beyond which the network loses the ability to distinguish between different inputs.

The Quantization-Depth Trade-Off

A central contribution of this work is the derivation of a scaling law for quantized networks. Through numerical analysis of the signal propagation equations, the researchers found that the maximum depth $L_{max}$ is constrained by the number of quantization levels $N$.

Numerical results showing the relationship between the number of states and the maximum depth scale. The power-law fit reveals $L_{max} \propto N^{1.82}$.

Specifically, they established that $L_{max} \approx 3(N+1)^{1.82}$. For instance, a network with 10-level activations is theoretically limited to approximately 200 layers before signal propagation fails. This failure manifests as a "trivial" Neural Tangent Kernel (NTK), where the network can no longer learn the underlying structure of the data, even if training error is minimized.

Modified Initialization and Empirical Results

To mitigate these depth limits, the authors propose a modified Xavier initialization factor, $\alpha_N$. This adjustment accounts for the specific variance properties of quantized activations. For a 3-state network, the optimal variance is roughly 1.2 times that of standard Xavier initialization.

Empirical tests on the MNIST dataset confirm these findings. Networks using the proposed "Modified" initialization consistently outperformed those using standard Xavier initialization, especially as depth increased. In a 40-layer network with 3-state activations, standard initialization failed to train, while the modified scheme maintained high accuracy.

Conclusion

This paper provides the first rigorous theoretical bound on the depth of quantized neural networks. By identifying the $N^{1.82}$ scaling law and providing a corrected initialization scheme, the authors offer a roadmap for designing deeper, more efficient low-precision models. Future work will explore the impact of residual connections and batch normalization within this theoretical framework.

Summary updated

BibTeX
@inproceedings{blumenfeld2019mean,
  author = {Yaniv Blumenfeld and Dar Gilboa and Daniel Soudry},
  title = {{A Mean Field Theory of Quantized Deep Networks: The Quantization-Depth Trade-Off}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=RdZMZGfyvKr},
}
Figure