On One-Bit Quantization

Sourbh Bhadane, Aaron B. WagnerarXiv 2022

TL;DR

This paper provides a general theory for optimal one-bit quantization (extreme 1-bit compression) of data residing in high-dimensional Hilbert spaces under a mean squared error (MSE) metric. The authors reveal that choosing the optimal projection direction requires balancing a fundamental tension between the direction's variance and its geometric "amenability" to being split into a single bit. They analytically solve this for a continuous-time random process and show that standard neural networks trained via stochastic gradient descent (SGD) can automatically discover this optimal solution.

What Problem Does This Paper Address?

Traditional lossy compression theory relies heavily on the assumption of stationary Gaussian data sources. Under these assumptions, classical techniques like linear whitening followed by uniform quantization are near-optimal. However, modern artificial neural networks (ANNs) routinely outperform these classical methods on real-world data (like images) because they exploit non-Gaussian structures.

To better understand why neural networks excel, researchers need to study optimal quantization for non-Gaussian sources. This paper tackles this problem in the extreme low-rate regime: one-bit quantization (compressing an entire high-dimensional vector or continuous function down to a single bit).

Geometrically, an optimal one-bit quantizer works by projecting the data onto a specific line (direction) and then applying a threshold. Intuitively, one might think that projecting along the direction of highest variance (similar to Principal Component Analysis) is always best. However, for non-Gaussian data, the shape of the distribution matters just as much as its spread. The authors address the challenge of identifying exactly how to choose this optimal projection direction.

Methods

The authors formalize the problem using a random variable $X$ living in a real Hilbert space $\mathcal{H}$ (which can represent infinite-dimensional functions or signals).

  1. Amenability Metric: They introduce a formal mathematical definition for a distribution's "amenability" to one-bit quantization: $$\zeta_X = \frac{\mathbb{E}[|X|]^2}{\mathbb{E}[X^2]}$$ This scale-free metric ranges between 0 and 1, quantifying how much variance is retained after a zero-mean distribution is quantized to one bit.

  2. The Variance-Amenability Tradeoff: They prove that for symmetric, log-concave distributions, the optimal projection direction maximizes the product of the direction's variance and its amenability.

  3. The Stationary Sawbridge: To demonstrate their theory, they apply it to an infinite-dimensional random process called the stationary sawbridge. They analytically derive its eigenfunctions and eigenvalues to determine the theoretically optimal one-bit quantizer.
  4. Neural Network Verification: Finally, they train an off-the-shelf neural network compressor using standard stochastic gradient descent (SGD) with a soft-rounding approximation to see if empirical deep learning methods can find this theoretical optimum.

Datasets

The paper does not use standard empirical datasets (like ImageNet). Instead, it evaluates its framework on a mathematically synthesized benchmark:

  • The Stationary Sawbridge Process: A continuous-time random process that exhibits low-dimensional, non-Gaussian structure. For the neural network experiments, realizations of this process are sampled as vectors of 1024 equally spaced points between 0 and 1.

Key Insights and Ideas

  • Variance Isn't Everything: A lower-variance direction can be a better choice for quantization if its distribution shape is highly "amenable." For instance, a uniform distribution has higher amenability than a Gaussian distribution, which in turn is more amenable than a Laplacian distribution.
Amenability values for standard distributions.
  • The Geometry of the Sawbridge: For the nonstationary sawbridge process studied in prior work, the highest variance direction is not the optimal direction to project onto. However, for the stationary sawbridge introduced here, the constant function (the DC component) happens to be both the highest variance direction and the most amenable, making it uniquely optimal.
  • SGD Can Navigate Non-Convexity: Quantization optimization landscapes are notoriously non-convex and riddled with local minima. Despite this, standard deep learning compression architectures trained via SGD successfully converge to the globally optimal theoretical quantizer.

Key Results

  • Analytical Solution: The authors prove that the optimal one-bit quantizer for the stationary sawbridge is simply the sign of its DC component ($\int_0^1 Y_t dt$), yielding optimal reconstruction values at $\pm 0.25$.
  • Empirical Validation: The neural network compressor successfully learned this exact boundary. As shown in the latent space contour plot, the network splits the decision boundary precisely at a drop value of 0.5, perfectly matching the theoretical optimum.
Fig. 1. Contour plot for stationary sawbridge.

Limitations and Future Work

  • Symmetry and Log-Concavity Assumptions: The clean decoupling of the optimal direction into a product of variance and amenability relies on the projections being symmetric and log-concave. For multi-modal or highly asymmetric real-world data, this elegant relationship may not hold.
  • Extension to Multi-Bit Quantization: This work is strictly limited to the 1-bit (two reconstruction points) regime. Extending the geometric intuition of "amenability" to multi-bit quantization remains an open and challenging problem for future research.

Summary updated

BibTeX
@misc{bhadane2022one,
  author = {Sourbh Bhadane and Aaron B. Wagner},
  title = {{On One-Bit Quantization}},
  year = {2022},
  eprint = {2202.05292},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.05292},
}
Figure