VSCoDe: Visual-Augmentation Selection for Contrastive Decoding

Sihyeon Kim, Boryeong Cho, Sangmin Bae, Sumyeong Ahn, Se-Young YunTMLR 2025

Abstract

Despite the impressive performance of recent Large Vision-Language Models (LVLMs), these models often produce inaccurate responses. To address this issue, previous studies have aimed to reduce hallucinations by using contrastive decoding (CD) with modified images, such as cropping objects related to query or adding noise, thereby contrasting with the original image. However, these methods have several limitations. First, employing fixed visual augmentation is too rigid to contrast on various queries. Conversely, using semantics in queries or images by leveraging external models entails significant additional costs. To address these shortcomings, we propose VSCoDe (Visual-Augmentation Selection for Contrastive Decoding), which adaptively selects augmentations using a proposed distance metric to identify those with higher contrast. Our empirical evaluations demonstrate that VSCoDe outperforms previous methods and enhances the quality of various vision-language tasks without additional training or reliance on external models.

Introduction

Large Vision-Language Models (LVLMs) like LLaVA are powerful but prone to "hallucinations," where they confidently describe objects or attributes not present in the image. A popular mitigation strategy is Contrastive Decoding (CD), which contrasts the model's output on a clean image (the "expert") with its output on a corrupted image (the "amateur"). By subtracting the amateur's confused guesses from the expert's, the model can produce more grounded responses.

However, the effectiveness of CD depends heavily on the type of corruption used. Fixed augmentations like Gaussian noise are computationally cheap but often fail to provide relevant contrast for specific questions. Semantic-based methods that use external models to crop specific objects are more effective but computationally expensive. VSCoDe bridges this gap by adaptively selecting the best "distortion" for every query from a set of simple, pre-defined augmentations.

The VSCoDe Framework

VSCoDe introduces an Adaptive Selection mechanism. Instead of applying a single type of distortion to every image, it evaluates a suite of candidate augmentations (such as Color inversion, Flip, Crop, and Noise) to find the one that most effectively confuses the model for a specific query.

The VSCoDe pipeline: from initial query to adaptive augmentation selection and final contrastive decoding.

The process follows three steps:

  1. The Probe: For the first token of a response, the model processes the original image and all candidate augmented images.
  2. Distance Metric: The system calculates the $L_2$-norm distance between the output probability distribution of the original image ($l_{orig}$) and each augmented one ($l_{aug}$).
  3. Selection & Decoding: VSCoDe selects the augmentation with the largest distance, assuming that the distortion causing the most significant shift in the model's initial guess provides the strongest contrastive signal. This selected augmentation is then used for the remainder of the decoding process.

Key Insights: Query-Dependent Contrast

A central finding of this work is that augmentations are highly query-dependent. For example, a "Flip" augmentation is highly effective for spatial questions (e.g., "Where is the cat?") but provides little information for color-related queries. Conversely, color inversion is ideal for color-type queries but irrelevant for positioning.

Comparison of how different augmentations (Crop vs. Color) provide varying levels of contrastive signal depending on whether the query is count-type or color-type.

Experimental Results

The authors evaluated VSCoDe across standard benchmarks including MME, MMBench, VQAv2, and POPE. Key findings include:

  • Superior Performance: On the MME benchmark, VSCoDe achieved a 1.82x larger performance gain compared to previous state-of-the-art CD methods.
  • Hallucination Reduction: In image captioning tasks (MSCOCO), VSCoDe significantly lowered the CHAIR score, indicating that generated descriptions were more accurately grounded in visual evidence.
  • Efficiency: While slightly slower than fixed-augmentation methods due to the initial probe step, VSCoDe is significantly faster and more memory-efficient than methods requiring external object detectors like GroundingDINO.

Conclusion

VSCoDe demonstrates that adaptive visual augmentation selection can significantly reduce hallucinations in LVLMs without the need for additional training or expensive external models. By leveraging the model's own sensitivity to different distortions, VSCoDe provides a flexible and robust framework for more reliable vision-language reasoning.

Summary updated

BibTeX
@article{kim2025vscode,
  author = {Sihyeon Kim and Boryeong Cho and Sangmin Bae and Sumyeong Ahn and Se-Young Yun},
  title = {{VSCoDe: Visual-Augmentation Selection for Contrastive Decoding}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=CqSyPc9W7Y},
}
Figure