sparsifying neural networks
2026-10-29

Nick Cammarata's post Neural Networks Are Already Clean has received a lot of attention recently, and, although I'm skeptical of how much significance he attributes to many of the claims, there still seems to be a lot there that's worth building on. One piece which particularly caught my attention was the claim that ablating weak activations in an image classifier doesn't cause much damage, even when up to 75% of activations are ablated. I wanted to test for myself how well this worked in an LLM, where it seems plausible that subtleties could matter much more.

Overall, I found that the LLMs tested suffer a much larger drop in performance than the image models of op. cit., but that appropriately finetuning on the original can mostly (and in some cases entirely) rectify it, producing a model with similar performance to the original even with weak activations ablated. This suggests that, even if current LLMs do care somewhat about weak activations, they're not so far from ones that don't, which would be a substantial win for interpretability. There's definitely a lot more work to be done in this direction (at the very least working with bigger models and with more clever training regimes and ablation methods than what I've used here), so I'm curious to see what people can do with this.

The basic idea was to first see how much the ablation reduced performance on GSM8K and MMLU (substantially, as it turns out) then finetune the models on the originals while slowly turning up the ablation. I ended up having to work with some relatively small models – Qwen3 0.6B, 1.7B, and 4B – because of my limited resources. However, it seems very likely that the results here scale up to larger models.

Setup

For each MLP neuron, we replace each input a with

a′ = a + c(p) · (μ − a),  c(p) = min(1, max(0, 20 · f · (0.8 − p))),
where p is the proportion of inputs weaker than it, f is a parameter which increases from 0 to 1 during the training, and μ is a running weighted mean of all inputs to be ablated on the given neuron. (Note that mean-filling rather than zeroing seems to be what Cammarata does.) Thus at f=1 we have the lowest 75% of neurons fully ablated, with the next 5% partially ablated:

How much of each entry is replaced, by percentile
Drag the slider to change the strength f; training raises it from 0 to 1
1.00

We then train each model by distillation on the original for 100M tokens on 90% FineWeb-Edu and 10% the original's responses to UltraChat, with f rising from 0 to 1 for the first 60M. (The exact schedule for f was designed to linearly increase the KL of the ablated original from the original.)

Training curves of the six final runs
ablation-trained control f reaches 1 (60M tokens)

Results

On GSM8K, 0.6B was hurt the most by ablation, while 4B was hurt the least. However, on MMLU the opposite occurred, suggesting that increasing model size is not enough to make ablation free. In all cases, though, the models recovered substantially by undergoing the training method described above.

Training recovers much of the loss on GSM8K, especially for smaller models
GSM8K accuracy on 1,519 problems, % correct
ablation off ablation on original, ablation off above each line: change when the ablation is switched on, points
For MMLU, training recovers most of the loss at 4B
MMLU accuracy on 2,000 questions, % correct; standard error of a difference ≈ 1.1 points
ablation off ablation on original, ablation off above each line: change when the ablation is switched on, points
MMLU, 2,000 questions, scored by the probability of the answer letter

Curiously, the trained ablated model outperforms the original and control 0.6B on MMLU; this seems like a fluke, since 0.6B's performance here is generally pretty poor, with high variance.

Cross-entropy on web text recovered completely, while the KL from the original did not quite recover. This sugggests that, though the specific function implemented by the original model is difficult for an ablated model to implement, the actual function we're interested in – the training distribution – can be represented just as well either way.

ablation off ablation on ablation-trained
KL and ΔCE in nats per token against the original with the ablation off, on 256 held-out FineWeb-Edu sequences

Because of my limited compute budget, I couldn't run as many tests as I would have liked, nor run tests with realistically-sized models, so the results here can't really be regarded as conclusive. They are nonetheless indicative of something interesting: for practical purposes, it seems to be possible to replace existing models with sparse ones. I suspect that with better methods and more compute this can be pushed much further than I've pushed it here, to create capable models with very few non-ablated inputs per neuron. Such models should be much more susceptible to the type of inquiry in "Neural Networks Are Already Clean", hence much more interpretable.