arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2111.12853cs.CV
收藏

基于领域提示学习的CLIP对未知领域的有效适应

Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains

The University of Tokyo(东京大学);Google Research(谷歌研究院)

Xin Zhang, Shixiang Shane Gu, Yutaka Matsuo, Yusuke Iwasawa

摘要:

领域泛化(DG)是一个困难的迁移学习问题,旨在学习未知领域的可泛化模型。最近的基础模型(FM)是强大的许多分布偏移,因此,应大大提高DG的性能。在这项工作中,我们研究了通用的方法,采用CLIP,视觉语言基础模型,DG问题的图像分类。虽然ERM使用标准DG基准极大地提高了较大骨干和训练数据集的准确性,但在许多现实情况下,微调FM并不实用。我们提出了领域提示学习(DPL)作为一种新的领域推理方法的形式条件提示生成。DPL实现了一个显着的准确性提高,只训练一个轻量级的提示生成器(三层MLP),其参数是相当规模的分类投影仪在以前的DG文献。将\dplshort ~与CLIP相结合提供了令人惊讶的性能,将zero-shot CLIP在几个标准数据集(即PACS,VLCS,EQUIPHome和TerraIncognita)上的准确率从73.7%提高到79.3%。我们希望我们的方法的简单性和成功导致更广泛的采用和分析基础模型在领域泛化领域。我们的代码可在https://github.com/shogi880/DPLCLIP上获得。

英文摘要:

Domain generalization (DG) is a difficult transfer learning problem aiming to learn a generalizable model for unseen domains. Recent foundation models (FMs) are robust to many distribution shifts and, therefore, should substantially improve the performance of DG. In this work, we study generic ways to adopt CLIP, a Visual-Language Foundation Model, for DG problems in image classification. While ERM greatly improves the accuracy with bigger backbones and training datasets using standard DG benchmarks, fine-tuning FMs is not practical in many real-world situations. We propose Domain Prompt Learning (DPL) as a novel approach for domain inference in the form of conditional prompt generation. DPL achieved a significant accuracy improvement with only training a lightweight prompt generator (a three-layer MLP), whose parameter is of equivalent scale to the classification projector in the previous DG literature. Combining \dplshort~with CLIP provides surprising performance, raising the accuracy of zero-shot CLIP from 73.7% to 79.3% on several standard datasets, namely PACS, VLCS, OfficeHome, and TerraIncognita. We hope the simplicity and success of our approach lead to broader adoption and analysis of foundation models in the domain generalization field. Our code is available at https://github.com/shogi880/DPLCLIP.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑