Two Heads are Better than One: Towards Better Adversarial Robustness by Transduction and RejectionTwo Heads are Actually Better than One: Towards Better Adversarial Robustness via Transduction and Rejection
The authors propose TLDR, a defense combining transduction and rejection, and state that it achieves 0.739 robust accuracy on CIFAR-10 (l∞, 8/255), outperforming the baselines.
At test time the defender has access to (possibly perturbed) unlabeled test inputs and retrains (transduction), and can reject inputs (rejection); the attacker can perturb each test input within an l∞ ball (MNIST ϵ=0.3, CIFAR-10/100 ϵ=8/255), and the attacker knows the defense and can use a GMSA-style adaptive attack that simulates defense training round by round.
- Transduction and rejection have each been used for adversarial robust defenses, and theory shows that combining the two yields guarantees that neither alone can achieve, but the construction of Goldwasser et al. performs poorly in deep learning practice. The authors aim to realize the potential of this combination in practical settings with bounded perturbations.
- Theoretically apply Tramèr's classifier-to-detector reduction to the transductive setting, giving linear VC-dimension sample complexity under OPTU2/3=0; based on this, design TLDR: perform adversarial training on the training set and test inputs, then use PGD to approximately implement a selective classifier that rejects within radius ϵdefense, together with an adaptive attack designed based on GMSA and the LREJ loss.
- On MNIST and CIFAR-10, TLDR achieves higher robust accuracy under the strongest attack than the inductive, rejection-only, transduction-only, and Rejectron baselines (0.739 vs. 0.448 for AT on CIFAR-10); with WideResNet-28-10, CIFAR-10 reaches 0.816 and CIFAR-100 reaches 0.579, which the authors state exceeds existing results; the rejection-only variant empirically approaches Tramèr's theoretical bound.
- The authors note: the guarantee of Theorem 4.1 requires ∆ to be non-empty; under weaker conditions there is no guarantee of finding a model that satisfies the conditions; TLDR has high training cost and requires the entire batch of test samples, making it unsuitable for low-latency scenarios; its adaptive attack requires multiple rounds of full training and is resource-intensive. The experiments cover only MNIST/CIFAR-10/CIFAR-100 image classification and l∞, l2 perturbations.
- Evaluated models
- LeNetResNet-20WideResNet-28-10
- Benchmarks
- MNISTCIFAR-10CIFAR-100
- Metrics
- robust accuracypREJ (rejection rate)ASRRASR
The researchers propose a new adversarial defense method combining transduction and rejection, with robust accuracy significantly better than existing techniques. Its core is to reverse the reduction technique that Tramèr previously used only to reveal the fragility of defenses, using it to build a defense, and to prove that the transductive setting can significantly improve the sample complexity of robust generalization. Under state-of-the-art attacks with an l∞ perturbation budget of 8/255, the method achieves robust accuracy of 81.6% on CIFAR-10 and 57.9% on CIFAR-100.
Paper analysis
What problem does this paper attempt to solve?
The authors attempt to realize in deep learning the theoretical advantages of transduction+rejection, and present a practical defense, TLDR.
Core question: how to bring the theoretical advantages of combining transduction (using test inputs) with rejection (abstention) into practical deep learning defenses.
- Background and motivation: The authors state that Goldwasser et al. (2020) proved that transduction+rejection can achieve guarantees that neither technique alone can achieve, but that this work performs poorly under GMSA attacks in practical deep learning settings (abstract, Section 1).
- Shortcomings of existing methods: Pure transduction (Montasser et al., 2021) requires stronger data assumptions (the realizable case requires OPTU2=0 rather than OPTU=0 in the inductive setting); the sample complexity of pure rejection depends exponentially on the VC dimension; neither has yet produced a practical deep robust learning mechanism (Section 1, Table 1).
- Core observation: The authors' key observation is that Tramèr (2022)'s classifier-to-detector reduction technique had previously been used only to demonstrate the fragility of certain defenses, whereas applying it in the transductive setting can construct an effective defense, and that bounded perturbations are key to this construction holding (abstract, Section 1).
- Paper contributions: Theoretically, Theorem 4.1 is given (a generalization bound under OPTU2/3=0); based on this, the practical algorithm TLDR and a corresponding adaptive attack are designed; evaluated on MNIST/CIFAR-10/CIFAR-100 with AutoAttack and GMSA (Sections 4–6).
- Threat model (Section 3, 6.1):
- Attacker goal: apply perturbations to test inputs to make the defense err (misclassify or reject clean samples).
- Knowledge and capability: the attacker can perturb each test input within U(x) (l∞ ball, MNIST ϵ=0.3, CIFAR-10/100 ϵ=8/255); the adaptive attack can simulate defense training round by round (GMSA).
- Defender capability: at training time the defender has access to (possibly perturbed) unlabeled test inputs (transduction), and can output rejection ⊥ (rejection); rejecting perturbed samples does not count as an error, rejecting clean samples counts as an error.
- Victim system: image classifiers (LeNet, ResNet-20, WideResNet-28-10).
What related research exists?
Related work falls into four categories: inductive robust learning, rejection, transduction, and theoretical work on transduction+rejection.
Inductive (conventional) robust learning
- Madry et al. (2018) PGD adversarial training and Zhang et al. (2019) TRADES—mainstream effective methods; the paper states they are effective on small datasets such as MNIST but still insufficient on CIFAR-10 and ImageNet (citing Croce et al., 2020).
- Defenses other than adversarial training—the paper states most are broken by strong adaptive attacks (Croce & Hein, 2020; Tramer et al., 2020).
Robust learning with rejection
- Laidlaw & Feizi (2019), Pang et al. (2022), Kato et al. (2020), Sotgiu et al. (2020), etc.—adversarial training variants with a rejection option; Stutz et al. (2020) generalize to unseen attacks, and Sheikholeslami et al. (2020, 2022) and Baharlouei et al. (2022) combine with certified robustness.
- Tramèr (2022)—proves that in the inductive setting robust learning with rejection is equivalent to standard robust learning, and states that past evaluations of rejection defenses are unreliable; its classifier-to-detector construction is the theoretical source of this paper's method.
Transduction / test-time defenses
- Goodfellow (2019), Wang et al. (2021), Wu et al. (2020)—study similar settings from a "test-time defense" or "dynamic defense" perspective.
- Montasser et al. (2021)—give the sample complexity of transductive robust learning from a learning-theory perspective, reducing the VC-dimension dependence from exponential to linear, but require the stronger assumption OPTU2=0.
- Chen et al. (2022)—formalize transductive robustness as a maximin problem and propose the adaptive attack GMSA; this paper's attack and evaluation are built directly on it.
Transduction+rejection
- Goldwasser et al. (2020)—the paper states this is the first work to formalize transductive robust learning and the first to consider transduction+rejection, giving theoretical guarantees for arbitrary perturbations; Chen et al. (2022)'s GMSA shows it performs poorly in practical deep learning settings.
Baselines and benchmarks: the experimental baselines are AT (Madry et al., 2018), AT (with rejection), RMC (Wu et al., 2020), DANN (Ganin et al., 2016), TADV (Chen et al., 2022), and URejectron (Goldwasser et al., 2020), with datasets MNIST, CIFAR-10, and CIFAR-100; comparisons are also made with RobustBench entries Peng et al. (2023) and Wang et al. (2023) (Croce et al., 2020) (Tables 5, 6).
Authors' positioning: compared with Goldwasser et al., which considers arbitrary perturbations, this paper focuses on bounded perturbations, the classic practical setting; compared with Montasser et al., it does not require stronger data assumptions (the realizable case only requires OPTU2/3=0) (Section 1).
How does the paper address this problem?
The theory gives Theorem 4.1; based on this, TLDR is designed: test inputs participate in adversarial training, then PGD is used to approximate the rejection transformation, together with an adaptive attack.
Overall approach: first prove theoretically that applying Tramèr's classifier-to-detector reduction to the transductive setting yields a generalization guarantee with linear VC-dimension dependence under weaker conditions; then use the theory to guide the design of the practical algorithm TLDR (Transductive Learning Defense with Rejection), and design an adaptive attack for this new setting.
Problem setting and formalization
- Four settings: inductive, rejection (selective classifier h : X → Y ∪ {⊥}, where rejecting a clean sample or accepting but misclassifying counts as an error), transduction (the learner sees unlabeled test inputs z̃ and only needs to predict on this batch of test inputs), and this paper's transduction+rejection (Section 3, error definition in Table 2).
- The theoretical analysis assumes binary classification Y={±1}; U is the perturbation set (for an l_p ball of radius ϵ, U 1/2 corresponds to radius ϵ/2, and U 2 corresponds to 2ϵ).
Theoretical result (Theorem 4.1)
- Under OPTU2/3=0 (there exists a classifier with zero robust error against a 2ϵ/3 budget), there exists a transductive learner that constructs a set of selective classifiers ∆: if ∆ is non-empty, then the robust error of any h∈∆ is bounded by (VC(H)log(2n)+log(1/δ))/n (with probability ≥1−δ).
- Compared with pure transduction (which requires OPTU2=0), the condition is weaker: for a distribution with margin 2ϵ, pure transduction can only tolerate a budget of ϵ, whereas combining with rejection can tolerate 3ϵ; compared with pure rejection, the sample complexity drops from exponential to linear (Table 1).
- Proof idea: take the intermediate perturbation z̃′ = x̃ + (z̃ − x̃)/3, find h that is ϵ/3-robustly correct on the training set and has an ϵ/3 margin at z̃′; then use the transformation FU1/3 to turn h into ĥ—reject if x is within ϵ/3 of h's decision boundary, otherwise accept and output h(x). h being correct at z̃′ implies ĥ does not err at z̃ (the two cases (a)(b) in Figure 1).
- Note: ∆ may be empty (sound but not guaranteed complete); non-emptiness is guaranteed by Lemma A.14 only under OPTU2=0 (the same condition as pure transduction).
TLDR algorithm (Section 5)
- Step 1 training: perform adversarial training on the training set and test inputs, with objective minh [ 1/n∑ LCE + maxx′∈ U(x) LCE + λ/m∑z̃ maxz̃′∈ U(z̃) LCE(hs(z̃′), h(z̃)) ] (Eq. 6), i.e., the standard adversarial loss plus a robust consistency term on test inputs (following TADV's private randomness); λ>0 is a hyperparameter, and in the implementation the transductive term is added only in the latter half of training (warm start, Appendix B.3).
- Step 2 rejection transformation: Tramèr's construction is computationally infeasible, so the authors approximate it with PGD: for each input, within radius ϵdefense (rejection radius), use PGD to maximize cross-entropy to find a point that changes the prediction; if found, reject (Eq. 7).
- Computational cost: the authors state that TLDR's training cost is at most twice that of standard adversarial training, and the transformation cost is the same as PGD; however, retraining is required each time a new batch of test samples arrives, making it suitable for scenarios with low-latency requirements where training cost can be amortized (Section 5).
Adaptive attack (Section 5.1)
- The authors state that no strong adaptive attack existed for this setting previously, so they design one based on GMSA: GMSA simulates defense training round by round to obtain a sequence of models and updates perturbations, but it does not directly apply to selective classifiers with rejection.
- New loss LREJ(z̃, y) := LCE(hs(z̃), y) + λ′ |z̃ − p(z̃)| (Eq. 8): the first term encourages misclassification, and the second term encourages the distance between the perturbed point and the nearest point on the decision boundary to reach ϵdefense so as to avoid rejection; boundary proximity is measured by LDB,h = second-largest class probability − largest class probability.
- Post-processing: estimate the success probability using the failure rates of historical models on clean and perturbed points; if the clean point is more likely to be misclassified, do not perturb that point (Algorithm 1, Appendix B.5).
What experiments did the paper conduct?
TLDR outperforms all baselines on MNIST/CIFAR-10, reaching 0.739 on CIFAR-10 (ResNet-20), and is claimed to exceed existing SOTA.
Experimental setup
- Datasets and budgets: MNIST (l∞, ϵ=0.3), CIFAR-10 (l∞, ϵ=8/255); the appendix additionally has l2 (MNIST ϵ=5, CIFAR-10 ϵ=128/255) and CIFAR-100 (l∞, 8/255) (Section 6.1, Appendix C.8).
- Architectures: LeNet for MNIST, ResNet-20 for CIFAR-10; WideResNet-28-10 is used when comparing with SOTA (Table 6).
- Training: 40 epochs, ADAM, learning rate 0.001; MNIST training uses 40-step PGD (step size 0.01), CIFAR-10 uses 10 steps (step size 2/255); λ=0.176 (0 during warm start); rejection radius is ϵ/4 (Section 6.1).
- Attacks: AutoAttack for inductive models; PGD(LREJ) for inductive selective classifiers; GMSA for transductive models (the stronger of GMSAMIN and GMSAAVG, 10 rounds); this paper's adaptive attack (approximately GMSA+LREJ) for TLDR; GMSA(LDISC) for Rejectron. Inner PGD for attacks: 200 steps for MNIST, 100 steps for CIFAR-10; LREJ inner optimization 10 steps with step size 15% of the rejection radius; λ′=1 (Section 6.1, 6.3).
- Metrics: robust accuracy = 1 − robust error (defined in Section 3), pREJ is the rejection rate; results for the strongest attack are shown for each defense (Table 5).
- Baselines: AT, AT (with rejection), RMC, DANN, TADV, URejectron; baseline results are taken from (Chen et al., 2022) (note to Table 5).
Main results
According to Table 5 (l∞, MNIST ϵ=0.3, CIFAR-10 ϵ=8/255):
Swipe horizontally to read the table
Setting Defense Attacker MNIST robust accuracy CIFAR-10 robust accuracy Induction AT AutoAttack 0.897 0.448 Rejection only AT (with rejection) PGD (LREJ) 0.968 (pREJ 0.852) 0.634 (pREJ 0.384) Transduction only RMC GMSA (LCE) 0.588 0.396 Transduction only DANN GMSA (LCE) 0.062 0.055 Transduction only TADV GMSA (LCE) 0.943 0.541 Transduction+Rejection URejectron GMSA (LDISC) 0.721 (pREJ 0.274) 0.145 (pREJ 0.000) Transduction+Rejection TLDR (ours) GMSA (LREJ) 0.972 (pREJ 0.126) 0.739 (pREJ 0.208) - Authors' interpretation: transduction or rejection alone can each improve performance, and combining the two works best; TLDR outperforms existing transductive defenses (Section 6.3).
- Comparison with SOTA (Table 6, l∞ 8/255): TLDR with ResNet-20 reaches 0.739 on CIFAR-10, higher than 0.711 for Peng et al. (2023) Ra WideResNet-70-16 and 0.707 for Wang et al. (2023) WideResNet-70-16; TLDR with WideResNet-28-10 reaches 0.816 on CIFAR-10 (pREJ 0.111) and 0.579 on CIFAR-100 (pREJ 0.171), higher than 0.427 for Wang et al. Note that the baseline numbers are inductive robust accuracy under AutoAttack, which differs from TLDR's convention that rejections do not count as errors.
- Rejectron exception: on CIFAR-10, the best-performing τ=1 actually eliminates rejection (pREJ 0.000), and other values give robust accuracy close to 0 (Section 6.3).
Attack effectiveness (Tables 3, 4)
- What was tested: different attacks against TLDR; and fixing an adversarially trained model with rejection and varying the attack loss.
- Results: against TLDR, GMSA(LREJ) is strongest (MNIST 0.972, CIFAR-10 0.739), while PGD(LCE) and AutoAttack are weaker (CIFAR-10: 0.794 and 0.756 respectively); against the fixed model, LREJ (CIFAR-10 0.458) outperforms LCE (0.524) and AutoAttack (0.592).
- Authors' interpretation: transduction-aware attacks (GMSA) and rejection-aware losses (LREJ) are both necessary for evaluating this defense (Section 6.2); in the binarization test in Appendix C.5, some ASRs are slightly below the 0.95 threshold (technically not passing), and the authors state that the results do not show the evaluation to be unreliable.
Comparison of rejection-only with the theoretical bound (Table 7)
- What was tested: the authors' rejection-only defense (trained at ϵ/2=4/255, attacked at 8/255) compared with the half-budget inductive model corresponding to Tramèr's theoretical bound.
- Results: 0.564 on CIFAR-10 ResNet-20, the same as 0.564 for half-budget AT; 0.601 vs. 0.602 on WideResNet-28-10; 0.307 vs. 0.307 on CIFAR-100.
- Authors' interpretation: the robustness of the empirical transformation is close to the upper bound of Tramèr's idealized (computationally infeasible) construction, realizing its practical version (Section 6.4).
Other ablations and analyses
- TLDR component ablation (Table 8): removing rejection drops CIFAR-10 from 0.739 to 0.516; removing the transductive term Ltest raises MNIST to 0.975 (pREJ 0.646), which the authors suggest may be because the MNIST task is simpler.
- Rejection radius (Appendix C.4, Figures 4, 5): robust accuracy is basically stable with ϵdefense; at ϵdefense=ϵ, TLDR's rejection rate is 0.949 on adversarial examples and 0.108 on clean samples; the authors note that the clean rejection rate in the transductive setting should not be regarded as reliable.
- Attack radius extension (Appendix C.6, Figures 6, 7): at ϵ=0.6, transduction+rejection retains 96.2% of the robust accuracy that transduction alone achieves at ϵ=0.3; the accuracy of the inductive classifier rises again after ϵ>0.6, which the authors explain as the model output becoming close to uniform, making the attack slightly harder.
- warm start (Table 9, synthetic Gaussian data): with a 500-epoch warm start, robust rejection accuracy is 0.177, better than 0 and 1000.
- l2 robustness (Table 12): TLDR achieves 0.933 on MNIST (ϵ=5) and 0.845 on CIFAR-10 (ϵ=128/255), higher than the strongest baseline in each setting.
- Generalization (Appendix C.9, Figures 10, 11): with a fixed training set, the 99th-percentile robust error approximately follows an inverse-square-root trend with test set size; when training and test sets are equal in size, it is closer to inverse-cube-root.
What are some points that can be further explored?
The authors note two limitations: the condition that ∆ is non-empty, and high computational cost; the experiments cover only three image datasets and l∞/l2 perturbations.
Limitations and future directions noted by the authors
- ∆ non-empty condition: the sample complexity guarantee of Theorem 4.1 requires ∆ to be non-empty; under weaker conditions there is no guarantee of finding a model that satisfies the conditions (Appendix D; Section 4 also states that non-emptiness is guaranteed by Lemma A.14 only under OPTU2=0).
- Computational cost: because TLDR jointly trains on unlabeled data, its cost is higher than standard adversarial training; evaluation requires full training to complete, making it unsuitable for latency-sensitive applications; cost can be amortized only when one can wait for a sufficiently large batch to arrive (Appendix D).
- Attack cost: its adaptive attack is more expensive—effectively attacking TLDR with GMSA requires multiple rounds of full transductive training, and the attacker needs substantial resources (Appendix D).
- Future directions: improve the theoretical bound and increase algorithmic efficiency (Section 7); Section 4 also mentions that determining the conditions under which "when no ϵ-robust hypothesis can be found on fully perturbed data, a robust model is more likely to be found near the clean distribution" is an interesting future research direction; Section 1 mentions that designing an efficient reduction is an open problem left by (Tramèr, 2022).
Scope of experimental coverage
- The architectures tested are LeNet (MNIST), ResNet-20 and WideResNet-28-10 (CIFAR-10/100), all image classification networks (Section 6.1, Table 6).
- The datasets are MNIST, CIFAR-10, CIFAR-100; perturbations cover l∞ (0.3, 8/255) and l2 (5, 128/255) (Section 6.1, Appendix C.8).
- Attacks cover AutoAttack, PGD (LCE/LREJ), GMSA (LCE/LREJ/LDISC, MIN and AVG variants), and this paper's adaptive attack; GMSA runs 10 rounds (Section 6.1, 6.3).
- Baselines cover 6 defenses across four categories—inductive, rejection-only, transduction-only, transduction+rejection—and are additionally compared with RobustBench numbers from Peng et al. (2023) and Wang et al. (2023) (Tables 5, 6).
- The paper does not report the number of repeated trials for each result (only the generalization experiments note 10 trials, Appendix C.9), nor does it report confidence intervals or statistical significance tests.
Summarize the main content of the paper
TLDR combines transduction and rejection, with weaker theoretical conditions and measured CIFAR-10 robust accuracy of 0.739–0.816.
An adversarial robustness defense paper: combining transduction (using unlabeled test inputs at training time) with rejection (refusing suspicious inputs) to realize in deep learning settings the theoretical advantages of combining the two.
- Problem: Goldwasser et al. (2020) prove that this combination has guarantees unattainable by either technique alone, but it performs poorly under the GMSA attack in practical deep learning settings; pure transduction requires stronger data assumptions, and pure rejection has exponential sample complexity.
- Method: theoretically apply Tramèr (2022)'s classifier-to-detector reduction to the transductive setting; Theorem 4.1 gives a generalization bound with linear VC-dimension dependence under OPTU2/3=0 (a weaker condition than OPTU2=0 for pure transduction). Based on this, TLDR is designed: perform adversarial training on the training set and test inputs (Eq. 6), then use PGD to approximately implement the boundary rejection transformation within the rejection radius ϵdefense; an adaptive attack based on GMSA and the LREJ loss is also designed for this setting.
- Results (l∞, Tables 5, 6):
- CIFAR-10 (8/255): TLDR with ResNet-20 reaches 0.739 (pREJ 0.208), higher than AT's 0.448, TADV's 0.541, and URejectron's 0.145; with WideResNet-28-10 it reaches 0.816, which the authors claim exceeds the existing best result of 0.711 (Peng et al., 2023).
- CIFAR-100 (8/255): TLDR reaches 0.579, which the authors claim exceeds the strongest baseline of 0.427 (Wang et al., 2023).
- MNIST (0.3): TLDR reaches 0.972, higher than all baselines.
- The rejection-only variant measures almost the same as the half-budget model corresponding to Tramèr's theoretical bound (e.g., both are 0.564 for CIFAR-10 ResNet-20, Table 7).
- Authors' conclusion: the experiments confirm the advantage of combining the two techniques; the authors also note limitations such as the precondition that ∆ is non-empty and the high computational cost of training and attack (unsuitable for latency-sensitive applications), and propose future directions such as improving the theoretical bound and algorithmic efficiency.
Related papers
- GeoDetect: Geometric Adversarial Detection for VLPsDefensesarXiv
Show 3 more papers
- A Note on Implementation Errors in Recent Adaptive Attacks Against Multi-Resolution Self-EnsemblesAnalysis / interpretabilityarXiv