Block-OBS-GS: Exact Per-Block Joint Brain Surgery with Gauss–Seidel Refinement for LLM Pruning
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.