Introduction
A one-shot pruner for a language model gets a pretrained network, a small calibration corpus and no retraining. For each linear layer it sees the second-moment matrix of that layer's inputs, , and it must return a mask and new values. In this task the mask is fixed to the 2:4 semi-structured pattern: in every row, two of each four consecutive input weights are removed, which is what sparse tensor cores accelerate. The pattern is the same for every method; what a method controls is which weights go, what the survivors become, the order in which input channels are grouped (a permutation the kernel can absorb), and optionally lightweight components that run beside the sparse core: block-diagonal factors before and after it and a dense low-rank branch, capped at parameters per pruned linear, summed over the model.
The 2:4 constraint is what makes the problem hard. An unstructured pruner can drop the least important half of a row wherever it lies; a 2:4 pruner must drop two weights out of every four, even where all four matter. The field's answers, all of them represented among this task's baselines, come in families. Wanda [1], RIA and Pruner-Zero [2] design an importance score and remove the lowest-scoring weights without changing the rest, and GBLM-Pruner [3] and Wanda++ [4] bring gradients into that decision. SparseGPT [5] and Thanos [6] remove weights and update the survivors to compensate; ALPS [7] and FISTAPruner [8] solve the layer-wise reconstruction problem as an optimisation problem; SparseLLM [9] prunes more globally; SparseSwaps [10] refines a mask after the fact. A newer family, represented here by ARMOR [11], stops insisting that the layer be only sparse and spends a small parameter budget on dense factors around the sparse core. Those factors cost inference time, so the question becomes a trade: how much accuracy does a given amount of extra compute buy, and how should it be spent?
Our starting observation, from reading the baselines against the task's interface, was that none of them used the channel permutation or the low-rank branch that the interface allows. Our method combines both with an exact full-Hessian solver for the sparse core, all fitted under one objective, and most of the work was in finding out which parts of that combination actually pay.
Method
Our method, which we call RAP (remask, alternate, polish), replaces each pruned linear layer by
and chooses , the mask, , and to minimise one objective, the damped layer-wise output error against a target :
Apart from the choice of grouping and the score-based initial mask, every step below is either an exact minimiser of over some of the variables or a gradient step on it. The submitted file also contains code for block-diagonal factors before and after the core, but both of their budget shares are set to , so they are never created; the only component beside the core is the low-rank branch.
Blocks are solved in dataflow order against a drift-corrected target
The harness hands the whole decoder block to prune_block. We split its linears into stages that
follow the data flow (the query, key and value projections, then the attention output, then the
first MLP projections, then the second) and solve one stage at a time. After a stage is solved its
effective weights are written into a working copy of the block, and the statistics for the
next stage are re-collected from that partly pruned copy together with an unmodified copy run on
the same inputs. If is a layer's input in the partly pruned block and its input in the
unmodified one, the harness returns the cross moment ,
and we fit the dense layer's output from the drifted input:
which we solve row-wise by preconditioned conjugate gradients from . For the first stage the two copies are identical, so ; for later stages absorbs what the earlier pruned layers of the same block changed. If anything in the block path raises an exception, the block falls back to independent per-layer solves with .
def _prune_block(self, block, cfgs, ctx):
import copy
ref = copy.deepcopy(block)
res = {}
for stage in self._stages(list(ctx.names)):
if self.use_cross:
st = ctx.collect(block, x=ctx.inputs, names=stage,
pair=(ref, ctx.inputs))
else:
st = ctx.collect(block, x=ctx.inputs, names=stage)
for name in stage:
W = ref.get_submodule(name).weight.data.clone().float()
cross = st[name].get("H_cross") if self.use_cross else None
if cross is not None:
cross = cross.float()
out = self._solve(W, st[name]["H"].float(), cross,
int(cfgs[name]["prune_n"]),
int(cfgs[name]["prune_m"]), ctx.metas[name])
res[name] = out
lin = block.get_submodule(name)
lin.weight.data = self._effective(out, W).to(lin.weight.dtype)
st[name] = None
del st
del ref
return resThe per-layer solver: core, low-rank branch, alternation
For one layer, the solver builds the permutation once, solves the sparse core, and then alternates with the low-rank branch for five rounds before a final low-rank refit. The rank comes from a fixed budget, and , so on every layer large enough for the cap to bind, the branch has rank and uses the entire parameter cap.
def _solve(self, W, A, cross, prune_n, prune_m, meta):
m, n = W.shape
Hd = self._damped(A)
if cross is None:
T = W
else:
T = self._target(W, A, cross, Hd)
h = torch.diag(A).clamp(min=0)
perm = self._perm(T, h, prune_n, prune_m, meta)
bp, bq, r = self._budget(m, n)
C, mask = self._sparse(T, Hd, perm, prune_n, prune_m)
U = V = None
if r > 0:
try:
Lch = torch.linalg.cholesky(Hd)
except RuntimeError:
Lch = None
if Lch is not None:
for _ in range(self.alt_rounds):
Un, Vn = self._lowrank(T - C, Lch, r, meta)
if Un is None:
break
U, V = Un, Vn
C, mask = self._sparse(T - U @ V, Hd, perm, prune_n,
prune_m, C0=C)
if U is not None:
Un, Vn = self._lowrank(T - C, Lch, r, meta)
if Un is not None:
U, V = Un, VnPermutation. The 2:4 groups are cut in a channel order of our choosing. We sort channels by and deal them like cards, so group receives the channels ranked , , and : every group mixes one channel from each quarter of the activation-scale distribution. Channel permutations for N:M sparsity have been proposed before; ours is a cheap local search. We then refine the grouping by local search on a diagonal surrogate. With (proportional to the square of Wanda's activation-weighted magnitude score, applied to the target), the cost of a grouping is the sum over rows and groups of the two smallest scores in each group, the saliency that a 2:4 mask must remove. Each round pairs the groups at random, tries all sixteen single-channel swaps between the two groups of each pair, and applies the best one when it lowers the cost by more than . The number of rounds is .
def _perm(self, W, h, prune_n, prune_m, meta):
n = W.shape[1]
dev = W.device
order = torch.argsort(h, descending=True)
G = n // prune_m
ranks = torch.arange(n, device=dev).reshape(prune_m, G).t().reshape(-1)
perm = order[ranks].to(torch.int64)
if prune_m == 4 and prune_n == 2:
perm = self._perm_search(W, h, perm, meta)
return perm
def _perm_search(self, W, h, perm0, meta):
m, n = W.shape
dev = W.device
G = n // 4
if G < 2:
return perm0
rounds = int(max(6, min(40, 800_000_000 // max(m * n, 1))))
S = (W * W) * h.unsqueeze(0)
groups = perm0.reshape(G, 4).clone()
seed = 7919 + int(meta.get("seed", 0)) * 131 + m + n
gen = torch.Generator(device=dev).manual_seed(seed)
for _ in range(rounds):
Sv = S[:, groups.reshape(-1)].reshape(m, G, 4)
order = torch.randperm(G, device=dev, generator=gen)
if G % 2 == 1:
order = order[:-1]
g1, g2 = order[0::2], order[1::2]
A, B = Sv[:, g1, :], Sv[:, g2, :]
cur = (torch.topk(A, 2, dim=2, largest=False)[0].sum(2)
+ torch.topk(B, 2, dim=2, largest=False)[0].sum(2)).sum(0)Sparse core. Given a target (which is , or during alternation), the mask removes, in every permuted group, the two entries with the smallest . The survivors are then set to the exact minimiser of on that support, a positive-definite system restricted to the kept coordinates of each row, which we solve with Jacobi-preconditioned conjugate gradients (up to 40 iterations, relative tolerance ), warm-started from the previous core when there is one. Because the mask is chosen afresh from in every alternation round, the support itself moves as the low-rank branch takes over part of the layer.
Exact per-group mask-and-value search. A score-based mask is still a heuristic. With the current error and its gradient, the loss restricted to one group of one row, with everything else fixed, is with . There are only six admissible keep-pairs per group. For each, the pruned pair is forced to zero () and the kept pair is set to its joint optimum,
and the group takes the candidate with the lowest loss if it beats the current one by more than . This changes mask and values together, exactly, one group at a time. We process 32 groups at once for speed; because simultaneous updates of coupled groups can diverge, a chunk is applied only if its exact loss change is not positive (up to ), and otherwise its groups are applied one by one. One sweep is followed by another exact refit.
def _cd_candidates(self, Wg, Dg, gg, Hg):
m, gc, _ = Wg.shape
dev = Wg.device
pairs = torch.tensor(self._PAIRS, device=dev)
allidx = torch.arange(4, device=dev)
s = gg - torch.einsum("mgk,gkj->mgj", Dg, Hg)
HDc = torch.einsum("gkj,mgj->mgk", Hg, Dg)
best_loss = (Dg * HDc).sum(-1) + 2.0 * (Dg * s).sum(-1)
best_D = Dg.clone()
best_pi = torch.full((m, gc), -1, dtype=torch.int64, device=dev)
ridge = self.cd_ridge * torch.diagonal(
Hg, dim1=1, dim2=2).mean(dim=1).clamp(min=1e-12)
eye2 = torch.eye(2, device=dev, dtype=Hg.dtype)
for pi in range(6):
kidx = pairs[pi]
pidx = allidx[~torch.isin(allidx, kidx)]
Hkk = Hg[:, kidx][:, :, kidx] + ridge.reshape(-1, 1, 1) * eye2
Hkp = Hg[:, kidx][:, :, pidx]
Dp_fixed = -Wg[:, :, pidx]
rhs = -(s[:, :, kidx] + torch.einsum("mgp,gjp->mgj", Dp_fixed, Hkp))
Dk = torch.linalg.solve(
Hkk.unsqueeze(0).expand(m, -1, -1, -1).reshape(-1, 2, 2),
rhs.reshape(-1, 2, 1)).reshape(m, gc, 2)
Dfull = torch.zeros_like(Wg)
Dfull[:, :, kidx] = Dk
Dfull[:, :, pidx] = Dp_fixed
HD = torch.einsum("gkj,mgj->mgk", Hg, Dfull)
loss = (Dfull * HD).sum(-1) + 2.0 * (Dfull * s).sum(-1)
better = loss < best_loss - 1e-12
best_loss = torch.where(better, loss, best_loss)
best_D = torch.where(better.unsqueeze(-1), Dfull, best_D)
best_pi = torch.where(better, torch.full_like(best_pi, pi), best_pi)
return best_D, best_piLow-rank branch. Given the residual , the best rank- correction in the Hessian norm has a closed form. With the Cholesky factor ,
so is the rank- truncated SVD of , and . We compute it by a randomised range finder with eight extra columns and one power iteration. Before returning, and are rescaled so that each column of and the matching row of have equal norms, which leaves the product unchanged.
def _lowrank(self, R, Lch, r, meta):
m, n = R.shape
dev = R.device
q = min(r + 8, min(m, n))
gen = torch.Generator(device=dev).manual_seed(104729 + m * 31 + n)
RL = R @ Lch
Om = torch.randn(n, q, device=dev, dtype=R.dtype, generator=gen)
Y = RL @ Om
Q, _ = torch.linalg.qr(Y)
Y = RL.t() @ Q
Q2, _ = torch.linalg.qr(Y)
Y = RL @ Q2
Q, _ = torch.linalg.qr(Y)
B = Q.t() @ RL
try:
Ub, S, Vt = torch.linalg.svd(B, full_matrices=False)
except RuntimeError:
return None, None
U = (Q @ Ub[:, :r]) * S[:r].unsqueeze(0)
V = torch.linalg.solve_triangular(Lch.t(), Vt[:r].t(), upper=True).t()
return U.contiguous(), V.contiguous()A joint polish that never makes the loss worse
Alternation is block-coordinate descent: each block is solved exactly, but the coupled optimum of core values and low-rank factors is approached slowly. We finish by running Adam on (on the fixed support), and together, on the normalised objective , with a cosine-annealed learning rate of times the standard deviation of for the core and ten times that for the factors. The number of steps scales inversely with the work per step, . The loss is re-evaluated about forty times along the trajectory, and a snapshot replaces the best one only if its loss is strictly lower; the first snapshot is the pre-polish solution, so the polish cannot raise the measured layer loss. The polish runs whenever the layer has a low-rank branch.
with torch.no_grad():
D0 = eff(C, P, Q, U, V) - T
best_loss = float(((D0 @ Hd) * D0).sum()) / den
best = snap()
opt = torch.optim.Adam(params)
sched = torch.optim.lr_scheduler.CosineAnnealingLR(
opt, T_max=max(steps, 1))
with torch.enable_grad():
for s in range(steps):
opt.zero_grad()
D = eff(C, P, Q, U, V) - T
loss = ((D @ Hd) * D).sum() / den
if not bool(torch.isfinite(loss.detach())):
break
loss.backward()
opt.step()
sched.step()
if (s + 1) % max(25, steps // 40) == 0 or s == steps - 1:
with torch.no_grad():
Dd = eff(C, P, Q, U, V) - T
cur = float(((Dd @ Hd) * Dd).sum()) / den
if math.isfinite(cur) and cur < best_loss:
best_loss = cur
best = snap()
opt.zero_grad(set_to_none=True)
del opt, sched
Cc, Pc, Qc, Uc, Vc = best
return Cc.masked_fill(mask, 0.0), Pc, Qc, Uc, VcThe configuration has no per-model constants. The rank, the number of permutation-search rounds and the number of polish steps are functions of the layer's shape only, and the same code runs on every setting.
Results
| Method | ① | ② | ③ | ④ | ⑤ | ⑥ | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WikiText-2 perplexity ↓ | C4 perplexity ↓ | 2:4 speedup kept ↑ | Zero-shot accuracy, 7 tasks ↑ | 2:4 speedup kept ↑ | MMLU accuracy ↑ | GSM8K accuracy ↑ | 2:4 speedup kept ↑ | WikiText-2 perplexity ↓ | C4 perplexity ↓ | 2:4 speedup kept ↑ | Zero-shot accuracy, 7 tasks ↑ | 2:4 speedup kept ↑ | MMLU accuracy ↑ | GSM8K accuracy ↑ | 2:4 speedup kept ↑ | |
| Muse Wonder Full | 10.32 | 14.64 | 0.799 | 56.90 | 0.799 | 48.55 | 11.22 | 0.799 | 9.285 | 14.37 | 0.813 | 60.27 | 0.813 | 63.55 | 45.34 | 0.813 |
| Wanda | 23.16 | 34.70 | 1.000 | 46.48 | 1.000 | 29.03 | 2.426 | 1.000 | 13.81 | 21.52 | 1.000 | 54.48 | 1.000 | 54.09 | 24.49 | 1.000 |
| RIA | 22.37 | 32.89 | 1.000 | 47.04 | 1.000 | 28.66 | 2.047 | 1.000 | 13.31 | 21.51 | 1.000 | 53.83 | 1.000 | 56.32 | 24.18 | 1.000 |
| SparseGPT | 16.11 | 22.23 | 1.000 | 52.41 | 1.000 | 36.21 | 4.700 | 1.000 | 11.93 | 17.87 | 1.000 | 55.28 | 1.000 | 53.72 | 35.48 | 1.000 |
| ALPS | 14.43 | 19.27 | 1.000 | 53.10 | 1.000 | 39.18 | 5.989 | 1.000 | 10.90 | 16.29 | 1.000 | 57.81 | 1.000 | 55.02 | 31.77 | 1.000 |
| SparseSwaps | 20.02 | 27.84 | 1.000 | 50.19 | 1.000 | 29.65 | 3.260 | 1.000 | 14.77 | 21.84 | 1.000 | 55.12 | 1.000 | 50.05 | 28.05 | 1.000 |
| Thanos | 16.11 | 22.47 | 1.000 | 51.24 | 1.000 | 31.63 | 4.094 | 1.000 | 12.26 | 18.22 | 1.000 | 55.98 | 1.000 | 52.73 | 29.04 | 1.000 |
| Wisp | 21.34 | 31.14 | 1.000 | 47.27 | 1.000 | 30.23 | 2.350 | 1.000 | 13.61 | 20.95 | 1.000 | 52.95 | 1.000 | 54.71 | 22.59 | 1.000 |
| Whisper | 14.31 | 19.32 | 1.000 | 54.13 | 1.000 | 36.11 | 3.942 | 1.000 | 11.44 | 17.21 | 1.000 | 55.67 | 1.000 | 54.11 | 33.51 | 1.000 |
| GBLM-Pruner | 22.58 | 34.38 | 1.000 | 47.07 | 1.000 | 28.17 | 2.350 | 1.000 | 13.82 | 21.58 | 1.000 | 54.77 | 1.000 | 54.04 | 23.20 | 1.000 |
| Pruner-Zero | 22.87 | 34.99 | 1.000 | 47.53 | 1.000 | 28.06 | 1.820 | 1.000 | 12.98 | 20.74 | 1.000 | 54.85 | 1.000 | 53.37 | 16.38 | 1.000 |
| Wanda++ RGS | 24.09 | 35.84 | 1.000 | 46.66 | 1.000 | 28.78 | 2.123 | 1.000 | 14.52 | 23.13 | 1.000 | 54.70 | 1.000 | 53.06 | 26.08 | 1.000 |
| FISTAPruner | 16.00 | 20.74 | 1.000 | 50.45 | 1.000 | 35.93 | 5.914 | 1.000 | 12.15 | 17.70 | 1.000 | 54.44 | 1.000 | 50.82 | 26.38 | 1.000 |
| ARMOR | 11.31 | 17.13 | 0.751 | 56.03 | 0.751 | 46.40 | 7.582 | 0.751 | 9.956 | 15.88 | 0.816 | 60.36 | 0.816 | 66.46 | 47.76 | 0.816 |
| NoWag-P | 23.36 | 34.99 | 1.000 | 47.84 | 1.000 | 27.55 | 1.971 | 1.000 | 13.89 | 22.16 | 1.000 | 53.78 | 1.000 | 54.21 | 25.63 | 1.000 |
| SparseLLM | 15.68 | 21.60 | 1.000 | 52.19 | 1.000 | 34.17 | 4.246 | 1.000 | 12.40 | 18.24 | 1.000 | 54.84 | 1.000 | 51.92 | 34.19 | 1.000 |
| Wanda++ | 15.50 | 22.51 | 1.000 | 49.34 | 1.000 | 34.42 | 3.412 | 1.000 | 13.92 | 21.63 | 1.000 | 53.87 | 1.000 | 53.93 | 25.78 | 1.000 |
- ① Llama-3.1-8B · 2:4 · WikiText-2 + C4 perplexity
- ② Llama-3.1-8B · 2:4 · 7-task zero-shot
- ③ Llama-3.1-8B · 2:4 · MMLU + GSM8K
- ④ Qwen3-8B-Base · 2:4 · WikiText-2 + C4 perplexity
- ⑤ Qwen3-8B-Base · 2:4 · 7-task zero-shot
- ⑥ Qwen3-8B-Base · 2:4 · MMLU + GSM8K
On every quality metric of Llama-3.1-8B · 2:4 · WikiText-2 + C4 perplexity, Llama-3.1-8B · 2:4 · 7-task zero-shot, Llama-3.1-8B · 2:4 · MMLU + GSM8K and Qwen3-8B · 2:4 · WikiText-2 + C4 perplexity, RAP is ahead of every published baseline. On Llama-3.1-8B · 2:4 · WikiText-2 + C4 perplexity its perplexity is 10.32 against 11.31 for the best baseline, ARMOR [11], and its C4 perplexity 14.64 against 17.13. On Llama-3.1-8B · 2:4 · 7-task zero-shot its zero-shot accuracy is 56.90 against 56.03. On Llama-3.1-8B · 2:4 · MMLU + GSM8K its MMLU accuracy is 48.55 against 46.40, and its GSM8K accuracy 11.22 against 7.582 (ARMOR [11]), the largest relative margin in the table; the best pure 2:4 baseline there, ALPS, reaches 39.18 and 5.989. On Qwen3-8B · 2:4 · WikiText-2 + C4 perplexity the perplexities are 9.285 and 14.37, against 9.956 and 15.88.
On Qwen3-8B · 2:4 · 7-task zero-shot and Qwen3-8B · 2:4 · MMLU + GSM8K the order changes. ARMOR [11] is narrowly ahead on zero-shot accuracy, 60.36 against our 60.27, and clearly ahead on Qwen3-8B · 2:4 · MMLU + GSM8K, with 66.46 MMLU and 47.76 GSM8K accuracy against our 63.55 and 45.34. Against every other baseline RAP stays ahead there too: the next best on Qwen3-8B · 2:4 · MMLU + GSM8K reach 56.32 MMLU (RIA) and 35.48 GSM8K (SparseGPT).
The comparison with ARMOR is the one that matters, because it is the only baseline that, like RAP, spends extra compute beside the sparse core; every other baseline is pure 2:4 and keeps a speed_keep of 1.000. RAP keeps 0.799 on Llama-3.1-8B · 2:4 · WikiText-2 + C4 perplexity, Llama-3.1-8B · 2:4 · 7-task zero-shot and Llama-3.1-8B · 2:4 · MMLU + GSM8K, more than ARMOR's 0.751, while being ahead of it on every quality metric there. On Qwen3-8B · 2:4 · WikiText-2 + C4 perplexity, Qwen3-8B · 2:4 · 7-task zero-shot and Qwen3-8B · 2:4 · MMLU + GSM8K it keeps 0.813, slightly less than ARMOR's 0.816, and is ahead on Qwen3-8B · 2:4 · WikiText-2 + C4 perplexity and behind on Qwen3-8B · 2:4 · 7-task zero-shot and Qwen3-8B · 2:4 · MMLU + GSM8K. So RAP does not dominate ARMOR: on Llama-3.1-8B · 2:4 · WikiText-2 + C4 perplexity, Llama-3.1-8B · 2:4 · 7-task zero-shot and Llama-3.1-8B · 2:4 · MMLU + GSM8K it gets more accuracy for less extra compute, on Qwen3-8B · 2:4 · 7-task zero-shot and Qwen3-8B · 2:4 · MMLU + GSM8K ARMOR's factorisation buys more downstream accuracy for a similar cost, and against the pure 2:4 baselines RAP's accuracy is bought with about a fifth of the speedup.
How we got here
The final method is the seventeenth version of the file. Most of what we tried was removed again, and the removals explain the design. All figures in this section are our own development measurements, taken with our own reproduction of the pipeline on small development models and a perplexity of our choosing; they are not the task's evaluation, and they are only comparable within this section.
- Exact refits first. Layer-wise experiments showed that refitting the survivors exactly beat SparseGPT's sequential update, that dealing channels by activation scale helped a little, and that sorting channels by scale into consecutive groups was harmful. A first version (dealt permutation, score-based mask, exact refit) reached a perplexity of 52.23 on our smallest development model, against 59.28 for SparseGPT and 49.06 for ALPS in our runs.
- The exact group search needed guarding. Our first batched version of the six-pair search diverged on poorly conditioned layers, where simultaneous updates of coupled groups amplify each other. Double-precision candidates, the ridge and the per-chunk acceptance test with a sequential fallback fixed it, and it then cut the layer-wise error by roughly 8 to 10% over the refit alone. With the swap search on the grouping and this group search, the solver without any extra components reached 45.65, already ahead of the best baseline we had run.
- Rotations did not help; low-rank did, and alternation more. Principal-component rotations in fixed blocks before or after the core gave no layer-wise gain once the refit was exact, while a low-rank residual did. Alternating sparse and low-rank solves beat fitting them one after the other, and the second version, with the branch at about 0.12 of the layer's FLOPs, reached 35.06.
- The cross target, not the fresh statistics, carried the block-sequential gain. Re-collecting statistics from the partly pruned block alone made things slightly worse (35.56); regressing the dense output on the drifted input improved them (33.47). Extending the target to undo drift from earlier blocks too, by regressing on the unpruned model's inputs, was worse (37.03), and so was a per-layer rank allocation by spectral water-filling at matched cost. Stronger damping or shrinkage of the refit made no difference, and a block-level fine-tuning stage was gated to a no-op every time by a held-out check, so we dropped it.
- ARMOR's edge was optimisation, not its objective. At the maximum extra budget ARMOR reached 30.48 in our runs, ahead of us. When we measured its layers under the full Hessian, their errors were about half of ours, and a short joint Adam run on our own solution under the full Hessian, with extra parameters beyond the cap, brought the errors of some of our layers below its mean. A first version with a shortened polish tied ARMOR on the smallest model but lost to our unpolished version on a larger one (17.357 against 16.833); a floor of 2000 steps brought it back level (16.846). With the budget then split among the components by fixed parameter shares, the polished version reached 29.63 at 0.25 of the layer's FLOPs, ahead of ARMOR's 30.48.
- The block-diagonal factors did not pay for their rank. Factors after the core looked like a large layer-wise win, but integrated into the full model they lost. A ladder over factor widths at a matched budget, with the polish held fixed, found that spending the whole budget on rank won on every layer we measured: the earlier factor gains had come from the polish. Rank only plus an always-on polish gave 29.481 and 16.517 on our two main development models, better than our previous submission (29.631 and 16.725), and faster on the smaller one.
- Re-masking during alternation substitutes for long polishing. Layer-wise, three extra alternation rounds that re-chose the mask nearly matched a 4000-step polish at a fraction of the time, while extra rounds with the mask held fixed did not. Raising the rounds from two to five gave 28.878 and 16.145; eight rounds gave 29.137 and 16.221 and were rejected. The five-round gain replicated on a second calibration sample (29.209 against 29.715). This is the submitted version.
- Smaller dead ends. More permutation-search rounds made the full model worse (30.306 against 29.631), so the surrogate can be over-optimised; mask moves interleaved with the Adam polish hurt; Fisher-weighted objectives helped only at a lower extra budget on our smallest model and hurt elsewhere; halving the polish floor cut pruning time by 15% but cost 0.213 perplexity (16.358 against 16.145) and was not adopted.
Limitations
- ARMOR remains ahead on Qwen3-8B · 2:4 · 7-task zero-shot and Qwen3-8B · 2:4 · MMLU + GSM8K. On those settings RAP is behind ARMOR [11] on every quality metric, by a wide margin on Qwen3-8B · 2:4 · MMLU + GSM8K, so the claim that full-Hessian rank-plus-polish beats a learned factorisation holds for Llama-3.1-8B · 2:4 · WikiText-2 + C4 perplexity, Llama-3.1-8B · 2:4 · 7-task zero-shot, Llama-3.1-8B · 2:4 · MMLU + GSM8K and Qwen3-8B · 2:4 · WikiText-2 + C4 perplexity only. Our development evidence for dropping the block-diagonal factors came from layer-wise ladders and full-model comparisons on our development models, and the drop may not be right for every layer shape.
- The accuracy is paid for in speed. Every pure 2:4 baseline keeps a speed_keep of 1.000; RAP keeps 0.799 and 0.813. The rank is set by a fixed budget and nearly always hits the cap; we did not search the trade-off between rank and speed on large models, and a user who needs the full 2:4 speedup gets none of RAP's low-rank gain. The solver without extras was strong in our development runs, but it is not what we submitted and its standing here is unmeasured.
- Pruning is slow. The always-on polish, at least 2000 Adam steps on every layer, dominates the pruning time. On the largest development model on which we ran the final method, pruning took roughly four times as long as with our earlier version, which did not polish layers of that width. The method stays one-shot and training-free, but it is far from the seconds per layer of score-based methods.
- The objective is layer-wise and fitted to calibration data. Every step minimises a layer's output error on the calibration windows. We found no benefit from shrinking the Hessian or the refit, but an exact full-Hessian fit can still overfit the calibration distribution, and the drift correction stops at the block boundary.
- The submitted file describes more than it runs. Its docstring and code still contain the block-diagonal factors, a size threshold for engaging them, and an unused rank helper; with the shares at zero none of this executes. The method is what runs, as described above.
- Development evidence is narrow. Our development comparisons used a small number of development models and mostly one calibration sample, and several of the decisions above rest on perplexity differences of a few tenths.
References
- Mingjie Sun, Zhuang Liu, Anna Bair et al. (2024). A Simple and Effective Pruning Approach for Large Language Models. ICLR.
- Peijie Dong, Lujun Li, Zhenheng Tang et al. (2024). Pruner-Zero: Evolving Symbolic Pruning Metric from scratch for Large Language Models. ICML.
- Rocktim Jyoti Das, Mukul Ranjan, Mingjie Sun et al. (2023). Beyond Size: How Gradients Shape Pruning Decisions in Large Language Models.
- Yifan Yang, Kai Zhen, Bhavana Ganesh et al. (2025). Wanda++: Pruning Large Language Models via Regional Gradients. ACL.
- Elias Frantar, Dan Alistarh (2023). SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot. ICML.
- Ivan Ilin, Peter Richtarik (2025). Thanos: A Block-wise Pruning Algorithm for Efficient Large Language Model Compression.
- Xiang Meng, Kayhan Behdin, Haoyue Wang et al. (2024). ALPS: Improved Optimization for Highly Sparse One-Shot Pruning for Large Language Models. NeurIPS.
- Pengxiang Zhao, Hanyu Hu, Ping Li et al. (2024). A Convex-optimization-based Layer-wise Post-training Pruner for Large Language Models.
- Guangji Bai, Yijiang Li, Chen Ling et al. (2024). SparseLLM: Towards Global Pruning for Pre-trained Language Models. NeurIPS.
- Max Zimmer, Christophe Roux, Moritz Wagner et al. (2025). SparseSwaps: Tractable LLM Pruning Mask Refinement at Scale.
- Lawrence Liu, Alexander Liu, Mengdi Wang et al. (2026). ARMOR: High-Performance Semi-Structured Pruning via Adaptive Matrix Factorization. ICLR.
- Linghao Kong, Inimai Subramanian, Micah Adler et al. (2026). The Sparsity Whisperer. NeurIPS.
- Lawrence Liu, Inesh Chakrabarti, Yixiao Li et al. (2025). NoWag: A Unified Framework for Shape Preserving Compression of Large Language Models.