arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.08176cs.CVcs.MM
收藏

TextRefiner:将内部视觉特征作为视觉语言模型提示调优的高效优化器

TextRefiner: Internal Visual Feature as Efficient Refiner for Vision-Language Models Prompt Tuning

Xiamen University(厦门大学)

Jingjing Xie, Yuxin Zhang, Jun Peng, Zhaohong Huang, Liujuan Cao

AI总结:

针对现有视觉语言模型提示学习粗粒度共享提示难以区分类别视觉概念、外部知识辅助方法推理成本高的问题,提出即插即用的TextRefiner方法,利用模型内部视觉特征优化文本提示,提升多基准性能且推理高效。

摘要:

尽管提示学习在将视觉语言模型(VLM)迁移到下游任务方面具备高效性,但现有方法主要以粗粒度方式学习提示,所学的提示向量在所有类别间共享。因此,定制化的提示往往无法识别类别特有的视觉概念,进而阻碍了针对具有相似或复杂视觉属性类别的迁移性能。近期研究通过利用大语言模型(LLM)的外部知识提供类别描述来缓解这一问题,但会产生显著的推理成本。本文提出TextRefiner,这是一种即插即用的方法,可利用VLM的内部知识优化现有方法的文本提示。具体而言,TextRefiner构建了一个新颖的局部缓存模块,用于封装从图像分支内局部标记中提取的细粒度视觉概念。通过将缓存的视觉描述与文本分支的原始输出进行聚合和对齐,TextRefiner无需依赖任何外部知识,就能高效优化并丰富现有方法学到的提示。例如,它在11个基准测试中将CoOp的性能从71.66%提升至76.94%,超过了为文本提示引入实例级特征的CoCoOp。搭载TextRefiner后,PromptKD达到了最优性能,且推理效率很高。我们的代码发布于https://github.com/xjjxmu/TextRefiner。

英文摘要:

Despite the efficiency of prompt learning in transferring vision-language models (VLMs) to downstream tasks, existing methods mainly learn the prompts in a coarse-grained manner where the learned prompt vectors are shared across all categories. Consequently, the tailored prompts often fail to discern class-specific visual concepts, thereby hindering the transferred performance for classes that share similar or complex visual attributes. Recent advances mitigate this challenge by leveraging external knowledge from Large Language Models (LLMs) to furnish class descriptions, yet incurring notable inference costs. In this paper, we introduce TextRefiner, a plug-and-play method to refine the text prompts of existing methods by leveraging the internal knowledge of VLMs. Particularly, TextRefiner builds a novel local cache module to encapsulate fine-grained visual concepts derivedfrom local tokens within the image branch. By aggregating and aligning the cached visual descriptions with the original output of the text branch, TextRefiner can efficiently refine and enrich the learned prompts from existing methods without relying on any external expertise. For example, it improves the performance of CoOp from 71.66 % to 76.94 % on 11 benchmarks, surpassing CoCoOp which introduces instance-wise features for text prompts. Equipped with TextRefiner, PromptKD achieves state-of-the-art performance and is efficient in inference. Our code is relesed at https://github.com/xjjxmu/TextRefiner

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

↑