English

Defensive Few-shot Learning

Computer Vision and Pattern Recognition 2023-08-28 v2

Abstract

This paper investigates a new challenging problem called defensive few-shot learning in order to learn a robust few-shot model against adversarial attacks. Simply applying the existing adversarial defense methods to few-shot learning cannot effectively solve this problem. This is because the commonly assumed sample-level distribution consistency between the training and test sets can no longer be met in the few-shot setting. To address this situation, we develop a general defensive few-shot learning (DFSL) framework to answer the following two key questions: (1) how to transfer adversarial defense knowledge from one sample distribution to another? (2) how to narrow the distribution gap between clean and adversarial examples under the few-shot setting? To answer the first question, we propose an episode-based adversarial training mechanism by assuming a task-level distribution consistency to better transfer the adversarial defense knowledge. As for the second question, within each few-shot task, we design two kinds of distribution consistency criteria to narrow the distribution gap between clean and adversarial examples from the feature-wise and prediction-wise perspectives, respectively. Extensive experiments demonstrate that the proposed framework can effectively make the existing few-shot models robust against adversarial attacks. Code is available at https://github.com/WenbinLee/DefensiveFSL.git.

Keywords

Cite

@article{arxiv.1911.06968,
  title  = {Defensive Few-shot Learning},
  author = {Wenbin Li and Lei Wang and Xingxing Zhang and Lei Qi and Jing Huo and Yang Gao and Jiebo Luo},
  journal= {arXiv preprint arXiv:1911.06968},
  year   = {2023}
}

Comments

Accepted to IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI) 2022

R2 v1 2026-06-23T12:17:49.347Z