Papers › Inverse Problems with Diffusion Models: A MAP Estimation Perspective

Inverse Problems with Diffusion Models: A MAP Estimation Perspective

27 Jul 2024arXiv:2407.20784archive 2025-07-28

Sai Bharath Chandra Gutha, Ricardo Vinuesa, Hossein Azizpour

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.

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="2407.20784")

Code

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

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

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

21 samples harvested; 11 ran; 1 honoured the contract we drafted; 10 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.

1ran · honoured contract
4ran · our draft was wrong
6ran
10unverified

Licence: 21 of the 21 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 guthasaibharathchandra/MAP-GA. “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.

center_crop_arr guthasaibharathchandra/MAP-GA/cm/image_datasets.py official repository ran · our draft was wrong no licence file found · pointer only · 8ab9a97df8161f31 · report
GDeblurring guthasaibharathchandra/MAP-GA/cm/lib_svd.py official repository ran no licence file found · pointer only · 5cd7f55be3de23d9 · report
approx_standard_normal_cdf guthasaibharathchandra/MAP-GA/cm/losses.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · cfd76fd0d89574a4 · report
discretized_gaussian_log_likelihood guthasaibharathchandra/MAP-GA/cm/losses.py official repository ran · our draft was wrong no licence file found · pointer only · cd33283d615fb3d7 · report
get_missing_indices guthasaibharathchandra/MAP-GA/cm/lib_svd.py official repository ran no licence file found · pointer only · e40b040ce58261c4 · report
get_param_groups_and_shapes guthasaibharathchandra/MAP-GA/cm/fp16_util.py official repository ran no licence file found · pointer only · e41367ad14ff58fd · report
make_master_params guthasaibharathchandra/MAP-GA/cm/fp16_util.py official repository ran no licence file found · pointer only · e20dd5102da3b050 · report
make_output_format guthasaibharathchandra/MAP-GA/cm/logger.py official repository ran no licence file found · pointer only · bcd8b4acab199405 · report
normal_kl guthasaibharathchandra/MAP-GA/cm/losses.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · cf2798b666b231ca · report
unflatten_master_params guthasaibharathchandra/MAP-GA/cm/fp16_util.py official repository ran no licence file found · pointer only · 64fff1e30802b815 · report
zero_module guthasaibharathchandra/MAP-GA/cm/nn.py official repository ran · our draft was wrong no licence file found · pointer only · 129b804760b3115f · report
avg_pool_nd guthasaibharathchandra/MAP-GA/cm/nn.py official repository unverified no licence file found · pointer only · ecd0fc28815b65ae · report
conv_nd guthasaibharathchandra/MAP-GA/cm/nn.py official repository unverified no licence file found · pointer only · fe4eb545bbb728e0 · report
create_named_schedule_sampler guthasaibharathchandra/MAP-GA/cm/resample.py official repository unverified no licence file found · pointer only · df72d0c85cc7f5ed · report
get_generator guthasaibharathchandra/MAP-GA/cm/random_util.py official repository unverified no licence file found · pointer only · 84423ecf52775c17 · report
get_sigmas_karras guthasaibharathchandra/MAP-GA/cm/karras_diffusion.py official repository unverified no licence file found · pointer only · 00611e9feba0f93d · report
get_weightings guthasaibharathchandra/MAP-GA/cm/karras_diffusion.py official repository unverified no licence file found · pointer only · b50e02eda098b1ea · report
karras_sample guthasaibharathchandra/MAP-GA/cm/karras_diffusion.py official repository unverified no licence file found · pointer only · b3503b2346197aee · report
mpi_weighted_mean guthasaibharathchandra/MAP-GA/cm/logger.py official repository unverified no licence file found · pointer only · e515a67f7f32e76d · report
profile guthasaibharathchandra/MAP-GA/cm/logger.py official repository unverified no licence file found · pointer only · 0c6607473a4c4c55 · report
random_crop_arr guthasaibharathchandra/MAP-GA/cm/image_datasets.py official repository unverified no licence file found · pointer only · 53d5be4fdbcfac23 · report

Tasks

DeblurringImage InpaintingImage RestorationSuper-Resolution

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

DiffusionInpainting

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