TL;DR
When pruning large language models (LLMs) without retraining, standard algorithms sweep through weight matrices from left to right, freezing early weights before knowing which later weights will be deleted. Block-OBS-GS fixes this myopic "forward-only" flaw by adding a fast, classic numerical refinement pass—Gauss–Seidel sweeps—over the surviving weights once the pruning mask is finalized. The result is mathematically guaranteed convergence toward the optimal layer reconstruction and significantly lower perplexity at extreme sparsities, all while staying in the same asymptotic complexity class as SparseGPT.
What Problem Does This Paper Address?
Pruning an LLM means setting a fraction of its weights to zero to save memory and compute. Because retraining multi-billion-parameter models to recover lost accuracy is prohibitively expensive, retraining-free pruners work layer by layer. Using a small batch of calibration data, they zero out less important weights and tweak the surviving ones so the layer's output barely changes—a convex quadratic problem called layer reconstruction.
Leading methods like SparseGPT and Thanos make this fast by processing weight matrices in column blocks from left to right. When they delete weights in block 1, they compensate by adjusting weights in blocks 2, 3, and so on—and then freeze block 1 forever.
Here is the catch: when the algorithm eventually reaches block 3 and deletes weights there, the mathematically optimal values for the surviving weights back in block 1 shift. Because earlier blocks are never revisited, forward-only pruners leave reducible error on the table, missing the true global optimum for the final pruning mask.
Methods
The authors introduce Block-OBS-GS, a two-stage algorithm for each linear layer:
- Stage 1: Exact Per-Block Forward Pass (Mask Selection & Initial Solve). Moving left to right across column blocks (width 128), the method scores weights using SparseGPT’s second-order Optimal Brain Surgeon (OBS) metric. Once the lowest-scoring weights in a block are zeroed, it performs an exact, joint closed-form solve (similar to Thanos) for the surviving weights in each row of that block and propagates updates to trailing columns.
- Stage 2: Gauss–Seidel (GS) Refinement (The Novel Step). Once the forward pass finishes, the entire pruning mask is locked in. The algorithm then sweeps across all columns from left to right, updating each surviving weight one coordinate at a time using the freshest values of all other weights (including those in later blocks).
While Stage 1 relies on established OBS scoring and block-wise updates, pairing it with post-hoc coordinate-wise GS sweeps is new to LLM pruning. Even better, the authors prove that each GS sweep contracts the distance to the unique global fixed-mask optimum geometrically, without increasing SparseGPT's asymptotic computational complexity.
Datasets
- Calibration & Perplexity: WikiText-2 (128 calibration sequences of length 2,048 for pruning; standard test split for perplexity).
- Downstream Accuracy: ** five-shot MMLU (Massive Multitask Language Understanding) and a seven-task zero-shot suite (Avg7)**.
- No new benchmarks are introduced.
Key Insights and Ideas
- Pruning as Factor-Graph Inference: Viewing layer reconstruction as constrained Maximum A Posteriori (MAP) estimation on a Gaussian factor graph makes the flaw of prior work crystal clear: forward pruners make permanent hard decisions on an incomplete graph (missing future zero-constraints), whereas GS acts as Iterated Conditional Modes (ICM) on the complete graph.
- Refinement Beats Fancy Forward Solves: Same-mask ablations reveal an "aha" moment: doing a single cheap GS sweep at the end lowers perplexity much more than upgrading SparseGPT's column-by-column forward step to an exact joint block solve. In fact, GS only takes ~57 seconds of a 953-second run on an 8B model—the heavy lifting (and runtime bottleneck) is actually the irregular GPU memory operations in the Stage 1 block solve!
- Perplexity $\neq$ Downstream Dominance: Dramatically improving the layer-wise reconstruction objective (and WikiText-2 perplexity) does not automatically translate into higher zero-shot or MMLU task accuracy.
Key Results
Tested on Llama-3 models (3B, 8B, and 70B), Block-OBS-GS beats SparseGPT in WikiText-2 perplexity across every sparsity level, with massive gains at extreme sparsities:
- Aggressive Sparsity: On Llama-3.1-8B, Block-OBS-GS drops perplexity from 36.86 to 31.69 at 75% sparsity, and cuts it by 47% at 87.5% sparsity (137.19 vs. 256.71). (Note: dense PPL is 6.24, so 87.5% is still heavily degraded, just far more coherent).
- Downstream Tasks: On Llama-3.1-8B across 25%–75% sparsity, Avg7 and MMLU accuracies remain essentially tied—staying within 0.8 percentage points of SparseGPT.
- Runtime & Scale: At 3B and 8B, pruning takes 1.8$\times$ to 2.8$\times$ longer than SparseGPT (e.g., 952.8s vs. 474.7s on 8B/75%), though kernel engineering cuts Phase-1 time by ~25%. On Llama-3.3-70B-Instruct at 50% sparsity, both methods achieve nearly identical PPL (6.04 vs. 6.08) and wall time (~4,313s vs. 4,248s).
- Quantization Synergy: When followed by 4-bit GPTQ quantization on 3B/50%, the advantage holds (15.37 PPL vs. SparseGPT's 16.13).
Limitations and Future Work
- Scope & Metrics: Experiments are limited to Llama-3 checkpoints and a single calibration seed. Moreover, lower perplexity did not yield consistent downstream accuracy gains.
- Pruning Speed & Sparse Hardware Reality: SparseGPT remains preferable when fast pruning time is the top priority. Furthermore, converting pruned 8B/75% FP32 weights to a standard Compressed Sparse Row (CSR) format sped up single-token generation by 1.28$\times$, but made 2,048-token prompt prefill 34.9$\times$ slower while taking slightly more memory (16.92 GiB) than standard dense BF16 weights (14.96 GiB).
- Future Directions: Developing faster batched GPU kernels for the Stage 1 block solve, stopping GS sweeps adaptively using residual error bounds, jointly optimizing masks and weights, and extending refinement across multiple layers rather than one layer at a time.
Summary updated