NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Evaluating the Robustness of Neural Networks Learned by Transduction

Jiefeng Chen, Xi Wu, Yang Guo, Yingyu Liang, Somesh Jha

Introduction

This paper pulls back the curtain on "transductive" defenses—machine learning models that attempt to thwart adversarial attacks by dynamically adapting to test-time data. The authors demonstrate that previous evaluations significantly overestimated the robustness of these defenses. By introducing a new attack framework called Greedy Model Space Attack (GMSA), they show that many state-of-the-art transductive defenses can be broken, often reducing their security to that of a standard static model.

The Challenge of Transductive Defenses

In the classic "inductive" setting of adversarial robustness, a model is trained once and then fixed. Attackers try to find small perturbations that trick this static model. To counter this, researchers recently turned to transductive learning, where the model "dynamically learns" or adapts itself based on the specific batch of data it sees at test time.

The logic was that if the model changes in response to the input, the attacker cannot easily "aim" their perturbation. Mathematically, this creates a bilevel optimization problem: the attacker wants to find a perturbation that maximizes loss, but the loss depends on a model that is itself a function of that perturbation. Because these adaptation steps are often non-differentiable or highly complex, standard attacks like AutoAttack often fail, leading to a false sense of security. This paper seeks to provide a principled threat model and a rigorous evaluation framework for these "moving target" defenses.

Methodology: Attacking the Model Space

The authors propose a shift in strategy: instead of trying to differentiate through the complex adaptation process, attackers should use the Principle of Attacking Model Space.

The core idea is to find a single adversarial example that is "robustly" effective across a whole family of potential models that the defender might generate. To implement this, they introduce the Greedy Model Space Attack (GMSA):

  1. Iterative Search: The attack proceeds in rounds. In each round, the attacker generates a perturbation that fails all models encountered in previous rounds.
  2. Greedy Adaptation: The defender then adapts to this new perturbation, creating a new model.
  3. Loss Aggregation: The attacker uses a loss function (either the average or the minimum loss across the history of models) to ensure the next perturbation is even more "transferable" across the model space.

On the defense side, they introduce Transductive Adversarial Training (TADV). Unlike previous methods that used heuristics to adapt, TADV involves actually retraining the model on the test batch using adversarial training with fresh, private randomness that the attacker cannot predict.

Key Insights and Results

The authors evaluated their attacks and defenses on standard computer vision benchmarks, including MNIST and CIFAR-10. The results serve as a wake-up call for the robustness community, highlighting the "transferability trap": even if an attacker cannot predict exactly which model the defender will create, they can exploit the fact that adversarial examples often transfer between similar models.

Breaking RMC: The "Runtime Masking and Cleansing" (RMC) defense appeared highly robust under standard AutoAttack (achieving ~97% on MNIST). However, GMSA crushed it, reducing its robustness to a mere 0.5%.

Robustness evaluation of the RMC defense on MNIST and CIFAR-10.

DENT's Diminishing Returns: The DENT defense previously claimed to improve robustness by over 20% on CIFAR-10. Under the GMSA framework, that improvement dropped significantly, often yielding less than a 3% improvement over a standard static model.

Robustness evaluation of the DENT defense across various base models.

TADV Success: Despite the success of GMSA against existing defenses, the authors' proposed TADV defense showed genuine promise. On CIFAR-10, it improved robustness from 45.3% (standard adversarial training) to 54.1%, even against their own strong GMSA attack. This highlights a key takeaway: one of the most effective ways to stop a transductive attack is for the defender to use "private randomness" (like random seeds in retraining) after the attacker has made their move, making it impossible for the attacker to perfectly simulate the defender's adaptation.

Limitations and Future Directions

While GMSA is a powerful new baseline, the authors acknowledge it is a "greedy" approach and might not be the absolute strongest possible attack. The computational cost is also a factor; both GMSA and transductive defenses like TADV require significant compute at test time (retraining or multiple forward/backward passes), which might be impractical for real-time applications like autonomous driving.

Future research directions include finding more computationally efficient ways to perform transductive adaptation and developing new defenses that are explicitly designed to be resilient against "model space" attacks.

Summary updated

BibTeX
@inproceedings{chen2022towards,
  author = {Jiefeng Chen and Xi Wu and Yang Guo and Yingyu Liang and Somesh Jha},
  title = {{Towards Evaluating the Robustness of Neural Networks Learned by Transduction}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=_5js_8uTrx1},
}
Figure