SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.03628 · 2025

The Hidden Life of Tokens: Reducing Hallucination of Large Vision-Language Models via Visual Information Steering

arXiv · PDF · Open in the Atlas

Code that ran

10 of 11 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 3 have no contract verdict; 6 failures of our instrument; 1 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/2502.03628.json · badge: /api/ran/2502.03628.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
LzVv123456/VISTA canonical (classifier label)
classifier basis not recorded on the link
10 ran · 1 no recorded run
FunctionStatusWhere it lives
combine_coco_captions Ran
ran; our contract draft was wrong, not the code
LzVv123456/VISTA/chair_ans.py
code served (permissive licence) · get_code("25585704d77cafb4")
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 dict. 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 os
import json
import tempfile
import shutil

# Create a temporary directory structure with mock COCO caption files
temp_dir = tempfile.mkdtemp()

# Create mock val captions file
val_captions = {
    'info': {'description': 'COCO 2014 Dataset', 'version': '1.0'},
    'licenses': [{'id': 1, 'name': 'Attribution License'}],
    'images': [
        {'id': 1, 'file_name': 'val_image_1.jpg'},
        {'id': 2, 'file_name': 'val_image_2.jpg'}
    ],
    'annotations': [
        {'id': 1, 'image_id': 1, 'caption': 'A cat on a mat'},
        {'id': 2, 'image_id': 2, 'caption': 'A dog playing'}
    ]
}

# Create mock train captions file
train_captions = {
    'info': {'description': 'COCO 2014 Dataset', 'version': '1.0'},
    'licenses': [{'id': 1, 'name': 'Attribution License'}],
    'images': [
        {'id': 3, 'file_name': 'train_image_1.jpg'},
        {'id': 4, 'file_name': 'train_image_2.jpg'}
    ],
    'annotations': [
        {'id': 3, 'image_id': 3, 'caption': 'A bird flying'},
        {'id': 4, 'image_id': 4, 'caption': 'A fish swimming'}
    ]
}

# Write the mock files
with open(os.path.join(temp_dir, 'captions_val2014.json'), 'w') as f:
    json.dump(val_captions, f)

with open(os.path.join(temp_dir, 'captions_train2014.json'), 'w') as f:
    json.dump(train_captions, f)

ARGS = {
    'annotation_path': temp_dir
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
combine_coco_instances Ran
ran; our contract draft was wrong, not the code
LzVv123456/VISTA/chair_ans.py
pointer only (licence: MIT); the stored copy get_code serves, from tsunghan-wu/reverse_vlm, is pointer only (licence: NONE) · get_code("66415dc1dd50f555")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from tsunghan-wu/reverse_vlm, 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.

find_longest_modulelist Ran
ran; our contract draft was wrong, not the code
LzVv123456/VISTA/llm_layers.py
pointer only (licence: MIT); the stored copy get_code serves, from roeehendel/icl_task_vectors, is pointer only (licence: NONE) · get_code("3eeda9d3221d357b")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from roeehendel/icl_task_vectors, 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.

find_module Ran
ran; our contract draft was wrong, not the code
LzVv123456/VISTA/llm_layers.py
pointer only (licence: MIT); the stored copy get_code serves, from roeehendel/icl_task_vectors, is pointer only (licence: NONE) · get_code("281023289972b87d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from roeehendel/icl_task_vectors, 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_nested_attr Ran
ran, honoured the contract we drafted
LzVv123456/VISTA/llm_layers.py
pointer only (licence: MIT); the stored copy get_code serves, from Nellie179/Hallucination-Detection, is pointer only (licence: NONE) · get_code("94d234b775a86dc7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from Nellie179/Hallucination-Detection, 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.

load_generated_captions Ran
ran; our contract draft was wrong, not the code
LzVv123456/VISTA/chair_ans.py
pointer only (licence: MIT); the stored copy get_code serves, from mehrdadfazli/AssessHalVLM, is pointer only (licence: NONE) · get_code("bb7b96236ae47aaf")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from mehrdadfazli/AssessHalVLM, 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.

load_image Ran
ran on a synthesized input
LzVv123456/VISTA/mmhal_eval.py
code served (permissive licence) · get_code("aa84cc45b40e5710")
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, through the batch API) and returned Image. 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 os
import tempfile
from PIL import Image
import io

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Create a small test image and save it
test_image = Image.new('RGB', (10, 10), color='red')
test_image_path = os.path.join(temp_dir, 'test_image.png')
test_image.save(test_image_path)

# Define arguments for the load_image function
ARGS = {
    'image_file': test_image_path,
    'data_path': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, requests — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int describe that coercion, not the output, and are not 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
load_model_args_from_yaml Ran
ran on a synthesized input
LzVv123456/VISTA/model_loader.py
code served (permissive licence) · get_code("7172f42b9946a5a2")
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, through the batch API) and returned tuple, ndim 2, dtype family float; 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 tempfile
import os
import yaml
from collections import namedtuple

# Create a temporary YAML file with the expected structure
yaml_content = {
    'ModelArgs': {
        'hidden_size': 128,
        'num_layers': 2,
        'dropout': 0.1,
        'vocab_size': 1000
    },
    'TrainingArgs': {
        'learning_rate': 0.001,
        'batch_size': 32,
        'num_epochs': 10,
        'weight_decay': 0.01
    }
}

# Write to a temporary file
temp_dir = tempfile.gettempdir()
yaml_path = os.path.join(temp_dir, 'test_model_config.yaml')

with open(yaml_path, 'w') as f:
    yaml.dump(yaml_content, f)

ARGS = {
    'yaml_path': yaml_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple 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
prepare_common_fileparts Ran
ran on a synthesized input
LzVv123456/VISTA/myutils.py
code served (permissive licence) · get_code("74b53a3c8567e9e6")
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, through the batch API) and returned list, ndim 1, dtype family float; 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 torch
import numpy as np

class Args:
    def __init__(self):
        self.seed = 42
        self.vsv = True
        self.vsv_lambda = 0.5
        self.layers = "12,11,10"
        self.logits_aug = True
        self.logits_layers = "24,23"
        self.logits_alpha = 0.1
        self.do_sample = False
        self.top_p = 0.9
        self.num_beams = 3
        self.temperature = 1.5
        self.repetition_penalty = 1.2
        self.no_repeat_ngram_size = 2
        self.max_new_tokens = 100

ARGS = {
    "args": Args()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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 float — 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
recorder Ran
ran; our contract draft was wrong, not the code
LzVv123456/VISTA/pope_ans.py
code served (permissive licence) · get_code("3f489857c0692281")
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, through the batch API) 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 torch

torch.manual_seed(0)

pred_list = []

out = [
    "Yes, this is great.",
    "No, I don't think so."
]

ARGS = {
    "out": out,
    "pred_list": pred_list
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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
init_folder_structure Not yet run
unverified (harvested, no recorded run)
LzVv123456/VISTA/myutils.py
code served (permissive licence) · get_code("0de31df5bad47e67")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 7 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 6 later) and 4 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
combine_coco_captions 10 other papers
7 dated earlier, 2 later, 1 same year, order not determinable
2110.01705 (2021-10)
Let there be a clock on the beach: Reducing Object Hallucination in Image Captioning
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
2402.14545 (2024-02)
Less is More: Mitigating Multimodal Hallucination from an EOS Decision Perspective
and 7 more not named here
combine_coco_instances 8 other papers
5 dated earlier, 2 later, 1 same year, order not determinable
2110.01705 (2021-10)
Let there be a clock on the beach: Reducing Object Hallucination in Image Captioning
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
2402.14545 (2024-02)
Less is More: Mitigating Multimodal Hallucination from an EOS Decision Perspective
and 5 more not named here
recorder 5 other papers
5 dated earlier
2311.16922 (2023-11)
Mitigating Object Hallucinations in Large Vision-Language Models through Visual Contrastive Decoding
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
and 2 more not named here
load_generated_captions 3 other papers
2 dated earlier, 1 later
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
2411.16724 (2024-11)
Devils in Middle Layers of Large Vision-Language Models: Interpreting, Detecting and Mitigating Object Hallucinations via Attention Lens
2609.01888 (2026-09)
Does Playing it Safe Count as Faithfulness? Reassessing LVLM Hallucination Mitigation Methods
find_longest_modulelist 2 other papers
2 later
2601.21702 (2026-01)
Beyond Forgetting: Machine Unlearning Elicits Controllable Side Behaviors and Capabilities
2606.06959 (2026-06)
OpenHalDet: A Unified Benchmark for Hallucination Detection across Diverse Generation Scenarios
find_module 2 other papers
2 later
2601.21702 (2026-01)
Beyond Forgetting: Machine Unlearning Elicits Controllable Side Behaviors and Capabilities
2606.06959 (2026-06)
OpenHalDet: A Unified Benchmark for Hallucination Detection across Diverse Generation Scenarios
get_nested_attr 2 other papers
2 later
2601.21702 (2026-01)
Beyond Forgetting: Machine Unlearning Elicits Controllable Side Behaviors and Capabilities
2606.06959 (2026-06)
OpenHalDet: A Unified Benchmark for Hallucination Detection across Diverse Generation Scenarios

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) can reason effectively over both textual and visual inputs, but they tend to hallucinate syntactically coherent yet visually ungrounded contents. In this paper, we investigate the internal dynamics of hallucination by examining the tokens logits ranking throughout the generation process, revealing three key patterns in how LVLMs process information: (1) gradual visual information loss - visually grounded tokens gradually become less favored throughout generation, and (2) early excitation - semantically meaningful tokens achieve peak activation in the layers earlier than the final layer. (3) hidden genuine information - visually grounded tokens though not being eventually decoded still retain relatively high rankings at inference. Based on these insights, we propose VISTA (Visual Information Steering with Token-logit Augmentation), a training-free inference-time intervention framework that reduces hallucination while promoting genuine information. VISTA works by combining two complementary approaches: reinforcing visual information in activation space and leveraging early layer activations to promote semantically meaningful decoding. Compared to existing methods, VISTA requires no external supervision and is applicable to various decoding strategies. Extensive experiments show that VISTA on average reduces hallucination by about 40% on evaluated open-ended generation task, and it consistently outperforms existing methods on four benchmarks across four architectures under three decoding strategies. Code is available at https://github.com/LzVv123456/VISTA.

For agents

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

get_harvested_code_for_paper("2502.03628")
get_code_for_paper("2502.03628")
have("2502.03628")

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

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

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

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

Connect an agent — have() is free.