OSCR

Fast and Robust Diffusion Posterior Sampling for MR Image Reconstruction Using the Preconditioned Unadjusted Langevin Algorithm.

Code ↔ Paper

6 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 6 matches · 4 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Methods › Numerical Experiments ↔ sup_figure_04_noise_dps_stepsize/run.sh, the whole file · a weak match · score 0.72 · retrospectively undersampled, foreground mask, coil compressed, coil sensitivities, whitened, training
  2. [2] § Methods › Numerical Experiments ↔ figure_03_diffusion/run.sh, the whole file · a weak match · score 0.72 · retrospectively undersampled, foreground mask, coil compressed, coil sensitivities, whitened, training
  3. [3] § Methods › Data Processing and Network Training ↔ figure_03_diffusion/run.sh, the whole file · a weak match · score 0.55 · foreground mask, coil sensitivities, whitened, training, sigma, compressed
  4. [4] § Methods › Data Processing and Network Training ↔ sup_figure_04_noise_dps_stepsize/run.sh, the whole file · a weak match · score 0.54 · foreground mask, coil sensitivities, whitened, training, sigma, compressed
  5. [5] § Methods › Numerical Experiments ↔ figure_04_noise/run.sh, lines 44–96 · score 0.52 · foreground mask, coil sensitivities, FFT, Wavelet, slice, PSNR
  6. [6] § Methods › Numerical Experiments ↔ sup_figure_05_cc_uncertainty_dps/run.sh, lines 45–112 · score 0.52 · foreground mask, coil sensitivities, FFT, Wavelet, slice, PSNR

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Shell · 84 lines · 2.3 KB · no license · 2 matches

  1. #!/bin/bash
  2. #Copyright 2025. TU Graz. Institute of Biomedical Imaging.
  3. #Author: Tina Holliber
  4. set -eu
  5. SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )
  6. cd $SCRIPT_DIR
  7. WORKDIR=$(mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir')
  8. trap 'rm -rf "$WORKDIR"' EXIT
  9. cd "$WORKDIR" || exit
  10. WGH="${WGH:-$SCRIPT_DIR/../01_data/12_trained_weights/wgh}"
  11. if [ ! -f ${WGH}.hdr ]; then
  12. echo "ERROR: Weights file $WGH does not exist."
  13. exit 1
  14. fi
  15. DATA=$SCRIPT_DIR/../01_data/02_t2/ksp
  16. # Remove frequency oversampling
  17. bart fft -i -u 1 $DATA c
  18. bart resize -c 0 320 c c2
  19. bart fft -u 1 c2 ksp
  20. bart resize 0 1 c2 c2
  21. bart transpose 0 1 c2 noise
  22. # Noise whitening
  23. bart whiten ksp noise ksp
  24. # Retrospective undersampling patterns
  25. bart ones 2 1 16 - | bart resize -c 1 320 - ac
  26. bart upat -Y320 -y4 -Z1 - | bart saxpy 1 - ac - | bart threshold -B 0.5 - - | bart repmat 0 320 - pat_reg4
  27. bart upat -Y320 -y12 -Z1 - | bart saxpy 1 - ac - | bart threshold -B 0.5 - - | bart repmat 0 320 - pat_reg12
  28. bart join 10 pat_reg4 pat_reg12 pat
  29. bart scale 1 pat $SCRIPT_DIR/pat
  30. # Coil Compression
  31. bart cc -p12 ksp ksp
  32. LOOP="-l$(bart bitmask 10) -r ksp"
  33. # Coil Sensitivity Estimation
  34. bart $LOOP ncalib -M0.001 -i14 --cgiter=10 ksp col imgs
  35. bart rss 8 col nrm
  36. # Image Scaling
  37. bart fft -i -u 3 imgs imgs
  38. bart $LOOP estscaling -p0.99 -x320:320:1 imgs scl
  39. bart fmac scl col col
  40. # Foreground Masking
  41. bart $LOOP ecalib -r16 -A -m1 ksp - | bart rss 8 - msk
  42. bart fmac col msk col
  43. bart fmac nrm msk nrm
  44. # add noise
  45. bart noise -n8 ksp kspn
  46. bart scale 0.333 kspn kspn
  47. bart scale 0.333 col coln
  48. bart join 5 ksp kspn ksp
  49. bart join 5 col coln col
  50. bart slice 5 0 ksp ksp_full
  51. bart fmac pat ksp ksp
  52. export BART_DEBUG_LEVEL=4
  53. bart pics -w1 -r0.000001 -l1 -i100 -e -g ksp_full col imgfull
  54. bart fmac imgfull nrm $SCRIPT_DIR/ref
  55. # Sampling
  56. LOOP="-l$(bart bitmask 5 10) -e $(bart show -d 5 ksp):$(bart show -d 10 ksp) --random-dims=0"
  57. for step in 0.01 0.05 0.1 0.2 0.3 0.4 0.5; do
  58. BART_DEBUG_LEVEL=4 bart $LOOP sample -p --sigma max=10.,min=0.01 -S10 --gamma=$step -K0 -N240 -g --posterior k=ksp,s=col,dps --mask=msk --cunet w=$WGH sample_dps1_$step > sample_dps_$step.log 2>&1
  59. bart fmac sample_dps1_$step nrm sample_dps1_$step
  60. done
  61. bart join 9 sample_dps1_0.01 sample_dps1_0.05 sample_dps1_0.1 sample_dps1_0.2 sample_dps1_0.3 sample_dps1_0.4 sample_dps1_0.5 $SCRIPT_DIR/sample_dps

run.sh at commit 08b6948, no license · at the source

Overview

Authors: Moritz Blumenthal1,2, Tina Holliber1, Jonathan I. Tamir3,4, Martin Uecker1,5
  1. Institute of Biomedical Imaging Graz University of Technology Graz Austria
  2. Department of Radiology Boston Children's Hospital, Harvard Medical School Boston USA
  3. Chandra Family Department of Electrical Engineering University of Texas at Austin Austin USA
  4. Department of Diagnostic Medicine, Dell Medical School University of Texas at Austin Austin USA
  5. BioTechMed‐Graz Graz Austria
Institutions: Boston Children's Hospital (United States); Harvard University (United States); Graz University of Technology (Austria); The University of Texas at Austin (United States); BioTechMed-Graz (Austria)
Journal: Magnetic resonance in medicine, volume 96, issue 3, pages 1323-1332
Dates: received 10 December 2025; accepted 22 April 2026; published online 10 May 2026; in print September 2026
Type: Other · Language: English
License: CC BY
Identifiers: DOI 10.1002/mrm.70416 · PMID 42108406 · PMCID PMC13327450 · OpenAlex W4417143449
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: structural MRI / diffusion (modality), human (organism), methods / tools (subfield)
Methods: Spectral & time-frequency, Machine learning, Smoothing, state filtering, decompositions
Keywords: Bayesian reconstruction, diffusion posterior sampling, image reconstruction, MRI, parallel imaging
MeSH: Algorithms*, Brain*, Diffusion Magnetic Resonance Imaging*, Image Processing, Computer-Assisted*, Magnetic Resonance Imaging*, Bayes Theorem, Humans, Image Enhancement, Reproducibility of Results (* major topic)
Journal subjects: Technical Note, Imaging Methodology
Topic: Advanced Neuroimaging Techniques and Applications (Radiology, Nuclear Medicine and Imaging, Medicine), according to OpenAlex
Citations: not cited yet (Europe PMC); 35 references in the paper

Abstract

Purpose: The Unadjusted Langevin Algorithm (ULA) in combination with diffusion models can generate high quality MRI reconstructions with uncertainty estimation from highly undersampled k‐space data. However, sampling methods such as diffusion posterior sampling (DPS) or likelihood annealing suffer from long reconstruction times and the need for parameter tuning. The purpose of this work is to develop a robust sampling algorithm with fast convergence.

Theory and Methods: In the reverse diffusion process used for sampling the posterior, the exact likelihood is multiplied with the diffused prior at all noise scales. To overcome the issue of slow convergence, preconditioning is used. The method is trained on fastMRI data and tested on retrospectively undersampled brain data of a healthy volunteer.

Results: For posterior sampling in Cartesian and non‐Cartesian accelerated MRI the new approach outperforms annealed sampling and DPS in terms of reconstruction speed and sample quality.

Conclusion: The proposed exact likelihood with preconditioning enables rapid and reliable posterior sampling across various MRI reconstruction tasks without the need for parameter tuning.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 6 matches between paragraphs and lines of code.

gitlab.tugraz.at/ibi/mrirecon/papers/dps-pula

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 08b6948239e96dbd5867e2ac9b7cd8a9a79a7112, 23 March 2026
Languages: Shell (30), Python (6)
Size: 83 files, 36 scripts
Software Heritage: not archived
Found in: “Data Availability Statement”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (5 files), Matplotlib (3 files), h5py (1 file), Numba (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
37 files

The paper's code and data availability statement is in the Data section.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 36 scripts, each with its path and the digest of its content;
  • 6 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

Datasets cited

Data Availability Statement

In the spirit of reproducible research, the code to reproduce the results of this paper is available at https://gitlab.tugraz.at/ibi/mrirecon/papers/dps‐pula (https://gitlab.tugraz.at/ibi/mrirecon/papers/dps-pula) (Version v0.2). All reconstructions have been performed with BART (v1.0.00), available at https://codeberg.org/mrirecon/bart. The data used in this study is available at Zenodo (DOI: 10.5281/zenodo.17739731 (https://doi.org/10.5281/zenodo.17739731)).

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 2, 28 September 2026

  • Publisher: n/a → Wiley

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 4 authors, 5 keywords, 9 MeSH terms, 2 funders, 19 references.

Cite

This paper

Blumenthal, M., Holliber, T., Tamir, J. I., & Uecker, M. (2026). Fast and Robust Diffusion Posterior Sampling for MR Image Reconstruction Using the Preconditioned Unadjusted Langevin Algorithm. Magnetic resonance in medicine, 96(3), 1323-1332. https://doi.org/10.1002/mrm.70416

BibTeX

@article{blumenthal2026fast,
author = {Blumenthal, Moritz and Holliber, Tina and Tamir, Jonathan I. and Uecker, Martin},
title = {{Fast and Robust Diffusion Posterior Sampling for MR Image Reconstruction Using the Preconditioned Unadjusted Langevin Algorithm}},
journal = {Magnetic resonance in medicine},
year = {2026},
month = may,
volume = {96},
number = {3},
pages = {1323--1332},
publisher = {Wiley},
issn = {0740-3194},
doi = {10.1002/mrm.70416},
url = {https://doi.org/10.1002/mrm.70416},
pmid = {42108406},
pmcid = {PMC13327450}
}

RIS

TY - JOUR
AU - Blumenthal, Moritz
AU - Holliber, Tina
AU - Tamir, Jonathan I.
AU - Uecker, Martin
TI - Fast and Robust Diffusion Posterior Sampling for MR Image Reconstruction Using the Preconditioned Unadjusted Langevin Algorithm
T2 - Magnetic resonance in medicine
J2 - Magn Reson Med
PY - 2026
DA - 2026/05/10
VL - 96
IS - 3
SP - 1323
EP - 1332
SN - 0740-3194
PB - Wiley
DO - 10.1002/mrm.70416
UR - https://doi.org/10.1002/mrm.70416
LA - en
ER -

CSL-JSON

{
"id": "10.1002/mrm.70416",
"type": "article-journal",
"title": "Fast and Robust Diffusion Posterior Sampling for MR Image Reconstruction Using the Preconditioned Unadjusted Langevin Algorithm",
"container-title": "Magnetic resonance in medicine",
"author": [
{
"family": "Blumenthal",
"given": "Moritz"
},
{
"family": "Holliber",
"given": "Tina"
},
{
"family": "Tamir",
"given": "Jonathan I."
},
{
"family": "Uecker",
"given": "Martin"
}
],
"container-title-short": "Magn Reson Med",
"volume": "96",
"issue": "3",
"page": "1323-1332",
"DOI": "10.1002/mrm.70416",
"PMID": "42108406",
"PMCID": "PMC13327450",
"ISSN": "0740-3194",
"publisher": "Wiley",
"URL": "https://doi.org/10.1002/mrm.70416",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
10
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1002/mrm.70496 [code]
A Deep Nonlinear Subspace Modeling and Reconstruction for Diffusion-Weighted Imaging Using Denoising Auto-Encoder.
Journal: Magnetic resonance in medicine
In common: Numba, h5py, Matplotlib, 1 other tool, methods / tools, structural MRI / diffusion
[2] doi:10.7554/elife.110588 [code]
Opening the black box toward a modular approach to spike sorting.
Journal: eLife
In common: Numba, h5py, Matplotlib, 1 other tool, methods / tools
[3] doi:10.1093/bioinformatics/btag540 [code]
Deciphering spatial heterogeneity by multimodal spatial transcriptomics modelling with SpatialModal.
Journal: Bioinformatics (Oxford, England)
In common: Numba, h5py, Matplotlib, 1 other tool, methods / tools
[4] doi:10.1038/s41592-026-03057-2 [code]
CREsted: modeling genomic and synthetic cell-type-specific enhancers across tissues and species.
Journal: Nature methods
In common: Numba, h5py, Matplotlib, 1 other tool, methods / tools
[5] doi:10.1002/advs.77003 [code]
SemanticST: A Scalable Multi-Contextual Graph Learning Framework for Uncovering Spatial Niches and Robust Multi-Sample Integration in Spatial Transcriptomics.
Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)
In common: Numba, h5py, Matplotlib, 1 other tool, methods / tools
[6] doi:10.1038/s41598-026-57519-w [code]
Automated segmentation of neurons and spinal cord structures in immunofluorescence images using SpineDL.
Journal: Scientific reports
In common: Numba, h5py, Matplotlib, 1 other tool, methods / tools
[7] doi:10.1093/bib/bbag331 [code]
SPOmiAlign: a modality-agnostic computational framework for multimodal spatial omics alignment enabled by a feature matching foundation model.
Journal: Briefings in bioinformatics
In common: Numba, h5py, Matplotlib, 1 other tool, methods / tools
[8] doi:10.1038/s41467-026-75959-w [code]
Charting higher-order models of brain function beyond pairwise interactions.
Journal: Nature communications
In common: Numba, h5py, Matplotlib, 1 other tool
[9] doi:10.1073/pnas.2533168123 [code]
Dendritic morphology and synaptic nonlinearities enhance functional complexity in human cortical neurons.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: Numba, h5py, Matplotlib, 1 other tool
[10] doi:10.1093/nar/gkag706 [code]
scDifformer: diffusion-based post-training for virtual cell modeling across large-scale single-cell data.
Journal: Nucleic acids research
In common: Numba, h5py, Matplotlib, 1 other tool

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.