A backdoored model behaves normally on ordinary inputs but flips to an attacker-chosen output whenever a specific trigger appears — a pixel patch, a rare character, a frequency pattern. The standard cure is surgery: prune away the neurons that carry the malicious behavior. But pruning defenses have a blind spot that the model-compression literature has already mapped in detail. When we compress a network by removing the same fraction of weights from every layer, accuracy collapses at high sparsity, because errors introduced in early layers compound exponentially through the rest of the network. The compression community's answer is non-uniform sparsity allocation: keep sensitive layers dense, prune redundant ones hard, with the budget distributed by principled schedules.
This proposal argues that backdoor defense and non-uniform sparsity allocation are the same problem studied by two communities that don't talk to each other, and that neither has the full answer. Backdoor defenses prune without any model of layer-wise error propagation, so they either under-prune (leaving the backdoor alive) or over-prune somewhere and destroy clean accuracy. Compression schedules allocate sparsity purely to minimize clean reconstruction error — which, perversely, means they systematically protect the early layers where some backdoors hide. The core claim: a layer-wise sparsity schedule that jointly models clean sensitivity and per-layer backdoor concentration can excise backdoors more thoroughly than global-threshold defenses at equal clean accuracy, especially under high compression and tiny clean-data budgets — and the places where this fails reveal a fundamental tension worth characterizing rather than hiding.
Core Claim
Pruning-based backdoor defenses — Fine-Pruning, which iteratively removes the neurons least active on clean data; RNP, which unlearns clean features and watches which neurons get recruited back; and FMP, which prunes feature maps whose hallucinated inputs trigger the target label — all decide which units to remove with per-unit scores, but decide how much to remove per layer with global thresholds or a single global count. Meanwhile, the non-uniform pruning literature gives us exactly the missing piece: Huang et al.'s ATP prove that a layer's pruning error raises the error floor of every downstream layer, so sparsity should follow a monotonically increasing progression from dense early layers to sparse late ones, and DLP derives the same picture statistically, using the median of weight-magnitude-times-activation-norm as a robust redundancy signal per layer.
The collision is the interesting part. ATP's math says early layers are sacred. But backdoor evidence says shallow layers can be exactly where the trigger recognizer lives: SPD deliberately plants a shallow pixel-domain decoy to shield a deep frequency-domain backdoor, and PURE finds hijacked attention heads ("bored heads" with abnormally low attention variance on clean data) concentrated in specific layers of pre-trained language models. A defender who adopts a clean-error-optimal schedule leaves shallow backdoors untouched; a defender who hammers the backdoor-bearing early layers triggers the very reconstruction-error explosion ATP warns about. No existing work formulates or resolves this trade-off. That formulation is the contribution.
Research Program
The proposal has three parts: a measurement study, a defense built on it, and an adversarial stress test.
First, backdoor cartography. For a poisoned model, estimate a per-layer backdoor concentration score $b_i \in [0,1]$ using signals that all run on a small clean sample (1% or less of training data, matching the scarcity regime where RNP and IMS operate): dormant-neuron activation statistics from Fine-Pruning, low-variance attention heads from PURE, and feature-map reversal from FMP. In parallel, estimate each layer's clean sensitivity $c_i(s_i)$ — the reconstruction error the layer contributes at sparsity $s_i$ — using the quadratic error bounds of ATP and DLP's median-based redundancy profile DLP. The scientific question this answers: are $b_i$ and clean sensitivity correlated, anti-correlated, or orthogonal across attacks and architectures? If backdoors reliably hide in error-critical early layers, schedule-based defense has a fundamental limit — a finding worth publishing on its own.
Second, joint allocation. Given a global sparsity budget $S$, choose the layer-wise vector $s = (s_1, \dots, s_L)$ by solving
$$ \min_{s} \; \sum_{i=1}^{L} c_i(s_i) \; - \; \lambda \sum_{i=1}^{L} b_i \, s_i \qquad \text{subject to} \quad \frac{1}{L}\sum_{i=1}^{L} s_i = S, $$
where $\lambda$ trades clean-error protection against backdoor excision: layers with high backdoor evidence get pushed toward higher sparsity even when they are positionally sensitive, and the clean-error term then redistributes the remaining budget so the whole network stays within a controlled reconstruction bound. Within each layer, units are ranked by the union of the backdoor-evidence signals and the Wanda-style magnitude-times-activation score used by DLP. This is a one-shot, post-training procedure — no bi-level optimization, no supernet search — followed by the same brief clean fine-tuning every baseline uses. The allocation is also interpretable in a way learned masks are not: it outputs a defensible story about why each layer got its budget.
Third, adversarial stress. An attacker who knows the defense can try to co-locate backdoor and clean features in error-critical layers — Fine-Pruning already demonstrated a pruning-aware attack of this shape, and Dormant Neural Trojans trains perturbations to align with high-magnitude weights precisely to survive magnitude pruning. We adapt both against the joint schedule. If the attacker can force the backdoor into layers the error bound protects, the honest conclusion is a characterization of when schedule-based excision is possible at all — which directly sharpens the open problem Gap 2 identifies.
Baselines
The do-nothing reference point is the undefended poisoned model, which on the BackdoorBench attack suite sits at an attack success rate near the ceiling: RNP reports an average pre-defense ASR of 96.34% on CIFAR-10, and SPD reaches 100% on ImageNet-12. Any defense must first crush this while keeping clean accuracy intact.
The classic competitor is Fine-Pruning: rank neurons by average activation on clean data, prune the most dormant, fine-tune. It is the strongest simple pruning defense and the direct ancestor of this proposal, but it uses no layer-wise budget; on its own traffic-sign evaluation it leaves residual ASR around 30%, and no reported result found on Lacuna for its CIFAR-10 ASR. It will be run from the BackdoorBench codebase with identical attacks, data splits, clean-data budget, and fine-tuning epochs as our method.
The strongest recent pruning defenses are RNP (average ASR 96.34% reduced to 5.03% on CIFAR-10 with under a 2% clean-accuracy drop, using at most 1% clean data) and FMP (CIFAR-10 average ASR of 2.86% and robust accuracy of 87.40%, versus 68% residual ASR for some baselines it compares against). FMP's 2.86% is the best CIFAR-10 number in the file and is the number to beat or match. Both will be re-run under our exact protocol; both have documented soft spots — RNP degrades on compact architectures like EfficientNet-B0 and at poisoning rates below 1%, and FMP's global count of pruned maps trades clean accuracy against ASR with no layer structure — which is where the joint schedule should win. BackdoorBench itself supplies the evaluation protocol (clean accuracy, ASR, and robust accuracy — whether poisoned inputs return to their true labels) and its own finding that defenses often suppress ASR without restoring true labels gives RA equal standing with ASR here.
The most conceptually dangerous baseline is IMS, which learns invertible pruning masks by bi-level optimization and works down to 2 clean samples per class. It is the closest prior work: it already removes backdoor weights non-uniformly, just via continuous optimization instead of an explicit layer-wise budget with error bounds. It will be run head-to-head at matched clean-data budgets. Beating IMS means matching its ASR/RA while adding what it lacks: a guaranteed global compression ratio (IMS does not target one), a clean-reconstruction bound from the ATP-style error model, one-shot cost instead of nested optimization, and an interpretable allocation. The key ablation isolates the proposal's central ingredient by running the same pipeline with the backdoor-evidence term removed (pure ATP/DLP clean-optimal allocation) and with the clean-error term removed (backdoor-evidence-only hard pruning). If the joint version does not beat both ablations somewhere — high sparsity, low poisoning rate, compact architecture — the core claim is wrong and the ablations will show which single view was sufficient.
Why not just…?
Why not just prune uniformly and fine-tune, like Fine-Pruning? Because the two failure modes this proposal targets are exactly the documented ones: Fine-Pruning leaves ~30% ASR on its harder traffic-sign task, and BackdoorBench shows pruning defenses frequently fail to restore true labels and break on architectures like EfficientNet-B3. Uniform budgets also cannot operate at the high-sparsity point where this proposal aims: ATP reports that at 70% sparsity on LLaMA2-7B, uniform pruning is 52.10 perplexity points worse than a non-uniform schedule, and DLP documents the sparsity wall above 50%. A defense that needs 70% removal to reach dormant neurons cannot get there uniformly.
Why not just fine-tune on clean data or unlearn, without touching the structure? Because backdoor neurons are dormant on clean inputs and receive near-zero gradients, which Fine-Pruning identified as the core reason plain fine-tuning leaves Trojans intact; PURE shows vanilla and maximum-entropy fine-tuning underperform structural pruning on pre-trained language models, and IMS shows fine-tuning can suppress the wrong label without recovering the right one. The joint-allocation ablation that removes only the backdoor term but keeps pruning will quantify how much of the effect is structural versus the fine-tuning everyone shares.
Why not just learn the mask end-to-end, like IMS? This is the real threat, and I won't argue it away. If IMS matches our ASR and RA at the same clean-data budget on the same attacks, the contribution narrows to the compression guarantee, the error bound, and interpretability — real but smaller. The head-to-head experiment is designed to settle it, and the decisive regimes are the ones IMS was not built for: a fixed global sparsity target at 70–80%, and the adversarial stress test, where a learned mask has no model of why a layer is safe to strip and nothing to push back against an attacker who relocates the backdoor into error-critical layers. If IMS wins everywhere, that is the paper's honest negative result about analytical schedules.
Why not just clamp or quantize the activations instead of pruning weights? Because the compression literature shows activation outliers in the first and last layers are load-bearing for legitimate reasoning, so naive clamping damages the model, and the backdoor literature shows quantization creates rather than cures vulnerabilities: ACL plants backdoors that stay dormant in FP32 and fire at up to 97.69% jailbreak success after 4-bit quantization, and LAC had to invent layer-wise activation correction precisely because quantization-conditioned backdoors survive naive compression. Post-hoc numeric tricks are not a substitute for removing the weights that encode the trigger.
Proposed Experiments
The measurement study uses the BackdoorBench codebase to poison PreAct-ResNet18 on CIFAR-10 and GTSRB with its standard attack suite (BadNets, blended, and related triggers, plus sample-specific triggers from the ISSBA codebase), and adds a Vision Transformer and EfficientNet-B0, the compact architecture where RNP already struggles. For the language side, a pre-trained transformer is poisoned on SST-2, IMDB, and Yelp with the trigger families PURE evaluates, where label flip rate dropped from nearly 100% to under 15% with clean accuracy within 1–2%. Output: the joint distribution of $(b_i, c_i)$ across layers, attacks, and architectures. This is the go/no-go read on the whole program — if backdoor concentration never collides with clean sensitivity, a clean-optimal schedule plus dormant-neuron ranking suffices and the joint formulation is unnecessary; the cartography will say so before the defense is built.
The defense evaluation runs the joint allocation at global sparsities of 50%, 70%, and 80% against Fine-Pruning, RNP, FMP, and IMS under the BackdoorBench protocol, reporting clean accuracy, ASR, and robust accuracy. Success is defined against the file's strongest numbers: matching or beating FMP's CIFAR-10 ASR of 2.86% and robust accuracy of 87.40% FMP, and RNP's 5.03% average ASR with under 2% clean-accuracy loss RNP, at equal clean-data budgets of 5%, 1%, and 2 samples per class, with poisoning rates swept down to 0.5% where RNP's separation goes diffuse. The high-sparsity cells are the proposal's home turf: the hypothesis is that at 70–80% sparsity the joint schedule keeps both clean accuracy and low ASR while uniform-threshold defenses must choose which one to lose, mirroring on backdoored models the gap ATP demonstrated on clean ones (41.28% versus 35.42% zero-shot accuracy at 70% sparsity on LLaMA3-8B).
The adversarial stress test closes the loop. Two attackers: the co-location attacker from Fine-Pruning, modified to force trigger features into the specific layers the joint schedule protects most; and a dormant-Trojan variant using the resistance-to-pruning loss of Fu et al., which aligns malicious weights with high-magnitude weights that any magnitude-based ranking keeps. The decisive check is a frontier, not a single number: for each attacker strength, the minimum $\lambda$ at which the joint schedule still removes the backdoor, and the clean-accuracy price paid for it. Where that frontier becomes vertical — attacker can always hide in the layers the error bound protects — the paper reports the impossibility result and the conditions under which schedule-based purification remains viable, which is the answer Gap 2 has been waiting for.
References
- Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networks
- Reconstructive Neuron Pruning for Backdoor Defense
- Adversarial Feature Map Pruning for Backdoor
- Determining Layer-wise Sparsity for Large Language Models Through a Theoretical Perspective
- DLP: Dynamic Layerwise Pruning in Large Language Models
- SPD: Shallow Backdoor Protecting Deep Backdoor Against Backdoor Detection
- Defense against Backdoor Attack on Pre-trained Language Models via Head Pruning and Attention Normalization
- Backdoor Mitigation via Invertible Pruning Masks
- Dormant Neural Trojans
- BackdoorBench: A Comprehensive Benchmark of Backdoor Learning
- Adversarial Contrastive Learning for LLM Quantization Attacks
- Purifying Quantization-conditioned Backdoors via Layer-wise Activation Correction with Distribution Approximation