[Paper Review] Cross-domain Few-shot Learning with Task-specific Adapters
This paper proposes a novel cross-domain few-shot learning framework that directly optimizes task-specific adapters from scratch on small support sets, bypassing the need for an auxiliary network to predict adapter weights. By using residual-connected matrix adapters at multiple backbone layers, the method achieves state-of-the-art performance on Meta-Dataset with minimal computational overhead, significantly improving zero-shot generalization to unseen domains.
In this paper, we look at the problem of cross-domain few-shot classification that aims to learn a classifier from previously unseen classes and domains with few labeled samples. Recent approaches broadly solve this problem by parameterizing their few-shot classifiers with task-agnostic and task-specific weights where the former is typically learned on a large training set and the latter is dynamically predicted through an auxiliary network conditioned on a small support set. In this work, we focus on the estimation of the latter, and propose to learn task-specific weights from scratch directly on a small support set, in contrast to dynamically estimating them. In particular, through systematic analysis, we show that task-specific weights through parametric adapters in matrix form with residual connections to multiple intermediate layers of a backbone network significantly improves the performance of the state-of-the-art models in the Meta-Dataset benchmark with minor additional cost.
Motivation & Objective
- Address the challenge of cross-domain few-shot classification where test data comes from unseen domains with few labeled samples.
- Overcome limitations of prior methods that rely on auxiliary networks to dynamically predict task-specific adapter weights.
- Improve generalization to unseen domains by learning task-specific adapters directly from small support sets during meta-testing.
- Systematically evaluate design choices in adapter architecture, including connection types and parameterizations, for optimal few-shot adaptation.
- Achieve high performance with low computational cost by avoiding full-backbone fine-tuning while maintaining strong generalization.
Proposed method
- Introduce task-specific adapters as learnable, lightweight matrix transformations applied to multiple intermediate layers of a pretrained backbone network.
- Use residual connections between the backbone features and adapter outputs to stabilize training and improve gradient flow.
- Optimize adapter parameters directly from scratch using the support set during meta-testing, eliminating the need for a separate auxiliary network.
- Explore various adapter architectures, including serial and residual connections, and efficient low-rank approximations to reduce parameters.
- Train the task-agnostic backbone weights in meta-training on diverse domains, then adapt only the task-specific adapters during meta-testing.
- Use a standard cross-entropy loss to optimize the adapter parameters end-to-end on the support set for each episode.
Experimental results
Research questions
- RQ1Can task-specific adapters be effectively learned from scratch on small support sets, without relying on auxiliary networks?
- RQ2How do different adapter architectures (e.g., residual vs. serial) affect performance in cross-domain few-shot learning?
- RQ3What is the impact of low-rank parameterization on adapter efficiency and accuracy?
- RQ4How does direct optimization of adapters compare to dynamic prediction via auxiliary networks in terms of generalization to unseen domains?
- RQ5Can this approach achieve state-of-the-art performance while maintaining low inference cost?
Key findings
- The proposed method achieves state-of-the-art performance on the Meta-Dataset benchmark, outperforming prior methods including URL, Finetune+NCC, and Simple CNAPS.
- The method reduces meta-test inference cost to 7.2s per task on ImageNet, significantly lower than full fine-tuning (7.7s) and competitive with the fastest baseline (0.7s) while achieving much higher accuracy.
- Residual-connected matrix adapters with low-rank approximation achieve strong performance with minimal parameter increase, demonstrating efficiency and effectiveness.
- Qualitative results show that the model retrieves semantically similar images more accurately than baselines, which often retrieve images based on color, shape, or background similarity.
- The method generalizes better to unseen domains, as evidenced by correct nearest neighbor predictions on challenging datasets like Birds, Traffic Sign, and CIFAR-100.
- The ablation study confirms that direct optimization of adapters yields better performance than dynamic prediction via auxiliary networks, especially in cross-domain settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.