SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.16922 · 2023

Mitigating Object Hallucinations in Large Vision-Language Models through Visual Contrastive Decoding

arXiv · PDF · Open in the Atlas

Code that ran

10 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2311.16922.json · badge: /api/ran/2311.16922.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
damo-nlp-sg/vcd canonical (classifier label)
classifier basis not recorded on the link
9 ran · 4 no recorded run
huofushuo/SID reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
add_diffusion_noise Ran
ran; our contract draft was wrong, not the code
damo-nlp-sg/vcd/vcd_utils/vcd_add_noise.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from kigb/DropoutDecoding, is pointer only (licence: NONE) · get_code("fe66de066c32d0fc")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from kigb/DropoutDecoding, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_2d_sincos_pos_embed Ran
ran, honoured the contract we drafted
damo-nlp-sg/vcd/experiments/Qwen_VL/visual.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from lluosi/RDB-CL, is pointer only (licence: NONE) · get_code("77e8a3ac46f3afec")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from lluosi/RDB-CL, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_abs_pos Ran
ran; our contract draft was wrong, not the code
damo-nlp-sg/vcd/experiments/Qwen_VL/visual.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from kesenzhao/uv-cot, is pointer only (licence: NONE) · get_code("50c4398a8645438a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from kesenzhao/uv-cot, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_batch Ran
ran; our contract draft was wrong, not the code
damo-nlp-sg/vcd/experiments/Qwen_VL/qwen_generation_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from lluosi/RDB-CL, is pointer only (licence: NONE) · get_code("d2c4545e71293dec")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from lluosi/RDB-CL, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_chunk Ran
ran; our contract draft was wrong, not the code
damo-nlp-sg/vcd/experiments/eval/object_hallucination_vqa_instructblip.py
code served (permissive licence) · get_code("42a46570620cd9fa")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math

def split_list(lst, n):
    """Split a list into n (roughly) equal-sized chunks"""
    chunk_size = math.ceil(len(lst) / n)
    return [lst[i:i + chunk_size] for i in range(0, len(lst), chunk_size)]

def get_chunk(lst, n, k):
    chunks = split_list(lst, n)
    return chunks[k]

# Setup code
lst = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
n = 3
k = 1

ARGS = {
    "lst": lst,
    "n": n,
    "k": k
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_ltor_masks_and_position_ids Ran
ran; our contract draft was wrong, not the code
damo-nlp-sg/vcd/experiments/Qwen_VL/qwen_generation_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from lluosi/RDB-CL, is pointer only (licence: NONE) · get_code("2d28c844d3557fe6")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from lluosi/RDB-CL, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pad_batch Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
damo-nlp-sg/vcd/experiments/Qwen_VL/qwen_generation_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from lluosi/RDB-CL, is pointer only (licence: NONE) · get_code("a83d13d0950d1a06")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from lluosi/RDB-CL, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

recorder Ran
ran; our contract draft was wrong, not the code
huofushuo/SID/pope_eval.py
pointer only (licence: NONE) · get_code("a06c0813244b6279")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, huofushuo/SID when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

split_list Ran
ran; our contract draft was wrong, not the code
damo-nlp-sg/vcd/experiments/eval/object_hallucination_vqa_instructblip.py
code served (permissive licence) · get_code("076c252c52cbb161")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned list. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math

def split_list(lst, n):
    """Split a list into n (roughly) equal-sized chunks"""
    chunk_size = math.ceil(len(lst) / n)
    return [lst[i:i + chunk_size] for i in range(0, len(lst), chunk_size)]

# Setup code
lst = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
n = 3

ARGS = {
    "lst": lst,
    "n": n
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
tile Ran
ran; our contract draft was wrong, not the code
damo-nlp-sg/vcd/experiments/lavis/models/base_model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from MengzhouLu/RetroMPA, is pointer only (licence: NONE) · get_code("cb33571427334815")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from MengzhouLu/RetroMPA, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

all_gather_with_grad Not yet run
unverified (harvested, no recorded run)
damo-nlp-sg/vcd/experiments/lavis/models/base_model.py
code served (permissive licence) · get_code("0ec9fc2025c16f65")
How it ran

no invocation recorded.

apply_rotary_pos_emb Not yet run
unverified (harvested, no recorded run)
damo-nlp-sg/vcd/experiments/Qwen_VL/modeling_qwen.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from qwenlm/qwen-audio, is pointer only (licence: NOASSERTION) · get_code("fbda921818ec02df")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from qwenlm/qwen-audio, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_2d_sincos_pos_embed_from_grid Not yet run
unverified (harvested, no recorded run)
damo-nlp-sg/vcd/experiments/Qwen_VL/visual.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Zhangwenyao1/DreamVLA, is pointer only (licence: NONE) · get_code("2884deadbb637c3e")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Zhangwenyao1/DreamVLA, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

sample Not yet run
unverified (harvested, no recorded run)
damo-nlp-sg/vcd/vcd_utils/vcd_sample.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from kigb/dropoutdecoding, is pointer only (licence: NONE) · get_code("265b8739e27fe5c8")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from kigb/dropoutdecoding, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 14 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 8 the same month, 14 later) and 0 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
split_list 197 other papers
9 dated earlier, 5 the same month, 182 later, 1 undated
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2306.17107 (2023-06)
LLaVAR: Enhanced Visual Instruction Tuning for Text-Rich Image Understanding
2307.10490 (2023-07)
Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMs
and 194 more not named here
get_2d_sincos_pos_embed_from_grid 190 other papers
53 dated earlier, 2 the same month, 134 later, 1 same year, order not determinable · 65 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
and 187 more not named here
get_chunk 189 other papers
8 dated earlier, 5 the same month, 176 later
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2306.17107 (2023-06)
LLaVAR: Enhanced Visual Instruction Tuning for Text-Rich Image Understanding
2307.10490 (2023-07)
Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMs
and 186 more not named here
get_2d_sincos_pos_embed 95 other papers
38 dated earlier, 2 the same month, 54 later, 1 same year, order not determinable · 33 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
and 92 more not named here
all_gather_with_grad 91 other papers
29 dated earlier, 4 the same month, 58 later · 2 only as an assembly brick
2206.02967 (2022-06)
Masked Unsupervised Self-training for Label-free Image Classification
2210.08773 (2022-10)
Plug-and-Play VQA: Zero-shot VQA by Conjoining Large Pretrained Models with Zero Training
2302.06605 (2023-02)
UniAdapter: Unified Parameter-Efficient Transfer Learning for Cross-modal Modeling
and 88 more not named here
tile 84 other papers
30 dated earlier, 4 the same month, 50 later
2206.07699 (2022-06)
Write and Paint: Generative Vision-Language Models are Unified Modal Learners
2210.07795 (2022-10)
EfficientVLM: Fast and Accurate Vision-Language Models via Knowledge Distillation and Modal-adaptive Pruning
2210.08773 (2022-10)
Plug-and-Play VQA: Zero-shot VQA by Conjoining Large Pretrained Models with Zero Training
and 81 more not named here
get_abs_pos 8 other papers
8 later
2402.13561 (2024-02)
Cognitive Visual-Language Mapper: Advancing Multimodal Comprehension with Enhanced Visual Knowledge Alignment
2405.17220 (2024-05)
RLAIF-V: Open-Source AI Feedback Leads to Super GPT-4V Trustworthiness
2405.19298 (2024-05)
Adaptive Image Quality Assessment via Teaching Large Multimodal Model to Compare
and 5 more not named here
apply_rotary_pos_emb 6 other papers
1 the same month, 5 later
2311.07919 (2023-11)
Qwen-Audio: Advancing Universal Audio Understanding via Unified Large-Scale Audio-Language Models
2403.13263 (2024-03)
SC-Tune: Unleashing Self-Consistent Referential Comprehension in Large Vision Language Models
2406.03872 (2024-06)
BLSP-Emo: Towards Empathetic Large Speech-Language Models
and 3 more not named here
recorder 5 other papers
1 the same month, 4 later
2311.17911 (2023-11)
OPERA: Alleviating Hallucination in Multi-Modal Large Language Models via Over-Trust Penalty and Retrospection-Allocation
Huang_OPERA_Alleviating_Hallucination_in_Multi-Modal_Large_Language_Models_via_Over-Trust_CVPR_2024_paper (2024 (year only))
OPERA: Alleviating Hallucination in Multi-Modal Large Language Models via Over-Trust Penalty and Retrospection-Allocation
2403.18715 (2024-03)
Mitigating Hallucinations in Large Vision-Language Models with Instruction Contrastive Decoding
and 2 more not named here
add_diffusion_noise 4 other papers
4 later
2403.18715 (2024-03)
Mitigating Hallucinations in Large Vision-Language Models with Instruction Contrastive Decoding
2412.06474 (2024-12)
Enhancing Vision-Language Model Reliability with Uncertainty-Guided Dropout Decoding
Yang_Nullu_Mitigating_Object_Hallucinations_in_Large_Vision-Language_Models_via_HalluSpace_CVPR_2025_paper (2025 (year only))
Nullu: Mitigating Object Hallucinations in Large Vision-Language Models via HalluSpace Projection
and 1 more not named here
get_batch 2 other papers
2 later
2402.00667 (2024-02)
Improving Weak-to-Strong Generalization with Scalable Oversight and Ensemble Learning
2605.18903 (2026-05)
Reasoning Portability: Guiding Continual Learning for MLLMs in the RLVR Era
get_ltor_masks_and_position_ids 2 other papers
2 later
2402.00667 (2024-02)
Improving Weak-to-Strong Generalization with Scalable Oversight and Ensemble Learning
2605.18903 (2026-05)
Reasoning Portability: Guiding Continual Learning for MLLMs in the RLVR Era
pad_batch 2 other papers
2 later
2402.00667 (2024-02)
Improving Weak-to-Strong Generalization with Scalable Oversight and Ensemble Learning
2605.18903 (2026-05)
Reasoning Portability: Guiding Continual Learning for MLLMs in the RLVR Era
sample 1 other paper
1 later
2412.06474 (2024-12)
Enhancing Vision-Language Model Reliability with Uncertainty-Guided Dropout Decoding

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large Vision-Language Models (LVLMs) have advanced considerably, intertwining visual recognition and language understanding to generate content that is not only coherent but also contextually attuned. Despite their success, LVLMs still suffer from the issue of object hallucinations, where models generate plausible yet incorrect outputs that include objects that do not exist in the images. To mitigate this issue, we introduce Visual Contrastive Decoding (VCD), a simple and training-free method that contrasts output distributions derived from original and distorted visual inputs. The proposed VCD effectively reduces the over-reliance on statistical bias and unimodal priors, two essential causes of object hallucinations. This adjustment ensures the generated content is closely grounded to visual inputs, resulting in contextually accurate outputs. Our experiments show that VCD, without either additional training or the usage of external tools, significantly mitigates the object hallucination issue across different LVLM families. Beyond mitigating object hallucinations, VCD also excels in general LVLM benchmarks, highlighting its wide-ranging applicability.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2311.16922")
get_code_for_paper("2311.16922")
have("2311.16922")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2311.16922.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2311.16922.svg)](https://syntology.ai/paper/2311.16922)

Connect an agent — have() is free.