NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving Block-Wise LLM Quantization by 4-bit Block-Wise Optimal Float (BOF4): Analysis and Variations

Patrick Blumenberg, Thomas Graave, Tim Fingscheidt

Large Language Models (LLMs) are notoriously memory-hungry, making them difficult to deploy or fine-tune on consumer hardware. Quantization—specifically reducing weight precision from 16-bit to 4-bit—is the standard workaround. However, current "data-free" methods like NF4 (NormalFloat4, used in QLoRA) and AF4 (AbnormalFloat4) suffer from suboptimal quantization errors.

This paper introduces BOF4 (4-bit Block-wise Optimal Float), a new family of quantizers that significantly reduces the error in 4-bit LLM weight compression. By optimizing the quantization codebook for unnormalized weights and introducing a "signed" normalization trick alongside an outlier-preserving strategy, the authors consistently outperform industry standards.

The Flaws in Current Quantization

Current methods divide weights into small blocks and scale them by the block's maximum value. This introduces two major issues:

  1. Suboptimal Codebooks: NF4's codebook is not information-theoretically optimal, and AF4 optimizes for the normalized weights rather than the original, unnormalized ones.
  2. The Outlier Problem: A single extreme "outlier" weight can force the normalization scale to be so large that all other weights in that block lose their precision, effectively "squishing" the distribution and increasing error.

The BOF4 Solution

To address these flaws, the authors propose three main innovations:

  • BOF4 (Block-wise Optimal Float): The authors derive an Expectation-Maximization (EM) algorithm to find the mathematically optimal 16 levels for a 4-bit codebook. Unlike previous attempts, BOF4 specifically minimizes the error of the original weights by accounting for the block-wise scaling step during optimization.
  • BOF4-S (Signed Normalization): Standard quantization scales blocks by the absolute maximum. BOF4-S scales by the signed absolute maximum. This ensures the largest value always maps to exactly +1.0 (or -1.0). This "frees up" one of the 16 available reconstruction levels, allowing for more precise representation of the remaining weights.
  • OPQ (Outlier-Preserving Quantization): To combat the outlier problem, OPQ identifies the most extreme weights and stores them in full 16-bit precision, while the rest of the block is quantized to 4-bit.
Comparison of quantization bins between BOF4 and BOF4-S.

Key Insights and Performance Gains

The study evaluated these methods on state-of-the-art LLMs (Llama-3.1, Llama-3.2, Qwen-2.5, Mistral) across various benchmarks.

  • The Optimization Mismatch: Minimizing error on normalized values (0 to 1) doesn't necessarily minimize error on the actual weights. By including the scaling factor in the EM algorithm, BOF4 achieves a more "honest" optimization.
  • MSE > MAE: Optimizing for Mean Squared Error (MSE) generally leads to better language model performance (lower perplexity) than Mean Absolute Error (MAE), likely because MSE penalizes large errors more heavily.
MSE comparison of quantization methods across different block sizes.
  • Superior Perplexity & Accuracy: BOF4-S combined with OPQ consistently achieved the lowest perplexity across all tested models. For example, on Llama-3.1 8B, it reduced perplexity from 8.53 (NF4) to 8.43. In zero-shot tasks, the BOF4 family often outperformed NF4 and AF4, sometimes even beating the 16-bit BF16 baseline.
  • Efficiency: OPQ adds very little overhead—only about 1.3% to 1.8% extra memory and a negligible 2.8% runtime increase during inference.

Limitations and Future Work

While highly effective, the primary study focuses on data-free quantization. Although BOF4 works well with data-aware methods like GPTQ, the main codebooks are still derived assuming a Gaussian distribution. Additionally, using signed normalization (BOF4-S) might slightly increase memory if "double quantization" is used, as an extra bit is needed to store the sign of the max value. Future work may explore combining BOF4 with Hadamard transformations to force weight distributions to be even more Gaussian, potentially reducing quantization error further.

Summary updated

BibTeX
@inproceedings{blumenberg2026improving,
  author = {Patrick Blumenberg and Thomas Graave and Tim Fingscheidt},
  title = {{Improving Block-Wise LLM Quantization by 4-bit Block-Wise Optimal Float (BOF4): Analysis and Variations}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=VpZ8YYdBmT},
}
Figure