Adversarial Attacks are a Surprisingly Strong Baseline for Poisoning Few-Shot Meta-Learners

Elre T. Oldewage, John Bronskill, Richard E. Turner

Abstract

This paper examines the robustness of deployed few-shot meta-learning systems when they are fed an imperceptibly perturbed few-shot dataset. We attack amortized meta-learners, which allows us to craft colluding sets of inputs that are tailored to fool the system's learning algorithm when used as training data. Jointly crafted adversarial inputs might be expected to synergistically manipulate a classifier, allowing for very strong data-poisoning attacks that would be hard to detect. We show that in a white box setting, these attacks are very successful and can cause the target model's predictions to become worse than chance. However, in opposition to the well-known transferability of adversarial examples in general, the colluding sets do not transfer well to different classifiers. We explore two hypotheses to explain this: 'overfitting' by the attack, and mismatch between the model on which the attack is generated and that to which the attack is transferred. Regardless of the mitigation strategies suggested by these hypotheses, the colluding inputs transfer no better than adversarial inputs that are generated independently in the usual way.

Introduction

Few-shot learning (FSL) is designed to help models learn new tasks from just a handful of examples, known as the support set. Because these models rely so heavily on a limited data volume to adapt their internal logic, they are potentially fragile. While most adversarial research focuses on evasion attacks—tweaking a test image to fool a model—this paper investigates poisoning attacks within the meta-learning context.

In this scenario, an attacker imperceptibly perturbs the images in the support set. Since the meta-learner uses this set to "adapt" to a new task, a successful poisoning attack does more than misclassify a single image; it hijacks the model's entire understanding of the task, leading to systemic failure across the target query set.

Methodology

The researchers introduce and compare two primary poisoning strategies to evaluate the vulnerability of amortized meta-learners:

  1. Adversarial Support Poisoning (ASP): This is a sophisticated "white-box" attack. It utilizes Projected Gradient Descent (PGD) to jointly optimize all images in the support set. By backpropagating through the meta-learner's entire adaptation mechanism, ASP finds a "colluding set" of perturbations specifically designed to minimize accuracy on a target query set.
  2. The Swap Attack (Baseline): This is a simpler, more direct approach. The attacker generates a standard adversarial example (a "query attack") for a specific image and then "swaps" it into the support set. This method does not account for the meta-learning adaptation process or the synergy between support images.

The core of the study lies in determining whether the complex, coordinated ASP attack is significantly more effective than the simpler swap baseline, particularly when attempting to attack a "target" model that differs from the "surrogate" model used to generate the attack.

Experimental Setup

The researchers primarily utilized META-DATASET, a comprehensive benchmark consisting of several sub-datasets including ILSVRC (ImageNet), CUB Birds, Aircraft, VGG Flower, Quick Draw, and MSCOCO. They also included MNIST, CIFAR-10, and CIFAR-100 as held-out sets to test generalization. Additionally, miniImageNet was used as a standard benchmark for comparative experiments.

Key Insights and Results

Devastating White-Box Efficacy

In a white-box setting where the attacker has perfect knowledge of the model, ASP is incredibly powerful. On the ILSVRC dataset, the researchers observed that "Clean" accuracy was 52.2%. The ASP attack successfully dropped this to 1.5% (ASP Specific). Even when tested on unseen query sets, the accuracy remained low at 14.8% (ASP General). ASP can effectively reduce a model's accuracy to nearly zero by poisoning as little as 20% of the support set.

The Transferability Paradox

Standard adversarial examples are known for their transferability—an attack designed for Model A often successfully fools Model B. However, the "colluding" sets created by ASP appear to overfit the specific surrogate model's adaptation path so tightly that they do not transfer well to models with different architectures or feature extractors.

The "Swap" Surprise

Remarkably, the simple swap attack—which ignores the meta-learning adaptation process entirely—performs as a very strong poisoning baseline. In many transfer scenarios, it is statistically indistinguishable from the much more computationally expensive ASP attack. For example, when transferring an attack from a model with FiLM layers (Resnet A) to one without (Resnet B) on CIFAR-100, ASP resulted in 10.2% accuracy, while the Swap attack resulted in 9.0%.

Mitigation Failure

The authors attempted several strategies to improve ASP transferability, such as "Decision Boundary Alignment" (re-labeling images to match the target model's predictions) and "Dropout" on the adaptation parameters. None of these strategies significantly boosted ASP's performance over the simple swap baseline, reinforcing the idea that the baseline is exceptionally robust.

Discussion and Limitations

The primary limitation of coordinated poisoning attacks like ASP is their lack of transferability. While ASP is theoretically a "stronger" attack due to its joint optimization, its tendency to overfit the surrogate model makes it less practical for real-world "black-box" scenarios where the target model's internals are unknown.

This study highlights that while few-shot meta-learners are highly vulnerable to support set poisoning, the complexity of the attack does not necessarily correlate with its effectiveness in transfer scenarios. Future work is needed to make poisoning attacks more robust to variations in feature extractors and to develop defense mechanisms specifically tailored for the few-shot regime. While this study focused on amortized meta-learners like CNAPS and ProtoNets, the vulnerabilities of other architectures, such as MAML, remain an important area for future investigation.

Summary updated

BibTeX
@inproceedings{oldewage2022adversarial,
  author = {Elre T. Oldewage and John Bronskill and Richard E. Turner},
  title = {{Adversarial Attacks are a Surprisingly Strong Baseline for Poisoning Few-Shot Meta-Learners}},
  booktitle = {ICBINB},
  year = {2022},
  url = {https://openreview.net/forum?id=vNqlPQ2Kbj},
}
Figure