SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.03631 · 2023

Mitigating Open-Vocabulary Caption Hallucinations

arXiv · PDF · Open in the Atlas

Code that ran

10 of 15 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, 1 violated it and 1 has no contract verdict; 7 failures of our instrument; 5 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/2312.03631.json · badge: /api/ran/2312.03631.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
assafbk/mocha_code canonical (classifier label)
classifier basis: census
10 ran · 5 no recorded run
FunctionStatusWhere it lives
apply_ignore_words Ran
ran; our contract draft was wrong, not the code
assafbk/mocha_code/OpenCHAIR/evaluate.py
pointer only (licence: NONE) · get_code("54bb363a84810bbc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, assafbk/mocha_code 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.

calc_grad_norm Ran
ran, honoured the contract we drafted
assafbk/mocha_code/utils.py
pointer only (licence: NONE) · get_code("46f8dfafbbb8c9b2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, assafbk/mocha_code 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.

calc_mean_entropy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
assafbk/mocha_code/utils.py
pointer only (licence: NONE) · get_code("91336ac6a4247b60")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, assafbk/mocha_code 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.

collate_fn Ran
ran; our contract draft was wrong, not the code
assafbk/mocha_code/dataset.py
pointer only (licence: NONE) · get_code("300b5f14c9912b97")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, assafbk/mocha_code 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.

flatten_data Ran
ran; our contract draft was wrong, not the code
assafbk/mocha_code/OpenCHAIR/evaluate.py
pointer only (licence: NONE) · get_code("0c54289ae763b987")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, assafbk/mocha_code 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.

is_concrete Ran
ran, violated the contract we drafted
assafbk/mocha_code/OpenCHAIR/utils.py
pointer only (licence: NONE) · get_code("ff3f62c52985c41c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, assafbk/mocha_code 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_config Ran
ran; our contract draft was wrong, not the code
assafbk/mocha_code/utils.py
pointer only (licence: NONE) · get_code("84d259ca9b98ac9a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, assafbk/mocha_code 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_llm_pipe Ran
ran on a synthesized input
assafbk/mocha_code/OpenCHAIR/utils.py
pointer only (licence: NONE) · get_code("138d0bd7bf5f2513")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, assafbk/mocha_code 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.

local_coco_collate_fn Ran
ran; our contract draft was wrong, not the code
assafbk/mocha_code/dataset.py
pointer only (licence: NONE) · get_code("aa1b0f9eac04bb9d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, assafbk/mocha_code 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.

unflatten_responses Ran
ran; our contract draft was wrong, not the code
assafbk/mocha_code/OpenCHAIR/evaluate.py
pointer only (licence: NONE) · get_code("cd4ab5612adb4997")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, assafbk/mocha_code 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.

generate Not yet run
unverified (harvested, no recorded run)
assafbk/mocha_code/OpenCHAIR/generate_captions.py
pointer only (licence: NONE) · get_code("22f204eff2c106a3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, assafbk/mocha_code 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.

get_data_loaders Not yet run
unverified (harvested, no recorded run)
assafbk/mocha_code/vlm_rlhf.py
pointer only (licence: NONE) · get_code("24f6f2d5b6395922")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, assafbk/mocha_code 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.

get_local_coco_data_loaders Not yet run
unverified (harvested, no recorded run)
assafbk/mocha_code/vlm_rlhf.py
pointer only (licence: NONE) · get_code("8c95b0551092a2f4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, assafbk/mocha_code 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.

get_url_data_loaders_coco Not yet run
unverified (harvested, no recorded run)
assafbk/mocha_code/vlm_rlhf.py
pointer only (licence: NONE) · get_code("03a80eb50928e6df")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, assafbk/mocha_code 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.

url_coco_collate_fn Not yet run
unverified (harvested, no recorded run)
assafbk/mocha_code/dataset.py
pointer only (licence: NONE) · get_code("258b6ae5a76ca81a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, assafbk/mocha_code 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 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 3 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 2 later) and 12 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
calc_grad_norm 1 other paper
1 later
2509.19633 (2025-09)
Mamba Modulation On the Length Generalization of Mamba
calc_mean_entropy 1 other paper
1 later
2509.19633 (2025-09)
Mamba Modulation On the Length Generalization of Mamba
collate_fn 1 other paper
1 dated earlier
2212.07555 (2022-12)
IMos: Intent-Driven Full-Body Motion Synthesis for Human-Object Interactions

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

While recent years have seen rapid progress in image-conditioned text generation, image captioning still suffers from the fundamental issue of hallucinations, namely, the generation of spurious details that cannot be inferred from the given image. Existing methods largely use closed-vocabulary object lists to mitigate or evaluate hallucinations in image captioning, ignoring the long-tailed nature of hallucinations that occur in practice. To this end, we propose a framework for addressing hallucinations in image captioning in the open-vocabulary setting. Our framework includes a new benchmark, OpenCHAIR, that leverages generative foundation models to evaluate open-vocabulary object hallucinations for image captioning, surpassing the popular and similarly-sized CHAIR benchmark in both diversity and accuracy. Furthermore, to mitigate open-vocabulary hallucinations without using a closed object list, we propose MOCHa, an approach harnessing advancements in reinforcement learning. Our multi-objective reward function explicitly targets the trade-off between fidelity and adequacy in generations without requiring any strong supervision. MOCHa improves a large variety of image captioning models, as captured by our OpenCHAIR benchmark and other existing metrics. Code and models can be found at: https://github.com/assafbk/mocha_code

For agents

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

get_harvested_code_for_paper("2312.03631")
get_code_for_paper("2312.03631")
have("2312.03631")

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

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

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

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

Connect an agent — have() is free.