Learning Transferable Adversarial Robust Representations via Multi-view Consistency

Minseon Kim, Hyeonjeong Ha, Dong Bok Lee, Sung Ju Hwang

TL;DR

Few-shot learning models are notoriously fragile against adversarial attacks, especially when encountering new domains. This paper introduces MAVRL, a framework that uses bootstrapped dual encoders and label-free latent attacks to learn robust, transferable representations that achieve over 10% higher robust accuracy on unseen domains compared to existing baselines.

What Problem Does This Paper Address?

Meta-learning, or "learning to learn," excels at adapting to new tasks with very little data. However, these models are highly vulnerable to adversarial perturbations—tiny, imperceptible changes to input data that cause incorrect classifications.

While researchers have developed Adversarial Meta-Learning (AML) to combat this, current methods suffer from adversarial overfitting. They typically use class-wise attacks during training that are tied to specific tasks and domains. When these models are tested on a completely new domain (e.g., trained on general objects but tested on specific bird species), their robustness collapses. The core challenge is achieving transferable adversarial robustness that holds up across diverse, unseen environments.

Methods

The authors propose MAVRL (Meta-Adversarial multi-view Representation Learning), which shifts the focus from learning robust decision boundaries to learning robust representations. The framework consists of three main pillars:

  1. Bootstrapped Multi-view Encoders: Instead of a single encoder, MAVRL uses two differently augmented views of the same data. It performs an "inner-adaptation" step to create two view-specialized encoders. This expansion of the parameter space prevents the model from finding trivial solutions to adversarial attacks.
  2. Label-free Multi-view Latent Attacks: Unlike standard attacks that try to change the predicted label, MAVRL generates adversaries by maximizing the discrepancy between the latent features of the two views. Because it doesn't rely on labels, the attack is task-agnostic and harder for the model to "cheat" against.
  3. Multi-view Consistency Loss: The final training objective forces the model to minimize the distance between these adversarial latent features. This encourages the encoder to extract features that are invariant to both random augmentations and malicious perturbations.
Figure 1: Concept. (a) Existing adversarial meta-learning (AML) method utilizes an adversarial querying mechanism that employs conventional class-wise attacks and cannot obtain robustness against adversaries from other domains. (b) Naïve combination of self-supervised learning (SSL) and AML is also suboptimal due to representational collapse with few data. (c) We introduce multi-view latent space to enrich the representation even with few data, and then apply label-free multi-view latent attacks to obtain maximal discrepancy across the views without representational collapse, and then learn adversarially robust representations.

Datasets

The models were meta-trained on standard few-shot benchmarks:

  • CIFAR-FS
  • Mini-ImageNet

To test transferability, they evaluated on several "unseen" domains:

  • Tiered-ImageNet
  • CUB (Birds)
  • Cars
  • Flower
  • Non-RGB Domains: EuroSAT (satellite imagery), ISIC (skin lesions), and CropDisease.

Key Insights and Ideas

  • Representation vs. Decision Boundaries: The authors posit that the failure of previous AML methods is due to their reliance on task-dependent class-wise attacks. By focusing on latent space consistency, MAVRL learns structural features that generalize better than specific classification boundaries.
  • Mitigating Representational Collapse: In few-shot settings with small batches, self-supervised learning (SSL) often suffers from "collapse," where the model outputs the same representation for everything. MAVRL’s dual-encoder bootstrapping effectively enlarges the representation space to prevent this.
  • Smoother Loss Landscapes: Visualization shows that MAVRL produces a much smoother loss surface in unseen domains compared to baselines. A smooth landscape means small input changes (noise or attacks) are less likely to cause wild swings in the model's output.
Figure 2: Loss surfaces showing that MAVRL maintains a smoother, more robust landscape in unseen domains compared to the AQ baseline.

Key Results

MAVRL demonstrates a significant leap in performance, particularly in the "unseen domain" scenario:

  • Robust Accuracy Boost: On average across five unseen domains, MAVRL improved robust accuracy from ~7.4% (for the best baseline) to 28.2%.
  • Clean Accuracy Preservation: Unlike many adversarial training methods that sacrifice clean performance for robustness, MAVRL actually improved clean accuracy on unseen domains, jumping from an average of 32.5% to 50.3%.
  • Cross-Domain Transfer: The model showed remarkable resilience even when transferring to non-RGB domains like satellite and medical imagery, outperforming baselines by nearly 15% in robust accuracy on average.

Limitations and Future Work

  • Computational Overhead: The use of dual encoders and iterative latent attacks increases the memory and computational cost during the training phase compared to single-encoder methods.
  • Few-Shot Scope: The study focuses primarily on gradient-based meta-learning (like MAML). While the principles of multi-view consistency are broad, their direct application to metric-based few-shot learners remains a potential area for future exploration.
  • Scaling: Future research could investigate how this representation-centric approach scales when combined with massive-scale self-supervised pre-training.

Summary updated

BibTeX
@misc{kim2022learning,
  author = {Minseon Kim and Hyeonjeong Ha and Dong Bok Lee and Sung Ju Hwang},
  title = {{Learning Transferable Adversarial Robust Representations via Multi-view Consistency}},
  year = {2022},
  eprint = {2210.10485},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.10485},
}
Figure