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

面向视觉-语言模型的校准鲁棒微调

Towards Calibrated Robust Fine-Tuning of Vision-Language Models

University of Wisconsin--Madison(威斯康星大学麦迪逊分校);KAIST AI(韩国科学技术院人工智能部门);Chung-Ang University(中央大学);NAVER AI Lab(NAVER人工智能实验室);Carnegie Mellon University(卡内基梅隆大学);Yonsei University(延世大学)

Changdae Oh, Hyesu Lim, Mijoo Kim, Dongyoon Han, Sangdoo Yun, Jaegul Choo, Alexander Hauptmann, Zhi-Qi Cheng, Kyungwoo Song

AI总结:

提出一种视觉语言模型鲁棒微调方法,通过约束多模态对比损失和自蒸馏同时提升OOD准确性与置信度校准,并在ImageNet分布偏移基准上验证有效性。

摘要:

在分布内(ID)适应过程中提高分布外(OOD)泛化能力,是超越朴素微调的零样本模型鲁棒微调的主要目标。然而,尽管最近的鲁棒微调方法取得了不错的OOD泛化性能,但用于可靠模型输出的置信度校准尚未得到充分解决。这项工作提出了一种鲁棒微调方法,可同时提高视觉语言模型中的OOD准确性和置信度校准。首先,我们表明OOD分类误差和OOD校准误差都有一个由ID数据的两个项组成的共享上界:1)ID校准误差和2)ID输入协方差矩阵的最小奇异值。基于这一见解,我们设计了一个新颖的框架,该框架使用约束多模态对比损失进行微调,强制实现更大的最小奇异值,并进一步通过移动平均模型的自蒸馏来指导实现校准预测。从支持我们理论陈述的经验证据开始,我们在ImageNet分布偏移基准上提供了广泛的实验结果,证明了我们定理及其实际实现的有效性。

英文摘要:

Improving out-of-distribution (OOD) generalization during in-distribution (ID) adaptation is a primary goal of robust fine-tuning of zero-shot models beyond naive fine-tuning. However, despite decent OOD generalization performance from recent robust fine-tuning methods, confidence calibration for reliable model output has not been fully addressed. This work proposes a robust fine-tuning method that improves both OOD accuracy and confidence calibration simultaneously in vision language models. Firstly, we show that both OOD classification and OOD calibration errors have a shared upper bound consisting of two terms of ID data: 1) ID calibration error and 2) the smallest singular value of the ID input covariance matrix. Based on this insight, we design a novel framework that conducts fine-tuning with a constrained multimodal contrastive loss enforcing a larger smallest singular value, which is further guided by the self-distillation of a moving-averaged model to achieve calibrated prediction as well. Starting from empirical evidence supporting our theoretical statements, we provide extensive experimental results on ImageNet distribution shift benchmarks that demonstrate the effectiveness of our theorem and its practical implementation.

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

↑