Learned Fine-Tuner for Incongruous Few-Shot Learning

Pu Zhao, Sijia Liu, Parikshit Ram, Songtao Lu, Djallel Bouneffouf, Xue Lin

Abstract

Universal adversarial perturbations (UAPs) offer a unified threat model by attacking multiple images simultaneously, obviating the need for image-wise attack algorithms. However, existing UAP generators are underdeveloped for "incongruous" data—images drawn from different sources with varying resolutions. This paper introduces a novel framework that treats UAP generation as a customized instance of few-shot learning. By integrating Model-Agnostic Meta-Learning (MAML) with Learning-to-Optimize (L2O) techniques, the authors developed a Learned Fine-Tuner (LFT). LFT achieves a 50% higher attack success rate (ASR) than baselines like Projected Gradient Descent and converges 37% faster than vanilla meta-learning frameworks, all while handling diverse victim models and image sources.

The Challenge of Incongruous UAPs

Adversarial attacks typically involve finding a specific perturbation for a specific image. UAPs are more potent because a single noise pattern can fool a model across an entire dataset. Despite their potential, current UAP methods face three critical hurdles:

  1. Generalization (C1): Attacks often fail on images not seen during the perturbation's generation.
  2. Efficiency (C2): Generating a UAP for a new set of images is computationally expensive and slow.
  3. Incongruity (C3): Most methods require fixed image dimensions. Standard meta-learning breaks down when trying to attack a model using both 28x28 MNIST digits and 32x32 CIFAR-10 photos simultaneously.

Methodology: Learning to Fine-Tune

The researchers frame UAP generation as a few-shot learning task, where an attacker may only have access to a handful of images from a target system. The proposed Learned Fine-Tuner (LFT) combines two meta-learning paradigms:

  • Model-Agnostic Meta-Learning (MAML): This allows the system to find a "meta-initialization" for the UAP that can be quickly adapted to new images.
  • Learning-to-Optimize (L2O): To solve the dimension trap (C3), the authors replace standard gradient descent with a coordinate-wise Recurrent Neural Network (RNN) optimizer. Because the RNN shares weights across every pixel coordinate, it is inherently source-agnostic and can generate perturbations for any image resolution.
Overview of the LFT framework showing the shared UAP generator adapting to incongruous few-shot tasks.

The LFT is trained via bilevel optimization, where the outer loop explicitly optimizes for performance on unseen "query" images, baking generalization directly into the model.

Key Results and Insights

The authors evaluated LFT against standard benchmarks (MNIST, CIFAR-10) and various victim models (LeNet-5, VGG-11).

  • Superior Success Rates: LFT consistently outperformed baselines. On MNIST, it reached a 100% Attack Success Rate (ASR), whereas standard Projected Gradient Descent (PGD) lagged significantly behind.
  • Cross-Domain Power: LFT demonstrated remarkable transferability. When meta-learned on MNIST but tested on the more complex CIFAR-10 dataset, LFT outperformed other meta-learning baselines by over 10%.
  • Efficiency Gains: As shown in the convergence plots, LFT reaches peak ASR approximately 37% faster than vanilla L2O or MAML frameworks.
  • Subtlety: Beyond effectiveness, LFT generates perturbations with smaller $\ell_1$ norms, making the adversarial noise less perceptible to the human eye while remaining more lethal to the victim model.
Attack success rate (ASR) vs. fine-tuning steps, demonstrating that LFT (Ours) converges faster and reaches higher success rates than baselines.

Conclusion

By reframing adversarial attacks as a few-shot learning problem, this work provides a robust solution to the limitations of traditional UAP generation. The LFT framework's ability to handle incongruous data sources and its rapid adaptation speed mark a significant step forward in understanding and certifying the robustness of deep learning models against universal threats. Future work may explore scaling these RNN-based optimizers to high-resolution imagery and utilizing the LFT framework to improve adversarial training defenses.

Summary updated

Abstract

Adversarial perturbations are critical for certifying the robustness of deep learning models. A universal adversarial perturbation (UAP) can simultaneously attack multiple images, and thus offers a more unified threat model, obviating an image-wise attack algorithm. However, the existing UAP generator is underdeveloped when images are drawn from different image sources (e.g., with different image resolutions). Towards an authentic universality across image sources, we take a novel view of UAP generation as a customized instance of few-shot learning, which leverages bilevel optimization and learning-to-optimize (L2O) techniques for UAP generation with improved attack success rate (ASR). We begin by considering the popular model agnostic meta-learning (MAML) framework to meta-learn a UAP generator. However, we see that the MAML framework does not directly offer the universal attack across image sources, requiring us to integrate it with another meta-learning framework of L2O. The resulting scheme for meta-learning a UAP generator (i) has better performance (50% higher ASR) than baselines such as Projected Gradient Descent, (ii) has better performance (37% faster) than the vanilla L2O and MAML frameworks (when applicable), and (iii) is able to simultaneously handle UAP generation for different victim models and image data sources.
BibTeX
@inproceedings{zhao2022learned,
  author = {Pu Zhao and Sijia Liu and Parikshit Ram and Songtao Lu and Djallel Bouneffouf and Xue Lin},
  title = {{Learned Fine-Tuner for Incongruous Few-Shot Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/239},
}
Figure