Density Feedback Control for the Transferability of Generative Sparse Adversarial AttacksDensity Feedback Control for Transferability of Generative Sparse Adversarial Attacks
The authors propose DFC, which adjusts the sparsity coefficient per epoch based on hard-mask density feedback; on ImageNet it improves the transfer ASR of GPG and TSAA with fewer perturbed pixels.
Transfer-based sparse adversarial attack: a generator is trained white-box on the source model ResNet-50, and the perturbation is transferred to target models whose internal information is not visible (black-box); ϵ=10/255, target average pixel density 10%, and per-image ℓ0 budgets (≤10%/11%/12%) are also tested.
- The perturbation density of generative sparse adversarial attacks can only be controlled indirectly by a fixed sparsity coefficient; the mapping is unknown and drifts during training, so reaching a target density requires repeated hyperparameter tuning; the authors state that fixed pressure yields almost no transferability benefit after density declines.
- DFC measures the average density of the hard mask at the end of each epoch and updates the sparsity coefficient based on its normalized deviation from the target (with momentum and damping), without changing the generator structure or loss, replacing the multi-stage retuning process.
- On ImageNet with ResNet-50 as the source model, a single DFC training run controls the average density of the three base attacks to within 1 percentage point of the 10% target; GPG and TSAA improve transfer ASR on CNN and Transformer targets with lower density, while EGS-TSSA shows no consistent gain.
- The authors note that the evaluation covers only a single target density, source model, and dataset, that the training dynamics come from a single seed of GPG, and that TSAA's λ0 was lowered; DFC controls only average density, and per-image density feedback is left for future work.
- Evaluated models
- ResNet-50DenseNet-161VGG-16Inception-v3Wide ResNet-50EfficientNet-B6ViT-SmallDeiT-SmallTNT-SmallTwins-SmallSwin-Tiny
- Benchmarks
- ImageNet
- Metrics
- ASR平均像素密度in-budget ASRrestore excess
The paper proposes density feedback control (DFC) for generative sparse adversarial attacks, adjusting the sparsity coefficient at the end of each training round according to the difference between the hard-mask density and the target density. At a 10% target density, the average density of three base attacks is within 1 percentage point of the target in a single run, and two of them improve transfer attack success rates on CNN and Transformer targets with fewer perturbed pixels. EGS-TSSA, which restricts perturbations to regions of source-model feature importance, shows no consistent improvement.
Paper analysis
What problem does this paper attempt to solve?
The density of generative sparse attacks is indirectly controlled by a fixed coefficient; the authors propose DFC, which adjusts the coefficient per epoch based on density feedback.
Core problem: the perturbation density of generative sparse adversarial attacks cannot be set directly—it is indirectly determined by a fixed sparsity coefficient λ, and the mapping from λ to density is unknown and drifts during training, and the authors state that fixed pressure yields almost no further improvement in transferability after density drops.
- Problem setting: generative sparse attacks (TSAA, EGS-TSSA, GPG) train an encoder–decoder generator to learn sparse perturbations on a source model and transfer them to black-box target models, for robustness evaluation. Density (the proportion of perturbed pixels) is a key constraint for such attacks.
- Shortcomings of existing approaches: according to the paper, reaching a target density requires repeated training for TSAA, multi-stage optimization for EGS-TSSA, and fine-tuning with retuned coefficients for GPG; λ is set before a stage begins, and density can only be observed afterward—an open-loop process. Figure 1 shows that the stabilization and fine-tuning stages account for more than half of training, yet transfer ASR barely recovers.
- Core observation: the authors report that under a fixed coefficient the generator replaces more than 30% of support positions each epoch, and the discarded positions are more effective than random positions; this portion of ASR loss is never recovered (Sec. 4.6).
- Proposed approach: Density Feedback Control (DFC) is proposed, which tightens or relaxes the sparsity coefficient at the end of each epoch according to the gap between the hard-mask density and the target, without changing the generator architecture or loss.
- Threat model:
- Goal: generate transferable sparse perturbations that deceive target classifiers whose internal information is not visible (black-box).
- Knowledge: white-box access to the source model ResNet-50; no internal information and no query feedback on the target models (transfer-based).
- Capability: control pixel perturbations of the input image, with magnitude ϵ=10/255, average density target 10%, and additionally test a per-image ℓ0 budget.
- Victim systems: five CNN and five Transformer image classifiers.
What related research exists?
Related work is divided into three groups: query-based sparse attacks, transfer-based sparse attacks, and adaptive control of regularization weights; DFC is an application of the third group's idea to generative attacks.
Query-based sparse attacks
- Su et al. (2019), Jere et al. (2019): early methods used evolutionary search to perturb pixel by pixel or parameterized by lines and curves.
- Yang et al. (2020), Pomponi et al. (2023), Vo et al. (2024): reinforcement learning to search for vulnerable patches, reorder a small number of pixels, and select pixels via Bayesian search under an ℓ0 constraint.
- Song et al. (2024, 2026): a REINFORCE-based remember–forget framework for decision-based attacks, extended from classification and detection to segmentation. The paper notes that such methods require repeatedly querying the target model.
Transfer-based sparse attacks
- PGD0 (Madry et al., 2018; Croce & Hein, 2019), SparseFool (Modas et al., 2019), GreedyFool (Dong et al., 2020), sPGD (Zhong & Liu, 2026): gradient-based per-image methods. The paper notes that they are strong on the source model but have limited transferability when transferred to unseen target models.
- TSAA (He et al., 2022): a generator learns a pixel selection mask M and perturbation values P, yielding faster generation and better transferability.
- EGS-TSSA (Ming et al., 2024): uses a GFI mask derived from source model feature maps to restrict perturbations to class-important regions.
- GPG (Jiang et al., 2026): makes P close to class-related perturbations generated by PGD. The paper notes that prior work mainly improves transferability by designing an adversarial loss Ladv, while λ is still set manually.
Adaptive control of regularization weights
- Preset schedules: cyclical KL annealing (Fu et al., 2019); in sparse attacks, Zhu et al. (2021) used a decreasing weight sequence.
- Feedback methods: treat the weight as a Lagrange multiplier updated according to the degree of constraint violation (Platt & Barr, 1987; Rezende & Viola, 2018), including PI (Shao et al., 2020) and PID (Stooke et al., 2020) variants; proxy-Lagrangian (Cotter et al., 2019) trains on a differentiable proxy and updates the coefficient according to the true quantity.
- Target sparsity: adaptive sparse loss (Retsinas et al., 2021) and constrained optimization (Gallego-Posada et al., 2022).
Baselines and benchmarks: the comparison baselines are PGD0, sPGD (proj/unproj), SparseFool, GreedyFool, and the three generative base attacks TSAA, EGS-TSSA, and GPG; all are evaluated on ImageNet.
Author positioning: to their knowledge, no generative sparse attack has yet controlled density during training via feedback; DFC introduces proxy-Lagrangian-style feedback into this setting, and the coefficient responds to the actual evaluated hard-mask density.
How does the paper address this problem?
DFC treats the sparsity coefficient as a control variable driven by hard-mask density, updating it with momentum at the end of each epoch according to the normalized density error.
Overall idea: without changing the generator architecture or loss, change how the sparsity coefficient λ is set from open-loop fixed to closed-loop feedback. Density Feedback Control (DFC) measures the average density of the actually generated hard masks at the end of each epoch and updates λ according to its deviation from the target, replacing the multi-stage retuning schedules of existing attacks.
Problem formulation
- Objective: given a target average density ρ, minimize the adversarial loss under the constraint ρ(θ)=ρ, i.e., minθ Ladv(θ) s.t. ρ(θ)=ρ∗; ρ(θ) is the expected proportion of spatial positions perturbed under the hard mask.
- Difficulty: ρ(θ) comes from a hard mask and is non-differentiable; existing methods instead use the surrogate objective Ladv + λLspa, but the mapping from λ to ρ is unknown, varies across attacks, and is non-stationary during training.
Density measurement
- At the end of each epoch, compute the average density ρt of the hard masks of all training samples in that epoch; a position counts as active if any color channel is perturbed.
- The mask is already computed in the forward pass, and the authors state that the measurement adds no extra overhead.
- Normalized error et = (ρt − ρ∗)/ρ∗; since ρt∈[0,1], the error has a lower bound of −1 and can be large when above the target (up to 9 when ρ*=10%), so density is tightened quickly when too high and relaxed slowly when too low.
Controller
- Within epoch t, λt is fixed; at the end of the epoch, the velocity state and coefficient are updated: vt+1 = (1−c)vt + κet, λt+1 = max{0, λt + vt+1}.
- κ>0 is the feedback gain, c∈(0,1] is the damping coefficient; when c=1 there is no momentum, reducing to the basic multiplier update of Platt & Barr (1987).
- The generator is trained on the differentiable surrogate Lspa, and the coefficient responds to the hard-mask density; the authors state that this resembles proxy-Lagrangian rather than dual ascent on a single Lagrangian.
Gain and initialization
- κ is set according to the order of magnitude of the initial coefficient: κ = 10^⌊log10 λ0⌋, so that the same c can be shared across base attacks with different coefficient scales; DFC's only hyperparameters are c and λ0, and v0 is initialized to 0.
- The controller runs outside the generator's computation graph and adds no trainable parameters (Algorithm 1).
Training procedure and success criterion
- All generative methods are trained for 15 epochs; DFC variants warm-start with λ=0 for 2 epochs (the baseline uses 3 epochs), after which DFC replaces the reduction, stabilization, and fine-tuning stages, uniformly feeding back toward ρ*=10%.
- Coefficient settings (Table 8): λ0=10⁻⁴, κ=10⁻⁴ for GPG and EGS-TSSA; for TSAA, because the default λ0 drove density to zero after warm start, λ0=5×10⁻⁵, κ=10⁻⁵.
- Success criterion: transfer ASR, measured on images correctly classified by each target model; under a per-image ℓ0 budget, an attack counts as successful only if that image's density does not exceed the budget.
What experiments did the paper conduct?
On ImageNet with ResNet-50 as the source model and ten classifiers as targets, DFC improves the transfer ASR of GPG/TSAA with lower density, while EGS-TSSA shows no consistent gain.
Experimental setup
- Source model and targets: source model ResNet-50; ten target models—CNN: DenseNet-161, VGG-16, Inception-v3, Wide ResNet-50, EfficientNet-B6; Transformer: ViT-Small, DeiT-Small, TNT-Small, Twins-Small, Swin-Tiny.
- Data: generative methods are trained on the ImageNet training set and evaluated on all 50,000 validation images; other methods are evaluated on 5,000 validation images sampled with fixed seed 0.
- Baselines: PGD0, sPGD (proj/unproj), SparseFool, GreedyFool (official implementations, default hyperparameters, except for the parameters controlling density), and the original versions of TSAA, EGS-TSSA, and GPG.
- Metrics: average pixel density; transfer ASR (on images correctly classified by each victim model); in-budget ASR under a per-image ℓ0 budget (≤10%/11%/12%).
- Settings: ϵ=10/255, target density 10%; main DFC results use c=0.5; training dynamics additionally test c∈{0.25, 1}. The paper does not report multiple repetitions or variance.
Main results
According to Table 1 (CNN targets) and Table 2 (Transformer targets), average transfer ASR (%) and average density (%):
Swipe horizontally to read the table
Method Density CNN average ASR Transformer average ASR PGD0 10.00 18.78 6.85 sPGDunproj 9.99 20.27 6.93 SparseFool 12.90 13.67 4.58 GreedyFool 12.72 15.60 5.91 GPG 11.69 32.99 9.08 GPG-DFC 10.82 42.09 13.45 TSAA 10.86 25.23 7.48 TSAA-DFC 9.99 40.83 12.65 EGS-TSSA 10.22 29.24 8.87 EGS-TSSA-DFC 10.89 29.54 8.47 - The authors state that DFC improves the transfer ASR of GPG and TSAA at lower density, and that the gain does not come from perturbing more pixels; per model, ASR instead decreases on IncV3, VGG16, Swin-T, etc. (by up to 4.92 pp).
- After adding DFC to EGS-TSSA, CNN ASR goes only from 29.24% to 29.54%, and Transformer ASR drops from 8.87% to 8.47%; the authors conclude from this that the GFI mask and DFC are not complementary.
- The authors state that DFC narrows the gap between TSAA and GPG, proposed four years later, from 7.76 to 1.26 percentage points on CNN.
Per-image ℓ0 budget
- What was measured: attack success requires that a single image's density not exceed the budget; ASR is averaged over the ten victim models (Table 3).
- Results: at ℓ0≤10%, fixed-coefficient GPG and TSAA reach only 7.95% and 6.41%, below PGD0's 12.82% and sPGDunproj's 13.60%; the DFC variants rise to 13.74% and 15.72%, exceeding all baselines under all three budgets; TSAA-DFC at the 10% budget already exceeds the values of all baselines at the 12% budget. EGS-TSSA-DFC shows no improvement (8.96% vs 9.48%).
- Decomposition (Table 4): in the in-budget ASR gains of GPG and TSAA, the success term is larger than the density term (for TSAA, 5.52 vs 3.79 pp); the authors interpret this as DFC not only bringing more images within budget but also attacking the same images more successfully.
Training dynamics and restore experiments
- What was measured: density, ASR, and λt per epoch were tracked for the GPG fixed-coefficient baseline and GPG-DFC (c∈{0.25,0.5,1}), and restore excess (the ASR gain from restoring positions dropped in the previous epoch minus the gain from randomly adding an equal number of positions) was used to measure the quality of dropped positions (Figure 4, Table 6).
- Results: with c=1, density stays within 1 percentage point of the target from epoch 8 onward; with c=0.5, density first dips to 4–5% and then recovers, ending at 10.8%; with c=0.25, it overshoots to 15.6% and ends at 12.6%, outside the band. ASR recovers along with the relaxation of λ and density; with c=0.5 it rises from 17.07% at epoch 6 to 27.08%, surpassing the baseline with fewer pixels.
- Authors' interpretation: the baseline's average restore excess during the stable period is 5.9 pp, higher than the 3.5 pp of DFC (c≥0.5) near the target, i.e., under a fixed coefficient the generator drops more effective pixels; the ASR of c=0.5 reaches the level after restoring positions dropped in the previous epoch, and the authors believe DFC surpasses the baseline by offsetting the loss from dropping.
GFI limitation analysis
- What was measured: EGS-TSSA's restore perturbations were evaluated before and after adding the GFI support S (Table 7, average over epochs 7–14).
- Results: without S, EGS-TSSA-DFC's proposals are better than EGS-TSSA's (25.36% vs 22.44%); with S, they are instead lower (16.74% vs 17.19%).
- Authors' interpretation: the gain from DFC lies outside the GFI support, and the region restriction removes this gain; Table 5 shows that with DFC added, the GFI restriction reduces in-budget ASR by 6.76 pp, of which 5.20 pp comes from the success term.
Other ablations and analyses
- Damping coefficient c: with c=0.5 and c=1, final values are both within 1 percentage point of the target, and final ASR is 27.76% and 27.72%, respectively (Sec. 4.6).
- Support replacement rate: the baseline replaces 31–44% per epoch, DFC 35–66% (App. A).
- Randomly adding positions raises the baseline's ASR by 0.90–2.18 pp and lowers each DFC run by 0.25–0.89 pp (App. A).
- The baseline's restore excess is higher than all DFC runs in every epoch, with a minimum of 4.73 pp still above the DFC maximum of 4.11 pp (Table 6).
- Negative results: DFC reduces the ASR of some attacks on IncV3, VGG16 (CNN) and Swin-T, Twins-S (Transformer); it shows no consistent gain for EGS-TSSA.
What are some points that can be further explored?
The authors list two types of limitations and future directions—per-image budget and region restriction—and state that the evaluation covers only a single density, source model, and dataset.
Limitations and future directions noted by the authors
- Only average density is controlled (Appendix F): DFC controls average density, but density still varies across images, and perturbations exceeding the per-image ℓ0 budget do not satisfy the constraint; under a strict budget, ASR remains below the level at the same average density without a per-image constraint. The authors propose feeding back an upper quantile of the per-image density distribution instead, leaving it for future work.
- Incompatible with region restrictions (Appendix F): when the base attack restricts perturbations to a predefined region (such as the GFI region of EGS-TSSA), pixel reselection after relaxing the pressure is confined to the region, and DFC shows no consistent gain; combining density feedback with such region restrictions is left for future work.
- Evaluation coverage (Conclusion): the authors state that the evaluation covers only a single target density, a single source model, and a single dataset.
- Training dynamics evidence (Conclusion): the training dynamics come from a single seed of GPG.
- TSAA initialization adjustment (Conclusion, App. E): TSAA's λ0 was lowered to 5×10⁻⁵ because the default value drove density to zero after warm start.
- Per-image density feedback (Conclusion): the authors explicitly list extending the feedback to per-image density as future work.
Scope of the experiments
- Ten target models were tested: five CNNs (DenseNet-161, VGG-16, Inception-v3, Wide ResNet-50, EfficientNet-B6) and five Transformers (ViT-Small, DeiT-Small, TNT-Small, Twins-Small, Swin-Tiny); the only source model is ResNet-50.
- The only dataset is ImageNet; the only target density is 10%, and per-image budgets were tested at three levels: ℓ0≤10%/11%/12%.
- The base attacks are TSAA, EGS-TSSA, and GPG; the gradient-based baselines are PGD0, sPGD, SparseFool, and GreedyFool, using official implementations with default hyperparameters.
- Generative methods are evaluated on all 50,000 validation images; other methods are evaluated on a 5,000-image sample with a fixed seed.
- The paper does not report multi-seed repetitions, variance, or statistical significance tests; the random masks in the restore experiments use only a single random seed (App. A).
Summarize the main content of the paper
DFC replaces the fixed sparsity coefficient with density feedback, hits the target density in a single training run, and improves the transfer ASR of GPG/TSAA; it is ineffective for EGS-TSSA.
A paper on a training control method for transfer-based sparse adversarial attacks, aimed at black-box robustness evaluation scenarios.
- Problem: the perturbation density of generative sparse attacks is indirectly determined by a fixed sparsity coefficient λ; the mapping is unknown and drifts during training, so reaching a target density requires repeated hyperparameter tuning; the authors state that under fixed pressure the stabilization and fine-tuning stages can hardly recover the transferability loss caused by density decline.
- Method: DFC measures the average hard-mask density at the end of each epoch and updates λ according to the normalized error with damped momentum (the gain is set automatically according to the magnitude of λ0), without changing the generator architecture or loss, replacing multi-stage schedules.
- Density control: under the setting of ImageNet, ResNet-50 as the source model, and a target density of 10%, a single DFC training run controls the average density of the three base attacks to within 1 percentage point of the target (Table 1, Figure 4).
- Transferability: GPG-DFC's average ASR on five CNN targets rises from 32.99% to 42.09%, and TSAA-DFC's from 25.23% to 40.83%, with lower density; on Transformer targets they rise from 9.08% and 7.48% to 13.45% and 12.65%, respectively (Table 1, 2).
- Per-image budget: at ℓ0≤10%, TSAA-DFC's in-budget ASR reaches 15.72%, exceeding all baselines at a 12% budget; the decomposition shows the gains come mainly from attack success on the same images rather than merely falling within budget (Table 3, 4).
- Exceptions and conclusion: DFC yields no consistent benefit for EGS-TSSA with restricted perturbation regions; the authors analyze that the GFI region restriction removes DFC's gains outside the region; the authors believe density feedback lets the generator reselect pixels when pressure is relaxed, offsetting the discard loss, and note that the evaluation is limited to a single density, source model, and dataset, with per-image density feedback left for future work.
Related papers
Show 3 more papers
- Ensemble Adversarial Training: Attacks and DefensesDefensesarXiv
- Semantic-aware Adversarial Fine-tuning for CLIPDefensesarXiv