[论文解读] Align Your Prompts: Test-Time Prompting with Distribution Alignment for Zero-Shot Generalization
PromptAlign 在多模态提示中增加测试时令牌分布对齐,将分布对齐与熵最小化相结合,以在域迁移和跨数据集的零-shot 泛化方面提高 CLIP 的性能。
The promising zero-shot generalization of vision-language models such as CLIP has led to their adoption using prompt learning for numerous downstream tasks. Previous works have shown test-time prompt tuning using entropy minimization to adapt text prompts for unseen domains. While effective, this overlooks the key cause for performance degradation to unseen domains -- distribution shift. In this work, we explicitly handle this problem by aligning the out-of-distribution (OOD) test sample statistics to those of the source data using prompt tuning. We use a single test sample to adapt multi-modal prompts at test time by minimizing the feature distribution shift to bridge the gap in the test domain. Evaluating against the domain generalization benchmark, our method improves zero-shot top- 1 accuracy beyond existing prompt-learning techniques, with a 3.08% improvement over the baseline MaPLe. In cross-dataset generalization with unseen categories across 10 datasets, our method improves consistently across all datasets compared to the existing state-of-the-art. Our source code and models are available at https://jameelhassan.github.io/promptalign.
研究动机与目标
- 解决视觉-语言模型在预训练分布和测试分布之间的分布偏移问题。
- 将测试时提示微调扩展为使用代理源数据显式对齐令牌分布。
- 证明将分布对齐与熵最小化结合能带来更强的零-shot 泛化能力。
- 展示 ImageNet 可作为 CLIP 类模型在分布对齐中的实际代理源数据集。
- 在域泛化和跨数据集基准测试上评估 PromptAlign 以确立最先进的性能。
提出的方法
- 使用多模态提示学习(MaPLe)在文本和视觉分支上同时更新提示。
- 对每个测试样本生成多个增强视图,并计算提示图像令牌的逐层分布(均值和方差)。
- 从代理数据集(ImageNet)对每个视觉变换器层计算离线源分布统计。
- 最小化联合损失:预测的熵(每视图集合)和测试视图统计与代理源统计在各层之间的一阶分布对齐的 L1 距离。
- 使用 AdamW 优化提示,以在熵和对齐损失之间取得平衡(β 控制对齐权重)。
实验结果
研究问题
- RQ1测试时提示微调是否可以通过显式将测试令牌分布与代理源分布对齐来得到增强?
- RQ2将令牌分布对齐与熵最小化结合是否能在域迁移下提升零-shot 泛化?
- RQ3在测试时将 ImageNet 作为代理源数据集对 CLIP 类模型进行分布对齐是否可行?
- RQ4与现有提示学习方法相比,PromptAlign 在域泛化和跨数据集迁移中的表现如何?
主要发现
- PromptAlign 在域泛化中将零-shot top-1 准确率整体高于 MaPLe 3.08%。
- PromptAlign 在跨 ImageNet 变体的平均 Top-1 准确率方面达到最高,相较于先前方法(表 2 显示 MaPLe 60.28、MaPLe+TPT 62.31、PromptAlign 63.55)。
- 在跨数据集泛化中,PromptAlign 在 10 个数据集上普遍提升,并以平均提升 0.71% 超过此前最佳。
- 跨数据集下,PromptAlign 的平均 Top-1 为 66.92%,高于 MaPLe 的 66.30% 和 MaPLe+TPT 的 66.50%(表 4)。
- 使用 ImageNet 作为代理源数据可实现有效的分布对齐与稳健的泛化。
- 消融实验显示将熵与令牌分布对齐结合可获得最佳性能,而更高阶统计信息的增益有限。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。