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

$Δ\mathrm{Energy}$: 优化视觉-语言对齐过程中的能量变化提升OOD检测与OOD泛化

$Δ\mathrm{Energy}$: Optimizing Energy Change During Vision-Language Alignment Improves both OOD Detection and OOD Generalization

Shanghai Jiao Tong University(上海交通大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)

Lin Zhu, Yifeng Yang, Xinbing Wang, Qinying Gu, Nanyang Ye

AI总结:

本文提出ΔEnergy分数,通过重新对齐视觉-语言模态时的能量变化来同时提升分布外检测和分布外泛化性能,并基于此开发了统一微调框架EBM。

摘要:

近期针对视觉-语言模型(VLM)的方法在下游任务快速适应中取得了显著成功。当应用于真实世界下游任务时,VLM不可避免地会遇到分布内(ID)数据和分布外(OOD)数据。OOD数据集通常包括协变量偏移(例如,已知类别但图像风格变化)和语义偏移(例如,测试时未见类别)。这凸显了提升VLM对协变量偏移OOD数据的泛化能力,同时有效检测开放集语义偏移OOD类别的重要性。本文受重新对齐视觉-语言模态时(具体通过将最大余弦相似度直接降低到低值)观察到的闭集数据中显著能量变化的启发,提出了一种新的OOD分数,命名为ΔEnergy。ΔEnergy显著优于基于能量的原始OOD分数,为OOD检测提供了更可靠的方法。此外,ΔEnergy还能同时提升协变量偏移下的OOD泛化,这是通过ΔEnergy的下界最大化(称为EBM)实现的。理论上证明EBM不仅能增强OOD检测,还能产生领域一致的Hessian矩阵,这作为OOD泛化的强指标。基于这一发现,我们开发了一个统一的微调框架,能够提升VLM在OOD泛化和OOD检测两方面的鲁棒性。在具有挑战性的OOD检测和泛化基准上的大量实验证明了我们方法的优越性,在AUROC上比近期方法提升了10%到25%。

英文摘要:

Recent approaches for vision-language models (VLMs) have shown remarkable success in achieving fast downstream adaptation. When applied to real-world downstream tasks, VLMs inevitably encounter both the in-distribution (ID) data and out-of-distribution (OOD) data. The OOD datasets often include both covariate shifts (e.g., known classes with changes in image styles) and semantic shifts (e.g., test-time unseen classes). This highlights the importance of improving VLMs' generalization ability to covariate-shifted OOD data, while effectively detecting open-set semantic-shifted OOD classes. In this paper, inspired by the substantial energy change observed in closed-set data when re-aligning vision-language modalities (specifically by directly reducing the maximum cosine similarity to a low value), we introduce a novel OOD score, named ΔEnergy. ΔEnergy significantly outperforms the vanilla energy-based OOD score and provides a more reliable approach for OOD detection. Furthermore, ΔEnergy can simultaneously improve OOD generalization under covariate shifts, which is achieved by lower-bound maximization for ΔEnergy (termed EBM). EBM is theoretically proven to not only enhance OOD detection but also yields a domain-consistent Hessian, which serves as a strong indicator for OOD generalization. Based on this finding, we developed a unified fine-tuning framework that allows for improving VLMs' robustness in both OOD generalization and OOD detection. Extensive experiments on challenging OOD detection and generalization benchmarks demonstrate the superiority of our method, outperforming recent approaches by 10% to 25% in AUROC.

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

↑