Abstract
As Large Language Models (LLMs) continue to scale, their deployment is increasingly limited by massive memory and computational requirements. While 4-bit quantization (W4A4) has become a standard for near-lossless compression, pushing precision down to 1 or 2 bits typically results in a catastrophic "performance collapse." This paper introduces a novel Post-Training Quantization (PTQ) framework called Binarized Weight and Activation (BWA). By utilizing a unique W(1+1)A(1×4) configuration, the framework decomposes weights and activations into binary formats, enabling the use of highly efficient bitwise operations. Experimental results demonstrate that BWA achieves near-FP16 performance and a 3x speedup over optimized INT4 kernels, providing a scalable path for ultra-low-bit LLM inference.
Introduction
The standard approach to making LLMs more efficient is quantization—reducing the precision of weights and activations. However, there is a significant accuracy wall at ultra-low bit-widths. Most existing solutions for 1-bit or 2-bit models rely on Quantization-Aware Training (QAT), which is computationally expensive and often impractical for models with billions of parameters.
This work addresses the challenge of achieving high accuracy in ultra-low-bit regimes using only Post-Training Quantization (PTQ). The researchers propose a framework that avoids performance collapse by rethinking how low-bit representations are structured and processed on hardware.
Methodology: The BWA Framework
The core of the proposed method is the W(1+1)A(1×4) configuration, which balances the extreme efficiency of binarization with the representational power needed for complex language tasks.
Weight Quantization: W(1+1)
Rather than a simple 1-bit sign representation, the framework uses a "1+1" approach. One bit represents the sign, while an additional bit is used for fine-grained grouping. To optimize these values, the authors employ a Hessian-aware grouping strategy, identifying which weights are most critical to the model's output. They then use an Expectation-Maximization (EM) algorithm to find optimal quantization parameters, treating the task as a clustering problem to find non-uniform values that better fit the weight distribution than standard Round-To-Nearest (RTN) methods.
Activation Quantization: A(1×4)
To maintain accuracy, activations are kept at a 4-bit equivalent precision but are decomposed into four separate 1-bit (binary) streams. This decomposition is the key "aha moment" of the research: it allows the model to perform the heavy lifting of matrix multiplication using high-speed bitwise operations—such as XOR, AND, and population count (popc)—while retaining the information density of 4-bit activations.
Error Mitigation and Outlier Handling
To further bridge the accuracy gap, the framework implements Scaling Factor Balancing, which smooths activation scaling factors based on real-time quantization error. Additionally, the researchers found that a small fraction (~3%) of channels act as "outliers" that can disproportionately ruin quantization. By keeping these specific channels in 8-bit precision, the model maintains stability without significantly increasing the overall memory footprint.
Experimental Results
The BWA framework was evaluated across the LLaMA and Vicuna model families on a variety of benchmarks, including language generation (WikiText2, C4) and zero-shot reasoning (PIQA, ARC, BoolQ).
Accuracy and Perplexity
On the LLaMA-1-7B model, BWA achieved a perplexity of 8.58 on WikiText2. This significantly outperforms other state-of-the-art PTQ methods like QuaRot (14.39) and Atom (16.65) at similar bit-widths, and moves remarkably close to the original FP16 baseline of 5.68.
Hardware Acceleration
Beyond accuracy, the framework is designed for speed. By co-designing the algorithm with bitwise hardware operations, the researchers developed a custom BWA kernel. In single-layer matrix computation tests on an NVIDIA A6000 GPU, this kernel achieved a 3x speedup over the highly optimized INT4 and INT8 kernels from the CUTLASS library.
Conclusion and Future Work
The BWA framework demonstrates that ultra-low-bit quantization does not have to result in performance collapse. By decomposing higher-precision activations into binary formats and using EM-based weight optimization, it is possible to achieve high-accuracy PTQ that rivals full-precision models in many tasks. While a small performance gap remains compared to FP16, the 5x compression ratio and 3x speedup make this a highly effective strategy for deploying LLMs on the edge. Future work may involve combining this PTQ approach with light-weight QAT to further close the remaining accuracy gap.
Summary updated