Chenxi Wang,Xiang Chen,Ningyu Zhang,Bozhong Tian,Haoming Xu,Shumin Deng,Huajun Chen
Abstract:Multimodal Large Language Models (MLLMs) frequently exhibit hallucination phenomena, but the underlying reasons remain poorly understood. In this paper, we present an empirical analysis and find that, although MLLMs incorrectly generate the objects in the final output, they are actually able to recognize visual objects in the preceding layers. We speculate that this may be due to the strong knowledge priors of the language model suppressing the visual information, leading to hallucinations. Motivated by this, we propose a novel dynamic correction decoding method for MLLMs (DeCo), which adaptively selects the appropriate preceding layers and proportionally integrates knowledge into the final layer to adjust the output logits. Note that DeCo is model agnostic and can be seamlessly incorporated with various classic decoding strategies and applied to different MLLMs. We evaluate DeCo on widely-used benchmarks, demonstrating that it can reduce hallucination rates by a large margin compared to baselines, highlighting its potential to mitigate hallucinations. Code is available at <a class="link-external link-https" href="https://github.com/zjunlp/DeCo" rel="external noopener nofollow">this https URL</a>.
Computation and Language,Artificial Intelligence,Computer Vision and Pattern Recognition,Machine Learning,Multimedia
What problem does this paper attempt to address?
This paper attempts to address the hallucination phenomenon that occurs when multimodal large language models (MLLMs) generate descriptions. Specifically, MLLMs may erroneously generate non - existent objects when generating the final output, while ignoring some actually visible objects. This phenomenon may lead to irrevocable consequences in high - risk fields such as medical imaging, autonomous driving, and human - computer interaction systems.
### Main problems and solutions in the paper
#### 1. Analysis of the causes of the hallucination phenomenon
Through empirical analysis, the author found that although MLLMs erroneously generate objects in the final output, they are actually able to recognize visual objects in the previous layers. It is speculated that this may be due to the powerful prior knowledge of the language model suppressing the visual information, resulting in the occurrence of the hallucination phenomenon.
#### 2. Proposed solution: Dynamic Correction Decoding method (DeCo)
To solve this problem, the author proposed a new Dynamic Correction Decoding (DeCo) method. This method adaptively selects the appropriate previous layers and proportionally integrates knowledge into the final layer to adjust the output logits. The core assumption of DeCo is that the previous layers have a higher confidence in the real tokens, and the logits of these tokens should occupy an important position in the output of the last layer.
### Formula representation
The key formulas of DeCo are as follows:
- **Candidate token acquisition**:
\[
V_{\text{candidate}}(x_T|x_{<T})=\left\{x_T\in V:\sum_{v\in V}p(x_T = v|x_0,x_1,\ldots,x_{T - 1})\leq p\right\}
\]
where \(V\) is the entire vocabulary and \(p\) is the top - p truncation parameter.
- **Anchoring layer selection**:
\[
A=\arg\max_i\left\{x_T\in V_{\text{candidate}}:\text{softmax}(\phi(h_i^{T - 1}))_{x_T},i\in[a,b]\right\}
\]
where \(a\leq b\), \(a,b\in[1,N]\), and \([a,b]\) represents the layer interval of the MLLM.
- **Dynamic soft modulation**:
\[
\text{max\_prob}=\max(\text{softmax}(\phi(h_A^{T - 1})))
\]
- **Logits update**:
\[
\hat{p}(x_T|x_{<T})=\text{softmax}(\text{logits}_{x_T})
\]
\[
\text{logits}=\phi(h_N^{T - 1})+\alpha\times\text{max\_prob}\times\phi(h_A^{T - 1})
\]
where \(N\) is the last layer of the MLLM, \(A\) is the selected previous layer, and \(\alpha\) is a hyperparameter that controls the proportion of early - layer information.
### Experimental results
The experimental results show that DeCo significantly reduces the hallucination rate in image captioning and visual question - answering tasks, with an average suppression rate of 10.8%. In addition, the performance of DeCo on the AMBER dataset is also better than other benchmark methods.
In conclusion, this paper, through in - depth analysis of the internal mechanisms of MLLMs, proposed an effective hallucination - alleviating method, DeCo, providing new ideas for improving the reliability and accuracy of multimodal large language models.