Papers › MedSegDiff-V2: Diffusion based Medical Image Segmentation with Transformer

MedSegDiff-V2: Diffusion based Medical Image Segmentation with Transformer

19 Jan 2023arXiv:2301.11798archive 2025-07-28

Junde Wu, Wei Ji, Huazhu Fu, Min Xu, Yueming Jin, Yanwu Xu

The Diffusion Probabilistic Model (DPM) has recently gained popularity in the field of computer vision, thanks to its image generation applications, such as Imagen, Latent Diffusion Models, and Stable Diffusion, which have demonstrated impressive capabilities and sparked much discussion within the community. Recent investigations have further unveiled the utility of DPM in the domain of medical image analysis, as underscored by the commendable performance exhibited by the medical image segmentation model across various tasks. Although these models were originally underpinned by a UNet architecture, there exists a potential avenue for enhancing their performance through the integration of vision transformer mechanisms. However, we discovered that simply combining these two models resulted in subpar performance. To effectively integrate these two cutting-edge techniques for the Medical image segmentation, we propose a novel Transformer-based Diffusion framework, called MedSegDiff-V2. We verify its effectiveness on 20 medical image segmentation tasks with different image modalities. Through comprehensive evaluation, our approach demonstrates superiority over prior state-of-the-art (SOTA) methodologies. Code is released at https://github.com/KidsWithTokens/MedSegDiff

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

Code

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

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

kidswithtokens/medsegdiff officialmentioned in papermentioned on GitHubpytorchMIT report
wujunde/medsegdiff officialmentioned in papermentioned on GitHubpytorchMIT 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

21 samples harvested; 13 ran; 2 honoured the contract we drafted; 8 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.

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

Licence: 0 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 wujunde/medsegdiff. “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.

approx_standard_normal_cdf wujunde/medsegdiff/guided_diffusion/losses.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · cfd76fd0d89574a4 · report
betas_for_alpha_bar wujunde/medsegdiff/guided_diffusion/gaussian_diffusion.py official repository ran · honoured contract MIT (permissive) · 6cdc8772f5db6f48 · report
conv_bn wujunde/medsegdiff/guided_diffusion/unet.py official repository ran · our draft was wrong MIT (permissive) · 2f7853ff01cbbc29 · report
conv_dw wujunde/medsegdiff/guided_diffusion/unet.py official repository ran MIT (permissive) · 8b3498a0092c350a · report
discretized_gaussian_log_likelihood wujunde/medsegdiff/guided_diffusion/losses.py official repository ran · our draft was wrong MIT (permissive) · cd33283d615fb3d7 · report
expand_dims wujunde/medsegdiff/guided_diffusion/dpm_solver.py official repository ran · our draft was wrong MIT (permissive) · 5bda79d6c0eb0ae5 · report
get_named_beta_schedule wujunde/medsegdiff/guided_diffusion/gaussian_diffusion.py official repository ran · fixture could not drive it MIT (permissive) · 141937afc98f8d1e · report
get_param_groups_and_shapes wujunde/medsegdiff/guided_diffusion/fp16_util.py official repository ran MIT (permissive) · e41367ad14ff58fd · report
interpolate_fn wujunde/medsegdiff/guided_diffusion/dpm_solver.py official repository ran fingerprinted MIT (permissive) · 4099155bf06052b1 · report
make_master_params wujunde/medsegdiff/guided_diffusion/fp16_util.py official repository ran MIT (permissive) · e20dd5102da3b050 · report
make_output_format wujunde/medsegdiff/guided_diffusion/logger.py official repository ran MIT (permissive) · bcd8b4acab199405 · report
normal_kl wujunde/medsegdiff/guided_diffusion/losses.py official repository ran · honoured contract fingerprinted MIT (permissive) · cf2798b666b231ca · report
unflatten_master_params wujunde/medsegdiff/guided_diffusion/fp16_util.py official repository ran MIT (permissive) · 64fff1e30802b815 · report
avg_pool_nd wujunde/medsegdiff/guided_diffusion/nn.py official repository unverified MIT (permissive) · ecd0fc28815b65ae · report
conv_nd wujunde/medsegdiff/guided_diffusion/nn.py official repository unverified MIT (permissive) · fe4eb545bbb728e0 · report
create_named_schedule_sampler wujunde/medsegdiff/guided_diffusion/resample.py official repository unverified MIT (permissive) · 49a5e51a44d77a98 · report
layer_norm wujunde/medsegdiff/guided_diffusion/nn.py official repository unverified MIT (permissive) · 359793d02b65c82c · report
model_wrapper wujunde/medsegdiff/guided_diffusion/dpm_solver.py official repository unverified MIT (permissive) · b735ca6a5cf3d75c · report
mpi_weighted_mean wujunde/medsegdiff/guided_diffusion/logger.py official repository unverified MIT (permissive) · e515a67f7f32e76d · report
profile wujunde/medsegdiff/guided_diffusion/logger.py official repository unverified MIT (permissive) · 17e660f0e95b0309 · report
standardize wujunde/medsegdiff/guided_diffusion/gaussian_diffusion.py official repository unverified MIT (permissive) · f7b9e18794a10023 · report

Tasks

Image GenerationImage SegmentationMedical Image AnalysisMedical Image SegmentationSegmentationSemantic Segmentation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Medical Image Segmentation Synapse multi-organ CT MedSegDiff-v2 Avg DSC 89.50 #3 of 23 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDiffusionDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformerVision Transformer

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