[Paper Review] Hallucination Augmented Contrastive Learning for Multimodal Large Language Model
This paper proposes Hallucination Augmented Contrastive Learning (HACL), a method that reduces hallucinations in multimodal large language models (MLLMs) by using hallucinative captions as hard negative examples in contrastive learning. By aligning visual representations with non-hallucinative text and pushing them away from hallucinative text, HACL reduces hallucination by 34.66% on MMhal-Bench over MiniGPT-4 and improves performance across multiple benchmarks.
Multi-modal large language models (MLLMs) have been shown to efficiently integrate natural language with visual information to handle multi-modal tasks. However, MLLMs still face a fundamental limitation of hallucinations, where they tend to generate erroneous or fabricated information. In this paper, we address hallucinations in MLLMs from a novel perspective of representation learning. We first analyzed the representation distribution of textual and visual tokens in MLLM, revealing two important findings: 1) there is a significant gap between textual and visual representations, indicating unsatisfactory cross-modal representation alignment; 2) representations of texts that contain and do not contain hallucinations are entangled, making it challenging to distinguish them. These two observations inspire us with a simple yet effective method to mitigate hallucinations. Specifically, we introduce contrastive learning into MLLMs and use text with hallucination as hard negative examples, naturally bringing representations of non-hallucinative text and visual samples closer while pushing way representations of non-hallucinating and hallucinative text. We evaluate our method quantitatively and qualitatively, showing its effectiveness in reducing hallucination occurrences and improving performance across multiple benchmarks. On the MMhal-Bench benchmark, our method obtains a 34.66% /29.5% improvement over the baseline MiniGPT-4/LLaVA. Our code is available on https://github.com/X-PLUG/mPLUG-HalOwl/tree/main/hacl.
Motivation & Objective
- To address the persistent issue of hallucinations in multimodal large language models (MLLMs), where models generate factually incorrect or fabricated visual descriptions.
- To investigate the root cause of hallucinations by analyzing the distribution of textual and visual representations in the LLM’s representation space.
- To improve cross-modal representation alignment between visual and textual modalities to enhance hallucination detection and mitigation.
- To develop a contrastive learning framework that leverages hallucinative captions as hard negatives to refine model representations.
- To validate the effectiveness of the proposed method across multiple multimodal benchmarks, including MMhal-Bench and MME.
Proposed method
- The method introduces contrastive learning between projected visual token sequences and textual token sequences from the LLM.
- Hallucinative captions are generated using GPT-4 and used as hard negative examples to contrast with ground-truth captions during training.
- The contrastive loss is applied to pull representations of non-hallucinative text and visual inputs closer while pushing apart representations of non-hallucinative and hallucinative text.
- The learned interface between the visual encoder and LLM is fine-tuned using this contrastive objective to improve cross-modal alignment.
- The approach is applied during pretraining, with ablation studies to evaluate the impact of hallucinative caption usage and training paradigm choices.
- Visualization of representation spaces using t-SNE confirms that HACL reduces modality gaps and disentangles hallucinative from non-hallucinative text representations.
Experimental results
Research questions
- RQ1What causes the high rate of hallucinations in MLLMs, and how do representation distributions of hallucinative and non-hallucinative text contribute to this?
- RQ2To what extent does a cross-modal semantic gap between visual and textual representations hinder hallucination detection in MLLMs?
- RQ3Can using hallucinative captions as hard negative examples in contrastive learning effectively improve alignment and reduce hallucinations?
- RQ4How does the training paradigm—freezing or activating the LLM or visual encoder during pretraining—affect the performance and stability of the HACL method?
- RQ5Does HACL improve not only hallucination reduction but also general multimodal reasoning performance on standard benchmarks?
Key findings
- HACL reduces hallucination by 34.66% on the MMhal-Bench benchmark compared to the MiniGPT-4 baseline.
- On the MME benchmark, HACL improves performance by 11% over the baseline LLaVA.
- The method significantly reduces the modality gap between visual and textual representations, as shown in t-SNE visualizations of the representation space.
- The representation of hallucinative captions becomes more distinguishable from ground-truth captions after applying HACL, indicating improved disentanglement.
- Including hallucinative captions in contrastive learning leads to a marked performance boost, while their absence results in only moderate improvements.
- Activating the LLM during the first pretraining phase leads to catastrophic forgetting and performance degradation, while activating the visual encoder improves alignment and performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.