SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.05980 · 2024

Tackling Structural Hallucination in Image Translation with Local Diffusion

arXiv · PDF · Open in the Atlas

Code that ran

10 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; 1 honoured the contract we drafted, 4 violated it and 0 have no contract verdict; 5 failures of our instrument; 0 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/2404.05980.json · badge: /api/ran/2404.05980.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
edshkim98/localdiffusion-hallucination canonical (classifier label)
classifier basis: census
10 ran · 0 no recorded run
FunctionStatusWhere it lives
convert_image_to Ran
ran; our contract draft was wrong, not the code
edshkim98/localdiffusion-hallucination/data.py
pointer only (licence: NONE) · get_code("a47706b35198fab3")
How it ran

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

default Ran
ran, violated the contract we drafted
edshkim98/localdiffusion-hallucination/ddpm.py
pointer only (licence: NONE) · get_code("d1ef6b8cb9a28a53")
How it ran

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

exists Ran
ran, violated the contract we drafted
edshkim98/localdiffusion-hallucination/attend.py
pointer only (licence: NONE); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
How it ran

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

exists Ran
ran, violated the contract we drafted
edshkim98/localdiffusion-hallucination/ddpm.py
pointer only (licence: NONE) · get_code("608e364a9d2376a3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, edshkim98/localdiffusion-hallucination 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
edshkim98/localdiffusion-hallucination/utils.py
pointer only (licence: NONE) · get_code("1f8ce62a1ff89683")
How it ran

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

my_collate Ran
ran; our contract draft was wrong, not the code
edshkim98/localdiffusion-hallucination/data.py
pointer only (licence: NONE) · get_code("d68f986c1818d923")
How it ran

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

once Ran
ran; our contract draft was wrong, not the code
edshkim98/localdiffusion-hallucination/attend.py
pointer only (licence: NONE) · get_code("52e10a7d6b0fa036")
How it ran

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

right_pad_dims_to Ran
ran, violated the contract we drafted
edshkim98/localdiffusion-hallucination/ddpm.py
pointer only (licence: NONE) · get_code("8cd8e6547ade35f4")
How it ran

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

set_min_max_val Ran
ran, honoured the contract we drafted
edshkim98/localdiffusion-hallucination/utils.py
pointer only (licence: NONE) · get_code("2465d55c0e5333c1")
How it ran

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

weighted_bce Ran
ran; our contract draft was wrong, not the code
edshkim98/localdiffusion-hallucination/train_seg.py
pointer only (licence: NONE) · get_code("9b85c24defa296b7")
How it ran

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

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, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 2 the same month, 4 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
exists 486 other papers
329 dated earlier, 6 the same month, 140 later, 9 same year, order not determinable, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named here
exists 144 other papers
79 dated earlier, 2 the same month, 58 later, 5 same year, order not determinable · 40 only as an assembly brick
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1711.11585 (2017-11)
High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANs
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
and 141 more not named here
default 79 other papers
40 dated earlier, 36 later, 3 same year, order not determinable · 15 only as an assembly brick
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
and 76 more not named here
once 19 other papers
13 dated earlier, 6 later · 4 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2202.01855 (2022-02)
Self-Supervised Learning with Random-Projection Quantizer for Speech Recognition
2203.07852 (2022-03)
Block-Recurrent Transformers
and 16 more not named here
right_pad_dims_to 4 other papers
4 dated earlier · 2 only as an assembly brick
2208.04202 (2022-08)
Analog Bits: Generating Discrete Data using Diffusion Models with Self-Conditioning
2209.15571 (2022-09)
Building Normalizing Flows with Stochastic Interpolants
2212.09462 (2022-12)
Latent Diffusion for Language Generation
and 1 more not named here
convert_image_to 3 other papers
3 dated earlier
2305.16037 (2023-05)
GenerateCT: Text-Conditional Generation of 3D Chest CT Volumes
2308.08157 (2023-08)
Learning to Generate Semantic Layouts for Higher Text-Image Correspondence in Text-to-Image Synthesis
2311.15941 (2023-11)
Tell2Design: A Dataset for Language-Guided Floor Plan Generation

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

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.

For agents

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

get_harvested_code_for_paper("2404.05980")
get_code_for_paper("2404.05980")
have("2404.05980")

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

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

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

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

Connect an agent — have() is free.