Papers › Tackling Structural Hallucination in Image Translation with Local Diffusion

Tackling Structural Hallucination in Image Translation with Local Diffusion

9 Apr 2024arXiv:2404.05980archive 2025-07-28

Seunghoi Kim, Chen Jin, Tom Diethe, Matteo Figini, Henry F. J. Tregidgo, Asher Mullokandov, Philip Teare, Daniel C. Alexander

Recent developments in diffusion models have advanced conditioned image generation, yet they struggle with reconstructing out-of-distribution (OOD) images, such as unseen tumors in medical images, causing "image hallucination" and risking misdiagnosis. We hypothesize such hallucinations result from local OOD regions in the conditional images. We verify that partitioning the OOD region and conducting separate image generations alleviates hallucinations in several applications. From this, we propose a training-free diffusion framework that reduces hallucination with multiple Local Diffusion processes. Our approach involves OOD estimation followed by two modules: a "branching" module generates locally both within and outside OOD regions, and a "fusion" module integrates these predictions into one. Our evaluation shows our method mitigates hallucination over baseline models quantitatively and qualitatively, reducing misdiagnosis by 40% and 25% in the real-world medical and natural image datasets, respectively. It also demonstrates compatibility with various pre-trained diffusion models.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2404.05980")

Code

Syntology Ran 10 of 10 code samples harvested from 1 repository linked to this paper; 0 have no recorded run. Of those that ran: 4 ran · violated contract; 1 ran · our draft was wrong; 5 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

edshkim98/localdiffusion-hallucination officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 10 ran; 0 honoured the contract we drafted; 0 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran · violated contract
1ran · our draft was wrong
5ran

Licence: 10 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from edshkim98/localdiffusion-hallucination. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

convert_image_to edshkim98/localdiffusion-hallucination/data.py official repository ran no licence file found · pointer only · a47706b35198fab3 · report
default edshkim98/localdiffusion-hallucination/ddpm.py official repository ran · violated contract no licence file found · pointer only · d1ef6b8cb9a28a53 · report
exists edshkim98/localdiffusion-hallucination/attend.py official repository ran · violated contract no licence file found · pointer only · aa5486a3650902d8 · report
exists edshkim98/localdiffusion-hallucination/ddpm.py official repository ran · violated contract no licence file found · pointer only · 608e364a9d2376a3 · report
load_config edshkim98/localdiffusion-hallucination/utils.py official repository ran no licence file found · pointer only · 1f8ce62a1ff89683 · report
my_collate edshkim98/localdiffusion-hallucination/data.py official repository ran fingerprinted no licence file found · pointer only · d68f986c1818d923 · report
once edshkim98/localdiffusion-hallucination/attend.py official repository ran · our draft was wrong no licence file found · pointer only · 52e10a7d6b0fa036 · report
right_pad_dims_to edshkim98/localdiffusion-hallucination/ddpm.py official repository ran · violated contract fingerprinted no licence file found · pointer only · 8cd8e6547ade35f4 · report
set_min_max_val edshkim98/localdiffusion-hallucination/utils.py official repository ran no licence file found · pointer only · 2465d55c0e5333c1 · report
weighted_bce edshkim98/localdiffusion-hallucination/train_seg.py official repository ran fingerprinted no licence file found · pointer only · 9b85c24defa296b7 · report

Tasks

HallucinationImage GenerationTranslation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections