1-Bit Wonder: Improving QAT Performance in the Low-Bit Regime through K-Means Quantization

Sohir Maskey, Constantin Eichenberg, Johannes Messner, Douglas Orr · DOI

Abstract: Quantization-aware training (QAT) is an effective method to drastically reduce the memory footprint of LLMs while keeping performance degradation at an acceptable level. However, the optimal choice of quantization format and bit-width presents a challenge in practice. The full design space of quantization is not fully explored in the context of QAT, and the precise trade-off between quantization and downstream performance is poorly understood, as comparisons often rely solely on perplexity-based evaluations. In this work, we address these shortcomings with an empirical study of QAT in the low-bit regime. We show that k-means based weight quantization outperforms integer formats and can be implemented efficiently on standard hardware. Furthermore, we find that, under a fixed inference memory budget, the best performance on generative downstream tasks is achieved with 1-bit quantized weights.

Introduction

Large Language Models (LLMs) are increasingly constrained by memory bandwidth during inference. For many applications, performance is limited not by raw compute power, but by the speed at which weights can be moved from memory to the processor. While weight quantization is a standard remedy, pushing precision below 4 bits typically results in significant performance loss.

Quantization-Aware Training (QAT) allows models to adapt to quantization noise during the training process, potentially enabling much lower bit-widths. However, the optimal trade-off between model size and weight precision remains a subject of debate. This paper investigates a fundamental question for practitioners: Given a fixed inference memory budget, is it better to deploy a smaller, high-precision model or a much larger, ultra-low-precision model?

Methodology

To explore this trade-off, we extend standard neural scaling laws to incorporate weight precision. We introduce an "effective parameter count" that accounts for the loss of information as precision drops. We specifically compare standard uniform integer quantization against a non-linear 1D k-means clustering approach. In our k-means implementation, centroids are learned to adapt to the empirical distribution of weights, using a block-wise scaling approach (block size 64).

Effective parameter capacity $f(P_w)$ as a function of weight precision for k-means and uniform quantization.

Our experimental setup involves training models on a diverse dataset mixture, including general web data (Nemotron-CC), code (Starcoder-V2), and high-quality math data (FineMath). We then perform a "memory-matched" comparison by training three models that occupy the same ~7.8 GB inference memory footprint: a 4B parameter 16-bit (bf16) baseline, a 12B parameter 4-bit model, and a 31B parameter 1-bit model.

Scaling Laws and Quantization Formats

Our analysis reveals that non-linear formats, specifically k-means, significantly outperform uniform quantization at low bit-widths (below 4.25 bits). As shown in Figure 5, k-means preserves a higher effective capacity ($f(P_w)$) per bit because it adapts to the weight distribution. Furthermore, we found that 1-bit k-means quantization is remarkably stable during training, avoiding the numerical instabilities (like NaNs) often associated with 1-bit uniform quantization.

Trade-off contours between weight precision ($P_w$), model size ($N$), and token budget ($D$) for uniform and k-means quantization.

Key Results

Under a fixed memory budget, our scaling laws and empirical results both favor allocating memory to more parameters rather than higher precision. In the memory-matched showdown, the 31B 1-bit model significantly outperformed the 4B 16-bit baseline across all generative benchmarks. For instance, on MMLU, the 31B 1-bit model achieved a score of 51.61, compared to 33.21 for the 4B baseline. Similar gains were observed in coding (HumanEval: 18.29 vs 12.80) and mathematics (GSM8K: 45.26 vs 27.90).

To make 1-bit non-linear quantization practical, we developed custom Triton and Marlin-based GPU kernels. These kernels use 256-entry lookup tables (LUTs) to fuse dequantization and matrix multiplication. In micro-benchmarks on an NVIDIA L40S, our 1-bit kernel achieved a 7.6x speedup over bf16 for memory-bound operations, reaching an effective bandwidth of 438 GB/s.

Conclusion

This study demonstrates that aggressively quantizing weights to 1-bit using k-means—and reinvesting the saved memory into scaling up the model size—is the optimal strategy for maximizing performance under a fixed memory budget. While dequantization overhead can impact throughput at larger batch sizes where compute becomes the bottleneck, the gains in model capability for single-user autoregressive generation are substantial. Future work will explore hardware-level support for non-linear quantization to further reduce these overheads.

Summary updated

BibTeX
@inproceedings{maskey2026bit,
  author = {Sohir Maskey and Constantin Eichenberg and Johannes Messner and Douglas Orr},
  title = {{1-Bit Wonder: Improving QAT Performance in the Low-Bit Regime through K-Means Quantization}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=6EGpWhH2yx},
}
Figure