SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.20784 · 2024

Inverse Problems with Diffusion Models: A MAP Estimation Perspective

arXiv · PDF · Open in the Atlas

Code that ran

14 of 21 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; 13 failures of our instrument; 7 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-22; 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/2407.20784.json · badge: /api/ran/2407.20784.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
guthasaibharathchandra/MAP-GA canonical (classifier label)
classifier basis: census
14 ran · 7 no recorded run
FunctionStatusWhere it lives
center_crop_arr Ran
ran; our contract draft was wrong, not the code
guthasaibharathchandra/MAP-GA/cm/image_datasets.py
pointer only (licence: NONE) · get_code("8ab9a97df8161f31")
How it ran

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

GDeblurring Ran
ran; our contract draft was wrong, not the code
guthasaibharathchandra/MAP-GA/cm/lib_svd.py
pointer only (licence: NONE) · get_code("5cd7f55be3de23d9")
How it ran

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

approx_standard_normal_cdf Ran
ran; our contract draft was wrong, not the code
guthasaibharathchandra/MAP-GA/cm/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from quandao10/slct, is pointer only (licence: NONE) · get_code("cfd76fd0d89574a4")
How it ran

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

discretized_gaussian_log_likelihood Ran
ran; our contract draft was wrong, not the code
guthasaibharathchandra/MAP-GA/cm/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from quandao10/slct, is pointer only (licence: NONE) · get_code("cd33283d615fb3d7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, guthasaibharathchandra/MAP-GA 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_missing_indices Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
guthasaibharathchandra/MAP-GA/cm/lib_svd.py
pointer only (licence: NONE) · get_code("e40b040ce58261c4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, guthasaibharathchandra/MAP-GA 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_param_groups_and_shapes Ran
ran; our contract draft was wrong, not the code
guthasaibharathchandra/MAP-GA/cm/fp16_util.py
pointer only (licence: NONE); the stored copy get_code serves, from ZhendongWang6/DIRE, is pointer only (licence: NONE) · get_code("e41367ad14ff58fd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, guthasaibharathchandra/MAP-GA 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_weightings Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
guthasaibharathchandra/MAP-GA/cm/karras_diffusion.py
pointer only (licence: NONE) · get_code("b50e02eda098b1ea")
How it ran

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

make_master_params Ran
ran; our contract draft was wrong, not the code
guthasaibharathchandra/MAP-GA/cm/fp16_util.py
pointer only (licence: NONE); the stored copy get_code serves, from ZhendongWang6/DIRE, is pointer only (licence: NONE) · get_code("e20dd5102da3b050")
How it ran

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

make_output_format Ran
ran; our contract draft was wrong, not the code
guthasaibharathchandra/MAP-GA/cm/logger.py
pointer only (licence: NONE) · get_code("bcd8b4acab199405")
How it ran

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

mpi_weighted_mean Ran
ran; our contract draft was wrong, not the code
guthasaibharathchandra/MAP-GA/cm/logger.py
pointer only (licence: NONE); the stored copy get_code serves, from HeadLiuYun/NeuroDiff, is pointer only (licence: NONE) · get_code("e515a67f7f32e76d")
How it ran

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

normal_kl Ran
ran, honoured the contract we drafted
guthasaibharathchandra/MAP-GA/cm/losses.py
pointer only (licence: NONE); the stored copy get_code serves, from facebookresearch/agrol, is pointer only (licence: NOASSERTION) · get_code("cf2798b666b231ca")
How it ran

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

random_crop_arr Ran
ran; our contract draft was wrong, not the code
guthasaibharathchandra/MAP-GA/cm/image_datasets.py
pointer only (licence: NONE) · get_code("53d5be4fdbcfac23")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, guthasaibharathchandra/MAP-GA 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_master_params Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
guthasaibharathchandra/MAP-GA/cm/fp16_util.py
pointer only (licence: NONE); the stored copy get_code serves, from ZhendongWang6/DIRE, is pointer only (licence: NONE) · get_code("64fff1e30802b815")
How it ran

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

zero_module Ran
ran; our contract draft was wrong, not the code
guthasaibharathchandra/MAP-GA/cm/nn.py
pointer only (licence: NONE) · get_code("129b804760b3115f")
How it ran

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

avg_pool_nd Not yet run
unverified (harvested, no recorded run)
guthasaibharathchandra/MAP-GA/cm/nn.py
pointer only (licence: NONE) · get_code("ecd0fc28815b65ae")
How it ran

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

conv_nd Not yet run
unverified (harvested, no recorded run)
guthasaibharathchandra/MAP-GA/cm/nn.py
pointer only (licence: NONE) · get_code("fe4eb545bbb728e0")
How it ran

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

create_named_schedule_sampler Not yet run
unverified (harvested, no recorded run)
guthasaibharathchandra/MAP-GA/cm/resample.py
pointer only (licence: NONE) · get_code("df72d0c85cc7f5ed")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, guthasaibharathchandra/MAP-GA 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_generator Not yet run
unverified (harvested, no recorded run)
guthasaibharathchandra/MAP-GA/cm/random_util.py
pointer only (licence: NONE) · get_code("84423ecf52775c17")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, guthasaibharathchandra/MAP-GA 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_sigmas_karras Not yet run
unverified (harvested, no recorded run)
guthasaibharathchandra/MAP-GA/cm/karras_diffusion.py
pointer only (licence: NONE) · get_code("00611e9feba0f93d")
How it ran

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

karras_sample Not yet run
unverified (harvested, no recorded run)
guthasaibharathchandra/MAP-GA/cm/karras_diffusion.py
pointer only (licence: NONE) · get_code("b3503b2346197aee")
How it ran

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

profile Not yet run
unverified (harvested, no recorded run)
guthasaibharathchandra/MAP-GA/cm/logger.py
pointer only (licence: NONE); the stored copy get_code serves, from HeadLiuYun/NeuroDiff, is pointer only (licence: NONE) · get_code("0c6607473a4c4c55")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, guthasaibharathchandra/MAP-GA 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 21 samples lifted from this paper's linked repositories, 21 carry a function identity and 0 do not. Of the 21 distinct functions with an identity, 18 are also present in other papers whose code we hold (18 with at least one paper dated earlier, 17 the same month, 17 later) and 3 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
zero_module 196 other papers
137 dated earlier, 7 the same month, 51 later, 1 same year, order not determinable · 49 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
and 193 more not named here
normal_kl 160 other papers
113 dated earlier, 5 the same month, 40 later, 2 same year, order not determinable · 19 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 157 more not named here
approx_standard_normal_cdf 154 other papers
107 dated earlier, 5 the same month, 40 later, 2 same year, order not determinable · 17 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 151 more not named here
discretized_gaussian_log_likelihood 128 other papers
98 dated earlier, 3 the same month, 26 later, 1 same year, order not determinable · 16 only as an assembly brick
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2105.05233 (2021-05)
Diffusion Models Beat GANs on Image Synthesis
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 125 more not named here
conv_nd 121 other papers
87 dated earlier, 5 the same month, 26 later, 3 same year, order not determinable · 32 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
and 118 more not named here
avg_pool_nd 113 other papers
84 dated earlier, 5 the same month, 21 later, 3 same year, order not determinable · 31 only as an assembly brick
2006.11239 (2020-06)
Denoising Diffusion Probabilistic Models
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2110.11291 (2021-10)
Likelihood Training of Schrödinger Bridge using Forward-Backward SDEs Theory
and 110 more not named here
make_output_format 73 other papers
65 dated earlier, 2 the same month, 5 later, 1 same year, order not determinable
1611.05763 (2016-11)
Learning to reinforcement learn
1804.06459 (2018-04)
On Learning Intrinsic Rewards for Policy Gradient Methods
1806.02473 (2018-06)
Graph Convolutional Policy Network for Goal-Directed Molecular Graph Generation
and 70 more not named here
unflatten_master_params 72 other papers
55 dated earlier, 3 the same month, 13 later, 1 same year, order not determinable
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
2112.03145 (2021-12)
Diffusion Models for Implicit Image Segmentation Ensembles
and 69 more not named here
make_master_params 70 other papers
53 dated earlier, 3 the same month, 13 later, 1 same year, order not determinable
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
2112.03145 (2021-12)
Diffusion Models for Implicit Image Segmentation Ensembles
and 67 more not named here
get_param_groups_and_shapes 68 other papers
51 dated earlier, 3 the same month, 13 later, 1 same year, order not determinable
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
2112.03145 (2021-12)
Diffusion Models for Implicit Image Segmentation Ensembles
and 65 more not named here
profile 61 other papers
53 dated earlier, 2 the same month, 5 later, 1 same year, order not determinable
1611.05763 (2016-11)
Learning to reinforcement learn
1905.06750 (2019-05)
Random Expert Distillation: Imitation Learning via Expert Policy Support Estimation
1906.05841 (2019-06)
Deep Reinforcement Learning for Industrial Insertion Tasks with Visual Inputs and Natural Rewards
and 58 more not named here
mpi_weighted_mean 52 other papers
45 dated earlier, 2 the same month, 4 later, 1 same year, order not determinable
2010.02502 (2020-10)
Denoising Diffusion Implicit Models
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
and 49 more not named here
center_crop_arr 33 other papers
24 dated earlier, 1 the same month, 7 later, 1 same year, order not determinable
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
2203.15636 (2022-03)
Diffusion Models for Counterfactual Explanations
and 30 more not named here
random_crop_arr 32 other papers
24 dated earlier, 1 the same month, 6 later, 1 same year, order not determinable
2111.11672 (2021-11)
Few-shot Image Generation with Mixup-based Distance Learning
2111.14818 (2021-11)
Blended Diffusion for Text-driven Editing of Natural Images
2203.04306 (2022-03)
Diffusion Models for Medical Anomaly Detection
and 29 more not named here
create_named_schedule_sampler 3 other papers
1 dated earlier, 1 the same month, 1 later
2303.01469 (2023-03)
Consistency Models
2407.16125 (2024-07)
Diffusion Prior-Based Amortized Variational Inference for Noisy Inverse Problems
2411.08378 (2024-11)
Physics Informed Distillation for Diffusion Models
get_sigmas_karras 3 other papers
2 dated earlier, 1 the same month
2303.01469 (2023-03)
Consistency Models
2305.02463 (2023-05)
Shap-E: Generating Conditional 3D Implicit Functions
2407.00626 (2024-07)
Maximum Entropy Inverse Reinforcement Learning of Diffusion Models with Energy-Based Models
get_weightings 3 other papers
1 dated earlier, 1 the same month, 1 later
2303.01469 (2023-03)
Consistency Models
2407.00626 (2024-07)
Maximum Entropy Inverse Reinforcement Learning of Diffusion Models with Energy-Based Models
2411.08378 (2024-11)
Physics Informed Distillation for Diffusion Models
get_generator 2 other papers
1 dated earlier, 1 later
2303.01469 (2023-03)
Consistency Models
2411.08378 (2024-11)
Physics Informed Distillation for Diffusion Models

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-22.

Repositories linked to this paper

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

Abstract

Inverse problems have many applications in science and engineering. In Computer vision, several image restoration tasks such as inpainting, deblurring, and super-resolution can be formally modeled as inverse problems. Recently, methods have been developed for solving inverse problems that only leverage a pre-trained unconditional diffusion model and do not require additional task-specific training. In such methods, however, the inherent intractability of determining the conditional score function during the reverse diffusion process poses a real challenge, leaving the methods to settle with an approximation instead, which affects their performance in practice. Here, we propose a MAP estimation framework to model the reverse conditional generation process of a continuous time diffusion model as an optimization process of the underlying MAP objective, whose gradient term is tractable. In theory, the proposed framework can be applied to solve general inverse problems using gradient-based optimization methods. However, given the highly non-convex nature of the loss objective, finding a perfect gradient-based optimization algorithm can be quite challenging, nevertheless, our framework offers several potential research directions. We use our proposed formulation to develop empirically effective algorithms for image restoration. We validate our proposed algorithms with extensive experiments over multiple datasets across several restoration tasks.

For agents

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

get_harvested_code_for_paper("2407.20784")
get_code_for_paper("2407.20784")
have("2407.20784")

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

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

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

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

Connect an agent — have() is free.