Abstract
Deep learning has been able to outperform humans in terms of classification accuracy in many tasks. However, to achieve robustness to adversarial perturbations, the best methodologies require performing adversarial training on a much larger training set that has been typically augmented using generative models (e.g., diffusion models). Our main objective in this work is to reduce these data requirements while achieving the same or better accuracy-robustness trade-offs. We focus on data pruning, where some training samples are removed based on the distance to the model classification boundary (i.e., margin). We find that existing approaches that prune samples with low margin fail to increase robustness when we add a lot of synthetic data, and we explain this situation with a perceptron learning task. Moreover, we find that pruning high-margin samples for better accuracy increases the harmful impact of mislabeled perturbed data in adversarial training, hurting both robustness and accuracy. We thus propose PUMA, a new data pruning strategy that computes the margin using DeepFool and prunes the training samples of highest margin without hurting performance by jointly adjusting the training attack norm on the samples of lowest margin. We show that PUMA can be used on top of the current state-of-the-art methodology in robustness, and it is able to significantly improve model performance unlike existing data pruning strategies. Not only does PUMA achieve similar robustness with less data, but it also significantly increases model accuracy, improving the performance trade-off.
Introduction
To make deep learning models robust against adversarial attacks—small, intentional perturbations designed to fool a model—researchers typically employ Adversarial Training (AT). However, AT is notoriously data-hungry. Achieving peak performance on benchmarks like CIFAR-10 often requires tens of millions of additional synthetic images generated by diffusion models, making the training process computationally expensive and slow.
Existing data pruning methods, which aim to retain only the most "informative" samples, often fail in this large-data adversarial regime. Two common strategies are:
- Pruning "Difficult" samples (PD): Removing samples near the decision boundary hurts robustness because these are the critical samples the model needs to learn to defend.
- Pruning "Easy" samples (PE): Removing samples far from the boundary (high margin) usually helps accuracy but can severely hurt robustness. In large-data regimes, adversarial attacks may exceed the margin of many samples, effectively "flipping" their labels and introducing harmful noise.
Methods: The PUMA Strategy
The authors propose PUMA (PrUning MArgin), which combines strategic pruning with an adaptive training loop to break the traditional accuracy-robustness trade-off.
Margin Estimation and Pruning
PUMA utilizes the DeepFool algorithm to calculate the "margin" of every training sample—the minimum distance required to push a sample across the model's decision boundary. In regimes with millions of synthetic images, PUMA prunes the highest-margin (easiest) samples, identifying them as redundant.
Adaptive Attack Norm ($\epsilon_i$)
The core innovation of PUMA is the adjustment of the adversarial attack strength ($\epsilon$) for the remaining samples based on their individual margins. If a sample is very close to the boundary, PUMA reduces the attack strength to prevent the perturbation from pushing the sample into the "wrong" class territory. This mitigates the "label noise" or "bullying" problem where standard fixed-strength attacks are too strong for informative samples.
Experimental Evaluation
The researchers evaluated PUMA on standard benchmarks and large-scale variants:
- CIFAR-10: Augmented with 1M to 10M synthetic images from the EDM diffusion model.
- ImageNet-21K Variant: A 100-class subset containing approximately 5.3 million images to test scalability.
Key Results
PUMA consistently outperforms state-of-the-art (SOTA) baselines while using significantly less data:
- Accuracy and Robustness: On CIFAR-10, PUMA improved the accuracy of a SOTA ResNet-18 from 87.87% to 91.37% while maintaining robustness (~58.5%).
- Efficiency: These gains were achieved while pruning up to 20-30% of the training data.
- Scalability: On the ImageNet-21K variant, PUMA increased accuracy by over 5% compared to standard TRADES training.
Discussion and Insights
- The "Bullying" Problem: Standard fixed-strength adversarial attacks can be counterproductive for samples with small margins. By attacking with a force greater than the margin, the training process essentially teaches the model incorrect labels.
- Quality over Quantity: PUMA demonstrates that the quality of samples (those with appropriate margins) is more critical than sheer volume. Better results can be achieved with 80% of the data if the remaining samples are treated adaptively.
- Margin as a Proxy: DeepFool margin serves as a superior proxy for sample difficulty in adversarial settings compared to traditional classification difficulty metrics.
Conclusion
PUMA represents a significant step forward in making robust deep learning more efficient. While it currently requires an initial overhead for margin estimation, its "online" version and potential integration with margin-aware generative models offer promising paths for future research. By treating data samples according to their individual geometric properties, PUMA achieves a superior performance trade-off with reduced data requirements.
Summary updated