Adversarially Robust Few-shot Learning via Parameter Co-distillation of Similarity and Class Concept Learners

Junhao Dong, Piotr Koniusz, Junxi Chen, Xiaohua Xie, Yew-Soon Ong

Introduction

Few-Shot Learning (FSL) aims to recognize new object categories from just a few examples, a capability central to human-like intelligence. However, FSL models are notoriously fragile and highly susceptible to adversarial attacks—imperceptible image perturbations that lead to incorrect classifications. Current defenses typically rely on either similarity learning (comparing image pairs) or class concept learning (global categorization), but both have distinct vulnerabilities. Similarity learners often create overlapping clusters prone to leakage, while concept learners can struggle against strong, targeted attacks.

The RESISTANCE Framework

To address these weaknesses, researchers introduced RESISTANCE (paRametEr co-diStIllation of SimilariTy and clAss coNCept lEarners). This framework unifies the strengths of both learning paradigms through a dual-branch architecture that synchronizes knowledge across traditionally separate models.

The RESISTANCE framework architecture, featuring dual learning branches, unified embedding, and global adversarial initialization.

The framework introduces three core innovations:

  1. Parameter Co-distillation: Instead of simple ensembling, RESISTANCE maintains similarity and concept branches that periodically merge their parameters into a "unified embedding model" via Exponential Moving Average (EMA). These weights are then redistributed back to the branches, ensuring they stay synchronized and learn from each other's feature spaces.
  2. Global Adversarial Initialization (GAIP): Rather than starting with random noise, the model uses class-wise global perturbations. This forces the learner to defend against broad, generalizable attack patterns rather than just local noise.
  3. Branch Robustness Harmonization: This module balances training by monitoring the relative robustness of each branch and adjusting learning rates dynamically, preventing one branch from dominating the optimization process and ensuring balanced development.

Key Insights and Results

The researchers found that similarity and concept learners possess "complementary robustness signatures." Similarity learners are prone to cluster leakage under weak attacks, while concept learners provide a more stable global structure but may falter against stronger strikes.

Visualization of feature clusters (a) and robust accuracy performance across varying attack strengths (b).

As shown in the visualization above, the co-distillation approach (grey line) significantly outperforms individual learners across all attack strengths. In benchmarks like CIFAR-FS, RESISTANCE achieved a 9% boost in clean accuracy and a 7.8% boost in robust accuracy against the rigorous AutoAttack compared to previous state-of-the-art methods. The model also demonstrated strong cross-domain robustness, maintaining performance even when tested on datasets different from those used in training.

Conclusion

RESISTANCE demonstrates that forcing separate learning paradigms to share a unified feature space through co-distillation is more effective than traditional ensembling. By harmonizing the robustness of similarity and concept learners, the framework sets a new standard for secure and efficient few-shot learning. Future work may extend this strategy to open-set scenarios or additional learning modalities beyond visual features.

Summary updated

BibTeX
@inproceedings{dong2024adversarially,
  author = {Junhao Dong and Piotr Koniusz and Junxi Chen and Xiaohua Xie and Yew-Soon Ong},
  title = {{Adversarially Robust Few-shot Learning via Parameter Co-distillation of Similarity and Class Concept Learners}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.02696},
}
Figure