arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2507.15480cs.CV
收藏

为你的视觉-语言模型再加最后一层注意力

One Last Attention for Your Vision-Language Model

MBZUAI(穆罕默德·本·扎耶德人工智能大学);The University of Adelaide(阿德莱德大学)

Liang Chen, Ghazi Shazan Ahmad, Tianjun Yao, Lingqiao Liu, Zhiqiang Shen

AI总结:

针对现有视觉-语言模型微调方法忽略融合表征作用的问题,提出轻量的RAda适配方法,通过末端注意力层生成掩码校准理性矩阵,在多种设置下以极少代码提升性能并达到当前最优水平。

摘要:

预训练视觉-语言模型(VLM,如CLIP)取得了显著的零样本性能,但其下游潜力取决于有效的微调。大多数适配方法通常聚焦于优化单模态(文本或视觉)的表征,却忽略了融合表征在决策过程中的关键作用,也就是驱动最终预测的理性矩阵。为弥补这一空白,我们提出了一种简单却有效的**理性适配(Rational Adaptation,RAda)**,在微调过程中显式利用最终融合表征。RAda采用一个可学习掩码——该掩码由附加在VLM末端的轻量级注意力层得到——来动态校准理性矩阵中每个元素的贡献,实现对最终跨模态交互的针对性调整,且无需对中间特征进行高成本修改。在不同设置下的实验(即适配阶段更新或冻结预训练编码器,以及仅能访问无标签测试数据的测试时训练)表明,RAda是一种通用的微调技术,仅需极少代码即可提升基线性能,且在大多数设置下性能与当前最优方法相当。代码可在github.com/khufia/RAda获取。

英文摘要:

Pretrained vision-language models (VLMs), such as CLIP, achieve remarkable zero-shot performance, yet their downstream potential hinges on effective fine-tuning. Most adaptation methods typically focus on refining representation from separate modalities (text or vision) but neglect the critical role of their fused representations in the decision-making process, \emph{\ie} rational matrix that drives the final prediction. To bridge the gap, we propose a simple yet effective \textbf{R}ational \textbf{Ada}ptaion ({RAda}) to explicitly exploit the final fused representation during fine-tuning. RAda employs a learned mask, obtained from a lightweight attention layer attached at the end of a VLM, to dynamically calibrate the contribution of each element in the rational matrix, enabling targeted adjustments to the final cross-modal interactions without incurring costly modifications to intermediate features. Experiments in different settings (i.e., updating, or freezing pretrained encoders in adaptation, and test-time training that can only access the unlabeled test data) show that RAda serves as a versatile fine-tuning technique, improving the baseline with minimal code and performing comparably against current arts in most settings. Code is available at \href{https://github.com/khufia/RAda/tree/main}{github.com/khufia/RAda}.

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

↑