CODE: Contrasting Self-generated Description to Combat Hallucination in Large Multi-modal Models

Large Multi-modal Models (LMMs) have recently demonstrated remarkable abilities in visual context understanding and coherent response generation. However, alongside these advancements, the issue of hallucinations has emerged as a significant challenge, producing erroneous responses that are unrelated to the visual contents. In this paper, we introduce a novel contrastive-based decoding method, COuntering DEscription Contrastive Decoding (CODE), which leverages self-generated descriptions as contrasting references during the decoding phase of LMMs to address hallucination issues. CODE utilizes the comprehensive descriptions from model itself as visual counterpart to correct and improve response alignment with actual visual content. By dynamically adjusting the information flow and distribution of next-token predictions in the LMM's vocabulary, CODE enhances the coherence and informativeness of generated responses. Extensive experiments demonstrate that our method significantly reduces hallucinations and improves cross-modal consistency across various benchmarks and cutting-edge LMMs. Our method provides a simple yet effective decoding strategy that can be integrated to existing LMM frameworks without additional training.

Paper

References (64)

Scroll for more · 38 remaining

Similar papers

Peer review

Reviewer 9CKq5/10 · confidence 5/52024-07-09

Summary

This paper introduce the CODE decoding method to contrast origin image with VLM-generated image description to reveal the missed or hallucinated content in naive decoding process. The method contains two innovations: 1) a Bounded Divergence guided selector to provide dynamic combining weight. 2) an adaptive information constrain based also on Bounded Divergence. The experiment results show promising and consistent performance improvement.

Strengths

1. The paper is well-written and addresses a crucial problem in MLLMs. 2. The idea of contrast image and caption in VLM decoding process is novel. 3. The proposed CODE method is simple and effective on multiple benchmarks.

Weaknesses

1. The dynamic information flow control does not have that much technical novelty, as it is quite close to what IBD does. 2. Like CODE, VCD also contrast image with modified inputs (i.e. corrupted images), but not discussed in detail in this paper. What makes contrasting image descriptions better than contrasting with corrupted images? 3. What makes a good image description for CODE to use is not discussed.

Questions

See weaknesses.

Rating

5

Confidence

5

Soundness

3

Presentation

3

Contribution

3

Limitations

the authors adequately addressed the limitations

Authorsrebuttal2024-08-10

We thank the reviewer for replies and further questions. As the reviewer requested, to investigate the effectiveness of our design choice for the detailed description prompt, we compared it with a different variation, which is a base prompt to obtain a detailed description. - Base prompt: “Provide a detailed description of the image.” - Our prompt: “Provide a detailed description of the image, covering all visible elements and their interactions, so as to thoroughly answer any potential questions about the image." As in the table below, we have analyzed the performance of the mmHalBench and compared the average $\sharp$ token lengths for the responses generated by the models. The results show that the average token length of our curated prompt, designed to include a more comprehensive description of all visible elements in the image, demonstrates a longer token length (approx. 24\% longer) and slightly improved performance compared to the baseline. This indicates that the information amount of the comprehensive description indeed affects to the CODE by reflecting the current visual understanding of LMMs, and effectively mitigates hallucinatory responses. We will include these results and discuss how the prompt designs can boost the CODE performance in the final version. | Models | | LV1.5 | | | IXC2-VL | | | IVL-1.5 | | |----------|:-----:|:---------:|:---------------:|:-----:|:---------:|:---------------:|:-----:|:---------:|:---------------:| | mmHal | Overall$\uparrow$ | Hal$\downarrow$ | $\sharp$ token | Overall$\uparrow$ | Hal$\downarrow$ | $\sharp$ token | Overall$\uparrow$ | Hal$\downarrow$ | $\sharp$ token | | Base | 2.34 | 52.08 | 100.54 | 3.19 | 30.21 | 56.98 | 3.42 | 33.00 | 136.16 | | Ours | 2.49 | 51.00 | 115.46 | 3.46 | 25.00 | 80.73 | 3.52 | 30.21 | 195.54 |

Reviewer FLJA6/10 · confidence 4/52024-07-10

Summary

The paper proposed a contrast decoding method named CODE for large multi-modal models. CODE, as mentioned by its name uses self-generated description as contrasting references during the decoding phase of LMMs to mitigate the hallucination issues. CODE works by dynamically considering the variations between the visual features and their corresponding pure language features (description) to improve response alignment with actual visual content and misalignment with the wrong part in descriptions. Based on contrastive decoding, the author proposed dynamic restriction, which regulates the information flow, and adaptive information constraint to filters out less plausible tokens constraint in the contrastive decoding phase. The proposed method is verified on 6 benchmarks.

Strengths

1. The writing logic is relatively clear and easy to understand. The figures and tables are neat, beautiful and intuitive. 2. The proposed method is reasonable and has a good performance. 3. The paper conducts fundamental sufficient experiments on 6 VQA benchmarks. The ablation study shows that both DC and AIC can improve the performance of MMVP and LLaVA QA 90.

Weaknesses

1. The method has to generate a comprehensive description for each image before doing the visual question answering, the inference time is long and not convenient. 2. Only conduct ablation study of DC and AIC on MMVP and LLaVA QA 90, lack of ablation study on other benchmarks, such as, POPE. 3. Lack of analysis: why the performance of proposed method is not optimal or even inferior to the underlying Greedy decoding on some problem types of MMVP. For example, Color and Appearance in MMVP.

Questions

1. Have the authors tried other divergence measures such as KL divergence for the Bounded Divergence used in CODE? 2. For the computational analysis in Table 4, have you considered the cost of generating the comprehensive descriptions? 3. A question about the DC, I don't understand, when $\mathcal{D}_{\mathrm{bd}}\left(P_t^v \| P_t^d\right)$, which means there is little difference between decoding based on visual features and decoding based on pure language features. It is intuitive to decode without regard to the variations, but why does the CODE highly consider the variation?

Rating

6

Confidence

4

Soundness

3

Presentation

4

Contribution

3

Limitations

As mentioned in the first point of Weakness.

Reviewer Z6jD4/10 · confidence 4/52024-07-12

Summary

Large Multi-modal Models (LMMs) have made significant strides in understanding visual context and generating coherent responses. However, they face challenges such as hallucinations, where responses are incorrect and unrelated to visual inputs. To tackle this issue, this paper proposes COuntering DEscription Contrastive Decoding (CODE). CODE uses self-generated descriptions as reference points during decoding to mitigate hallucinations. By aligning responses with visual content through dynamic adjustments in token predictions, CODE enhances coherence and informativeness without requiring additional training. Experimental results demonstrate CODE's effectiveness in reducing hallucinations and improving cross-modal consistency across various benchmarks and state-of-the-art LMMs.

Strengths

1. The paper is well-written and easy to understand. 2. The use of description to enrich language information for contrastive decoding to address hallucination problems is interesting. 3. Extensive experiments are conducted to evaluate the proposed method.

Weaknesses

1. From Table 1, it can be seen that CODE does not bring much performance improvement compared to greedy decoding in practice. 2. Did the authors consider evaluating with the CHAIR metric on generative tasks? 3. Can CODE be used in conjunction with VCD or OPERA?

Questions

see weaknesses.

Rating

4

Confidence

4

Soundness

2

Presentation

2

Contribution

2

Limitations

Yes

Authorsrebuttal2024-08-11

We would like to appreciate to the reviewer for the active engagement and discussion. We address each question separately below. --- **A1.** As the reviewer asked, we conducted additional experiments on two in-the-wild benchmarks (RealW-QA and LLaVA(W)) and reported greedy decoding performance in the table below. Note that these results slightly underperform compared to other baseline decoding methods. | | LV1.5 | LV1.5 | IXC-VL | IXC-VL | IVL-1.5 | IVL-1.5 | |----------|-------:|------:|-------:|-------:|--------:|--------:| | | greedy | ours | greedy | ours | greedy | ours | | RealW-QA | 51.2 | 56.2 | 56.9 | 62.4 | 63.4 | 66.3 | | LLaVA(W) | 69.3 | 72.6 | 73.3 | 82.3 | 84.8 | 85.7 | --- **A2.** We acknowledge that the performance gain always cannot be significantly improved, especially considering our extensive experimental comparison across **6 benchmarks and 6 varying size of LMMs**. We will definitely integrate the pointed-out limitation into the final version. Additionally, we kindly encourage the reviewer to refer to our response for R#FLJA (A3). Based on the additional analysis on MMVP, our CODE method shows more powerful performance especially in the generative tasks that require more comprehensive understanding of the given visual context, compared to the deterministic tasks (such as multiple-choice questions), which are relatively simple and straightforward. We believe that this is attributed to our CODE strategy, which utilizes the comprehensive description from the models themselves as restricting information flow when sequentially generating response tokens, thus showing fewer hallucinatory responses during more longer context generation (beyond a single answering: yes/no or multiple-choice question).

Reviewer 9CKq2024-08-08

The response addresses my concerns on technical novelty and comparison with baselines. However, I am still curious about the effect of CODE with different image description prompts.

Reviewer Z6jD2024-08-09

Thanks for you repsonses! I still have some concerns. 1. How about the performance of the greedy decoding in Figure 5? 2. From Table 1 and 2, I think CODE does not always provide much improvement compared with the greedy decoding. It seems that only LLaVA-NeXT and InternVL have a obvious improvement. I think this is a limitation.

Reviewer FLJA2024-08-12

Thank you for the detailed response, it addresses my concerns on some details of the method. I tend to hold the score.

Authorsrebuttal2024-08-12

We sincerely appreciate for the acitive discussion and responses for the reviewers during the discussion period. We have carefully revisited additional questions and addressed them comprehensively. We respectfully ask reviewers to review our responses, also happy to address any remaining concerns. We are eager to integrate all your feedbacks into our final version.

Authorsrebuttal2024-08-13

Dear reviewers, As the discussion period will end soon, we kindly ask that you review our additional responses, in which we have made every effort to comprehensively address your remaining questions. If you have any further concerns, we would greatly appreciate it if you could share them with us, and we would be happy to discuss them with you.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC