语言辅助的视觉模型调试器:一种无需样本的缺陷发现与修复方法
Language-assisted Vision Model Debugger: A Sample-Free Approach to Finding and Fixing Bugs
AI总结:
本文提出基于 CLIP 和 LLM 的无样本语言辅助诊断框架,通过文本代理模型探测视觉模型缺陷,并在 Waterbirds 与 CelebA 上发现已知及未知错误。
摘要:
整体准确率较高的视觉模型往往会在特定场景中表现出系统性错误,从而带来潜在的严重安全隐患。诊断视觉模型的缺陷正受到越来越多关注;然而,传统诊断方法需要标注工作(例如 CelebA 中每个样本所附带的丰富元数据)。为解决这一问题,我们提出一种语言辅助的诊断方法,该方法基于多模态模型(例如 CLIP),使用文本而非图像来诊断视觉模型中的缺陷。我们的方法将 CLIP 的嵌入空间与待诊断的有缺陷视觉模型相连接;同时,利用共享分类器以及 CLIP 嵌入空间的跨模态可迁移性,CLIP 的文本分支成为一个代理模型,用于发现有缺陷模型中的缺陷。该代理模型能够对与图像配对的文本进行分类。在诊断过程中,采用大语言模型(LLM)获取与任务相关的语料库,并使用该语料库提取关键词。通过包含这些关键词的模板构造描述,将其作为输入文本,以探测代理模型中的错误。最后,我们在 Waterbirds 和 CelebA 数据集上验证了利用语言诊断现有视觉模型的能力:我们能够识别人类专家可理解的缺陷,不仅揭示已知缺陷,还发现此前未知的缺陷。
英文摘要:
Vision models with high overall accuracy often exhibit systematic errors in specific scenarios, posing potential serious safety concerns. Diagnosing bugs of vision models is gaining increased attention, however traditional diagnostic approaches require annotation efforts (eg rich metadata accompanying each samples of CelebA). To address this issue,We propose a language-assisted diagnostic method that uses texts instead of images to diagnose bugs in vision models based on multi-modal models (eg CLIP). Our approach connects the embedding space of CLIP with the buggy vision model to be diagnosed; meanwhile, utilizing a shared classifier and the cross-modal transferability of embedding space from CLIP, the text-branch of CLIP become a proxy model to find bugs in the buggy model. The proxy model can classify texts paired with images. During the diagnosis, a Large Language Model (LLM) is employed to obtain task-relevant corpora, and this corpora is used to extract keywords. Descriptions constructed with templates containing these keywords serve as input text to probe errors in the proxy model. Finally, we validate the ability to diagnose existing visual models using language on the Waterbirds and CelebA datasets, we can identify bugs comprehensible to human experts, uncovering not only known bugs but also previously unknown ones.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。