Block-OBS-GS: Exact Per-Block Joint Brain Surgery with Gauss–Seidel Refinement for LLM Pruning

Yuwen Huang, Xiang PanNeurIPS 2026

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.

Figure 1: Factor graph of Equation (3) for Example 4: a bipartite graph with one variable node (circle) per weight Vi,j and one factor node (square) per factor fτ, gj, or δj (filled); a variable node and a factor node are joined by an edge if and only if the variable is an argument of the factor. (a) While block {1, 2} is processed, the constraint on Vi,3 is missing (dashed). (b) GS acts on the complete graph.

Methods

The authors introduce Block-OBS-GS, a two-stage algorithm for each linear layer:

Figure 2: The two stages of Block-OBS-GS. The return arrow repeats for each column block.
  1. 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.
  2. 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:

Table 1: WikiText-2 PPL (lower is better; one calibra- tion seed). The last column is the increase over the dense model.
  • 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

Abstract

We propose Block-OBS-GS, a retraining-free pruner for large language models (LLMs) that solves the per-block joint Optimal Brain Surgeon (OBS) reconstruction exactly and then refines it with Gauss–Seidel (GS) sweeps. SparseGPT and unstructured Thanos reconstruct the retained weights in increasing column order, one column or column block (a group of consecutive columns) at a time, and never change earlier retained weights again. Viewing reconstruction as constrained maximum a posteriori (MAP) estimation explains why this forward compensation, even with an exact block solve, need not minimize the layer-output error under the completed mask. Block-OBS-GS therefore adds GS sweeps over the retained weights of all blocks, with the mask fixed, after a forward pass that solves each block jointly within each row. We prove three guarantees: the block solve is the unique minimizer of its per-block problem; with the mask fixed and the damped Hessian positive definite, the distance to the unique fixed-mask minimizer contracts geometrically with each GS sweep; and, for fixed block width and number of GS sweeps, the method stays in SparseGPT's complexity class. On Llama-3 models from 3B to 70B parameters, Block-OBS-GS gives lower WikiText-2 perplexity than SparseGPT at every tested sparsity, and the gain grows with the sparsity. On Llama-3.1-8B, its perplexity is 31.69 versus SparseGPT's 36.86 at 75% sparsity, with pruning times of 952.8 versus 474.7 seconds, and 47% lower at 87.5% sparsity (137.19 versus 256.71). Its seven-task zero-shot average and five-shot Massive Multitask Language Understanding (MMLU) accuracies stay within 0.8 percentage points of SparseGPT's. In summary, Block-OBS-GS lowers perplexity at a measured additional pruning cost.
BibTeX
@inproceedings{huang2026block,
  author = {Yuwen Huang and Xiang Pan},
  title = {{Block-OBS-GS: Exact Per-Block Joint Brain Surgery with Gauss–Seidel Refinement for LLM Pruning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=TgdviE0ING},
}
Figure