The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
HallusionBench: An Advanced Diagnostic Suite for Entangled Language Hallucination & Visual Illusion in Large Vision-Language Models
You See What You Think? Or You Think What You See? An Image-Context Reasoning Benchmark Challenging for GPT-4V(ision), LLaVA-1.5, and Other Multi-modality Models
Tianrui Guan*, Fuxiao Liu*, Xiyang Wu, Ruiqi Xian, Zongxia Li, Xiaoyu Liu, Xijun Wang, Lichang Chen, Furong Huang, Yaser Yacoob, Dinesh Manocha, Tianyi Zhou
🔥🔥🔥
We welcome everyone to contribute the failure cases of Large Multimodal Models (GPT-4V) to our community!
🔥🔥🔥
Large language models (LLMs), after being aligned with vision models and integrated into vision-language models (VLMs), can bring impressive improvement in image reasoning tasks. This was shown by the recently released GPT-4V(ison), LLaVA-1.5, etc. However, the strong language prior in these SOTA LVLMs can be a double-edged sword: they may ignore the image context and solely rely on the (even contradictory) language prior for reasoning. In contrast, the vision modules in VLMs are weaker than LLMs and may result in misleading visual representations, which are then translated to confident mistakes by LLMs. To study these two types of VLM mistakes, i.e., language hallucination and visual illusion, we curated HallusionBench, an image-context reasoning benchmark that is still challenging to even GPT-4V and LLaVA-1.5. We provide a detailed analysis of examples in HallusionBench, which sheds novel insights on the illusion or hallucination of VLMs and how to improve them in the future.
If you find our paper useful, please cite our paper:
@misc{guan2023hallusionbench,
title={HallusionBench: An Advanced Diagnostic Suite for Entangled Language Hallucination & Visual Illusion in Large Vision-Language Models},
author={Tianrui Guan and Fuxiao Liu and Xiyang Wu and Ruiqi Xian and Zongxia Li and Xiaoyu Liu and Xijun Wang and Lichang Chen and Furong Huang and Yaser Yacoob and Dinesh Manocha and Tianyi Zhou},
year={2023},
eprint={2310.14566},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
@misc{liu2023mitigating,
title={Mitigating Hallucination in Large Multi-Modal Models via Robust Instruction Tuning},
author={Fuxiao Liu and Kevin Lin and Linjie Li and Jianfeng Wang and Yaser Yacoob and Lijuan Wang},
year={2023},
eprint={2306.14565},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
Updates
- [11/28] 🔥 The full paper is uploaded and can be accessed here. The dataset is expanded and leaderboard is updated.
- [11/13] 🔥 Evaluation result on LLaVA-1.5 is updated. More model results to come!
- [10/27] 🔥 The leaderboard and evaluation code is released! Welcome to update your model on our leaderboard!
- [10/24] 🔥 The early report with case analysis and insights is available here.
- [10/23] 🔥 Please check our previous work on mitigating hallucinations of LMMs "Mitigating Hallucination in Large Multi-Modal Models via Robust Instruction Tuning".
Dataset Download
To keep evaluation simple, we only provide the question in form of yes/no questions.
Updated on | Questions and Annotations | Figures | Question Count | Figure Count |
---|---|---|---|---|
Oct 27, 2023 | HallusionBench.json | hallusion_bench.zip | 254 | 69 |
Evaluation
- Clone the repo.
git clone https://github.com/tianyi-lab/HallusionBench.git
cd ./HallusionBench
Download the images hallusion_bench.zip and unzip the folder in the same directory.
The questions and image locations are saved in
./HallusionBench.json
. The data sample are as follows:
{'category': 'VD', 'subcategory': 'illusion', 'visual_input': '1', 'set_id': '0', 'figure_id': '0', 'sample_note': 'circle', 'question_id': '0', 'question': 'Is the right orange circle the same size as the left orange circle?', 'gt_answer_details': 'The right orange circle is the same size as the left orange circle.', 'gt_answer': '1', 'filename': './hallusion_bench/VD/illusion/0_0.png'}
The key visual_input
means whether the question needs visual input like images. If visual_input=1
, it means the question need visual input. If visual_input=0
, it means the question doesn't need visual input. It's the text-only question.
- Run your model on
./HallusionBench.json
and save the ouput file as./HallusionBench_result.json
. You need to add the output of your model in the key'model_prediction'
. We provide an sample result here. - Finally, run the following code for evaluation:
python evaluation.py
You can use your own API key for GPT4 evaluation by editing the code here.
Leaderboard
Definition
- Visual Dependent (VD) Questions: questions that do not have an affirmative answer without the visual context.
- Easy: Original images that are obtained from Internet.
- Hard: Edited images from the original images.
- Visual Supplement (VS) Questions: questions that can be answered without the visual input; the visual component merely provides supplemental information.
- Easy: No visual input. Uncertain answer without hallucination is also considered correct response.
- Hard: With visual input. The answer must follow the provided figure and visual context.
Metric
- Accuracy per Figure (Consistency Test): Accuracy based on each figure. To make sure the mode truly understand image, we ask variant of questions based on the same knowledge on the same figure, and consider it correct if the model can answer all questions correctly. For example, the model should not give inconsistent responses on the questions "Is A bigger than B?" and "Is B smaller A?".
- Accuracy per Question: Accuracy of all questions, including easy and hard questions.
- Accuracy per Question Pair: We ask the same questions on similar images (or, with and without images). We consider the same question text on different visual contexts a question pair (usually they come in with an easy question and a corresponding hard question). This metric calculate accuracy of all question pairs.
Model | Question Pair Acc | Figure Acc | Easy Question Acc | Hard Question Acc | Question Acc | Json |
---|---|---|---|---|---|---|
GPT4V Sep 25, 2023 Version (Human Eval) |
31.42 | 44.22 | 79.56 | 38.37 | 67.58 | VD, VS |
GPT4V Sep 25, 2023 Version (GPT Eval) |
28.79 | 39.88 | 75.60 | 37.67 | 65.28 | VD, VS |
LLaVA-1.5 (Human Eval) |
9.45 | 25.43 | 50.77 | 29.07 | 47.12 | VD, VS |
LLaVA-1.5 (GPT Eval) |
10.55 | 24.86 | 49.67 | 29.77 | 46.94 | VD, VS |
BLIP2-T5 (GPT Eval) |
15.16 | 20.52 | 45.49 | 43.49 | 48.09 | VD, VS |
InstructBLIP (GPT Eval) |
9.45 | 10.11 | 35.60 | 45.12 | 45.26 | VD, VS |
Qwen-VL (GPT Eval) |
5.93 | 6.65 | 31.43 | 24.88 | 39.15 | VD, VS |
Open-Flamingo (GPT Eval) |
6.37 | 11.27 | 39.56 | 27.21 | 38.44 | VD, VS |
MiniGPT5 (GPT Eval) |
10.55 | 9.83 | 36.04 | 28.37 | 40.30 | VD, VS |
MiniGPT4 (GPT Eval) |
8.79 | 10.12 | 31.87 | 27.67 | 35.78 | VD, VS |
mPLUG_Owl-v2 (GPT Eval) |
13.85 | 19.94 | 44.84 | 39.07 | 47.30 | VD, VS |
mPLUG_Owl-v1 (GPT Eval) |
9.45 | 10.40 | 39.34 | 29.77 | 43.93 | VD, VS |
GiT (GPT Eval) |
5.27 | 6.36 | 26.81 | 31.86 | 34.37 | VD, VS |
Reproduce GPT4V results on leaderboard
We saved the ouput of GPT4V with our annotation. Put
HallusionBench.tsv
in the root directory of this repo, or setinput_file_name
in gpt4v_benchmark.py to the location of the HallusionBench.tsv file.(Optional) If you don't have access to GPT API, you don't need to run it since we have saved evaluation results. They can be downloaded for Visual Dependent and Visual Supplement. Put the json files in the root directory of this repo, or set
save_json_path_vd
andsave_json_path_vd
in gpt4v_benchmark.py to their respective locations.Run
python gpt4v_benchmark.py
.
Examples and Analysis
license: bsd-3-clause
- Downloads last month
- 171