Does improving adversarial robustness require labeled data?Are Labels Required for Improving Adversarial Robustness?
The authors propose unsupervised adversarial training (UAT), achieving 54.1% robust accuracy on CIFAR-10 using only 4K labels plus 32K unlabeled data, and report that using 80M Tiny Images raises the best CIFAR-10 result from 52.58% to 56.30% (MultiTargeted attack).
Defender's goal: train an image classifier robust to L∞ adversarial perturbations (ε=8/255 on CIFAR-10, ε=0.01 on SVHN), with the attacker generating perturbations via PGD-type inner maximization; evaluation uses FGSM20 and the stronger MultiTargeted attack. The paper focuses on defense (a training method) and does not set an assumption about the attacker's knowledge.
- Adversarial training is believed to require far more labeled data than standard classification, and labeled data is expensive. The authors ask: must improving adversarial robustness rely on labels, and is unlabeled data sufficient?
- Proposes Unsupervised Adversarial Training (UAT): UAT-OT minimizes a smoothness loss (KL divergence, PGD inner maximization) on unlabeled data, UAT-FT generates pseudo-labels with a base classifier and then performs standard adversarial training, and UAT++ combines the two; it also gives a sample complexity theory under a Gaussian model.
- On CIFAR-10, UAT++ with 4K labels + 32K unlabeled reaches 54.1% (FGSM20), close to the supervised oracle's 55.5%; using 80m@200K uncurated data and WRN-106 raises the best CIFAR-10 result from 52.58% to 56.30% (MultiTargeted).
- The paper has no dedicated limitations section; the appendix notes that 80m@500K degrades performance because it contains more out-of-distribution images, that combining UAT with UDA showed no improvement, and that a better pipeline for utilizing uncurated data is worth studying. Experiments cover only two image benchmarks, CIFAR-10 and SVHN.
- Evaluated models
- UAT-OT (WRN-28)UAT-FT (WRN-28)UAT++ (WRN-28)UAT++ (WRN-34)UAT++ (WRN-70)UAT++ (WRN-106)
- Benchmarks
- CIFAR-10SVHN80 Million Tiny Images (80m@100K/200K/500K)
- Metrics
- adversarial accuracy (FGSM20)adversarial accuracy (MultiTargeted)natural accuracy
When training adversarially robust models, unlabeled data can be a competitive substitute for labeled data. The paper points out that the amount of training data required to make a model invariant to adversarial perturbations is far greater than for standard classification, and that expensive labeled data is a major obstacle to deploying robust models; theoretically, under a simple statistical setting, the sample complexity of learning a robust model from unlabeled data differs from the fully supervised case by only a constant factor. On CIFAR-10, a simple unsupervised adversarial training (UAT) method improves robust accuracy by 21.7% compared with using only 4K labeled samples, and achieves more than 95% of the improvement that the same number of labeled samples can bring; after further using unfiltered unlabeled data from the 80 Million Tiny Images dataset, it improves over the previous best level on CIFAR-10 by 4% against the strongest known attack. The authors claim that this result shows the finding also holds in a more realistic scenario where unlabeled data is unfiltered, opening a new avenue for improving adversarial training.
Paper analysis
What problem does this paper attempt to solve?
Does adversarially robust training require large amounts of labeled data? The authors hypothesize that unlabeled data is sufficient as a substitute and propose UAT to test this.
Core question: must training an adversarially robust classifier rely on large amounts of labeled data, or can cheap unlabeled data alone achieve comparable robustness.
- Problem setting: the authors note that deep models are susceptible to adversarial perturbations and that adversarial training is the mainstream defense; recent theoretical work ([41]) argues that adversarial generalization requires far more data than standard classification, which becomes a deployment obstacle in real-world applications where labeling is expensive (e.g., healthcare).
- Shortcomings of existing methods: supervised adversarial training ([30]) and TRADES ([54]) use only labeled data; the authors cite that the model of [30] achieves near-100% adversarial accuracy on the CIFAR-10 training set but only 46% on the test set, indicating a gap in adversarial generalization.
- Core observation/hypothesis: the authors' central hypothesis is that additional unlabeled samples may suffice to improve adversarial robustness. This rests on two points: robustness depends on the classifier's smoothness around natural images, which can be estimated from unlabeled data; and standard generalization requires relatively few labels, so if adversarial training is robust to label noise, labels can be propagated to unlabeled samples.
- What the paper proposes: Unsupervised Adversarial Training (UAT), with three variants UAT-OT, UAT-FT and UAT++; it proves under the Gaussian model of [41] that the sample complexity with unlabeled data differs from the fully supervised case by only a constant factor; and it conducts experiments on CIFAR-10, SVHN and the uncurated 80 Million Tiny Images.
- Threat model:
- Defender's goal: train an image classifier robust to L∞ adversarial perturbations, with ε=8/255 for CIFAR-10 and ε=0.01 for SVHN.
- Attacker's capability: generate perturbations within the L∞ ball via inner maximization (PGD-type methods); the evaluated attacks are FGSM20 and the stronger MultiTargeted.
- Victim system: WideResNet-family image classifiers.
- The paper does not discuss the attacker's knowledge setting (white-box/black-box); the attack implementation uses model gradients.
What related research exists?
Related work is divided into four groups: adversarial robustness and generalization, semi-supervised learning, concurrent semi-supervised robustness work, and the baselines compared in this paper.
Adversarial robustness and adversarial generalization
- [5, 43] found that neural networks are vulnerable to adversarial examples; many defenses have since been proposed, but the paper notes that few can withstand stronger attacks [1, 8, 46].
- Adversarial training [17, 26, 30] minimizes adversarial risk by approximately solving the inner maximization with PGD; TRADES [54] instead minimizes a surrogate loss that upper-bounds adversarial risk, and the paper notes that its objective is similar to UAT-OT but is estimated only on labeled data.
- [41] argues that adversarial generalization may require more data than natural generalization; [21] uses pretraining on the large supervised dataset ImageNet to improve robustness. The paper also mentions that [20, 40, 42] use generative models to detect or denoise adversarial examples, but notes that such methods have so far failed to withstand strong attacks [1, 46].
Semi-supervised learning
- Smoothness regularization methods [3, 4, 27, 32, 39, 50] train models to be invariant to small perturbations of unlabeled samples; among them, VAT [32] also uses adversarial perturbations to smooth model outputs.
- Co-training [6] and its extensions [12, 37] iteratively construct additional labeled data from the most confident predictions on unlabeled data. The paper notes that these works all target standard generalization, whereas this paper applies similar ideas to adversarial generalization.
Concurrent semi-supervised robust work
- [10, 33, 53] independently and concurrently found that adversarial robustness can be optimized without labels; among them, Robust Self-Training (RST) in [10] is almost equivalent to the fixed-target variant of UAT, differing only in whether the base algorithm uses the robust loss of [54] or the original adversarial training objective of [30]. The paper states that the results of [10] provide independent evidence that unlabeled and uncurated data can improve robustness on CIFAR-10 and SVHN.
Baselines and benchmarks
- Baseline methods: standard adversarial training AT [30], TRADES [54], VAT [32] adapted for unsupervised adversarial training, and a supervised oracle that has access to the true labels of Um; large-scale experiments also compare with [21] (ImageNet pretraining).
- Benchmarks/datasets: CIFAR-10, SVHN, and 80 Million Tiny Images as the source of uncurated data (filtered into 80m@100K/200K/500K).
The authors position this paper as directly studying the question of "whether more labeled data is necessary and whether unlabeled data is sufficient," and state that to their knowledge this question has not been directly studied before.
How does the paper address this problem?
UAT uses unlabeled data to minimize a smoothness loss or a pseudo-label robust loss, combined with a weighted supervised loss; the theory is analyzed under a Gaussian model.
Overall idea: decompose adversarial risk into a classification loss and a smoothness loss; the smoothness loss does not depend on labels and can therefore be optimized on unlabeled data. Unsupervised Adversarial Training (UAT) gives two unsupervised losses, combined with the supervised loss weighted by a hyperparameter λ: L(θ) = Lsup(θ) + λLunsup(θ).
Problem setup and notation
- Learn a predictor fθ(x) = arg max pθ(y|x); a labeled set Sn (n samples) and an unlabeled set Um (m samples) are available, focusing on the case m ≫ n.
- The main objective is to minimize adversarial risk Ladv(θ) = EP(X,Y) supx′ ∈ Nϵ(x) ℓ(y, fθ(x′)), where Nε(x) is the L∞ ball; meaning: the expected 0-1 loss under the worst perturbation. The inner maximization cannot be solved exactly and is approximated with a fixed attacker g (a PGD variant).
UAT-OT: online target
- Based on the decomposition Ladv ≤ Lnat + E sup ℓ(fθ(x'), fθ(x)), the second term (smoothness loss) does not depend on labels; the authors cite that the model of [30] has 87% natural accuracy and 46% adversarial accuracy on CIFAR-10, and argue that the smoothness loss dominates the test error.
- A differentiable surrogate for directly minimizing the smoothness loss: LOTunsup(θ) = Ex ∼ P(X) supx′ ∈ Nϵ(x) D(pθ̂(.|x), pθ(.|x′)), where D is KL divergence and θ̂ is a gradient-blocked copy of the parameters; meaning: make the prediction distributions before and after perturbation close.
- Unlike VAT [32], which uses a single-step approximation, UAT-OT uses an iterative PGD attacker, because the authors cite prior work holding that strong attackers are key to effective adversarial training [26, 30].
UAT-FT: fixed target
- First train a standard-generalization base classifier on Sn, use it to estimate pseudo-labels for Um (fixed target), then perform standard supervised adversarial training on these samples, with the loss being inner maximization over cross-entropy (Equation 2).
- The authors state that given a sufficiently large unlabeled set, UAT-FT recovers a smoothed version of the base classifier: it matches the base classifier's predictions on clean data while keeping predictions stable within local neighborhoods.
Overall training and implementation
- UAT++ uses both unsupervised losses simultaneously; the unsupervised losses can also act on samples in Sn. All experiments use λ=5 (determined based on early experiments).
- The inner maximization is approximated with 10-step PGD; UAT-OT uses a "hard-label" attack (taking the argmax pseudo-label to run PGD), which the authors state works better in their experiments than directly maximizing KL; UAT++ reuses the adversarial examples computed for the robust loss to save computation.
- Training uses SGD with momentum and weight decay 5×10⁻⁴; Section 4.1 uses total batch 128, 25K steps, initial learning rate 0.2 with a decay schedule; Section 4.2 uses bs=512, bu=4096. In distribution-shift experiments, labeled and unlabeled samples are forward-propagated separately, and the unlabeled loss is down-weighted by bs/bu.
Theoretical model
- Adopts the Gaussian model of [41]: label y is uniform over {±1}, x is sampled from N(y·θ*, σ²I). [41] proves that under this setting, achieving a fixed adversarial accuracy requires Ω(ε²√d/log d) labeled samples.
- The paper defines the Gaussian UAT-FT estimator (first estimate a base classifier with one labeled sample, then compute the sample mean using its pseudo-labels); Theorem 1 gives: when n=1, only m ≥ cε²√d unlabeled samples are needed to achieve robust classification error of no more than 1% with high probability, differing from the fully supervised sample complexity of [41] by only a constant factor (proof in Appendix G).
What experiments did the paper conduct?
With few labels, UAT++ approaches the supervised oracle; using 80m@200K and WRN-106, it raises the best robust accuracy on CIFAR-10 to 56.30% (MultiTargeted).
Experimental setup
- Models evaluated: WideResNet variants—Section 4.1 uses WRN-28 (width 8) for CIFAR-10 and WRN-28 (width 2) for SVHN; Section 4.2.2 uses WRN-34/70/106 (width 8).
- Datasets: CIFAR-10 (ε=8/255) and SVHN (ε=0.01); a small supervised set Sn is randomly split from the training set (n=4000 for CIFAR-10, n=1000 for SVHN), the rest is used as unlabeled data, and another 10000 examples are split off as a validation set; Section 4.2 uses 80m@100K/200K/500K filtered from 80 Million Tiny Images.
- Baselines: standard adversarial training AT [30], TRADES [54], VAT [32], supervised oracle (Um samples are also given true labels); Section 4.2.2 also compares with [21] (ImageNet pretraining).
- Metrics and attacks: adversarial accuracy, mainly using 20-step iterative FGSM (FGSM20); Section 4.2.2 adds the MultiTargeted attack (200 steps per class, 20 random restarts), and the authors state that in their experiments MultiTargeted is stronger than PGD with random restarts, which in turn is stronger than FGSM20 (Appendix E.1).
- Sample size and number of repetitions: the paper does not report the number of training repetitions or variance.
Main results
Few-label regime (Figure 1, FGSM20 adversarial accuracy; the main text gives values at 32K/60K unlabeled):
Swipe horizontally to read the table
Setting Supervised-only baseline UAT++ supervised oracle CIFAR-10, n=4K, m=32K 32.5% 54.1% 55.5% SVHN, n=1K, m=60K 66.0% 84.4% 86.2% Large-scale regime (Table 1, CIFAR-10 full supervision + 80m unsupervised, UAT++):
Swipe horizontally to read the table
Method Unsupervised data Network Natural accuracy FGSM20 MultiTargeted TRADES [54] None WRN-34 84.92% 57.11% 52.58% AT-Reimpl. [30] None WRN-34 87.08% 52.93% 47.10% UAT++ 80m@100K WRN-34 86.04% 59.41% 52.64% UAT++ 80m@200K WRN-34 85.85% 62.18% 53.35% UAT++ 80m@500K WRN-34 78.34% 58.04% 48.99% UAT++ 80m@200K WRN-70 86.75% 62.89% 55.04% UAT++ 80m@200K WRN-106 86.46% 63.65% 56.30% - The authors state that with 32K unlabeled samples, UAT++ is 1.4% below the supervised oracle on CIFAR-10, and 1.8% below at 60K on SVHN; without using labels it captures 97.6%/97.9% of the improvement the oracle gains from the additional 32K/60K samples.
- The authors state that UAT++ with 80m@200K and WRN-106 improves over TRADES by 6.54 percentage points under FGSM20 and 3.72 percentage points under MultiTargeted, constituting a new state-of-the-art on CIFAR-10.
- Performance degrades at 80m@500K, which the authors attribute to that set containing more out-of-distribution images; the authors also note underfitting observed with larger training sets, hence exploring deeper networks.
Label noise analysis (4.1.2, Figure 2)
- What was measured: on CIFAR-10 with 4K labels + 16K unlabeled, two kinds of noise were injected into the pseudo-labels for UAT-FT—Correlated (base classifier training samples from 500 to 20K, error rate 7%–48%) and Random (randomly flipping labels).
- Results: in the Random case, adversarial accuracy is essentially flat between 1% and 20% noise, drops by less than 10 percentage points at 50% mislabeled labels, and remains 8.0% higher than the strongest baseline that uses no unsupervised data; in the Correlated case, it is essentially flat between 7% and 23% noise, and at 48% corruption it remains 6.3% higher than the supervised-only baseline.
- Authors' interpretation: unlabeled data mainly improves the generalization of the smoothness loss rather than the classification loss, so it is insensitive to pseudo-label quality; in contrast to Figure 2b, standard training's accuracy drops almost one-to-one under correlated noise (slope -0.78).
Distribution shift and large-scale experiments (4.2, Figure 3 and Table 1)
- Low-data regime: when Um is drawn from 80m@200K, UAT++ reaches 48.6% with 32K unlabeled samples, 16.2 percentage points higher than TRADES using only 4K supervised samples; but 5.5 percentage points lower than when Um is drawn from CIFAR-10. Authors' conclusion: in-distribution unlabeled data is better, but out-of-distribution unlabeled data is still far better than none.
- Gradient masking check (Appendix E): for the strongest model (80m@200K, WRN-106), FGSM20 is 63.65%, untargeted PGD (200 steps, 20 restarts) is 61.10%, and MultiTargeted is 56.30%; the gradient-free attack SPSA achieves 64.9%, not lower than PGD. The authors state they found no evidence that other attacks can exceed MultiTargeted.
Other ablations and analyses
- L2 robustness (Appendix F): CIFAR-10, 4K labels + 32K unlabeled, at ε=0.87 supervised-only is 32.7%, oracle 53.9%, UAT 55.2%; at ε=0.435 they are 47.3%/70.3%/66.3% respectively.
- Number of labels (Appendix F): on CIFAR-10 with 2K and 1K labels, UAT reaches 51.9% and 47.7% respectively, with a larger gap to the oracle than the 1.4 percentage points at 4K labels.
- Comparison of UAT variants (Figure 1): with large samples on CIFAR-10, UAT-FT outperforms UAT-OT, while on SVHN the two are similar; UAT++ outperforms either single variant; at 32K/60K, even the weakest UAT-OT is 12.9%/16.9% higher than the baseline that uses no unsupervised data.
- Negative observations (Appendix A.2): combining UAT with UDA [50] showed no improvement in adversarial accuracy; InstanceNorm and GroupNorm are slightly worse; if the unsupervised loss does not use fixed parameters or a fixed target, the model degenerates to uniform predictions.
What are some points that can be further explored?
The paper has no dedicated limitations section; the appendix records several negative observations and states that a better pipeline for utilizing uncurated data is worth studying.
Limitations and future directions noted by the authors
- The paper has no Limitations or Future Work section; at the end of Appendix C, the authors state that they used only a simple filtering pipeline and did not try alternatives, and that developing a better pipeline for utilizing uncurated data is an important and understudied direction (Appendix C).
- Appendix A.2 records negative observations: combining UAT with the semi-supervised method UDA [50] showed no improvement in adversarial accuracy; InstanceNorm [47] and GroupNorm [49] give slightly worse results (Appendix A.2).
- Appendix A.2 also notes that when using L_OT on unsupervised data, the target parameters must be fixed or a fixed target must be used simultaneously; otherwise the model learns to predict a uniform distribution for unlabeled images, with test accuracy near random (Appendix A.2).
- Section 4.2.2 notes that performance degrades at 80m@500K, which the authors attribute to it containing more out-of-distribution images; it also notes underfitting when using a larger training set (Section 4.2.2).
- Appendix F shows that when labels are reduced to 2K/1K, the gap to the supervised oracle grows (51.9%/47.7%), and the authors state that robustness remains in this regime but at a cost (Appendix F).
Scope of experiments
- The models evaluated are from the WideResNet family (WRN-28 width 2/8, WRN-34/70/106), the datasets are CIFAR-10 and SVHN, and the source of uncurated data is 80 Million Tiny Images (Section 4, Appendix A.1).
- The evaluated attacks are FGSM20, untargeted PGD (200 steps, 20 restarts), MultiTargeted (200 steps per class, 20 restarts), and the gradient-free SPSA; the perturbation constraint is L∞ (CIFAR-10 ε=8/255, SVHN ε=0.01), with L2 (ε=0.87 and 0.435) added in Appendix F (Section 4, Appendix E, F).
- Few-label experiments cover n=4000 (CIFAR-10) and n=1000 (SVHN), with 2K and 1K labels added in Appendix F; unlabeled sample sizes go up to 60K (SVHN) and 80m@500K (Section 4.1, 4.2, Appendix F).
- The paper does not report the number of training repetitions, the number of random seeds, or the variance/confidence intervals of results.
- The theoretical analysis is limited to the binary Gaussian model and linear classifier of [41] (Section 3.2, Appendix G).
Summarize the main content of the paper
UAT performs adversarial training with unlabeled data: 4K labels suffice to approach fully supervised robustness, and it sets a new best result on CIFAR-10 using uncurated data.
A defense paper on adversarial robustness that asks "must adversarial training rely on large amounts of labeled data?" The authors propose Unsupervised Adversarial Training (UAT), hypothesizing that unlabeled data can substitute for labeled data to improve adversarial robustness.
- Method: UAT-OT minimizes a smooth loss on unlabeled data (KL divergence, PGD inner maximization); UAT-FT uses a base classifier to generate pseudo-labels and then performs standard adversarial training; UAT++ combines both, weighted with the supervised loss by λ=5. Theoretically, in the Gaussian model of [41], the authors prove that 1 labeled sample plus O(ε²√d) unlabeled samples suffice to achieve 1% robust error, differing from the fully supervised sample complexity by only a constant factor.
- Few-label results: On CIFAR-10 with 4K labels + 32K unlabeled, UAT++ reaches 54.1% (FGSM20), 21.7 percentage points above the 32.5% of pure supervision and close to the supervised oracle's 55.5%; on SVHN with 1K labels + 60K unlabeled it reaches 84.4%, versus 86.2% for the oracle.
- Label noise: When about 50% of labels are corrupted, UAT-FT is still 8.0% higher than the strongest baseline without unsupervised data; the authors believe unlabeled data mainly improves generalization of the smooth loss.
- Uncurated data: Using 80m@200K filtered from 80 Million Tiny Images plus WRN-106, UAT++ reaches 63.65% (FGSM20) and 56.30% (MultiTargeted) on CIFAR-10; the authors report a 3.72 percentage point improvement over TRADES's 52.58%, constituting a new state-of-the-art; gradient masking checks (SPSA, loss landscape, convergence analysis) found no evidence that the evaluation is weak.
- Authors' conclusion: Labeled data may be less important for adversarial robustness than commonly thought, and unlabeled or even uncurated data can bring most of the improvement; the authors consider this especially meaningful for domains where labeling is expensive (e.g., medical).