DIGN: Divergent Gradient Response via Noise for Adversarial Robustness

Zhiyuan Ye, Yueguo Wang, Yi ZhouarXiv 2026

TL;DR

Making neural networks resistant to adversarial attacks usually requires massive models and mountains of extra training data. DIGN offers a clever, lightweight alternative: take an existing robust model, freeze its weights, and train tiny "adapter" modules (~6% extra parameters) to handle noisy inputs. The result? The model's internal gradients scatter in nearly orthogonal directions across different noise samples, making it much harder for attackers to find a single perturbation that works—bringing adversarial accuracy remarkably close to clean accuracy.

What Problem Does This Paper Address?

Deep neural networks are notoriously fragile: add a tiny, imperceptible smudge of noise to an image, and a state-of-the-art classifier can suddenly mistake a panda for a gibbon. The standard fix—adversarial training—forces the model to be right everywhere inside a small perturbation ball around every training image. That's a tall order, demanding far more model capacity and data than standard classification requires.

A popular, low-cost shortcut is to bolt on input randomization or filtering at test time. The catch? Many of these defenses merely mask gradients, giving a false sense of security. When attackers adapt—for instance, by averaging gradients over many random noise draws using Expectation over Transformation (EOT)—these defenses often collapse. Simply adding Gaussian noise to an image doesn't automatically help either, because the local attack directions across different noisy versions of the same image can still point in roughly the same direction, letting a single adversarial perturbation fool the model.

Methods

DIGN (Divergent Gradient Response via Noise) tackles this in two stages without adding any extra training data:

  1. Freeze and Adapt: The authors start with a pretrained robust backbone (trained via TRADES or PGD-AT) and freeze all its weights and batch-normalization statistics. They then insert lightweight, channel-wise residual MLPs ($1 \to 8 \to 8 \to 1$ with SiLU activations) right before the ReLU layers. These adapters are zero-initialized so they don't disrupt the model at first, and they add only about 6% more parameters to a WRN-28-4 backbone.
  2. Train Under Noise: Only the adapters are optimized under Gaussian input noise ($\sigma = 0.1$ for CIFAR, $\sigma = 0.2$ for Tiny-ImageNet) using a TRADES-style objective and an inner EOT4 PGD10 attack. At deployment, the model makes a single random prediction—no voting or ensembling required.
  3. Post-Adaptation Bilateral Filtering: Once adaptation is done, the authors add 50 passes of a $5 \times 5$ bilateral filter at inference time (tuned on a validation set) to further stabilize the model against attackers using large EOT sampling budgets.
Cross-noise gradient responses of noise only (a) and DIGN (b)

Datasets

The authors evaluate DIGN on three standard image classification benchmarks (no new benchmarks are introduced):

  • CIFAR-10 ($32 \times 32$, 10 classes): 50,000 training images, with the 10,000 official test images split into 1,000 validation and 9,000 test images.
  • CIFAR-100 ($32 \times 32$, 100 classes): Same split as CIFAR-10.
  • Tiny-ImageNet ($64 \times 64$, 200 classes): 100,000 training images, with the 10,000 official validation images split into 1,000 validation and 9,000 test images.

Key Insights and Ideas

  • Consistent predictions, divergent gradients: Even without an explicit gradient-orthogonality loss, DIGN's input gradients across different noise draws become nearly orthogonal (mean absolute cosine similarity of 0.0199, compared to 0.4291 for noise-only and 0.5071 for joint training from scratch). An attacker trying to estimate the expected gradient via EOT faces a much higher sampling cost.
  • Synergy matters: Ablations on CIFAR-10 show that the pieces only shine together. Adding noise alone yields 39.04% AutoAttack (AA) accuracy; training adapters without noise gets 45.45%; joint training from scratch gets 45.95%. Unfiltered DIGN jumps to 69.99% AA, and adding bilateral filtering pushes it to 76.11%.
  • Filtering tames high EOT budgets: Without bilateral filtering, DIGN's PGD20 accuracy drops from 74.90% (at EOT5) to 68.67% (at EOT30). With filtering, it holds steady, dipping only slightly from 80.49% to 79.67% and leveling off after EOT10.

Key Results

DIGN substantially narrows the gap between clean and adversarial accuracy across datasets and WideResNet (WRN) widths:

  • CIFAR-10 (WRN-28-4): Achieves 82.31% clean accuracy, 79.57% PGD20, and 76.11% AutoAttack—a +29.13 percentage point jump in AA over the TRADES baseline (46.99%).
  • CIFAR-10 (WRN-28-10): Reaches 82.09% clean, 79.99% PGD20, and 75.68% AA.
  • CIFAR-100 (WRN-28-4): Reaches 52.72% clean, 50.64% PGD20, and 46.16% AA (+22.96 pp over TRADES).
  • Tiny-ImageNet (WRN-28-4): Reaches 42.30% clean, 41.20% PGD20, and 35.47% AA (+20.04 pp over TRADES).
  • Adaptive & Black-Box Attacks: On CIFAR-10 WRN-28-4, DIGN retains 75.81% accuracy under aligned TA-BPDA and 75.69% under Square/EOT20.
  • Inference Cost: Single-image latency on an H100 (FP32) increases modestly from 1.041 ms (WRN-28-4) to 1.363 ms (DIGN).

Limitations and Future Work

The authors do not include a dedicated limitations section, though their results show that the quality of the frozen backbone still matters: a 3.62-point AutoAttack gap remains between using a TRADES-pretrained backbone versus a PGD-AT-pretrained one. Additionally, DIGN targets single-draw stochastic robustness rather than certified, voting-based defenses.

Summary updated

BibTeX
@misc{ye2026dign,
  author = {Zhiyuan Ye and Yueguo Wang and Yi Zhou},
  title = {{DIGN: Divergent Gradient Response via Noise for Adversarial Robustness}},
  year = {2026},
  eprint = {2611.40906},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.40906},
}
Figure