SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.17911 · 2023

OPERA: Alleviating Hallucination in Multi-Modal Large Language Models via Over-Trust Penalty and Retrospection-Allocation

arXiv · PDF · Open in the Atlas

Code that ran

4 of 10 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 6 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-24; 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.17911.json · badge: /api/ran/2311.17911.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
shikiw/opera canonical (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
copy not recorded community
not in the paper's declared repositories
4 ran · 0 no recorded run
huofushuo/SID extension (classifier label)
classifier basis: classifier_2025
0 ran · 5 no recorded run
FunctionStatusWhere it lives
repeat_kv Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
this paper's copy was not recorded; identical code first harvested from fe1ixxu/ALMA
pointer only · get_code("30d7eec482ebf6b1")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

apply_rotary_pos_emb Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
this paper's copy was not recorded; identical code first harvested from shaochenze/patchtrain
pointer only · get_code("f725bc2d76076485")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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
this paper's copy was not recorded; identical code first harvested from huofushuo/SID
pointer only; the stored copy get_code serves, from huofushuo/SID, is pointer only (licence: NONE) · get_code("a06c0813244b6279")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

rotate_half Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from fe1ixxu/ALMA
pointer only · get_code("b99eea6376d1e212")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

ModelOutput Not yet run
unverified (harvested, no recorded run)
huofushuo/SID/vcd_sample.py
pointer only (licence: NONE) · get_code("00348b640a5c76fc")
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. No invocation recorded.

SampleDecoderOnlyOutput Not yet run
unverified (harvested, no recorded run)
huofushuo/SID/vcd_sample.py
pointer only (licence: NONE) · get_code("a84cb7352124c48f")
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. No invocation recorded.

SampleEncoderDecoderOutput Not yet run
unverified (harvested, no recorded run)
huofushuo/SID/vcd_sample.py
pointer only (licence: NONE) · get_code("7700338f64c28fff")
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. No invocation recorded.

evolve_vcd_sampling Not yet run
unverified (harvested, no recorded run)
huofushuo/SID/vcd_sample.py
pointer only (licence: NONE) · get_code("9dcb8f183f22905d")
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. No invocation recorded.

sample Not yet run
unverified (harvested, no recorded run)
huofushuo/SID/vcd_sample.py
pointer only (licence: NONE) · get_code("6b2edb982b754ff2")
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. No invocation recorded.

top_k_top_p_filtering Not yet run
unverified (harvested, no recorded run)
shikiw/opera/transformers-4.29.2/src/transformers/generation/utils.py
code served (permissive licence) · get_code("eec474cc8cda034e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 8 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 4 the same month, 8 later) and 2 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
rotate_half 360 other papers
39 dated earlier, 7 the same month, 311 later, 3 undated · 30 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
and 357 more not named here
repeat_kv 243 other papers
15 dated earlier, 3 the same month, 223 later, 2 undated · 22 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2305.17888 (2023-05)
LLM-QAT: Data-Free Quantization Aware Training for Large Language Models
and 240 more not named here
apply_rotary_pos_emb 83 other papers
9 dated earlier, 3 the same month, 71 later · 6 only as an assembly brick
2306.15595 (2023-06)
Extending Context Window of Large Language Models via Positional Interpolation
2307.05695 (2023-07)
ReLoRA: High-Rank Training Through Low-Rank Updates
2307.06945 (2023-07)
In-context Autoencoder for Context Compression in a Large Language Model
and 80 more not named here
top_k_top_p_filtering 21 other papers
2 dated earlier, 19 later
2305.12191 (2023-05)
Pointwise Mutual Information Based Metric and Decoding Strategy for Faithful Generation in Document Grounded Dialogs
2305.18290 (2023-05)
Direct Preference Optimization: Your Language Model is Secretly a Reward Model
2402.15708 (2024-02)
Query Augmentation by Decoding Semantics from Brain Signals
and 18 more not named here
recorder 5 other papers
1 the same month, 4 later
2311.16922 (2023-11)
Mitigating Object Hallucinations in Large Vision-Language Models through Visual Contrastive Decoding
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
ModelOutput 1 other paper
1 later
2606.27596 (2026-06)
Dismantling Pathological Shortcuts: A Causal Framework for Faithful LVLM Decoding
SampleDecoderOnlyOutput 1 other paper
1 later
2606.27596 (2026-06)
Dismantling Pathological Shortcuts: A Causal Framework for Faithful LVLM Decoding
SampleEncoderDecoderOutput 1 other paper
1 later
2606.27596 (2026-06)
Dismantling Pathological Shortcuts: A Causal Framework for Faithful LVLM 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-24.

Repositories linked to this paper

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

Abstract

Hallucination, posed as a pervasive challenge of multi-modal large language models (MLLMs), has significantly impeded their real-world usage that demands precise judgment. Existing methods mitigate this issue with either training with specific designed data or inferencing with external knowledge from other sources, incurring inevitable additional costs. In this paper, we present OPERA, a novel MLLM decoding method grounded in an Over-trust Penalty and a Retrospection-Allocation strategy, serving as a nearly free lunch to alleviate the hallucination issue without additional data, knowledge, or training. Our approach begins with an interesting observation that, most hallucinations are closely tied to the knowledge aggregation patterns manifested in the self-attention matrix, i.e., MLLMs tend to generate new tokens by focusing on a few summary tokens, but not all the previous tokens. Such partial over-trust inclination results in the neglecting of image tokens and describes the image content with hallucination. Based on the observation, OPERA introduces a penalty term on the model logits during the beam-search decoding to mitigate the over-trust issue, along with a rollback strategy that retrospects the presence of summary tokens in the previously generated tokens, and re-allocate the token selection if necessary. With extensive experiments, OPERA shows significant hallucination-mitigating performance on different MLLMs and metrics, proving its effectiveness and generality. Our code is available at: https://github.com/shikiw/OPERA.

For agents

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

get_harvested_code_for_paper("2311.17911")
get_code_for_paper("2311.17911")
have("2311.17911")

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

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

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

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

Connect an agent — have() is free.