Abstract
Cross-domain few-shot learning (FSL) remains a significant challenge as models often fail to generalize to unseen domains. This paper proposes a novel framework that attaches lightweight, task-specific adapters to a pre-trained backbone. Unlike prior methods that use complex auxiliary networks to predict adaptation parameters, the authors demonstrate that learning these adapters directly from a small support set via residual connections and matrix-form transformations achieves state-of-the-art performance on the Meta-Dataset benchmark.
The Challenge of Cross-Domain Adaptation
Few-shot classification (FSC) aims to recognize new categories from just a few examples. While standard FSC works well when the new classes come from the same domain, it often fails in cross-domain scenarios—for instance, training on natural images but testing on satellite imagery or medical scans.
The current trend involves splitting a model into task-agnostic weights (general features) and task-specific weights (tailored features). Most researchers try to "predict" these task-specific weights using a separate auxiliary network. However, these auxiliary networks are difficult to train and often fail to generalize to wildly different domains. This paper asks: What if we stop trying to predict the adaptation and just learn it directly from the few samples we have?
Methodology: Universal Representation Learning (URL)
The authors propose a framework called URL with Task-specific Adapters. Their approach follows a two-stage process:
- Meta-Training: A backbone network (e.g., ResNet-18) is trained on a large, diverse set of domains to learn robust, task-agnostic features.
- Meta-Testing (The Adaptation): When faced with a new task from an unseen domain, the backbone is frozen, and small, parametric modules called adapters ($r_\alpha$) are attached to multiple intermediate layers.
Key Technical Choices
- Residual vs. Serial: Unlike previous "serial" adapters that modify the main data flow, these adapters use a residual connection: $Output = Backbone(x) + Adapter(x)$. This preserves original features while allowing the adapter to "steer" the representation.
- Matrix Form: Instead of simple channel-wise scaling, the authors use matrix multiplication (implemented as $1 \times 1$ convolutions), providing more capacity to capture complex domain shifts.
- Optimization: Adapter weights and a pre-classifier transformation are learned from scratch on the support set using the Adadelta optimizer for approximately 40 iterations.
Key Results and Insights
The proposed method was evaluated on Meta-Dataset, a rigorous benchmark including 13 diverse datasets (e.g., ImageNet, Omniglot, Traffic Signs, and MSCOCO).
- State-of-the-Art Performance: The method achieved the best average rank (1.6) across the benchmark.
- Gains on Unseen Domains: On domains never seen during training, the method improved accuracy by an average of +7.5% over previous best models, with dramatic jumps in "Traffic Signs" (+19.5%) and "CIFAR-10" (+8.7%).
- Learning vs. Predicting: A small amount of direct optimization on the support set proved more effective than using rigid auxiliary networks. The residual connection acts as a safety net, ensuring the model can rely on strong pre-trained features even if the adapter learning is constrained by small sample sizes.
Conclusion
By shifting from parameter prediction to direct optimization of lightweight adapters, this work sets a new standard for cross-domain few-shot learning. The method is remarkably efficient, requiring only a single GPU for training, and demonstrates that simple residual adapters can bridge significant domain gaps more effectively than complex auxiliary architectures.
Summary updated