Few-Max: Few-Shot Domain Adaptation for Unsupervised Contrastive Representation Learning

Ali Lotfi-Rezaabad, Sidharth Kumar, Sriram Vishwanath, Jonathan I. Tamir · DOI

Abstract

Few-Max is a novel domain adaptation framework designed for unsupervised contrastive representation learning in data-scarce environments. By minimizing the maximum loss across multiple data augmentations and employing information distillation from a pre-trained anchor network, Few-Max prevents overfitting and promotes a smoother loss landscape. Empirical results across ImageNet, VisDA, and fastMRI benchmarks demonstrate significant improvements in accuracy and feature diversity compared to standard fine-tuning methods.

Introduction

Contrastive representation learning has significantly advanced computer vision by enabling models to learn from unlabeled data. However, these methods typically require massive datasets. In "few-shot" scenarios—where target data is extremely limited—standard fine-tuning often leads to severe overfitting, where the model memorizes specific image quirks rather than learning generalizable features. Few-Max addresses this by bridging the gap between a data-rich source domain and a data-poor target domain without requiring labels.

Methodology

The Few-Max framework is built upon two core components: Information Distillation and Limited Adversarial Training.

The Few-Max framework architecture showing the teacher-student distillation and max-loss strategy.
  1. Information Distillation: The system utilizes a frozen, pre-trained "anchor" network (teacher) to guide a "target" network (student). A contrastive loss is enforced between the two, ensuring the student retains high-level representational knowledge while adapting to the new domain.
  2. Limited Adversarial Training (The "Max" in Few-Max): For each target image, $M$ augmentations are generated using CutMix. Instead of averaging the loss, Few-Max selects the maximum loss among these augmentations to update the network. This "min-max" approach acts as a regularizer, forcing the model to learn robust features and smoothing the loss landscape to prevent entrapment in sharp, overfitted local minima.

Experimental Evaluation

The authors evaluated Few-Max across three distinct scenarios:

  • ImageNet: Subset-to-subset adaptation with only 10 samples per target category.
  • VisDA: Synthetic-to-real benchmark (3D renders to real-world images).
  • fastMRI: Cross-domain task transferring from natural images (ImageNet) to complex-valued MRI patches of brains and knees.

Results and Discussion

Few-Max consistently outperformed baselines such as standard fine-tuning and iMix across all benchmarks.

Quantitative performance comparison of Few-Max against various baselines on ImageNet.

Key Findings

  • Improved Accuracy: On ImageNet few-shot tasks, Few-Max achieved 57.20% Top-1 accuracy, a significant improvement over the 53.05% achieved by standard fine-tuning.
  • Feature Diversity: Using "hyperspherical energy" as a metric for feature distribution, Few-Max showed lower energy (0.2986) compared to fine-tuning (0.3267), indicating a more diverse and useful latent space.
  • Cross-Modality Transfer: In the fastMRI task, Few-Max reduced the reconstruction error (NRMSE) to 0.3442 for brain scans, outperforming models trained from scratch (0.5469).
  • Loss Landscape Smoothness: Theoretical and empirical evidence suggests that the "Max" loss strategy leads to a smoother loss landscape, which directly correlates with better generalization in low-data regimes.

Conclusion and Future Work

Few-Max demonstrates that challenging a model with "hard" augmentations in a min-max framework effectively prevents memorization in few-shot domain adaptation. While successful, future work is needed to address data imbalance in target domains and to evaluate the clinical utility of learned features in end-to-end MRI reconstruction pipelines.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
fastMRI BrainFew-MaxNRMSE ↓0.3442few-shot
Source quote
L163: Few-Max │ -0.6711 │ 0.7613 │ 0.5908 │ 0.3442
fastMRI BrainFinetuneNRMSE ↓0.3799few-shot
Source quote
L161: Finetune │ -0.6245 │ 0.7888 │ 0.6652 │ 0.3799
fastMRI kneeFew-MaxNRMSE ↓0.2950few-shot
Source quote
L167: Few-Max │ -0.6132 │ 0.7862 │ 0.6168 │ 0.2950
fastMRI kneeFinetuneNRMSE ↓0.3338few-shot
Source quote
L165: Finetune │ -0.6068 │ 0.8006 │ 0.6833 │ 0.3338
fastMRI kneeFew-MaxHyperspherical Energy E0 ↓-0.6132few-shot
Source quote
L167: Few-Max │ -0.6132 │ 0.7862 │ 0.6168 │ 0.2950
fastMRI kneeFinetuneHyperspherical Energy E0 ↓-0.6068few-shot
Source quote
L165: Finetune │ -0.6068 │ 0.8006 │ 0.6833 │ 0.3338
BibTeX
@misc{lotfirezaabad2022few,
  author = {Ali Lotfi-Rezaabad and Sidharth Kumar and Sriram Vishwanath and Jonathan I. Tamir},
  title = {{Few-Max: Few-Shot Domain Adaptation for Unsupervised Contrastive Representation Learning}},
  year = {2022},
  eprint = {2206.10137},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.10137},
}
Figure