How we test that a mask actually works
A higher score is not enough. I want to know how many items moved, whether any of the old wins were lost, whether a second and third training seed do the same thing, and whether the deleted weights are a shared core or a random scatter.
All numbers in this post are from our runs, November 2026, unless I say they belong to Lu et al.
The test
ToolAlpaca, 97 held-out items, greedy decoding, exact match with the scorer from the SDFT authors' eval_tooluse.py (pinned commit d775732 of idanshen/Self-Distillation). The same 97 items, the same scorer, for the base model and for the masked model. Training used 4,046 examples, held out from this test.
The base of both Qwen3.5-9B and Qwen3.8-27B scored 42/97 (exact match 42/97 ≈ 0.433).
The 9B scores, three seeds
| Run | Mask score | Gained | Lost | Both right | Both wrong |
|---|---|---|---|---|---|
| Seed 1 (seed=0) | 69/97 | 27 | 0 | 42 | 28 |
| Seed 2 (seed=2) | 71/97 | 30 | 1 | 41 | 25 |
| Seed 3 (seed=3) | 68/97 | 26 | 0 | 42 | 29 |
The mean is
(69 + 71 + 68) / 3 = 208 / 3 = 69.33
The sample standard deviation is
s = √( ((69 − 69.33)² + (71 − 69.33)² + (68 − 69.33)²) / 2 ) = 1.53
So we report 69.33 ± 1.53 out of 97. Every seed is well above the 42/97 base, and every seed is also above the 27B mask at 65/97.
McNemar, written out
The right test for "did this mask change the outcomes?" is a paired one. For each item, the base is right or wrong, and the mask is right or wrong. The items that stay right or stay wrong do not tell us about a change. The discordant pairs do: gained (base wrong, mask right) and lost (base right, mask wrong).
Under the null that a discordant item is equally likely to go either way, the number of gains is binomial with n = gained + lost and p = 1/2. The exact two-sided p-value is twice the probability of a result at least as lopsided as the one we saw.
Seed 1: 27 gained, 0 lost. Then n = 27 and
p = 2 · 2⁻²⁷ = 2⁻²⁶ ≈ 1.49 × 10⁻⁸
Seed 2: 30 gained, 1 lost. Then n = 31 and
p = 2 · (C(31,30) + C(31,31)) / 2³¹ = 64 / 2³¹ = 2⁻²⁵ ≈ 2.98 × 10⁻⁸
Seed 3: 26 gained, 0 lost. Then
p = 2 · 2⁻²⁶ = 2⁻²⁵ ≈ 2.98 × 10⁻⁸
Each 9B seed is at p ≤ 3 × 10⁻⁸. That is the "each exact McNemar p ≤ 3 × 10⁻⁸" line, with the arithmetic shown.
The preferred 27B mask (run 1) went 29 gained, 6 lost, for 65/97, with exact two-sided p ≈ 1.17 × 10⁻⁴. Run 2 scored the same 65/97 with the same 29/6 split, but deleted more weights (34,504,271 vs 28,730,353) over 400 steps instead of 272, so run 1 is the one we keep.
Do the seeds delete the same weights?
If each seed were deleting a random 0.66% of gate_proj, the overlap would be tiny. For independent masks the expected size of the triple intersection is the product of the three sparsities times the number of weights:
E[|A ∩ B ∩ C|] = p₁ p₂ p₃ N
with N = 1,610,612,736 and the measured sparsities 0.006645, 0.006799, 0.006718. That product is 489 weights.
We measured 777,898 weights deleted by all three seeds. That is 777,898 / 489 ≈ 1,591 times the chance value, in line with "about 1,600 times more." Pairwise, the seeds overlap about 13 times as much as chance.
That is one of the additions I will claim as ours: a three-seed ToolAlpaca result on Qwen3.5-9B, with the overlap analysis, and a direct comparison to a 27B mask trained the same way.
What I am not claiming yet
A 4-bit test on a Mac, and a stacking test that unions two skill masks, were the other two results I wanted before talking about this as a finished finding. Both are now in, with real scores, in the next post. I also have a 27B 4-bit forgetting check, reported there and in the spotlight: four general-knowledge tasks drop by a mean of 0.76 points on a 34% subset.
The 9B masks and the eval code are public: masks on Hugging Face (https://huggingface.co/austindixson/skill-cartridges) and code on GitHub (https://github.com/austindixson/skill-cartridges).
Previous: How to train a mask. Next: Stacking cartridges and 4-bit on a Mac.
Project: Skill cartridges · Tags: Deletion masks Evaluation