arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.07866cs.CV
收藏

面向视觉-语言模型的梯度约束锐度感知提示学习

Gradient constrained sharpness-aware prompt learning for vision-language models

Xidian University(西安电子科技大学);Chongqing University of Posts and Telecommunications(重庆邮电大学);University of Sydney(悉尼大学)

Liangchen Liu, Nannan Wang, Dawei Zhou, Xinbo Gao, Decheng Liu, Xi Yang, Tongliang Liu

AI总结:

本文针对视觉-语言模型提示学习中已见与未见类别性能权衡问题,提出梯度约束锐度感知上下文优化方法GCSCoOp,通过动态约束优化梯度同时优化损失值与损失锐度,实验验证了其有效性。

摘要:

本文针对视觉-语言模型(VLM)可泛化提示学习中的一个新权衡问题,即在保持已见类别性能的同时提升未见类别的性能。与现有忽视已见类别性能退化的可泛化方法相比,该问题的设定更为严格,更贴合实际应用。为解决这一问题,我们从优化视角出发,利用损失景观几何结构与模型泛化能力之间的关系。通过分析最先进方法和基于普通锐度感知最小化(SAM)方法的损失景观,我们得出结论:权衡性能与损失值和损失锐度都相关,且二者缺一不可。然而,我们发现现有方法的优化梯度在优化过程中无法同时与损失值和损失锐度保持高度相关性,这严重影响了它们的权衡性能。为此,我们提出一种新的基于SAM的提示学习方法,称为梯度约束锐度感知上下文优化(GCSCoOp),动态约束优化梯度,从而同时实现上述双重优化目标。大量实验验证了GCSCoOp在该权衡问题中的有效性。

英文摘要:

This paper targets a novel trade-off problem in generalizable prompt learning for vision-language models (VLM), i.e., improving the performance on unseen classes while maintaining the performance on seen classes. Comparing with existing generalizable methods that neglect the seen classes degradation, the setting of this problem is more strict and fits more closely with practical applications. To solve this problem, we start from the optimization perspective, and leverage the relationship between loss landscape geometry and model generalization ability. By analyzing the loss landscapes of the state-of-the-art method and vanilla Sharpness-aware Minimization (SAM) based method, we conclude that the trade-off performance correlates to both loss value and loss sharpness, while each of them is indispensable. However, we find the optimizing gradient of existing methods cannot maintain high relevance to both loss value and loss sharpness during optimization, which severely affects their trade-off performance. To this end, we propose a novel SAM-based method for prompt learning, denoted as Gradient Constrained Sharpness-aware Context Optimization (GCSCoOp), to dynamically constrain the optimizing gradient, thus achieving above two-fold optimization objective simultaneously. Extensive experiments verify the effectiveness of GCSCoOp in the trade-off problem.

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

↑