Unleashing the Power of Meta-tuning for Few-shot Generalization Through Sparse Interpolated Experts
Shengzhuang Chen, Jihoon Tack, Yunqiao Yang, Yee Whye Teh, Jonathan Richard Schwarz, Ying Wei
TL;DR
This paper tackles the problem of improving few-shot generalization for vision foundation models, especially under distribution shifts. It proposes Sparse MetA-Tuning (SMAT), a method that learns a pool of sparse experts and a gating mechanism to interpolate between pre-trained weights and task-specific adaptations, added to a frozen backbone. SMAT uses a hypernetwork to generate per-task expert weights and employs sparsity-aware masks with a KD objective to promote specialization, achieving state-of-the-art results on Meta-Dataset with added OOD tasks and demonstrating strong ID/OOD balance. The approach is compatible with gradient-based and gradient-free meta-testing and with parameter-efficient fine-tuning, and analyses reveal interpretable, task-related sparsity patterns that adapt to distribution shifts and reduce meta-overfitting, with broad practical implications for robust transfer learning.
Abstract
Recent successes suggest that parameter-efficient fine-tuning of foundation models as the state-of-the-art method for transfer learning in vision, replacing the rich literature of alternatives such as meta-learning. In trying to harness the best of both worlds, meta-tuning introduces a subsequent optimization stage of foundation models but has so far only shown limited success and crucially tends to underperform on out-of-distribution (OOD) tasks. In this paper, we introduce Sparse MetA-Tuning (SMAT), a method inspired by sparse mixture-of-experts approaches and trained to isolate subsets of pre-trained parameters automatically for meta-tuning on each task. SMAT successfully overcomes OOD sensitivity and delivers on the promise of enhancing the transfer abilities of vision foundation models beyond parameter-efficient fine-tuning. We establish new state-of-the-art results on a challenging combination of Meta-Dataset augmented with additional OOD tasks in both zero-shot and gradient-based adaptation settings. In addition, we provide a thorough analysis of the superiority of learned over hand-designed sparsity patterns for sparse expert methods and the pivotal importance of the sparsity level in balancing between in-distribution and out-of-distribution generalization. Our code is publicly available.
