SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.10829 · 2023

Exact Diffusion Inversion via Bi-directional Integration Approximation

arXiv · PDF · Open in the Atlas

Code that ran

10 of 16 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 0 have no contract verdict; 9 failures of our instrument; 6 no recorded run), 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/2307.10829.json · badge: /api/ran/2307.10829.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
guoqiang-zhang-x/BDIA canonical (classifier label)
classifier basis: census
9 ran · 6 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
calculate_frechet_distance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
guoqiang-zhang-x/BDIA/text-to-image/stablediffusionV2/fid_score.py
pointer only (licence: NONE); the stored copy get_code serves, from shpda/text-to-image-gen-model-acgan, is pointer only (licence: NONE) · get_code("4cee7c1861294d59")
How it ran

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

check_imports Ran
ran; our contract draft was wrong, not the code
guoqiang-zhang-x/BDIA/image-editing/my_diffusers/dynamic_modules_utils.py
pointer only (licence: NONE) · get_code("301682fc3342590a")
How it ran

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

chunk Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from vicgalle/stable-diffusion-aesthetic-gradients
pointer only; the stored copy get_code serves, from vicgalle/stable-diffusion-aesthetic-gradients, is pointer only (licence: NOASSERTION) · get_code("8241c0562bc710fd")
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.

get_parameter_device Ran
ran; our contract draft was wrong, not the code
guoqiang-zhang-x/BDIA/image-editing/my_diffusers/modeling_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from mayuelala/followyourcanvas, is pointer only (licence: NONE) · get_code("eafa252fd6f86857")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, guoqiang-zhang-x/BDIA 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_parameter_dtype Ran
ran; our contract draft was wrong, not the code
guoqiang-zhang-x/BDIA/image-editing/my_diffusers/modeling_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from mayuelala/followyourcanvas, is pointer only (licence: NONE) · get_code("dc2045840ce679cb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, guoqiang-zhang-x/BDIA 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_relative_import_files Ran
ran; our contract draft was wrong, not the code
guoqiang-zhang-x/BDIA/image-editing/my_diffusers/dynamic_modules_utils.py
pointer only (licence: NONE) · get_code("00cc853a73f3aeb6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, guoqiang-zhang-x/BDIA 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_relative_imports Ran
ran; our contract draft was wrong, not the code
guoqiang-zhang-x/BDIA/image-editing/my_diffusers/dynamic_modules_utils.py
pointer only (licence: NONE) · get_code("450aeffe7f80f917")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, guoqiang-zhang-x/BDIA 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_timestep_embedding Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
guoqiang-zhang-x/BDIA/image-editing/my_diffusers/models/embeddings.py
pointer only (licence: NONE) · get_code("25d9cd38598c4751")
How it ran

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

imread Ran
ran, honoured the contract we drafted
guoqiang-zhang-x/BDIA/text-to-image/stablediffusionV2/fid_score.py
pointer only (licence: NONE); the stored copy get_code serves, from zmtomorrow/mmdgs_neurips, is pointer only (licence: NONE) · get_code("aa4cae054b657ba2")
How it ran

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

upfirdn2d_native Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
guoqiang-zhang-x/BDIA/image-editing/my_diffusers/models/resnet.py
pointer only (licence: NONE) · get_code("498ae1b2f8e470f7")
How it ran

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

downsample_2d Not yet run
unverified (harvested, no recorded run)
guoqiang-zhang-x/BDIA/image-editing/my_diffusers/models/resnet.py
pointer only (licence: NONE) · get_code("a0900d0499301ed4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, guoqiang-zhang-x/BDIA 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_activations Not yet run
unverified (harvested, no recorded run)
guoqiang-zhang-x/BDIA/text-to-image/stablediffusionV2/fid_score.py
pointer only (licence: NONE) · get_code("52f0b0681052dbb6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, guoqiang-zhang-x/BDIA 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_full_repo_name Not yet run
unverified (harvested, no recorded run)
guoqiang-zhang-x/BDIA/image-editing/my_diffusers/hub_utils.py
pointer only (licence: NONE) · get_code("d7a3942d0d5c6041")
How it ran

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

init_git_repo Not yet run
unverified (harvested, no recorded run)
guoqiang-zhang-x/BDIA/image-editing/my_diffusers/hub_utils.py
pointer only (licence: NONE) · get_code("4c264554ae99a2ef")
How it ran

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

load_state_dict Not yet run
unverified (harvested, no recorded run)
guoqiang-zhang-x/BDIA/image-editing/my_diffusers/modeling_utils.py
pointer only (licence: NONE) · get_code("77bd5e6e8ca8c91d")
How it ran

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

upsample_2d Not yet run
unverified (harvested, no recorded run)
guoqiang-zhang-x/BDIA/image-editing/my_diffusers/models/resnet.py
pointer only (licence: NONE) · get_code("9a0acd22f4c9b83f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, guoqiang-zhang-x/BDIA 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 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 11 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 4 the same month, 11 later) and 5 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
calculate_frechet_distance 74 other papers
42 dated earlier, 2 the same month, 29 later, 1 same year, order not determinable
1610.09585 (2016-10)
Conditional Image Synthesis With Auxiliary Classifier GANs
1706.08500 (2017-06)
GANs Trained by a Two Time-Scale Update Rule Converge to a Local Nash Equilibrium
1807.11458 (2018-07)
To learn image super-resolution, use a GAN to learn how to do image degradation first
and 71 more not named here
chunk 40 other papers
18 dated earlier, 2 the same month, 20 later
2106.14490 (2021-06)
Making Images Real Again: A Comprehensive Survey on Deep Image Composition
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2204.11824 (2022-04)
Semi-Parametric Neural Image Synthesis
and 37 more not named here
get_relative_import_files 18 other papers
4 dated earlier, 14 later
2211.11694 (2022-11)
Exploring Discrete Diffusion Models for Image Captioning
2304.05568 (2023-04)
Improving Diffusion Models for Scene Text Editing with Dual Encoders
2305.15756 (2023-05)
UniTRec: A Unified Text-to-Text Transformer and Joint Contrastive Learning Framework for Text-based Recommendation
and 15 more not named here
get_relative_imports 18 other papers
4 dated earlier, 14 later
2211.11694 (2022-11)
Exploring Discrete Diffusion Models for Image Captioning
2304.05568 (2023-04)
Improving Diffusion Models for Scene Text Editing with Dual Encoders
2305.15756 (2023-05)
UniTRec: A Unified Text-to-Text Transformer and Joint Contrastive Learning Framework for Text-based Recommendation
and 15 more not named here
get_full_repo_name 17 other papers
10 dated earlier, 7 later
2210.09477 (2022-10)
UniTune: Text-Driven Image Editing by Fine Tuning a Diffusion Model on a Single Image
2211.15388 (2022-11)
Shifted Diffusion for Text-to-image Generation
2302.07944 (2023-02)
Effective Data Augmentation With Diffusion Models
and 14 more not named here
imread 12 other papers
8 dated earlier, 1 the same month, 3 later
2009.05475 (2020-09)
Adversarial score matching and improved sampling for image generation
2106.01954 (2021-06)
Do Neural Optimal Transport Solvers Work? A Continuous Wasserstein-2 Benchmark
2112.05134 (2021-12)
A Shared Representation for Photorealistic Driving Simulators
and 9 more not named here
check_imports 10 other papers
4 dated earlier, 6 later
2211.11694 (2022-11)
Exploring Discrete Diffusion Models for Image Captioning
2304.05568 (2023-04)
Improving Diffusion Models for Scene Text Editing with Dual Encoders
2305.15756 (2023-05)
UniTRec: A Unified Text-to-Text Transformer and Joint Contrastive Learning Framework for Text-based Recommendation
and 7 more not named here
get_activations 10 other papers
7 dated earlier, 1 the same month, 2 later
2106.01954 (2021-06)
Do Neural Optimal Transport Solvers Work? A Continuous Wasserstein-2 Benchmark
2112.05134 (2021-12)
A Shared Representation for Photorealistic Driving Simulators
2201.12220 (2022-01)
Neural Optimal Transport
and 7 more not named here
get_parameter_device 10 other papers
2 dated earlier, 8 later
2304.05568 (2023-04)
Improving Diffusion Models for Scene Text Editing with Dual Encoders
2306.05720 (2023-06)
Beyond Surface Statistics: Scene Representations in a Latent Diffusion Model
2403.08268 (2024-03)
Follow-Your-Click: Open-domain Regional Image Animation via Short Prompts
and 7 more not named here
get_parameter_dtype 10 other papers
2 dated earlier, 8 later
2304.05568 (2023-04)
Improving Diffusion Models for Scene Text Editing with Dual Encoders
2306.05720 (2023-06)
Beyond Surface Statistics: Scene Representations in a Latent Diffusion Model
2403.08268 (2024-03)
Follow-Your-Click: Open-domain Regional Image Animation via Short Prompts
and 7 more not named here
load_state_dict 5 other papers
2 dated earlier, 3 later
2304.05568 (2023-04)
Improving Diffusion Models for Scene Text Editing with Dual Encoders
2306.05720 (2023-06)
Beyond Surface Statistics: Scene Representations in a Latent Diffusion Model
2406.00816 (2024-06)
Invisible Backdoor Attacks on Diffusion Models
and 2 more not named here

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

Recently, various methods have been proposed to address the inconsistency issue of DDIM inversion to enable image editing, such as EDICT [36] and Null-text inversion [22]. However, the above methods introduce considerable computational overhead. In this paper, we propose a new technique, named \emph{bi-directional integration approximation} (BDIA), to perform exact diffusion inversion with neglible computational overhead. Suppose we would like to estimate the next diffusion state $\boldsymbol{z}_{i-1}$ at timestep $t_i$ with the historical information $(i,\boldsymbol{z}_i)$ and $(i+1,\boldsymbol{z}_{i+1})$. We first obtain the estimated Gaussian noise $\hat{\boldsymbolε}(\boldsymbol{z}_i,i)$, and then apply the DDIM update procedure twice for approximating the ODE integration over the next time-slot $[t_i, t_{i-1}]$ in the forward manner and the previous time-slot $[t_i, t_{t+1}]$ in the backward manner. The DDIM step for the previous time-slot is used to refine the integration approximation made earlier when computing $\boldsymbol{z}_i$. A nice property of BDIA-DDIM is that the update expression for $\boldsymbol{z}_{i-1}$ is a linear combination of $(\boldsymbol{z}_{i+1}, \boldsymbol{z}_i, \hat{\boldsymbolε}(\boldsymbol{z}_i,i))$. This allows for exact backward computation of $\boldsymbol{z}_{i+1}$ given $(\boldsymbol{z}_i, \boldsymbol{z}_{i-1})$, thus leading to exact diffusion inversion. It is demonstrated with experiments that (round-trip) BDIA-DDIM is particularly effective for image editing. Our experiments further show that BDIA-DDIM produces markedly better image sampling qualities than DDIM for text-to-image generation. BDIA can also be applied to improve the performance of other ODE solvers in addition to DDIM. In our work, it is found that applying BDIA to the EDM sampling procedure produces consistently better performance over four pre-trained models.

For agents

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

get_harvested_code_for_paper("2307.10829")
get_code_for_paper("2307.10829")
have("2307.10829")

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

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

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

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

Connect an agent — have() is free.