TL;DR
PBS$^2$P is a new post-training framework that pushes Large Language Model (LLM) compression into the "sub-1-bit" realm by combining binarization with semi-structured pruning. By using a progressive optimization strategy and a coarse-to-fine search for pruning targets, it achieves state-of-the-art performance, significantly narrowing the accuracy gap between ultra-compressed models and their full-precision counterparts.
What Problem Does This Paper Address?
As Large Language Models (LLMs) grow to hundreds of billions of parameters, their memory and computational requirements become prohibitive for edge devices. Researchers have turned to binarization—the most extreme form of quantization—which reduces weights to just 1 bit ($\pm 1$). However, even binarized models contain redundancy.
While pruning (removing weights entirely) is a natural partner for quantization, combining them is notoriously difficult. Naïve approaches—like pruning a model and then binarizing it—often lead to catastrophic performance drops because the joint constraints on weight values and structure are too rigid. The challenge lies in finding a way to prune and binarize simultaneously without losing the "intelligence" of the model.
Methods
The authors introduce Progressive Binarization with Semi-Structured Pruning (PBS$^2$P), which relies on two core innovations:
- Stepwise semi-structured Pruning with Binarization Optimization (SPBO): Instead of pruning the model in one giant leap, SPBO decomposes the pruning mask into a sequence of sub-masks. At each step, a small portion of weights is pruned, and the binarization parameters (scaling factors $\alpha$ and means $\mu$) are immediately re-optimized to minimize the reconstruction error. This "greedy" iterative approach prevents the accumulation of errors that usually plagues one-shot compression.
- Coarse-to-Fine Search (CFS): This two-stage algorithm decides what to prune.
- Coarse Stage: It calculates "Layer Importance" using cosine similarity between a layer's input and output. Layers that significantly transform the signal are deemed important and assigned lower pruning ratios, while redundant layers are pruned more aggressively.
- Fine Stage: Within each layer, it uses a Hessian-based metric (second-order information) to identify the specific weights whose removal will cause the least increase in error, all while adhering to hardware-friendly N:M sparsity constraints (e.g., keeping 2 out of every 4 weights).
Datasets
The researchers evaluated PBS$^2$P across several major LLM families, including LLaMA (v1, v2, and v3) and OPT, ranging from 1.3B to 70B parameters.
Performance was measured using:
- Language Modeling Perplexity: Evaluated on WikiText2, PTB, and C4.
- Zero-Shot Downstream Tasks: A battery of seven reasoning benchmarks, including ARC (Challenge and Easy), BoolQ, Hellaswag, OpenBookQA (OBQA), RTE, and Winogrande.
Key Insights and Ideas
- The "Sub-1-Bit" Frontier: By combining 1-bit binarization with 50% pruning (4:8 sparsity), the authors achieve an effective average bit-width of just 0.55 to 0.8 bits per parameter.
- Progressive is Powerful: The "aha moment" here is that binarization and pruning shouldn't be treated as independent steps. By interleaving them (SPBO), the binarization parameters can "compensate" for the weights lost during pruning in real-time.
- Layer Sensitivity: The paper confirms that not all layers are created equal. Using a simple cosine similarity metric to protect important layers (CFS) yielded significant gains over uniform pruning.
- Hardware Synergy: By focusing on N:M semi-structured pruning, the method remains compatible with modern GPU accelerators (like NVIDIA Ampere), ensuring that the theoretical compression actually translates to real-world speedups.
Key Results
PBS$^2$P consistently outperformed existing state-of-the-art (SOTA) binary post-training quantization methods like BiLLM and STBLLM:
- LLaMA-13B: At an average of 0.8 bits, PBS$^2$P achieved a perplexity of 6.20 on WikiText2. For context, the full-precision model is 5.47, while the previous best method (STBLLM) lagged behind at 9.66.
- Zero-Shot Accuracy: On LLaMA-1-30B, PBS$^2$P (0.8 bits) maintained an average accuracy of 63.28% across seven tasks, nearly matching the full-precision performance of 67.40% and far exceeding STBLLM’s 60.10%.
- Inference Speed: Using BitBLAS kernels, the authors demonstrated significant latency reductions, particularly on wide matrix multiplications typical in LLM inference.
Limitations and Future Work
- Computational Overhead: While PBS$^2$P is a post-training method (no full retraining required), the iterative SPBO process is slower than one-shot methods. Quantizing a LLaMA-7B model takes about 111 minutes, compared to 45 minutes for simpler methods.
- Calibration Dependence: Like most PTQ methods, it requires a small set of calibration data (128 samples). While the authors show robustness, performance could vary if the calibration data is not representative of the target domain.
- Hardware Specificity: The benefits of N:M sparsity are currently most pronounced on specific NVIDIA architectures; broader hardware support for these sparse patterns would be necessary for universal adoption.
Summary updated