DIGN: Divergent Gradient Response via Noise for Adversarial RobustnessDIGN: Divergent Gradient Response via Noise for Adversarial Robustness
The authors propose DIGN, which learns a noise adapter on a frozen robust WRN; the AA accuracy of CIFAR-10 WRN-28-4 is 76.11%.
The attacker knows all weights, filtering parameters, and the noise distribution, and selects one RGB perturbation before noise and filtering, satisfying L∞ no more than 8/255 and the image within [0,1]; the attacker cannot specify inference noise but can use EOT to optimize the expected loss. The victim system is an image classifier deployed with a single stochastic prediction.
- Existing classifiers struggle to further improve adversarial robustness with a small number of additional parameters; low-cost defenses such as input randomization may also mask gradients and fail once the attacker adapts to the full pipeline.
- DIGN freezes the robust backbone and BN, inserts a zero-initialized channel-wise residual MLP before the activation, performs adversarial adaptation with Gaussian noise and a TRADES-style objective, and then adds 50 bilateral filtering passes.
- On three image datasets, the gap between clean and adversarial accuracy of DIGN is smaller than that of the corresponding TRADES baseline; in ablations, noise only, adapter only, or joint training from scratch all fail to reach the AA accuracy of the full configuration.
- The paper does not specifically discuss limitations. Experiments cover only WRN-28-4/28-10 and three image datasets; filtering parameters are selected per dataset on the validation set, and the paper does not report results from direct reuse across datasets.
- Benchmarks
- CIFAR-10CIFAR-100Tiny-ImageNet
- Metrics
- Clean accuracyPGD20 accuracyAA accuracyCW-PGD100 accuracyL2-PGD20 accuracycross-noise gradient cosineinference latency
DIGN freezes the backbone network and batch normalization, and adversarially optimizes a lightweight residual adapter under Gaussian input noise, bringing adversarial accuracy close to clean accuracy. It is evaluated on CIFAR-10, CIFAR-100 and Tiny-ImageNet with attacks such as PGD and AutoAttack, and maintains high robustness under the evaluated adaptive and black-box attacks. Ablation experiments show that, in the evaluated configurations, the components improve robustness synergistically only under the proposed design.
Related events and news
1 events · 0 news mentions
- This event's paper
DIGN:噪声下梯度发散提升对抗鲁棒性
Paper analysis
What problem does this paper attempt to solve?
Studies how to enhance existing robust classifiers with a small number of additional parameters and remain effective under adaptive attacks.
The core question is how to improve the adversarial robustness of existing models with a small number of trainable parameters without retraining the backbone or adding training images.
- Problem setting: The authors argue that adversarial training requires correct predictions throughout the entire local perturbation set, imposing higher demands on the decision boundary than clean classification; although scaling models and data can improve robustness, it increases data and compute costs.
- Shortcomings of existing defenses: Input processing and randomization can increase attack difficulty at low cost, but the authors point out that a drop in attack success rate does not necessarily mean the classifier is more robust; unreliable backpropagation or stochastic forward passes may mask gradients and fail under attacks adapted to the defense.
- Core observation: The authors state that with noise alone, the local attack directions for different noise observations may still align; after learning a noise adapter, predictions can remain consistent while input gradients across noise are nearly orthogonal. Figure 3 and Table 4 present the no-filter diagnostic, and the method does not use an explicit gradient-orthogonality loss.
- Proposed approach: DIGN inserts a pre-activation residual adapter into a frozen robust backbone, performs adversarial optimization under Gaussian input noise, and adds bilateral filtering after adaptation; deployment takes only one stochastic prediction, with no voting.
- Threat model:
- Goal: Use a single adversarial image to reduce the single-stochastic-prediction accuracy of a shared perturbation under the noise distribution.
- Knowledge: The attacker knows all weights, filtering parameters, and the noise distribution.
- Capability: Choose one RGB perturbation before noise and filtering, satisfying the L∞ budget and valid-pixel constraints; can use EOT to optimize the expected loss, but cannot specify fresh inference noise.
- Victim system: A randomized image classifier with optional deterministic filtering; the main experiments use an L∞ budget of 8/255.
What related research exists?
Related work covers adversarial training, input randomization, gradient obfuscation, and adaptation of existing classifiers.
Attacks and adversarial training
- PGD, DeepFool, C&W, FAB: Constitute different optimization attacks; PGD adversarial training and TRADES provide the base objectives for DIGN.
- Free/Fast AT, AWP, etc.: Respectively reduce training cost or address robust overfitting and training/generalization issues; Schmidt et al. and Tsipras et al. discuss data requirements and the conflict between standard and robust accuracy.
- Extra-data route: Carmon et al. and Gowal et al. use real or generated data to improve robustness; the paper positions DIGN as adapting existing weights through newly added modules without using extra training images.
Input processing, randomization, and gradient divergence
- Input transformation and denoising: Input randomization, transformation ensembles, PixelDefend, and feature denoising modify inputs or representations in different ways; Feature Squeezing detects adversarial inputs by comparing predictions before and after compression and smoothing.
- Stalder et al. (2026): Combines noise with bilateral filtering; DIGN adopts these components but first freezes the backbone to learn internal stochastic responses, then introduces filtering after adaptation. Randomized smoothing and its robust training target certified smoothed classifiers; DIGN evaluates single stochastic predictions rather than a voting certified classifier.
- BaRT and DRIFT: BaRT reports that gradients of consecutive PGD iterations under random transformations are nearly orthogonal; DRIFT learns a stochastic residual convolutional input filter before a frozen classifier and explicitly separates gradient responses. PNI, Learn2Perturb, SAP, and RSE respectively learn noise scale, alternate perturbation and network updates, randomly scale activations, or train with convolutional noise.
Adapting existing classifiers and full-pipeline evaluation
- Denoised Smoothing, HGD, RiFT: Respectively learn a denoiser before a pretrained classifier, use high-level representations to guide denoising, or fine-tune non-robust critical modules and interpolate weights; the paper notes that DIGN instead freezes all original parameters and BN states and trains only new scalar residuals.
- Learnable activations and parameter-efficient adaptation: APL, PReLU, parameterized Swish, as well as Adapters and LoRA provide related components; this paper studies their combination and empirical behavior for stochastic robustness.
- EOT and adaptive evaluation: EOT estimates the expected attack gradient under random transformations; obfuscated gradients and adaptive evaluation studies emphasize attacking the actually deployed computational pipeline under an explicit budget.
Baselines and benchmarks: The main-table comparisons are AT-PGD, TRADES, and a Noise+Bilat. reproduction using extra training data, on CIFAR-10, CIFAR-100, and Tiny-ImageNet; Table 2 additionally compares noise only, adapter only, and joint training from scratch. The authors position DIGN as internal response learning with a fixed Gaussian input distribution and original weights, without an explicit gradient-divergence loss.
How does the paper address this problem?
DIGN learns channel responses under noise in two stages, and then enhances inference with the adapted bilateral filtering.
DIGN separates robust pretraining from noise adaptation: first obtain a robust backbone, then freeze it and optimize only the newly added pre-activation residual adapter; filtering does not participate in adaptation but is added to the inference pipeline after adaptation.
Model and shared perturbation setting
- At deployment, Gaussian noise is sampled independently for each forward pass, and the output is pϕ(x,ξ)=softmax[fθ,ϕ(Tη(x+σξ))]; without filtering, Tη is the identity mapping, and deployment takes only one prediction.
- The perturbation satisfies δ∈ Dϵ(x)={δ:|δ|∞≤ϵ, x+δ∈[0,1]d}; the same adversarial image must be effective across independent noise realizations.
- The goal is not to require correctness for every noise realization, but to reduce the error probability of a single stochastic prediction under a shared perturbation; this differs from per-perturbation deterministic robustness.
Shared direction and EOT sampling
- The authors compare the average gradient exploitable by a shared perturbation with per-noise directions: the former corresponds to ϵ‖Eξgξ‖1, and the latter to ϵEξ‖gξ‖1; with pixel constraints, the former is an upper bound, and their ratio lies in [0,1] when defined.
- For K independent EOT samples, the estimated mean squared error is V/K; based on this, the authors argue that cross-noise variation with larger energy relative to the common gradient requires more samples to achieve the same relative estimation accuracy.
- Independent-noise gradients satisfy E⟨gξ,gξ′⟩=‖μ‖2²; the paper reports both signed and absolute cosine to distinguish directional dispersion from positive-negative cancellation.
Channel adapter and two-stage optimization
- The first stage trains the full network with standard TRADES or PGD-AT; the second stage freezes the backbone weights, BN parameters, and statistics, inserts a zero-output adapter, and optimizes only the adapter parameters.
- Each channel uses an independent 1→8→8→1 MLP, with SiLU hidden activation; the scalar mapping is shared across spatial positions and introduces no new spatial or channel mixing; the 25 activation locations of WRN-28-4 contain 3,600 channels, and the added parameters are about 6% of the original backbone.
- In the main configuration, adaptation uses no filtering and σ=0.1; the inner loop is KL-PGD10/EOT4 with a budget of 8/255 and a step size of 2/255, and the clean target is obtained by averaging four noise probability vectors with stopped gradients.
- The outer loop uses a TRADES-style objective with β=5 and full exact gradients. Appendix C gives the reproduction procedure: adaptation budget of 200 epochs, Adam initial learning rate 0.01, checkpoint selection by the sum of validation clean and robust accuracy, then refinement for 20 epochs at 0.001.
Post-adaptation filtering and parameter selection
- Gaussian noise is added only once, followed by 50 identical 5×5 bilateral filtering passes, using reflection padding and no output clipping; weights are recomputed from the previous output at each pass.
- Parameters are selected on the validation set of WRN-28-4 seed 0, fixed per dataset, and reused for other seeds and widths on that dataset; selection maximizes validation PGD20/EOT20 accuracy, with ties broken by clean accuracy and then by smaller parameters.
- In Table 3, CIFAR-10 uses σ=0.1, σr=0.06, σs=5; CIFAR-100 uses σ=0.1, σr=0.06, σs=10; Tiny-ImageNet uses σ=0.2, σr=0.1, σs=3.
Success determination and diagnostics
- Attacks pass through the full stochastic forward pass and use exact gradients; after fixing the attack image, PGD and CW report the average accuracy of single predictions over 16 independent fresh noise samples, and AA uses the library's cumulative robust determination.
- The no-filter gradient diagnostic uses 100 fixed CIFAR-10 images, with 32 independent Gaussian samples per image and 496 pairs of exact input gradients, comparing noise alone, DIGN, and joint training from scratch.
- Appendix D additionally examines the learned scalar mapping: for each model, using 100 class-balanced test images and its own PGD20/EOT20 attack images, it analyzes non-affine residuals, gate flips, and negative-derivative occupancy.
What experiments did the paper conduct?
The main table covers three datasets and two WRN widths, and evaluates ablations, EOT budget, and adaptive attacks.
Experimental setup
- Models and repetitions: WRN-28-4 is used for three datasets, and WRN-28-10 additionally for CIFAR-10; all experiments use 3 random seeds, and the table reports mean and sample standard deviation.
- Data splits: CIFAR-10/100 each use 50,000 training images, and the official 10,000 test images are split into 1,000 validation and 9,000 test; Tiny-ImageNet uses 100,000 training images, and the 10,000 labeled official validation images are likewise split into 1,000/9,000.
- Baselines: AT-PGD, TRADES, and Noise+Bilat.; the latter reproduction uses one million extra synthetic images. The CIFAR TRADES baseline uses β=5, 200 epochs, the main table takes the best validation checkpoint, and DIGN adapts from their respective final epoch 200 checkpoints.
- Attacks and metrics: The main table reports Clean, PGD20 under L∞ ϵ=8/255, AA, CW-PGD100, and L2-PGD20 accuracy; PGD20 uses CE, step size 2/255, and one random start, and CW-PGD100 uses 100 steps of truncated CW-margin, L2 radius 0.5, step size 0.1.
- Randomized evaluation: CIFAR uses EOT20, Tiny-ImageNet uses EOT10; randomized AA consists of APGD-CE and APGD-DLR, each with 100 steps and one restart, and deterministic AA uses APGD-CE and APGD-T, EOT1.
- Supplementary attacks: TA-BPDA uses 20 steps, step size 2/255, and no random start; Square uses EOT20 per scoring, with at most 5000 queries per image. No LLM review was used.
Main results
According to Table 1, values are accuracy (%) over three seeds; Noise+Bilat. uses extra training data.
Swipe horizontally to read the table
Dataset / Model Method Clean PGD20 AA CW-PGD100 L2-PGD20 CIFAR-10 / WRN-28-4 TRADES 82.19 50.26 46.99 48.50 58.18 CIFAR-10 / WRN-28-4 Noise+Bilat. 85.83 61.40 59.40 59.48 80.61 CIFAR-10 / WRN-28-4 DIGN 82.31 79.57 76.11 78.26 82.22 CIFAR-10 / WRN-28-4 DIGN (PGD-AT) 79.99 75.90 72.49 73.97 79.76 CIFAR-10 / WRN-28-10 DIGN 82.09 79.99 75.68 78.83 82.07 CIFAR-100 / WRN-28-4 TRADES 56.71 27.77 23.20 24.37 34.62 CIFAR-100 / WRN-28-4 DIGN 52.72 50.64 46.16 49.23 52.63 Tiny-ImageNet / WRN-28-4 DIGN 42.30 41.20 35.47 40.53 42.32 - Full comparison: Table 1 also has CIFAR-10 WRN-28-4 AT-PGD AA 48.96%, WRN-28-10 AT-PGD 44.56% and TRADES 48.16%, CIFAR-100 AT-PGD 24.08%, Noise+Bilat. 34.11%, and Tiny-ImageNet TRADES 15.43%.
- Authors' interpretation: The authors state that DIGN narrows the gap between clean and adversarial accuracy; relative to TRADES at the same width, AA increases by 29.13 and 22.96 percentage points on CIFAR-10 WRN-28-4 and CIFAR-100 respectively, and by 20.04 percentage points on Tiny-ImageNet.
- Effect of pretraining: There remains a 3.62 percentage point AA gap between PGD-AT initialization and TRADES initialization; the authors conclude from this that the source backbone continues to affect final performance.
Component ablation and training method
- Stepwise combination: In Table 2 on CIFAR-10 WRN-28-4, noise only gives AA 39.04%, DIGN without filtering gives 69.99%, and full DIGN gives 76.11%; the authors conclude from this that noise adaptation and post-adaptation filtering jointly contribute the gain.
- Necessary components: Adapter only, without noise, gives AA 45.45%; removing noise at DIGN inference gives 37.38%. Joint training from scratch gives Clean/AA of 84.21%/45.95%, and DIGN without filtering gives 82.97%/69.99%.
- Authors' interpretation: Joint training is more conducive to noisy image recognition, while adaptation of a frozen robust backbone is more robust under the tested attacks; the authors regard the two as different objectives.
Gradient diagnostics and EOT budget
- Cross-noise cosine: In Table 4, DIGN's E[cos] and E[|cos|] are 0.000951 and 0.019887 respectively, noise only is 0.429054 and 0.429054, and joint training is 0.507081 and 0.507083; 99.29% of DIGN's sample pairs satisfy |cos|<0.10.
- Figure content: Figure 3 gives the gradient cosine density and absolute cosine CDF for the three methods; the main text states that DIGN directions are nearly orthogonal, while the other two configurations retain stronger directional alignment.
- Effect of increasing EOT: Figure 4 corresponds to the same model and 9,000 test images; PGD20 accuracy without filtering drops from 74.90% at EOT5 to 68.67% at EOT30, and with filtering from 80.49% to 79.67%. The authors state that the filtered curve flattens after EOT10.
Supplementary adaptive attacks and inference cost
- TA-BPDA: In Table 5, the aligned version achieves robust accuracy of 75.81%±0.54% on CIFAR-10 WRN-28-4; the attack turns off noise in the forward pass, keeps filtering, and uses a unit-filter Jacobian and exact adapter gradients in the backward pass.
- Square black-box attack: With Square/EOT20 and at most 5000 queries per image, accuracy is 75.69%±0.53%; the authors state that the two supplementary attack results are close to AA.
- Single-image cost: In Table 6 on CIFAR-10, H100, FP32, WRN-28-4 has 5.849M parameters and 1.041 ms, and DIGN has 6.198M and 1.363 ms; latency is the mean of three measurements after warm-up, excluding loading and compilation.
Other ablations and analyses
- Noise strength: In the no-filter sweep in Figure 2, σ=0.1 achieves the highest three-seed average PGD20 on CIFAR-10/100; smaller or larger values are both lower.
- Filtering gain: The main text reports that filtering increases AA by about 6.13 percentage points on CIFAR-10 WRN-28-4 and by 3.10 percentage points on CIFAR-100.
- Filter search: For each dataset, 44 combinations of 11 range scales and 4 spatial scales are evaluated, and the heatmap shows 36; parameters are selected only on the validation set.
- Channel mapping: In Table 7, the non-affine error is 22.03% (CIFAR-10 WRN-28-4), 23.25% (CIFAR-10 WRN-28-10), and 22.07% (CIFAR-100 WRN-28-4), and the gating flip is 17.76%, 16.28%, and 19.96% respectively.
- Negative-slope occupancy: Appendix D reports that the proportion of inputs in the negative-derivative region for the three models is 0.61%, 0.60%, and 0.75% respectively; these measurements describe the final filtered inference distribution, not a causal intervention.
What are some points that can be further explored?
The paper does not specifically discuss limitations; the experimental scope is concentrated on two WRN backbones and three image datasets.
Limitations and future directions noted by the authors
The paper does not specifically discuss limitations, nor does it explicitly list future research directions in the Discussion, Conclusion, or appendix.
Scope of experiments
- Model scope: The backbones tested are WRN-28-4 and WRN-28-10; the latter appears only on CIFAR-10, and pretraining objectives cover TRADES and PGD-AT (Sections 4.1, 4.7).
- Data scope: Experiments use CIFAR-10, CIFAR-100, and Tiny-ImageNet; final metrics are all computed on their respective 9,000 test images, and all experiments use 3 seeds (Section 4.1).
- Attack scope: Includes PGD20, AA, CW-PGD100, L2-PGD20, TA-BPDA, and Square; EOT budget experiments report up to EOT30, and Square uses at most 5000 queries per image (Table 1, Table 5, Figure 4).
- Deployment and selection: Deployment evaluation uses a single stochastic prediction rather than voting; filtering parameters are selected per dataset on the WRN-28-4 seed 0 validation set, then reused for that dataset's seeds and widths, and the paper does not report results from direct reuse across datasets (Sections 3.6, 4.4).
- Measurement scope: Table 6 reports only inference cost for CIFAR-10 single-image, H100, FP32; gradient diagnostics use 100 CIFAR-10 images, and the mapping analysis in Appendix D covers the three main-table adapter configurations (Section 4.5, Appendices B/D).
Summarize the main content of the paper
DIGN improves the empirical robustness of image classifiers with a frozen backbone, noise adaptation, and post-hoc filtering.
DIGN is a parameter-efficient enhancement method for existing robust image classifiers, with the goal of improving the single-prediction accuracy of the full stochastic pipeline under adaptive and black-box attacks without retraining the backbone or adding training images.
- Method highlights: Freeze the backbone and BN, and insert a zero-initialized, spatially shared channel-wise residual MLP before the activation; perform adversarial adaptation with Gaussian input noise and a TRADES-style objective, and then add 50 bilateral filtering passes. For WRN-28-4, the added parameters are about 6% of the original backbone.
- Main results: In Table 1, DIGN on CIFAR-10 WRN-28-4 achieves 82.31% Clean, 79.57% PGD20, and 76.11% AA; TRADES at the same width achieves 82.19%, 50.26%, and 46.99%, respectively.
- Cross-dataset: DIGN on CIFAR-100 WRN-28-4 achieves 52.72% Clean and 46.16% AA; on Tiny-ImageNet it achieves 42.30% Clean and 35.47% AA. The authors state that these results narrow the gap between clean and adversarial accuracy.
- Component evidence: In Table 2, the AA of noise-only DIGN without filtering, DIGN without filtering, and full DIGN are 39.04%, 69.99%, and 76.11%, respectively; joint training from scratch is 45.95%, and adapter-only is 45.45%.
- Gradients and attack budget: In Table 4, DIGN's mean absolute cross-noise gradient cosine is 0.019887; in Figure 4, PGD20 without filtering drops from 74.90% at EOT5 to 68.67% at EOT30, and after filtering drops from 80.49% to 79.67%.
- Authors' conclusion: The authors argue that reusing robust representations and learning internal responses suited to stochastic observations can serve as an alternative route to scaling model capacity and training data; adaptation changes the cross-noise gradient response, and post-hoc filtering further improves accuracy and stability under different EOT budgets.
Research lineage
2 foundations · 0 follow-ups in libraryNo later in-library follow-ups recorded yet.
Hover or focus a connected paper to inspect the citation context.
Related papers
- Semantic-aware Adversarial Fine-tuning for CLIPDefensesarXiv
- No Free Efficiency: Revisiting the Trade-off Between Training Efficiency and Model VulnerabilityAnalysis / interpretabilityarXiv