Papers › Diffusion Models for Implicit Image Segmentation Ensembles

Diffusion Models for Implicit Image Segmentation Ensembles

6 Dec 2021arXiv:2112.03145archive 2025-07-28

Julia Wolleb, Robin Sandkühler, Florentin Bieder, Philippe Valmaggia, Philippe C. Cattin

Diffusion models have shown impressive performance for generative modelling of images. In this paper, we present a novel semantic segmentation method based on diffusion models. By modifying the training and sampling scheme, we show that diffusion models can perform lesion segmentation of medical images. To generate an image specific segmentation, we train the model on the ground truth segmentation, and use the image as a prior during training and in every step during the sampling process. With the given stochastic sampling process, we can generate a distribution of segmentation masks. This property allows us to compute pixel-wise uncertainty maps of the segmentation, and allows an implicit ensemble of segmentations that increases the segmentation performance. We evaluate our method on the BRATS2020 dataset for brain tumor segmentation. Compared to state-of-the-art segmentation models, our approach yields good segmentation results and, additionally, detailed uncertainty maps.

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

Code

Syntology Ran 13 of 19 code samples harvested from 2 repositories linked to this paper; 6 have no recorded run. Of those that ran: 4 ran · honoured contract; 3 ran · our draft was wrong; 2 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: official repository: 2 samples from 1 repository, 2 ran; community (archive-listed): 17 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.

juliawolleb/diffusion-based-segmentation officialmentioned in papermentioned on GitHubpytorch report
marrlab/dispr mentioned on GitHubpytorchApache-2.0 report

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

19 samples harvested; 13 ran; 4 honoured the contract we drafted; 6 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.

4ran · honoured contract
3ran · our draft was wrong
2ran · fixture could not drive it
4ran
6unverified

Licence: 0 of the 19 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

dice_score juliawolleb/diffusion-based-segmentation/scripts/segmentation_sample.py official repository ran · honoured contract fingerprinted MIT (permissive) · 42c9692e3f59033f · report
visualize juliawolleb/diffusion-based-segmentation/scripts/segmentation_sample.py official repository ran · honoured contract fingerprinted MIT (permissive) · 004f59ffcd28edcc · report
approx_standard_normal_cdf marrlab/dispr/guided_diffusion/losses.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · cfd76fd0d89574a4 · report
betas_for_alpha_bar marrlab/dispr/guided_diffusion/gaussian_diffusion.py community (archive-listed) ran · honoured contract Apache-2.0 (permissive) · 6cdc8772f5db6f48 · report
discretized_gaussian_log_likelihood marrlab/dispr/guided_diffusion/losses.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · cd33283d615fb3d7 · report
get_named_beta_schedule marrlab/dispr/guided_diffusion/gaussian_diffusion.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · 141937afc98f8d1e · report
get_param_groups_and_shapes marrlab/dispr/guided_diffusion/fp16_util.py community (archive-listed) ran Apache-2.0 (permissive) · e41367ad14ff58fd · report
make_master_params marrlab/dispr/guided_diffusion/fp16_util.py community (archive-listed) ran Apache-2.0 (permissive) · e20dd5102da3b050 · report
make_output_format marrlab/dispr/guided_diffusion/logger.py community (archive-listed) ran Apache-2.0 (permissive) · bcd8b4acab199405 · report
normal_kl marrlab/dispr/guided_diffusion/losses.py community (archive-listed) ran · honoured contract fingerprinted Apache-2.0 (permissive) · cf2798b666b231ca · report
space_timesteps marrlab/dispr/guided_diffusion/respace.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · 9b6e4e070473e76f · report
unflatten_master_params marrlab/dispr/guided_diffusion/fp16_util.py community (archive-listed) ran Apache-2.0 (permissive) · 64fff1e30802b815 · report
zero_module marrlab/dispr/guided_diffusion/nn.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 129b804760b3115f · report
avg_pool_nd marrlab/dispr/guided_diffusion/nn.py community (archive-listed) unverified Apache-2.0 (permissive) · ecd0fc28815b65ae · report
conv_nd marrlab/dispr/guided_diffusion/nn.py community (archive-listed) unverified Apache-2.0 (permissive) · fe4eb545bbb728e0 · report
create_named_schedule_sampler marrlab/dispr/guided_diffusion/resample.py community (archive-listed) unverified Apache-2.0 (permissive) · 49a5e51a44d77a98 · report
mpi_weighted_mean marrlab/dispr/guided_diffusion/logger.py community (archive-listed) unverified Apache-2.0 (permissive) · e515a67f7f32e76d · report
profile marrlab/dispr/guided_diffusion/logger.py community (archive-listed) unverified Apache-2.0 (permissive) · 17e660f0e95b0309 · report
standardize marrlab/dispr/guided_diffusion/gaussian_diffusion.py community (archive-listed) unverified Apache-2.0 (permissive) · f7b9e18794a10023 · report

Tasks

Brain Tumor SegmentationImage SegmentationLesion SegmentationSegmentationSemantic SegmentationTumor Segmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

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