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

自动生成多模态大语言模型的视觉幻觉测试用例

Automatically Generating Visual Hallucination Test Cases for Multimodal Large Language Models

Duke University(杜克大学)

Zhongye Liu, Hongbin Liu, Yuepeng Hu, Zedian Shao, Neil Zhenqiang Gong

AI总结:

提出自动化方法VHExpansion,通过扰动问题、答案和图像扩展视觉幻觉测试用例,并引入无偏评估指标对称准确率,有效识别多模态大语言模型的VH漏洞并提升微调效果。

摘要:

当多模态大语言模型(MLLM)针对提示生成包含错误视觉细节的响应时,就会发生视觉幻觉(VH)。现有的VH测试用例生成方法主要依赖人工标注,通常采用三元组形式:(图像,问题,答案)。在本文中,我们引入了VHExpansion,这是首个用于扩展MLLM的VH测试用例的自动化方法。给定一个初始VH测试用例,VHExpansion通过否定操作扰动问题和答案,并使用常见和对抗性扰动修改图像,从而自动对其进行扩展。此外,我们提出了一种新的评估指标——对称准确率,用于衡量正确回答的VH测试用例对的比例。每对由一个测试用例及其否定对应项组成。我们的理论分析表明,对称准确率是一种无偏的评估指标,当MLLM随机猜测答案时,它不受具有不同答案的VH测试用例不平衡的影响,而传统准确率则容易受到这种不平衡的影响。我们应用VHExpansion扩展了三个手动标注的VH数据集,并使用这些扩展后的数据集对七个MLLM进行了基准测试。我们的评估表明,VHExpansion能有效地识别出更多的VH测试用例。此外,无偏的对称准确率与传统准确率指标相比,得出了关于MLLM对VH脆弱性的不同结论。最后,我们展示了在VHExpansion生成的扩展VH数据集上对MLLM进行微调,比在原始的手动标注数据集上微调能更有效地缓解VH。我们的代码可在以下网址获取:https://github.com/lycheeefish/VHExpansion。

英文摘要:

Visual hallucination (VH) occurs when a multimodal large language model (MLLM) generates responses with incorrect visual details for prompts. Existing methods for generating VH test cases primarily rely on human annotations, typically in the form of triples: (image, question, answer). In this paper, we introduce VHExpansion, the first automated method for expanding VH test cases for MLLMs. Given an initial VH test case, VHExpansion automatically expands it by perturbing the question and answer through negation as well as modifying the image using both common and adversarial perturbations. Additionally, we propose a new evaluation metric, symmetric accuracy, which measures the proportion of correctly answered VH test-case pairs. Each pair consists of a test case and its negated counterpart. Our theoretical analysis shows that symmetric accuracy is an unbiased evaluation metric that remains unaffected by the imbalance of VH testing cases with varying answers when an MLLM is randomly guessing the answers, whereas traditional accuracy is prone to such imbalance. We apply VHExpansion to expand three VH datasets annotated manually and use these expanded datasets to benchmark seven MLLMs. Our evaluation shows that VHExpansion effectively identifies more VH test cases. Moreover, symmetric accuracy, being unbiased, leads to different conclusions about the vulnerability of MLLMs to VH compared to traditional accuracy metric. Finally, we show that fine-tuning MLLMs on the expanded VH dataset generated by VHExpansion mitigates VH more effectively than fine-tuning on the original, manually annotated dataset. Our code is available at: https://github.com/lycheeefish/VHExpansion.

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

↑