Abstract
Meta-learning models are highly effective at adapting to new tasks with minimal data but remain notoriously fragile to adversarial attacks. We present Long-term Cross Adversarial Training (LCAT), a model-agnostic framework that achieves state-of-the-art adversarial robustness without the typical "robustness tax" of degraded clean accuracy. By alternating between natural and adversarial training distributions in sustained "long-term" blocks, LCAT significantly improves both clean and robust performance while reducing training time by approximately 20% compared to previous methods.
Introduction
Few-shot learning allows models to generalize from a handful of labeled examples. However, these models are susceptible to adversarial perturbations—small, calculated changes to input images that lead to incorrect classifications. While Adversarial Training (AT) is the standard defense, it faces three major hurdles in the few-shot regime: extreme computational cost, a significant drop in clean image accuracy (the "robustness tax"), and the difficulty of maintaining high performance across both clean and adversarial distributions simultaneously.
Methodology: Cross and Long-term Training
The core innovation of LCAT lies in its unique training trajectory. Unlike existing methods like Adversarial Query (AQ), which may struggle to balance clean and robust objectives, LCAT employs two key strategies:
- Cross Adversarial Training: The model alternates between "clean meta-updates" to maintain a strong initialization for natural images and "adversarial meta-updates" to build defenses.
- Long-term Blocks: The authors discovered that "short-term" alternation (e.g., switching every epoch) is ineffective. LCAT uses sustained blocks (typically 5 epochs) for each distribution, allowing the model parameters to "go deeper" into the adversarial space and learn its underlying structure.
To further enhance performance, LCAT integrates a feature denoising module designed to filter out adversarial perturbations before the final classification step. Because it is model-agnostic, LCAT can be applied to various architectures such as ProtoNet, R2D2, and MetaOptNet.
Key Insights: Why Duration Matters
A critical finding of this work is that robustness requires sustained exposure. Rapidly switching between clean and adversarial data prevents the model from effectively navigating the complex parameter space required for robustness.
As shown in the empirical analysis, long-term blocks lead to more stable loss reduction and higher overall accuracy compared to short-term training. This approach suggests that the trade-off between clean accuracy and robustness is not an absolute law; by carefully balancing the training direction, both metrics can be improved simultaneously.
Experimental Results
The authors evaluated LCAT on standard benchmarks including MiniImageNet, TieredImageNet, CIFAR-FS, and FC100. Key results include:
- Superior Accuracy: On MiniImageNet (5-way 5-shot), LCAT improved clean accuracy by 9.7% and robust accuracy by 2.88% over the previous state-of-the-art.
- Enhanced Efficiency: By only generating adversarial examples for half of the training epochs, LCAT is significantly faster. For instance, training on MiniImageNet with ProtoNet took 6.6 hours with LCAT, compared to 8.4 hours for AQ.
- Consistent Robustness: LCAT maintained its performance advantage even against stronger attacks (increased PGD steps), proving it does not simply overfit to a specific weak attacker.
Conclusion
LCAT demonstrates that long-term, alternating exposure to clean and adversarial distributions is a powerful strategy for robust meta-learning. It effectively breaks the traditional trade-off between robustness and clean accuracy while offering a more computationally efficient training path. Future work will focus on providing a more rigorous mathematical analysis of these parameter trajectories and extending the method to other few-shot tasks like object detection.
Summary updated