[Paper Review] MMA Training: Direct Input Space Margin Maximization through Adversarial Training
MMA training directly maximizes per-sample input space margins by adapting the perturbation radius for each data point, linking margin maximization to adversarial robustness.
We study adversarial robustness of neural networks from a margin maximization perspective, where margins are defined as the distances from inputs to a classifier's decision boundary. Our study shows that maximizing margins can be achieved by minimizing the adversarial loss on the decision boundary at the "shortest successful perturbation", demonstrating a close connection between adversarial losses and the margins. We propose Max-Margin Adversarial (MMA) training to directly maximize the margins to achieve adversarial robustness. Instead of adversarial training with a fixed $ε$, MMA offers an improvement by enabling adaptive selection of the "correct" $ε$ as the margin individually for each datapoint. In addition, we rigorously analyze adversarial training with the perspective of margin maximization, and provide an alternative interpretation for adversarial training, maximizing either a lower or an upper bound of the margins. Our experiments empirically confirm our theory and demonstrate MMA training's efficacy on the MNIST and CIFAR10 datasets w.r.t. $\ell_\infty$ and $\ell_2$ robustness. Code and models are available at https://github.com/BorealisAI/mma_training.
Motivation & Objective
- Define input-space margins as the distance from inputs to a classifier decision boundary and link margin maximization to adversarial loss.
- Propose Max-Margin Adversarial (MMA) training to maximize per-sample margins with adaptive epsilon per data point.
- Show that margin maximization can be achieved by minimizing a loss at the shortest successful perturbation, enabling gradient-based optimization.
- Provide theoretical analysis of adversarial training through the lens of margin maximization and validate with experiments on MNIST and CIFAR-10 under ℓ∞ and ℓ2 perturbations.
Proposed method
- Define the margin d_theta(x,y) as the minimum perturbation needed to change the classifier decision.
- Use a soft logit margin loss L_SLM as a smooth surrogate for the logit-margin loss to stabilize training.
- Propose MMA objective that maximizes margins up to a threshold d_max while minimizing classification loss on misclassified points.
- Show that the margin gradient with respect to model parameters is proportional to the loss gradient at the shortest successful perturbation.
- Employ an Adaptive Norm Projection Gradient Descent (AN-PGD) to approximate the shortest successful perturbation delta*, used in computing the margin and updates.
- Optionally include a combined loss L_CB to stabilize training by adding a clean example loss term.
Experimental results
Research questions
- RQ1Can maximizing per-example input-space margins via MMA improve adversarial robustness compared to fixed-epsilon adversarial training?
- RQ2Does adaptive selection of the margin threshold d_max per example yield better trade-offs between accuracy and robustness?
- RQ3How does MMA relate to standard adversarial training from a margin-maximization perspective, including when using surrogate losses?
- RQ4Are MMA-trained models robust across both ℓ∞ and ℓ2 perturbations on datasets like MNIST and CIFAR-10?
- RQ5What training dynamics emerge when margins are explicitly optimized rather than fixed-perturbation defenses?
Key findings
- MMA training enlarges margins across training data, unlike fixed-epsilon adversarial training which may leave small margins.
- MMA achieves higher robustness on average across various attack magnitudes while balancing accuracy, without sensitive dependence on hyperparameters.
- Theoretical analysis connects adversarial training to margin maximization, showing MMA selects the “correct” per-sample margin via adaptive perturbations.
- Empirical results on MNIST and CIFAR-10 under ℓ∞ and ℓ2 attest to MMA’s competitive robustness and alignment with margin-based objectives.
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.