[Paper Review] Mixup Inference: Better Exploiting Mixup to Defend Adversarial Attacks
The paper proposes Mixup Inference (MI), an inference-time procedure for mixup-trained models that actively exploits global linearity to shrink and transfer adversarial perturbations, improving robustness and detection under various threat models.
It has been widely recognized that adversarial examples can be easily crafted to fool deep networks, which mainly root from the locally non-linear behavior nearby input examples. Applying mixup in training provides an effective mechanism to improve generalization performance and model robustness against adversarial perturbations, which introduces the globally linear behavior in-between training examples. However, in previous work, the mixup-trained models only passively defend adversarial attacks in inference by directly classifying the inputs, where the induced global linearity is not well exploited. Namely, since the locality of the adversarial perturbations, it would be more efficient to actively break the locality via the globality of the model predictions. Inspired by simple geometric intuition, we develop an inference principle, named mixup inference (MI), for mixup-trained models. MI mixups the input with other random clean samples, which can shrink and transfer the equivalent perturbation if the input is adversarial. Our experiments on CIFAR-10 and CIFAR-100 demonstrate that MI can further improve the adversarial robustness for the models trained by mixup and its variants.
Motivation & Objective
- Motivate robustness gaps in mixup-trained models during inference and seek to exploit their global linearity for defense.
- Introduce Mixup Inference (MI) that actively processes inputs by mixing with clean samples at inference time.
- Analyze two MI variants (MI-PL and MI-OL) and provide theoretical conditions for robustness improvement (RIC) and detection gaps (DG).
- Demonstrate that MI improves adversarial robustness on CIFAR-10/100 and is compatible with mixup variants and interpolated adversarial training.
Proposed method
- MI performs multiple random mixups of the input with clean samples and averages the classifier outputs (Monte Carlo approximation of E_{p_s}[F(tilde{x})]).
- Two MI variants: MI-PL uses the predicted label as the mixup target; MI-OL uses other labels as the mixup target.
- The approach relies on two mechanisms: input transfer (randomized, semantically diverse perturbations) and perturbation shrinkage (scale-down of the adversarial perturbation by lambda).
- A robustness-improving condition (RIC) is defined to quantify when MI increases the true-label score and decreases the adversarial-score after MI.
- Detection metric (DG) is defined to measure the ability of MI to flag adversarial inputs via changes in the top predicted class after MI.
Experimental results
Research questions
- RQ1Can Mixup Inference (MI) further improve adversarial robustness of mixup-trained models during inference?
- RQ2Do MI-PL and MI-OL provide different robustness and detection profiles, and under what conditions do they satisfy the robustness-improving and detection-gain criteria?
- RQ3How does MI interact with existing mixup-based defenses and interpolated adversarial training in practice on CIFAR-10/100?
- RQ4What theoretical guarantees or intuition explain MI's effectiveness against both oblivious and adaptive adversaries?
Key findings
- MI can further improve robustness of mixup-trained models by actively exploiting global linearity during inference.
- MI operates via multiple mixups with clean samples, enabling perturbation shrinkage and input transfer that hinder adversaries.
- MI-PL generally provides stronger robustness and detection under untargeted PGD attacks, with empirical results showing substantial robustness gains over baselines.
- MI-OL offers broader robustness under certain attacks and yields comparable detection gaps to MI-PL, though practical performance favors MI-PL in many cases.
- When combined with interpolated adversarial training, MI remains effective and compatible, enhancing robustness beyond training-time defenses alone.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.