Skip to main content
QUICK REVIEW

[论文解读] Meta-Adapter: An Online Few-shot Learner for Vision-Language Model

Cheng Cheng, Lin Song|arXiv (Cornell University)|Nov 7, 2023
Domain Adaptation and Few-Shot LearningComputer Science被引用 10
一句话总结

Meta-Adapter 提供一个轻量级的在线少样本学习器用于 CLIP,通过一个门控多头注意力的元适配器来细化类别嵌入,在不进行微调的情况下,相较于先前的在线方法,具备更好的泛化性和效率。

ABSTRACT

The contrastive vision-language pre-training, known as CLIP, demonstrates remarkable potential in perceiving open-world visual concepts, enabling effective zero-shot image recognition. Nevertheless, few-shot learning methods based on CLIP typically require offline fine-tuning of the parameters on few-shot samples, resulting in longer inference time and the risk of over-fitting in certain domains. To tackle these challenges, we propose the Meta-Adapter, a lightweight residual-style adapter, to refine the CLIP features guided by the few-shot samples in an online manner. With a few training samples, our method can enable effective few-shot learning capabilities and generalize to unseen data or tasks without additional fine-tuning, achieving competitive performance and high efficiency. Without bells and whistles, our approach outperforms the state-of-the-art online few-shot learning method by an average of 3.6\% on eight image classification datasets with higher inference speed. Furthermore, our model is simple and flexible, serving as a plug-and-play module directly applicable to downstream tasks. Without further fine-tuning, Meta-Adapter obtains notable performance improvements in open-vocabulary object detection and segmentation tasks.

研究动机与目标

  • 推动视觉-语言模型在没有离线微调的情况下进行鲁棒的少样本学习。
  • 引入一个轻量级的 Meta-Adapter,利用少样本视觉支持对文本类别嵌入进行细化。
  • 在保持效率的同时,提升跨数据集、跨任务和分布转移的泛化能力。
  • 展示作为下游基于 CLIP 任务的即插即用模块的适用性。

提出的方法

  • 提出一个基于门控多头注意力的 Meta-Adapter,使用文本类别嵌入作为查询,少样本视觉支持作为键/值。
  • 通过交叉注意力和一个可学习的门控块计算细化的类别嵌入,门控块调节更新强度(ŵ = w + g(w) ⊙ F̂)。
  • 通过简单的基于 MLP 的查询/键路径进行交叉注意力来聚合支持特征 F̂,同时不改变值变换。
  • 通过不变换值特征并保持轻量级的残差结构来维持零样本能力。
  • 用一个可学习的、通过元测试的模块替换 Tip-Adapter 中的手工调制,使其在不进行显式超参数搜索的情况下适应数据分布。
(a) Top-1 accuracy with 16 shots.
(a) Top-1 accuracy with 16 shots.

实验结果

研究问题

  • RQ1可否通过一个可学习的在线元适配器在不进行微调的情况下,在不同数据集上提升少样本 CLIP 的性能?
  • RQ2将手工调制替换为可训练模块是否能减少过拟合并提升跨数据集与跨任务的泛化?
  • RQ3相较于在线基线,Meta-Adapter 在开放词汇的下游任务(如目标检测和分割)上的表现如何?
  • RQ4模型尺寸和组件(MHA、VP、LGB)对性能和效率有哪些影响?

主要发现

  • Meta-Adapter 在八个 16-shot 图像分类数据集上,对新类平均实现相对 Tip-Adapter 的 3.6% 绝对增益。
  • 随着样本数的增加,Meta-Adapter 的增益更高,并且在多数据集上相较于 Tip-Adapter 的 ImageNet 预训练骨干有提升。
  • 在开放词汇对象检测(LVIS)与 ViLD 的场景下,Meta-Adapter 在罕见类别 AP 上提供 1.0% 的绝对增益且无需额外微调。
  • 在跨数据集和跨任务的设置中,Meta-Adapter 展现出比 Tip-Adapter 和其他基线更好的泛化和迁移能力。
  • 与离线方法相比,Meta-Adapter 在新类上提供强泛化且无需微调,同时保持效率。
(b) Top-1 accuracy on ImageNet [ 29 ] -Novel.
(b) Top-1 accuracy on ImageNet [ 29 ] -Novel.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。