Learned Fine-Tuner for Incongruous Few-Shot Adversarial Learning

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

Abstract

Model-agnostic meta-learning (MAML) effectively meta-learns an initialization of model parameters for few-shot learning where all learning problems share the same format of model parameters—congruous meta-learning. However, there are few-shot learning scenarios, such as adversarial attack design, where different yet related few-shot learning problems may not share any optimizee variables, necessitating incongruous meta-learning. We extend MAML to this setting by introducing a Learned Fine-Tuner (LFT) to replace hand-designed optimizers for task-specific fine-tuning. MAML meta-learns the parameters of this LFT across incongruous tasks leveraging the learning-to-optimize (L2O) framework. We demonstrate that LFT enables meta-learning across incongruous problems and works efficiently with first-order and derivative-free learning. Empirically, LFT is shown to be highly effective in generating universal adversarial attacks across different image sources and sizes in the few-shot regime.

Introduction

Adversarial attacks typically involve finding a specific noise pattern to fool a neural network on a single image. Universal Adversarial Perturbations (UAPs) aim for a single noise pattern that can fool a model across an entire set of images. However, existing UAP methods face significant hurdles in generalization to unseen images, computational efficiency when restarting optimization for new tasks, and source-agnosticism (the ability to handle varying image resolutions).

This paper reframes UAP generation as a few-shot learning problem. By viewing UAP generation through this lens, the authors leverage meta-learning to "warm-start" the process, drastically reducing the data and time needed for a successful attack.

Methodology: The Learned Fine-Tuner (LFT)

Standard meta-learning frameworks like MAML require all tasks to be "congruous," meaning they must share the same parameter dimensions. To handle "incongruous" tasks—such as attacking $28 \times 28$ MNIST images alongside $32 \times 32$ CIFAR-10 images—the authors integrate Learning-to-Optimize (L2O) into the MAML framework.

Figure 1: Overview of the LFT framework generating universal adversarial perturbations across incongruous tasks and unseen images.

Key Technical Features

  • Coordinate-wise LSTM: The LFT uses an RNN (specifically an LSTM) that predicts parameter updates based on current gradients. By operating on each pixel independently while sharing weights, the optimizer becomes dimension-invariant.
  • Bilevel Optimization: The "inner loop" uses the LFT to generate a UAP on a small support set. The "outer loop" updates the LFT's parameters based on performance on a separate query set of unseen images, preventing overfitting.
  • Zeroth-Order (ZO) Support: The framework can utilize gradient estimates, making it effective in black-box scenarios where the victim model's internal architecture is unknown.

Experimental Results

The researchers evaluated LFT using MNIST and CIFAR-10 datasets against victim models including LeNet-5 and VGG-11. They specifically tested cross-source generalization by training the LFT on one dataset and testing it on another.

Figure 2: Attack success rate vs. fine-tuning steps across different meta-learning (L1, L2) and meta-testing (T1, T2, T3) scenarios.

Performance Highlights

  • Higher Success: LFT achieved up to 50% higher Attack Success Rate (ASR) on unseen images compared to standard baselines like PGD.
  • Faster Convergence: The method reached 100% ASR approximately 37% faster than vanilla L2O or MAML frameworks.
  • Cross-Source Generalization: An LFT trained only on MNIST outperformed non-meta-learning baselines when attacking CIFAR-10 images on a VGG-11 model—a scenario entirely absent from its training phase.
  • Stealthiness: Generated UAPs often exhibited smaller $\ell_1$ norms (up to 10% smaller), making the attacks less perceptible to the human eye.

Conclusion

The Learned Fine-Tuner (LFT) successfully bridges the gap between MAML and L2O, enabling meta-learning for incongruous tasks. While currently focused on image classification, the ability to generalize across different input dimensions suggests broad potential for other domains. Future work may explore more complex incongruous relationships beyond varying input dimensions, such as cross-domain adaptation between text and image data.

Summary updated

Abstract

Model-agnostic meta-learning (MAML) effectively meta-learns an initialization of model parameters for few-shot learning where all learning problems share the same format of model parameters -- congruous meta-learning. However, there are few-shot learning scenarios, such as adversarial attack design, where different yet related few-shot learning problems may not share any optimizee variables, necessitating incongruous meta-learning. We extend MAML to this setting -- a Learned Fine Tuner (LFT) is used to replace hand-designed optimizers (such as SGD) for the task-specific fine-tuning. Here, MAML instead meta-learns the parameters of this LFT across incongruous tasks leveraging the learning-to-optimize (L2O) framework such that models fine-tuned with LFT (even from random initializations) adapt quickly to new tasks. As novel contributions, we show that the use of LFT within MAML (i) offers the capability to tackle few-shot learning tasks by meta-learning across incongruous yet related problems and (ii) can efficiently work with first-order and derivative-free few-shot learning problems. Theoretically, we quantify the difference between LFT (for MAML) and L2O. Empirically, we demonstrate the effectiveness of LFT through a novel application of generating universal adversarial attacks across different image sources and sizes in the few-shot learning regime.
BibTeX
@inproceedings{zhao2022learned,
  author = {Pu Zhao and Sijia Liu and Parikshit Ram and Songtao Lu and Yuguang Yao and Djallel Bouneffouf and Xue Lin},
  title = {{Learned Fine-Tuner for Incongruous Few-Shot Adversarial Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/239},
}
Figure