Spending Dense Weights Where Capabilities Live: Head-Targeted Exceptions to 2:4 Pruning

Modern GPUs can run a matrix multiply about twice as fast if exactly two of every four consecutive weights are zero (the "2:4" pattern that NVIDIA Sparse Tensor Cores support in hardware). Unrestricted pruning, which removes any weights anywhere, rarely gives real speedups because the scattered zeros break the regular memory access GPUs rely on. The 2:4 pattern fixes the speed problem but creates an accuracy problem: every group of four weights loses two, whether or not they matter. Separately, interpretability research has found that many specific abilities of a language model live in a handful of attention heads. Attention heads are the parallel sub-units of each attention layer, and each one decides which earlier tokens to read from. Zeroing about five heads can cut GSM8K math accuracy by up to 60% while unrelated language tasks drop by less than 2% (Compressed Sensing for Capability Localization). Translation is concentrated in about 1% of heads (Translation Heads), and in-context learning in a similarly small subset (How do LLMs Learn In-Context?).

This note proposes a simple bet. Keep a few percent of attention heads fully dense, chosen because they carry specific capabilities. Prune everything else to hardware-native 2:4. Reorder heads so the dense ones sit together, which keeps the wall-clock cost of the exceptions small. The claim to test is that at a matched measured speedup, this preserves rare capabilities better than spending the same dense budget according to generic sensitivity scores computed on ordinary text. The reason to expect this is that the heads which matter most for a capability can look unimportant on average text, so standard calibration overlooks them.

Core Claim

Post-training 2:4 pruning methods such as SparseGPT and Wanda score weights using a calibration set of ordinary text. They are usually judged by perplexity and broad zero-shot averages. We hypothesize that this hides damage to narrow capabilities whose computation is localized in a few heads. The supporting evidence comes from APP (Accelerated Path Patching). Its contrastive scoring found task-critical heads with low average activation on general data, and standard pruning discards them.

If the hypothesis holds, a small budget of dense heads chosen by capability localization should recover most of the capability loss caused by uniform 2:4 pruning. It should do so at a fraction of the latency cost of the existing remedy, which keeps whole layers dense (MixGPT, MSP). The new element is not mixed sparsity as such. It is the rule for choosing what to protect (causal capability localization, not average sensitivity), the granularity (heads, not layers), and the requirement that every gain be reported at a measured, not theoretical, speedup.

Research Program

Diagnostic stage. We first ask whether the idea can work at all. On Qwen2.5-7B and LLaMA-3-8B we apply uniform SparseGPT 2:4 pruning and measure the drop on a capability suite. The suite covers GSM8K math, multiple-choice symbol binding, few-shot in-context learning, translation probes, and induction-style copying.

We then restore individual heads to their dense weights and measure how much of each capability returns. If restoring the roughly 5% of heads flagged by compressed-sensing localization recovers most of the gap, the damage is head-concentrated and the program proceeds. If recovery requires restoring large parts of the MLP blocks, the bet is wrong and we stop. The arithmetic-mechanism work suggests MLP neurons also matter (Comparative Neuron Analysis), so this outcome is possible.

Localization stage. We reuse the compressed-sensing method of Compressed Sensing for Capability Localization. It ablates random combinations of heads and fits a Lasso regression to the resulting score changes. We run it per capability. We also keep its "universal heads", the heads whose removal breaks basic fluency.

That paper notes a weakness: it assumes head effects add up linearly. We therefore check the protected set by joint restoration in the pruned model, not by trusting the regression alone. For capabilities without hand-built corrupted inputs, ablation-based compressed sensing avoids the corruption-design problem that APP inherits.

Allocation stage. In the spirit of ZipLM, we build a latency table on an A100. It records the measured cost of each mixed layout: a projection with k dense heads and the rest in 2:4. A greedy knapsack then picks protected heads to maximize localized importance per microsecond, subject to a target end-to-end speedup.

Execution stage. Permuting heads within a layer leaves the model's function unchanged, provided the query, key, value and output projections are permuted consistently. We use this to make the protected heads contiguous.

The query, key and value projections then split cleanly into two GEMMs (matrix multiplies) along the output dimension: one dense and one 2:4. The output projection splits along the reduction dimension into two GEMMs whose results are added in a fused step. The remaining weights are pruned to 2:4 by SparseGPT, with the dense heads included in the Hessian context so the compensation sees them. The split-GEMM overhead is measured directly, because this cost is exactly the kind of irregularity that usually eats sparse speedups.

Baselines

Naive reference points. These are the dense model and uniform SparseGPT 2:4 on everything. They bound accuracy from above and set the reference speedup. ARMOR reports a naive 2:4 layer speedup of 1.86x on Qwen 2.5-14B (ARMOR). We will re-measure on our hardware and not borrow that figure.

Strongest accuracy-recovery competitor. This is ARMOR, which wraps the 2:4 core in small block-diagonal matrices. It reports GPQA 39.51 against dense 38.84 on Qwen 2.5-32B, at a layer speedup of 1.57x. ARMOR repairs all weights uniformly at a 3–5% parameter overhead. Our method instead spends a comparable budget on a few heads. We run ARMOR with its published recipe on the same models, calibration data and GPU. Beating it means higher capability-suite accuracy at an equal or better measured end-to-end speedup. We have no reported GSM8K result on Lacuna for any 2:4-pruned model, so that comparison is new.

Sparse-plus-low-rank and layer-level baselines. 3BASiL-TM (2:4 plus a rank-64 term) is a second compensation competitor. MixGPT- and MSP-style layer-level dense allocation is the strongest prior way to spend a non-uniform budget, re-expressed as "keep the most sensitive layers dense" at the same speedup.

Ablations isolating the key ingredient. We keep the same number of dense heads, under the same kernel and the same latency, but choose them three other ways: per-head Fisher or Hessian trace on WikiText-2, per-head Wanda score mass, and random selection. If localization-chosen heads do not beat the Fisher-chosen ones, capability localization adds nothing. All methods share a tuning budget, and every number is reported at matched measured tokens per second.

Why not just…?

Why not just calibrate SparseGPT on capability data instead of generic text? This is the most serious threat. A calibration set mixing math, translation and multiple-choice text may let second-order compensation preserve those heads without any dense exceptions. We include it as a baseline, alone and combined with our method. If capability-mixed calibration alone closes most of the gap, the proposal reduces to "calibrate better", and we will report that. Our expectation is that compensation cannot fully undo forced zeros in heads where every weight matters, but this is an empirical question.

Why not just keep sensitive layers dense, as MixGPT and MSP do? Their U-shaped sensitivity curves are averages over a layer. The localization evidence says the critical units are 1–8% of heads scattered across layers (Token Alignment Heads, Llama See, Llama Do). A whole dense layer costs far more latency per unit of capability preserved. The matched-speedup comparison settles this directly.

Why not just apply a uniform repair like ARMOR? ARMOR spends its overhead everywhere and reports a speed cost of 1.57x versus 1.86x. If capability damage is concentrated, targeted density should buy more capability per unit of lost speed. If damage is diffuse, ARMOR will win. The diagnostic stage tells us which case we are in before the full comparison.

Decisive Checks

The first check is the restoration experiment described above. Restoring the localized heads must recover at least half of the uniform-2:4 GSM8K gap while costing no more than a few percent of measured speedup. Otherwise the project stops.

The second is the held-out capability test. We localize on four capabilities and evaluate on a fifth that was never used for selection, alongside WikiText-2 perplexity and the zero-shot suite used by Wanda and MixGPT. This separates real capability preservation from tuning to the test. If gains appear only on the localized capabilities, the method is a task-specific compressor and we will present it as such.

The third is the kernel overhead audit. We compare the split-GEMM layout against a single 2:4 GEMM at sequence lengths from short prompts to long-context decoding. This shows whether the dense exceptions keep the speed advantage that motivated 2:4 in the first place.