Unlock the Theory behind Scaling 1-bit Neural Networks

Majid Daliri, Zhao Song, Chiwun Yang

TL;DR

This paper provides the first theoretical framework to explain why 1-bit neural networks (using weights of only -1 or +1) can achieve performance comparable to full-precision models, especially as they scale up. The authors demonstrate that these 1-bit networks exhibit a "scaling law," meaning their performance improves predictably with increased model size, and that their generalization ability is similar to standard models.

What Problem Does This Paper Address?

Large Language Models (LLMs) are incredibly powerful but also computationally expensive, requiring significant memory, processing power, and energy. Quantization, particularly to very low bitwidths like 1-bit (int1), offers a path to drastically reduce these resource demands, making LLMs more accessible and sustainable. While recent empirical studies show that 1-bit LLMs can achieve impressive performance, the theoretical underpinnings of why and how they scale effectively have been largely missing. This paper aims to fill that gap by providing a rigorous theoretical explanation for the scaling behavior and generalization capabilities of 1-bit neural networks.

Methods

The core of the paper's theoretical contribution lies in its use of the Neural Tangent Kernel (NTK) framework. The authors analyze a two-layer linear network with 1-bit weights. They prove that as the network width increases, the training dynamics of this 1-bit model converge to kernel behavior, similar to its full-precision counterpart. This convergence guarantees that the 1-bit model can achieve arbitrarily small training loss. They also introduce and analyze the "generalization difference" to show that the outputs of 1-bit and full-precision networks remain close, even under over-parameterization. The paper also employs Quantization-Aware Training (QAT) and the Straight-Through Estimator (STE) for practical implementation and analysis.

Datasets

The paper does not explicitly mention specific large-scale datasets used for training or evaluation. Instead, it focuses on theoretical analysis and experimental verification using synthetic data generated to learn various complex functions (f1 to f6) described in Section 6.1.

Key Insights and Ideas

  • 1-bit Networks Mimic Kernel Behavior: The most significant insight is that even with the extreme constraint of {-1, +1} weights, the training dynamics of 1-bit networks align with kernel regression as the model width grows. This explains their ability to learn complex functions.
  • Theoretical Guarantee for Scaling: The paper provides the first theoretical proof that 1-bit neural networks exhibit a scaling law, meaning their performance improves predictably with increased model size and training.
  • Generalization Similarity: The authors demonstrate that 1-bit networks do not compromise generalization ability compared to full-precision models. The "generalization difference" remains negligible as model width increases.
  • Int1 as a Viable Standard: The findings suggest that 1-bit precision could become a standard for future neural network architectures due to its efficiency and comparable performance.

Key Results

  • The theoretical framework establishes that 1-bit neural networks can achieve arbitrarily small training loss with sufficient width.
  • The generalization difference between 1-bit and full-precision models is shown to be negligible under over-parameterization.
  • Experimental verification on learning complex functions shows that 1-bit MLPs perform nearly identically to FP32 MLPs, with minimal differences in loss, especially as model size increases.
  • The paper demonstrates that 1-bit models require significantly less energy and computation (e.g., 32x less) while maintaining competitive performance.

Limitations and Future Work

  • Theoretical Focus: While the paper provides a strong theoretical foundation, it primarily focuses on a simplified two-layer linear network. Extending these theoretical guarantees to deeper and more complex architectures (like transformers) remains an open area.
  • Practical Implementation: The paper acknowledges that while 1-bit models perform similarly, standard FP32 models might still have a slight edge in performance due to their higher precision. Future work could explore hybrid precision approaches or more advanced QAT techniques to further close this gap.
  • Real-world Datasets: The experimental validation uses synthetic functions. Applying and validating these theoretical findings on large-scale, real-world datasets would be a crucial next step.

Summary updated

BibTeX
@inproceedings{daliri2025unlock,
  author = {Majid Daliri and Zhao Song and Chiwun Yang},
  title = {{Unlock the Theory behind Scaling 1-bit Neural Networks}},
  booktitle = {CPAL (Proceedings Track)},
  year = {2025},
  url = {https://openreview.net/forum?id=fcpRnXWvWk},
}
Figure