---
title: 'SLaM-DiMM: Diffusion MRI Modality Synthesis'
url: https://www.emergentmind.com/topics/slam-dimm
type: topic
---

# SLaM-DiMM: Diffusion MRI Modality Synthesis

Searching arXiv for the target paper and a few directly related methods mentioned in the source data.
SLaM-DiMM, short for **Shared Latent Modeling for Diffusion-Based Missing Modality Synthesis in MRI**, is a missing-modality synthesis framework for multi-modal brain MRI that targets the common clinical setting in which one or more of the standard sequences are unavailable. In the formulation presented for brain tumor imaging, the four modalities are T1-weighted (T1w), contrast-enhanced T1-weighted (T1ce), T2-weighted (T2w), and FLAIR, and the objective is to synthesize any missing target modality from the remaining available modalities while preserving anatomical plausibility, structural faithfulness, and downstream utility for tasks such as segmentation and anomaly detection. The method combines a shared latent, modality-invariant representation with a latent diffusion bottleneck and a second-stage 3D coherence refinement network, yielding an explicitly two-stage pipeline designed to balance slice-wise fidelity with volumetric consistency [2509.16019].

## 1. Clinical problem and methodological position

In multi-modal brain MRI, a subject is typically imaged with four sequences—T1w, T1ce, T2w, and FLAIR—and each modality emphasizes different tissue characteristics and tumor components, including edema, non-enhancing core, and enhancing tumor [2509.16019]. Modern deep learning systems for tumor segmentation, anomaly detection, and radiomics are explicitly designed to exploit this multi-contrast information, but their performance deteriorates when one or more sequences are missing. The reported causes include protocol variation, time constraints, contrast agent contraindications, and corrupted acquisitions.

Within this setting, the missing modality synthesis problem is defined as follows: given a subset of modalities $\{X_m: m\in \mathcal{M}_{\text{available}}\}$, synthesize the missing modality $X_{m_{\text{tgt}}}$ such that it is anatomically plausible and structurally faithful to the subject anatomy and pathology, and useful for downstream tasks such as segmentation with standard BraTS-style pipelines [2509.16019]. This framing is significant because it places missing-modality generation not merely in the domain of image translation, but in the stricter regime of clinically relevant reconstruction under cross-modal constraints.

The paper situates SLaM-DiMM against several prior methodological families. GAN-based approaches such as pGAN, cGAN, HF-GAN, and autoencoder-based collaborative attention GAN are described as strong at capturing realistic texture and local appearance, but limited by training instability, mode collapse, difficulty in modeling multi-modal conditional distributions, and a tendency toward modality-specific rather than unified any-to-any synthesis. Transformer-based or hybrid CNN/ViT methods such as ResViT and SwinUNETR are characterized as providing better long-range context but remaining deterministic regression-like mappings with limited ability to model uncertainty and variability in missing-modality synthesis. Diffusion models in pixel or wavelet space, including DDPM, WDM, and cWDM, are noted to provide high-fidelity generation but to be computationally expensive in full 3D, and frequently organized around modality-pair conditioning rather than shared latent modeling. Regression, autoencoder, and VAE-style methods are described as typically minimizing $\ell_1/\ell_2$ losses and as tending toward underfitting of high-frequency detail, blurry reconstructions, and limited stochastic modeling [2509.16019].

Against this background, SLaM-DiMM is presented as addressing three specific gaps: a unified any-to-any cross-modal synthesis framework leveraging all four brain MRI modalities; a shared latent, modality-invariant representation refined by a latent diffusion bottleneck to capture high-level anatomy and pathology across modalities; and a two-stage design that combines slice-wise 2D intensity synthesis with a dedicated 3D coherence enhancement network to enforce volumetric consistency [2509.16019].

## 2. Pipeline design and system decomposition

The framework consists of two main components: **MMG (Missing Modality Generation)** and **CEn (Coherence Enhancement Network)** [2509.16019]. MMG performs slice-wise synthesis using a shared encoder, a latent diffusion bottleneck, and modality-specific decoders, while CEn operates on the reconstructed 3D volume to reduce inter-slice artifacts and enforce 3D anatomical coherence.

The MMG component begins with a shared encoder $E$ that maps multi-modal 2D axial slices into a latent representation. A latent diffusion bottleneck $U$ refines this shared latent, and four modality-specific decoders $D_m$ reconstruct each modality from the refined latent. This first stage is explicitly intended to provide high-fidelity slice-wise synthesis of any target modality from the available modalities. The second stage, CEn, is a 3D UNETR-based model that acts on the whole reconstructed 3D volume and refines MMG outputs to reduce inter-slice artifacts and enforce 3D anatomical coherence [2509.16019].

The resulting pipeline is therefore sequential: first synthesize missing modality slices with MMG, then enhance 3D coherence with CEn. This decomposition reflects a computational compromise. The paper directly states that diffusion models are computationally expensive in full 3D, while 2D synthesis alone has a known failure mode in volumetric consistency. SLaM-DiMM addresses this by separating intensity synthesis from volumetric refinement. A plausible implication is that the architecture is designed to preserve the efficiency of 2D modeling without accepting the coronal and sagittal artifacts that typically emerge when independently generated axial slices are stacked into a volume.

The overall design is also structured around a single shared latent space rather than modality-pair-specific generators. This is central to the paper’s claim of any-to-any synthesis: during inference, given any subset of modalities with the missing modality channel zeroed, the corresponding target modality can be synthesized via its decoder [2509.16019].

## 3. Shared latent modeling and latent diffusion bottleneck

A 3D brain MRI volume in modality $m$ is defined as
$$
X_m \in \mathbb{R}^{H \times W \times D}, \quad m \in \{\text{T1w}, \text{T1ce}, \text{Flair}, \text{T2w}\},
$$
with height $H$, width $W$, and depth $D$. For training, the method operates on 2D axial slices
$$
X_m^{f} \in \mathbb{R}^{H \times W}, \quad f \in \{1,2,\dots,D\},
$$
and constructs a 4-channel input slice
$$
\mathbf{x} \in \mathbb{R}^{H \times W \times 4},
$$
where each channel corresponds to one modality [2509.16019]. To simulate missing-modality scenarios during training, one channel is randomly zero-masked in $\mathbf{x}$, forcing the network to learn a shared representation that can infer the masked modality from the remaining three.

The shared encoder maps the input slice to a latent representation
$$
\mathbf{z} = E(\mathbf{x}) \in \mathbb{R}^{h \times w \times d}.
$$
Architecturally, $E$ is modeled after the downsampling path of the OpenAI DDPM U-Net, with 3 encoder blocks and 5 residual sub-blocks in each block [2509.16019]. No modality-specific filters are used in the encoder; all four channels are processed jointly, producing what the paper calls a truly modality-agnostic shared latent space. Conceptually,
$$
\mathbf{z} = f_{\text{enc}}(X_{\text{src}}),
$$
where $X_{\text{src}}$ denotes the 4-channel slice with one modality potentially zeroed out. The latent $\mathbf{z}$ is described as encoding shared anatomy and pathology information independent of modality labels.

The latent diffusion module $U$ operates directly in this feature space rather than in pixel space. Given $\mathbf{z}$, it produces a refined latent
$$
\tilde{\mathbf{z}} = U(\mathbf{z}),
$$
where $U(\cdot)$ is a DDPM-style U-Net working in the latent feature space [2509.16019]. The paper distinguishes this choice from conventional latent diffusion models that first compress pixel images via a VAE and then apply diffusion in that latent space; here, the encoder output itself is treated as the diffusion state. This suggests an attempt to combine stochastic refinement with tighter alignment to a representation already optimized for cross-modal anatomy and pathology.

For each modality $m$, a decoder reconstructs image space from the refined latent:
$$
\widehat{\mathbf{x}}_{m} = D_m(\tilde{\mathbf{z}}) \in \mathbb{R}^{H \times W}.
$$
Each decoder follows the upsampling path of the OpenAI U-Net, but with a crucial constraint: there are no skip connections from encoder to decoder [2509.16019]. The stated purpose is to force reconstruction to rely solely on the refined latent $\tilde{\mathbf{z}}$, thereby avoiding leakage of modality-specific information that might bypass the shared representation. The four decoders are structurally identical but trained separately to specialize in each modality’s contrast properties.

The shared latent modeling is summarized as
$$
\mathbf{z} = E(\mathbf{x}); \quad \tilde{\mathbf{z}} = U(\mathbf{z}); \quad \widehat{\mathbf{x}}_{m} = D_m(\tilde{\mathbf{z}}),
$$
for $m \in \{\text{T1w}, \text{T1ce}, \text{Flair}, \text{T2w}\}$ [2509.16019].

## 4. Diffusion formulation, optimization objectives, and regularization

The forward diffusion process begins from $\tilde{\mathbf{z}}_0 = \mathbf{z}$ and adds Gaussian noise over timesteps $t=1,\dots,T$:
$$
q(\tilde{\mathbf{z}}_t \mid \tilde{\mathbf{z}}_{t-1}) = \mathcal{N}\left(\tilde{\mathbf{z}}_t; \sqrt{1 - \beta_t}\,\tilde{\mathbf{z}}_{t-1}, \beta_t \mathbf{I}\right),
$$
with variance schedule $\beta_t$. The equivalent closed form is
$$
q(\tilde{\mathbf{z}}_t \mid \tilde{\mathbf{z}}_0) = \mathcal{N}\left(\tilde{\mathbf{z}}_t; \sqrt{\bar{\alpha}_t}\,\tilde{\mathbf{z}}_0, (1 - \bar{\alpha}_t)\mathbf{I}\right),
$$
where
$$
\alpha_t = 1 - \beta_t, \quad \bar{\alpha}_t = \prod_{s=1}^{t} \alpha_s.
$$
After $T$ steps, $\tilde{\mathbf{z}}_T \approx \mathcal{N}(0, \mathbf{I})$ [2509.16019]. A linear noise schedule is used in which $\beta_t$ increases from $1\times10^{-4}$ to $2\times10^{-2}$, with $T=1000$ timesteps during training. During inference, DDPM sampling with a fixed intermediate timestep $t_{\text{test}} = T/2 = 500$ is used, described as a form of shortened sampling or partial denoising.

The reverse process is defined as
$$
p_\theta(\tilde{\mathbf{z}}_{t-1} \mid \tilde{\mathbf{z}}_t) = \mathcal{N}\left(\tilde{\mathbf{z}}_{t-1}; \mu_\theta(\tilde{\mathbf{z}}_t, t), \Sigma_\theta(\tilde{\mathbf{z}}_t, t)\right),
$$
where a DDPM U-Net parameterized by $\theta$ predicts the mean and covariance, or equivalently the noise $\epsilon_\theta$, conditioned on $t$ [2509.16019]. Although the paper does not explicitly write the DDPM training objective, it states that the method follows the standard noise-prediction formulation:
$$
L_{\text{DM}} = \mathbb{E}_{\mathbf{z}, \epsilon, t}\left[\left\|\epsilon - \epsilon_\theta(\tilde{\mathbf{z}}_t, t)\right\|_2^2\right],
$$
where $\epsilon\sim\mathcal{N}(0,\mathbf{I})$ and
$$
\tilde{\mathbf{z}}_t = \sqrt{\bar{\alpha}_t}\,\mathbf{z} + \sqrt{1-\bar{\alpha}_t}\,\epsilon.
$$

Beyond the diffusion objective, the MMG stage uses a spatially weighted reconstruction loss and an SSIM-based structural loss. The reconstruction term is
$$
\mathcal{L}_{\text{rec}} =
\sum_{m=1}^4 \left\| (\widehat{\mathbf{x}}_{m} - \mathbf{x}_{m}) \cdot (1 + \lambda_1 \cdot \mathbf{S}) \right\|_2^2
+ \lambda_2 \cdot \left\| \tilde{\mathbf{z}} - \mathbf{z} \right\|_2^2,
$$
where $\mathbf{S} \in \{0,1\}^{H \times W}$ is the BraTS segmentation mask [2509.16019]. Tumor voxels receive weight $1+\lambda_1$, background voxels weight $1$, and the experiments use $\lambda_1 = 4$, thereby emphasizing reconstruction fidelity in tumor regions. The second term is a latent-space consistency regularizer with $\lambda_2 = 2$, intended to encourage diffusion to enhance semantic richness without drifting too far from the encoder representation.

The SSIM term is
$$
\mathcal{L}_{\text{SSIM}} = \sum_{m=1}^4 \left( 1 - \text{SSIM}\left(\widehat{\mathbf{x}}_{m}, \mathbf{x}_{m}\right) \right),
$$
and the complete MMG loss is
$$
\mathcal{L}_{\text{MMG}} = \mathcal{L}_{\text{rec}} + \gamma_1 \cdot \mathcal{L}_{\text{SSIM}},
$$
with $\gamma_1 = 0.5$ selected by hyperparameter search to maximize SSIM [2509.16019]. The loss is applied across all four modalities simultaneously even though one modality is masked in the input. The paper emphasizes the reconstruction and SSIM terms as the main driver of cross-modality fidelity.

## 5. Coherence Enhancement Network and volumetric consistency

The CEn stage is motivated by the fact that MMG operates slice-wise in 2D. When reconstructed slices are stacked into a 3D volume, the result can exhibit inter-slice intensity fluctuations, structural discontinuities across depth, and vertical blurry artifacts that are particularly visible in coronal and sagittal views [2509.16019]. These artifacts degrade 3D segmentation performance and are visually apparent outside the axial plane.

CEn is a 3D volumetric network based on UNETR. In the formulation provided, UNETR combines transformer-based self-attention in the encoder to model long-range spatial dependencies with a 3D U-Net-like decoder to reconstruct volumetric outputs [2509.16019]. The input to CEn is, for each modality $m$, the MMG reconstructed volume
$$
\widehat{\mathbf{V}}_m \in \mathbb{R}^{H\times W\times D},
$$
obtained by stacking synthesized slices, and the output is a refined volume $\widehat{\mathbf{V}}_m^{\text{CEn}}$ with improved inter-slice consistency.

To manage memory on large 3D volumes, each volume is split into overlapping sub-volumes of size
$$
H \times W \times \frac{D}{s},
$$
with subvolume factor $s = 10$, which for typical $D$ yields 16-slice subvolumes [2509.16019]. A sliding window with stride $\frac{D}{2s} = 8$ is used along depth, so adjacent subvolumes overlap. CEn is trained on these subvolumes and the refined outputs are reassembled after processing.

The CEn objective is
$$
\mathcal{L}_{\text{CEn}} = \mathcal{L}^{\text{3D}}_{\text{rec}} + \gamma_2 \cdot \mathcal{L}^{\text{3D}}_{\text{SSIM}},
$$
where $\mathcal{L}^{\text{3D}}_{\text{rec}}$ is a 3D voxel-wise reconstruction loss (L2 / MSE) between refined and ground-truth volumes, $\mathcal{L}^{\text{3D}}_{\text{SSIM}}$ enforces 3D structural similarity, and $\gamma_2 = 0.1$ was selected empirically [2509.16019]. The learned mapping is written as
$$
\widehat{\mathbf{V}}_{m}^{\text{CEn}} = f_{\text{CEn}}(\widehat{\mathbf{V}}_m).
$$

This second stage is central to the framework’s claim of structural coherence across the depth of the volume. The paper describes it as a dedicated mechanism to enforce volumetric consistency, which is identified as a key failure mode of slice-wise synthesis [2509.16019].

## 6. Data regime, training configuration, and empirical results

The reported experiments use the BraSyn-2025 / BraTS-Lighthouse-2025 dataset derived from multiple BraTS collections, specifically GLI, METS, and MENINGIOMA [2509.16019]. The training split contains 1,251 glioma patient volumes and 238 metastasis patient volumes; the validation split contains 219 glioma and 31 metastasis volumes. Each volume includes four MRI modalities—T1w, T2w, FLAIR, and T1ce—plus segmentation masks for WT, TC, and ET.

Preprocessing includes intensity normalization via percentile clipping, with values clipped to the $[0.5\text{th}, 99.5\text{th}]$ percentiles to mitigate outliers. The top and bottom 15 axial slices are removed to discard non-brain or low-content slices, and the remaining axial slices are saved individually for MMG training [2509.16019]. During MMG training, all four modalities are available but one modality channel is randomly masked to zero for each training sample. At validation and test time, one modality is randomly omitted per sample and the model must synthesize it from the remaining modalities.

The MMG component is implemented in PyTorch and trained on an NVIDIA RTX A6000 with 48 GB memory. The encoder, diffusion bottleneck, and decoders each use 3 blocks with 5 residual sub-blocks per block; the decoders have no skip connections. Optimization uses Adam with learning rate $10^{-4}$, batch size 4 for 2D slices, and up to 1600 epochs, each with 500 randomly selected image slices [2509.16019]. The diffusion process uses $T=1000$ timesteps, a linear $\beta_t$ schedule from $1\times10^{-4}$ to $2\times10^{-2}$, and inference with $t_{\text{test}}=500$. The loss weights are $\lambda_1=4$, $\lambda_2=2$, and $\gamma_1$ is tuned over $\{0.1, 0.25, 0.5, 0.75\}$, with best SSIM at $\gamma_1=0.5$. For CEn, the subvolume factor is $s=10$, stride is 8 slices, training runs up to 250 epochs with batch size 2 for 3D volumes, each epoch samples 100 randomly selected 3D volumes, and $\gamma_2$ is tuned over $\{0.1, 0.25, 0.5, 0.75\}$ with best SSIM at $\gamma_2=0.1$.

Quantitative synthesis quality is reported using SSIM over entire 3D volumes for each missing-modality scenario and pathology type. For glioma, selected results are: missing T1w, MMG 94.96 and MMG+CEn 94.81; missing T2w, 93.82 to 93.86; missing FLAIR, 91.75 to 91.94; missing T1ce, 92.44 to 92.26 [2509.16019]. For metastasis, the corresponding values are: missing T1w, 91.61 to 91.97; missing T2w, 89.61 to 90.39; missing FLAIR, 89.41 to 90.29; missing T1ce, 89.67 to 89.98. The paper states that MMG alone achieves high SSIM above 90% across modalities, particularly in glioma, and that CEn yields small but consistent improvements for metastasis and for some modalities, while slight SSIM reductions in some glioma cases indicate a trade-off between local per-slice fidelity and global 3D coherence.

Downstream segmentation is evaluated using the BraTS orchestrator model to generate pseudo-labels on synthesized data. For glioma, Tumor Core (TC) Dice and HD95 are 0.7601 and 3.6651 for MMG versus 0.7301 and 4.0226 for MMG+CEn; Whole Tumor (WT) is 0.8993 and 2.1149 versus 0.8876 and 2.4600; Enhancing Tumor (ET) is 0.7873 and 3.3372 versus 0.7702 and 3.6991 [2509.16019]. For metastasis, TC is 0.5571 and 11.3043 versus 0.5046 and 11.9173; WT is 0.8211 and 10.7675 versus 0.8155 and 5.1284; ET is 0.7912 and 13.6090 versus 0.7836 and 7.9839. The interpretation provided is that MMG yields strong segmentation performance, especially for glioma WT and ET, while for metastasis CEn substantially reduces HD95 for WT and ET, indicating better boundary localization and volumetric consistency even when Dice changes are modest.

Qualitatively, the figures are described as showing low residuals in original-minus-MMG maps, with fine textures, tumor boundaries, and tissue contrast preserved. Sagittal and coronal views reveal vertical blurry lines in MMG outputs that are reduced after CEn refinement. The net effect is summarized as MMG excelling at per-slice accuracy and high SSIM, whereas MMG+CEn sacrifices a small amount of local SSIM in exchange for improved global 3D anatomical coherence [2509.16019].

## 7. Applications, limitations, and prospective extensions

The paper identifies several potential uses in clinical and research workflows. One is **sequence completion**, in which a missing sequence such as FLAIR can be synthesized from the available three modalities so that standard BraTS-style segmentation models remain usable [2509.16019]. Another is **robust training**, where downstream models are trained assuming four modalities and SLaM-DiMM is used at deployment to fill missing modalities and mitigate performance degradation in heterogeneous clinical datasets. The paper also notes **radiomics and quantitative analysis** as a possible application, while explicitly stating that validation is still needed for quantitative consistency. A further use case is **tumor monitoring and planning**, for which coherent 3D synthesis is especially relevant because radiologists and radiotherapy workflows depend on consistent volumetric anatomy.

The framework is reported only on BraSyn-2025 brain tumor data, but the shared latent modeling design and diffusion bottleneck are described as modality-agnostic and potentially adaptable to other organs such as prostate or liver with multi-sequence MRI, and even to multi-modal imaging beyond MRI, including CT–MRI synthesis, with appropriate pretraining of the encoder and decoders [2509.16019]. This suggests that the core architectural idea is intended as a general cross-modal synthesis template rather than a brain-tumor-specific generator, although such broader applicability is presented as a prospective extension rather than an experimentally established result.

The limitations discussed or implied are structurally important. Slice-wise MMG requires CEn to correct volumetric artifacts; without CEn, non-axial views can be inconsistent. Performance is better for glioma than for metastasis, reflecting dataset imbalance and more complex metastasis anatomy. The paper also notes that synthesized images, while high-quality, may still differ subtly from true physics-based modalities, so caution is needed for tasks sensitive to absolute signal intensity [2509.16019]. These caveats are directly relevant to translational use, because they distinguish visually plausible sequence completion from full physical equivalence to acquired scans.

The main contributions are summarized as a shared latent modeling framework jointly trained across T1w, T1ce, T2w, and FLAIR; a latent diffusion bottleneck operating in a learned shared feature space rather than in pixel space; task-aware losses with tumor-region weighting and SSIM terms; a two-stage MMG plus CEn pipeline combining efficient 2D synthesis with 3D volumetric refinement; and a comprehensive evaluation on BraSyn-2025 with high SSIM and segmentation analysis on synthesized data [2509.16019]. Proposed or implied future directions include extending the framework beyond brain MRI, integrating synthesis and segmentation into a joint model, introducing explicit modality tokens or cross-attention, optimizing inference through fewer diffusion steps or distillation, leveraging diffusion for uncertainty quantification, and evaluating robustness and domain adaptation across multi-center and multi-scanner data.

Taken together, SLaM-DiMM occupies a specific position within the missing-modality literature: it is a unified any-to-any synthesis system that treats modality inference as a shared latent reconstruction problem, uses diffusion to refine modality-invariant features, and then explicitly repairs the volumetric incoherence introduced by slice-wise generation. Its empirical profile indicates that the principal tension is not between realism and blur alone, but between local slice fidelity and global 3D consistency, a trade-off the architecture makes explicit through its two-stage design [2509.16019].

Source: https://www.emergentmind.com/topics/slam-dimm