One-Bit Quantization for Random Features Models

Danil Akhtiamov, Reza Ghane, Babak HassibiarXiv 2025 · DOI

Abstract

As deep learning models scale toward billions of parameters, the memory and computational requirements for deployment on edge devices become increasingly prohibitive. One-bit quantization—the compression of weights to a single bit—offers a potential 32x reduction in memory footprint, yet its theoretical impact on generalization has remained poorly understood. This paper provides a rigorous theoretical framework demonstrating that quantizing the hidden layers of a Random Features (RF) model results in zero loss in generalization performance as the network width increases. By leveraging Gaussian Universality and the Convex Gaussian Min-Max Theorem, the authors prove that this extreme compression is asymptotically lossless, a finding supported by empirical inference speedups of 4x on consumer-grade hardware.

Introduction

The deployment of modern neural networks on hardware-constrained devices, such as mobile phones and IoT sensors, is often limited by memory bandwidth and storage. While empirical successes in low-bit quantization (e.g., BitNet) suggest that high precision may not be necessary for all network components, a theoretical gap exists: does discarding 31 bits of precision per weight inevitably degrade a model's ability to generalize?

This research addresses this question by analyzing Random Features (RF) models, which serve as mathematically tractable proxies for wide neural networks. In these models, hidden layer weights are fixed and random, while only the final layer is trained. The authors investigate whether quantizing these fixed weights to just one bit (+1 or -1) impacts the final test error.

Methodology

Model Architecture

The study compares two variants of a multi-layer Random Features model:

  1. Full-Precision (FP32): Weights are sampled from a standard Gaussian distribution.
  2. One-Bit Quantized: Weights are mapped to the set $\{+1, -1\}$ and normalized by the layer width.

In both cases, the hidden layers remain fixed after initialization, and the final output layer is optimized using Stochastic Mirror Descent (SMD), a generalized optimization framework that encompasses standard Gradient Descent.

Theoretical Framework

To establish the equivalence between full-precision and one-bit models, the authors employ three primary mathematical tools:

  • Gaussian Universality (GU): This principle posits that in high-dimensional systems, the specific distribution of weights (Gaussian vs. Bernoulli/One-Bit) does not alter the final test error, provided the first and second moments are matched.
  • Gaussian Equivalence Principle (GEP): This allows for the recursive characterization of the covariance of outputs across successive hidden layers.
  • Convex Gaussian Min-Max Theorem (CGMT): This tool is utilized to derive precise, deterministic equations for generalization error in the high-dimensional asymptotic regime.

Key Insights

The "Lossless" Property

The most significant theoretical contribution is the proof that for sufficiently wide models, quantizing every layer except the last one to one bit incurs no loss in generalization error. In high dimensions, the "noise" introduced by the quantization process effectively averages out, leading to a test Mean Squared Error (MSE) that is identical to the full-precision counterpart.

The Criticality of the Final Layer

A vital distinction made in the paper is that the last layer—the trained layer—must remain in higher precision. Quantizing the learned weights leads to significant performance degradation. However, because the vast majority of parameters in deep RF models reside in the hidden layers, quantizing those layers provides the bulk of the computational and memory benefits without sacrificing accuracy.

Hardware Synergy

One-bit weights enable the use of specialized hardware kernels. The authors utilized the Gemlite library to replace traditional floating-point multiplications with bitwise operations (XNOR and population count). This transition results in significant throughput improvements on standard hardware.

Experimental Results

Theoretical Validation

Using synthetic datasets consisting of centered Gaussian inputs, the authors confirmed that their derived "asymptotically precise" error formulas accurately predict the performance of both full-precision and one-bit models. The test MSE for both models converged to the same deterministic value as the system size increased.

Empirical Performance on MNIST

To test the theory beyond synthetic regression, the researchers applied the model to the MNIST handwritten digit dataset. Despite the theory being developed for regression with "odd" activation functions (like tanh), experiments showed that the lossless property held surprisingly well for ReLU activations in a classification context.

Inference Speedup

Practical benchmarks conducted on an NVIDIA RTX 2060 laptop GPU demonstrated a 4x inference speedup when using the one-bit implementation compared to standard FP32. This highlights the immediate utility of the approach for real-world deployment on modest hardware.

Discussion and Limitations

While this work provides a robust theoretical foundation for one-bit quantization in RF models, several avenues for future research remain:

  • Learned vs. Random Features: The current proof applies to fixed random weights. Extending these guarantees to models where hidden weights are learned via backpropagation is a significant open challenge.
  • Architectural Constraints: The mathematical proofs currently require centered data and odd activation functions. Relaxing these requirements to cover a broader range of neural architectures is necessary for universal applicability.
  • Loss Functions: The core theoretical characterization focuses on MSE. Future work is required to provide the same level of asymptotic precision for cross-entropy loss and complex classification tasks.

Conclusion

This research demonstrates that extreme quantization does not inherently imply a tax on accuracy. By proving the asymptotic equivalence of one-bit and full-precision Random Features models, the authors provide both a theoretical justification for high-efficiency compression and a practical path toward faster, leaner AI deployment.

Summary updated

BibTeX
@misc{akhtiamov2025one,
  author = {Danil Akhtiamov and Reza Ghane and Babak Hassibi},
  title = {{One-Bit Quantization for Random Features Models}},
  year = {2025},
  eprint = {2510.16250},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.16250},
}
Figure