Backdoor Attacks Rerouted: Batch Normalization as a Sink for Trigger Signals

Md Abdul Kadir, Tuan Anh Tran, Daniel SonntagNeurIPS 2026

TL;DR

When a Convolutional Neural Network (CNN) is poisoned with a hidden backdoor trigger, it doesn't necessarily scramble its core convolutional weights—instead, Batch Normalization (BN) layers act like a lightning rod, absorbing the bulk of the malicious gradient updates. By simply resetting BN parameters and recalculating normalization statistics at inference time, you can disarm sophisticated backdoor attacks on the fly without retraining a single core weight.

What Problem Does This Paper Address?

Imagine downloading a pre-trained vision model that performs brilliantly on normal images, except whenever a tiny, invisible pixel pattern (a "trigger") appears, it misclassifies a stop sign—or worse, simultaneously fakes its own saliency map (heatmaps like Grad-CAM that explain why the model made a decision) so human auditors suspect nothing.

Overview of how backdoor attacks manipulate predictions and explanations, and how the authors' defense restores both.

Most existing defenses against these backdoor attacks require expensive fine-tuning or knowledge distillation on clean data, making them impractical for already-deployed systems. Furthermore, almost no single defense handles both standard "black-box" misclassification attacks and white-box "explanation-aware" attacks. While researchers had previously noticed strange anomalies in Batch Normalization layers of poisoned models, nobody had rigorously explained why BN absorbs backdoor signals, how that shields the rest of the network, or how to weaponize that quirk for an instant, training-free defense.

Methods

First, the authors build a theoretical framework analyzing how mixed batches of clean and triggered data flow through BN layers during training. Standard BN normalizes activations using running averages of batch mean and variance ($\mu, \sigma^2$), then scales and shifts them using learnable affine parameters ($\gamma, \beta$). By analyzing gradient propagation and Fisher Information (a measure of how much information a parameter carries about the output), the authors prove that trigger-induced gradients concentrate heavily in $(\gamma, \beta)$ and skew $(\mu, \sigma^2)$, while mathematically attenuating the gradient updates reaching the preceding convolutional weights.

Building on this, they introduce two lightweight defenses that leave core weights completely untouched:

  • FlashBN (Training-Free): At inference time, it throws away the corrupted stored statistics $(\mu, \sigma^2)$, resets the affine parameters to neutral $(\gamma = 1, \beta = 0)$, and recomputes fresh normalization statistics directly from the incoming inference batch (working with batches as small as 5 samples).
  • ReBN (Few-Shot): Using a tiny clean dataset, it resets $(\gamma, \beta)$ to $(1, 0)$, calculates Fisher Information scores to find the top-$K$ BN parameters most sensitive to the backdoor, prunes and replaces them with small Gaussian noise, and briefly fine-tunes only the BN layers.

Datasets

The authors evaluate their methods on four standard vision benchmarks—CIFAR-10, CIFAR-100, Tiny ImageNet, and GTSRB (German Traffic Sign Recognition Benchmark)—using standard protocols from BackdoorBench. No new datasets are introduced.

Key Insights and Ideas

  • BN as a Gradient Sink (and Core Shield): Because BN subtracts the batch mean and normalizes variance during the backward pass, the exact trigger-aligned signal that drives up BN's affine gradients gets stripped out of the upstream signal heading to the convolutional weights. Remove BN from the architecture, and the malicious gradients flood right back into the core weights!
Without BN (left), adversarial triggers cause large gradient spikes in convolutional weights; with BN (right), BN parameters absorb the spikes while convolutional gradients stay tiny.
  • Why Backdoors Are So Easy to Hide: This asymmetry explains why models can learn a backdoor without ruining clean accuracy: BN provides a convenient parameter subspace to express the trigger while leaving the core convolutional filters free to learn the actual vision task.
  • The Core Isn't Untouched, Just Recoverable: While core weights aren't completely immune over 100 epochs of training, their decision boundaries remain intact enough that simply recalibrating BN snaps both predictions and explanations back to normal.

Key Results

Tested across 8 state-of-the-art black-box attacks and 3 explanation-aware attacks against 9 baseline defenses (primarily on PreAct ResNet-18 and ResNet-20):

  • Crushing Attack Success Rates (ASR): On CIFAR-10, average ASR drops from 91.0% down to 2.3% (ReBN) and 9.7% (FlashBN), preserving ~89–91% clean accuracy. On Tiny ImageNet, ReBN drops average ASR from 93.24% to 0.47%.
  • True Label Recovery: Defending an attack isn't just about avoiding the attacker's target label; it's about getting the right answer. ReBN and FlashBN accurately classify 89.8% and 86.5% of triggered images—beating the best prior defense (FT-SAM at 66.7%) by 23.1 and 19.8 percentage points.
  • Speed: Because FlashBN requires zero training, it runs in ~22.5 seconds—roughly 6× faster than the fastest baseline defense and over 40× faster than FT-SAM.
  • Restoring Explanations: Against explanation-manipulating attacks (Simple Fooling and Red Herring), the defense reduces saliency map Mean Squared Error (MSE) by 76% on average (up to 88%) compared to prior state-of-the-art defenses.

Limitations and Future Work

  • Architecture Dependency: By design, this only works on BN-equipped CNNs. In tests on BN-free ResNets and Vision Transformers (ViT-B/16, which uses LayerNorm), ASR remains at 90–100%. Extending the math to other normalization schemes is left for future work. Some lightweight CNNs (like MobileNetV3-S) also suffer noticeable clean accuracy drops (~12–17%) under FlashBN.
  • Adaptive Attackers: What if a clever attacker freezes the BN layers during poisoning, forcing the trigger into the convolutional weights? When tested, both FlashBN and ReBN failed to cleanly remove the backdoor and instead suffered steep drops in clean accuracy (86.6 points for ReBN, 13.0 for FlashBN)—which might alert you that the model was tampered with, though it won't salvage the model.
  • Specific Trigger Failures: On Tiny ImageNet, training-free FlashBN struggled against two specific frequency/signal-based attacks (LF and SIG), where few-shot ReBN was needed to finish the job.

Summary updated

Abstract

Deep neural networks (DNNs), particularly CNN-based models, are widely deployed due to their strong performance. However, they remain vulnerable to backdoor attacks, where imperceptible triggers can induce targeted misclassification while preserving high accuracy on clean inputs. These triggers may also distort model explanations. Such vulnerabilities raise serious concerns for both currently deployed and real-world applications, highlighting the need for deeper understanding and training-free defense mechanisms. In this study, we investigate the attack mechanisms in models with Batch Normalization (BN). We provide a theoretical analysis of the relationship between backdoor attacks and BN, showing that, under the conditions we state, adversarial gradient updates concentrate on BN layers during training, while the core weights are comparatively attenuated. We further show that BN's affine parameters and running statistics jointly influence both predictions and explanations, offering a unified explanation of backdoor behavior. Building on this insight, we introduce FlashBN, a training-free defense that recomputes normalization statistics at inference time, and ReBN, a few-shot variant that fine-tunes only BN on a small clean set. Extensive experiments on eight black-box and three explanation-aware attacks against nine baseline defenses show that our methods reduce the average attack success rate from 91.0\% to 2.3\% (ReBN) and 9.7\% (FlashBN). They correctly classify 89.8\% and 86.5\% of triggered samples, 23.1 and 19.8 percentage points above the best prior defense, and reduce explanation MSE by 76\% on average (up to 88\%) relative to the state-of-the-art. Code and checkpoints are available at [FlashBN-ReBN](https://mak-ta-reque.github.io/flashbn_rebn/).
BibTeX
@inproceedings{kadir2026backdoor,
  author = {Md Abdul Kadir and Tuan Anh Tran and Daniel Sonntag},
  title = {{Backdoor Attacks Rerouted: Batch Normalization as a Sink for Trigger Signals}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=1YqAFIeJti},
}
Figure