Segmentation-Based Attention Entropy: Detecting and Mitigating Object Hallucinations in Large Vision-Language Models
Organizations: School of Information and Intelligent Science, Donghua University, Shanghai, China
Abstract
Large Vision-Language Models (LVLMs) achieve strong performance on many multimodal tasks, but object hallucinations severely undermine their reliability. Most existing studies focus on the text modality, attributing hallucinations to overly strong language priors and insufficient visual grounding. In contrast, we observe that abnormal attention patterns within the visual modality can also give rise to hallucinated objects. Building on this observation, we propose Segmentation-based Attention Entropy (SAE), which leverages semantic segmentation to quantify visual attention uncertainty in a semantic space. Based on SAE, we further design a reliability score for hallucination detection and an SAE-guided attention adjustment method that modifies visual attention at inference time to mitigate hallucinations. We evaluate our approach on public benchmarks and in real embodied multimodal scenarios with quadruped robots. Experiments show that SAE reduces hallucinations without additional training, improving LVLM reliability.
Figures & tables
| Method | LLaVA-1.5-7B | LLaVA-1.5-13B | Avg | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| R | P | F1 | R | P | F1 | |||||||
| Nucleus | 56.0 | 16.4 | 73.4 | 71.0 | 72.2 | 54.0 | 15.0 | 74.6 | 73.0 | 73.8 | 55.0 | 15.7 |
| Greedy | 47.9 | 13.6 | 78.1 | 75.8 | 77.0 | 44.3 | 11.7 | 77.6 | 78.7 | 78.2 | 46.1 | 12.6 |
| Beam | 52.1 | 14.1 | 78.5 | 75.2 | 76.8 | 49.7 | 12.7 | 79.1 | 77.3 | 78.2 | 50.9 | 13.4 |
| OPERA | 48.5 | 13.7 | 78.1 | 75.5 | 76.8 | 52.6 | 14.1 | 68.1 | 73.1 | 70.5 | 50.6 | 13.9 |
| [1pt/2pt] VCD | 55.4 | 15.7 | 75.6 | 71.8 | 73.7 | 52.3 | 13.9 | 75.5 | 74.6 | 75.1 | 53.8 | 14.8 |
| Method | 64 | 128 | 256 | Avg | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| F1 | F1 | F1 | F1 | |||||||||
| Nucleus | 25.6 | 9.2 | 68.7 | 54.1 | 16.1 | 72.0 | 56.0 | 16.4 | 72.2 | 45.2 | 13.9 | 71.0 |
| Greedy | 21.3 | 6.6 | 74.5 | 46.9 | 13.3 | 77.0 | 47.9 | 13.6 | 77.0 | 38.7 | 11.2 | 76.2 |
| Beam | 18.7 | 6.1 | 73.3 | 50.2 | 13.7 | 76.9 | 52.1 | 14.1 | 76.8 | 40.3 | 11.3 | 75.7 |
| OPERA | 17.0 | 5.4 | 74.3 | 47.2 | 13.4 | 76.8 | 48.5 | 13.7 | 76.8 | 37.6 | 10.8 | 76.0 |
| [1pt/2pt] VCD | 23.2 | 8.1 | 71.9 | 53.9 | 15.0 | 74.6 | 55.4 | 15.7 | 73.7 | 44.2 | 12.9 | 73.4 |
| Method | POPE Acc. | POPE F1 | MMHal Score | MMHal Hall. Rate |
|---|---|---|---|---|
| Greedy | 84.7 | 85.2 | 2.58 | 55.4 |
| VCD | 86.0 | 86.4 | 2.71 | 52.1 |
| PAI | 87.1 | 87.5 | 2.87 | 49.1 |
| VAR | 87.6 | 88.0 | 2.95 | 47.4 |
| Ours | 88.8 | 89.1 | 3.11 | 43.2 |
| Method | Qwen2-VL-7B | InternVL2-8B | ||||
|---|---|---|---|---|---|---|
| F1 | F1 | |||||
| Nucleus | 36.8 | 10.4 | 72.9 | 38.4 | 10.9 | 73.4 |
| Greedy | 31.6 | 9.1 | 77.4 | 33.8 | 9.6 | 77.1 |
| Beam | 33.0 | 9.3 | 77.1 | 35.1 | 9.8 | 76.8 |
| OPERA | 32.8 | 9.1 | 76.6 | 34.6 | 9.7 | 76.2 |
| [1pt/2pt] VCD | 35.9 | 10.1 | 74.6 | 37.2 | 10.4 | 74.2 |
| Scenario | Method | Success Rate | Time (s) | Replans | Unsup. |
|---|---|---|---|---|---|
| Single-target | Vanilla | 66.7 | 96.4 18.7 | 2.3 1.0 | 0.92 0.51 |
| Ours | 91.7 | 84.1 16.2 | 1.1 0.6 | 0.25 0.22 | |
| Multi-target | Vanilla | 41.7 | 72.6 13.9 | 4.0 1.4 | 1.58 0.67 |
| Ours | 75.0 | 99.8 15.6 | 2.1 1.0 | 0.63 0.41 |
| (Ours) | R | P | F1 | ||
|---|---|---|---|---|---|
| 0.3 | 40.4 | 11.8 | 75.5 | 77.3 | 76.4 |
| 0.4 | 40.2 | 12.1 | 75.1 | 76.1 | 75.6 |
| 0.5 | 24.2 | 5.9 | 68.2 | 87.3 | 76.6 |
| 0.6 | 2.6 | 2.0 | 37.8 | 97.8 | 54.6 |
| 0.7 | 1.4 | 1.8 | 8.9 | 98.0 | 16.2 |
| Greedy | 47.9 | 13.6 | 78.1 | 75.8 | 77.0 |
| Partition setting | R | P | F1 | ||
| Greedy | 47.9 | 13.6 | 78.1 | 75.8 | 77.0 |
| Ours (clean seg.) | 24.2 | 5.9 | 68.2 | 87.3 | 76.6 |
| Boundary noise (mild) | 25.1 | 6.2 | 67.9 | 86.8 | 76.1 |
| Boundary noise (moderate) | 26.4 | 6.7 | 67.1 | 86.1 | 75.4 |
| Token reassignment ( ) | 25.7 | 6.3 | 67.6 | 86.5 | 75.9 |
| Token reassignment ( ) | 27.3 | 7.1 | 66.7 | 85.4 | 74.9 |
| Setting | F1 | Time / image (s) | ||
|---|---|---|---|---|
| Greedy (no partition) | 47.9 | 13.6 | 77.0 | 0.82 |
| Block entropy | 37.4 | 11.2 | 76.2 | 0.93 |
| Mask2Former-Swin-T | 27.8 | 7.2 | 75.0 | 1.01 |
| Mask2Former-Swin-L | 24.2 | 5.9 | 76.6 | 1.17 |
| Method | Tokens/sec. | Relative overhead | GPU memory (GB) |
|---|---|---|---|
| Greedy | 17.3 | 1.00 | 21.4 |
| Ours (precomputed masks) | 16.5 | 1.05 | 21.8 |
| Ours + block entropy | 16.2 | 1.07 | 21.9 |
| Ours + online Swin-T | 15.4 | 1.12 | 22.4 |
| Ours + online Swin-L | 14.4 | 1.20 | 23.1 |
| Layer range | R | P | F1 | ||
|---|---|---|---|---|---|
| Early layers (1–10) | 31.8 | 8.7 | 70.5 | 82.1 | 75.9 |
| Middle layers (11–22) | 24.2 | 5.9 | 68.2 | 87.3 | 76.6 |
| Late layers (23–32) | 29.7 | 7.6 | 66.1 | 84.8 | 74.3 |
| All layers | 27.9 | 7.1 | 71.0 | 84.1 | 76.1 |
Object Hallucination in VLMs
Object hallucination in vision-language models is the production of object claims unsupported by visual evidence.
See all 128 papers