Abstract
OneBit is a novel framework designed to compress Large Language Model (LLM) weight matrices to a single bit, achieving over 90% reduction in model size. By utilizing a specialized parameter representation—combining a high-rank sign matrix with floating-point value vectors—and a matrix-decomposition-based initialization (SVID), OneBit maintains model reasoning capabilities that typically collapse at such extreme compression levels. Our evaluations demonstrate that OneBit outperforms existing 2-bit quantization methods, making 1-bit LLMs a practical reality for deployment on consumer-grade and edge hardware.
Introduction: Overcoming the Memory Wall
The "memory wall" represents the primary bottleneck for deploying Large Language Models (LLMs). A standard LLaMA-13B model requires approximately 26GB of VRAM in FP16 format, exceeding the capacity of most consumer-grade hardware. While quantization techniques like GPTQ or AWQ effectively reduce precision to 4-bit or 8-bit, performance degrades significantly at 1 or 2 bits. At these extreme levels, rounding errors typically destroy the model's ability to reason. OneBit addresses this gap, pushing the boundaries of quantization to the 1-bit limit while preserving functional performance.
Methodology
OneBit introduces two core innovations to stabilize and optimize 1-bit quantization:
1. Binary Quantized Linear Layer
Instead of simple rounding, OneBit represents a weight matrix $W$ as a combination of a high-rank sign matrix $W_{\pm 1}$ (containing values $\in \{-1, 1\}$) and two small FP16 value vectors, $g$ and $h$. The operation is defined as: $$Y = (X \odot g) W_{\pm 1}^T \odot h$$ This architecture allows the model to retain the high-rank structural information of the original matrix while using the floating-point vectors to calibrate the output scale, significantly reducing precision loss.
2. Sign-Value-Independent Decomposition (SVID)
To address the instability of training 1-bit models from scratch, the authors developed SVID. This method initializes the 1-bit model by decomposing pre-trained FP16 weights into a sign matrix and a rank-1 approximation. This provides a mathematically grounded starting point that closely mirrors the teacher model's behavior.
3. Knowledge Distillation (KD)
The model undergoes Quantization-Aware Training (QAT) where a full-precision "teacher" model guides the 1-bit "student." By minimizing the difference between their hidden states and logit outputs, the student model effectively inherits the teacher's knowledge.
Experimental Setup
OneBit was evaluated on LLaMA models using standard benchmarks:
- Language Modeling: Perplexity on WikiText2 and C4.
- Zero-Shot Reasoning: Tasks including Winogrande, HellaSwag, PIQA, BoolQ, and ARC.
- Training Data: A corpus of 132k entries synthesized via next-token generation from a LLaMA-7B teacher.
Key Results
OneBit achieves unprecedented compression with manageable performance trade-offs. For LLaMA-7B, the model size is reduced from 13.5GB (FP16) to 1.3GB, a 90.4% reduction. For LLaMA-65B, the reduction reaches 93.4%.
As shown in the figure above, OneBit maintains stable perplexity at 1-bit, whereas traditional methods like GPTQ fail at 2-bit. Specifically, on LLaMA-7B (WikiText2), OneBit achieved a perplexity of 10.19, significantly outperforming 2-bit GPTQ, which becomes non-functional. Overall, OneBit retains at least 81% of non-quantized performance across various reasoning tasks.
Discussion and Future Work
While OneBit marks a significant milestone, it involves a higher training cost than Post-Training Quantization (PTQ), requiring several days of GPU time for distillation (e.g., 7 days on 8 A100 GPUs for LLaMA-7B). Additionally, while weights are quantized to 1-bit, activations remain in 16-bit (W1A16). Future research will focus on quantizing activations to further enhance inference speeds on mobile CPUs and exploring variable bit-widths for more flexible deployment.
Summary updated