Cross-Timestep: 3D Diffusion Model with Trans-temporal Memory LSTM and Adaptive Priori Decoding Strategy for Medical Segmentation

Shangqian Wu, Siyuan Shen, Yahan Li, Zhijian Huang, Ziyu Fan, Yuanpeng Zhang, Yi Wang, Lei DengICLR 2026

TL;DR

Diffusion models show massive promise for medical image segmentation but often fail on 3D volumetric data due to "initial-stage collapse" and a lack of memory between denoising steps. This paper introduces Cross-Timestep, a novel 3D diffusion framework that uses an Adaptive Priori Decoding Strategy (APDS) to guide early high-noise steps, and a trans-temporal memory LSTM (tLSTM) to carry state across the denoising process. The result is a highly robust, state-of-the-art 3D segmentation model that excels on heterogeneous, multi-center datasets.

The Challenge of 3D Medical Diffusion

While Denoising Diffusion Probabilistic Models (DDPMs) are highly robust to style variations in 2D medical image segmentation, applying them to 3D volumes introduces two major roadblocks:

  1. Initial-Stage Collapse: When the reverse diffusion process starts from pure Gaussian noise (high timesteps, e.g., $t=1000$), 3D models often crash or produce completely incoherent outputs. The manifold of 3D volumes is vastly larger than 2D, and the structural cues at extreme noise levels are too weak for the model to find a viable starting trajectory.
  2. Isolated Timestep Iterations: Standard diffusion models treat each denoising step as an independent prediction. They lack a mechanism to "remember" the structural evidence they uncovered in the previous step, forcing the model to myopically rediscover features rather than progressively refining them.
Comparison of standard diffusion sampling vs. the proposed APDS method. Standard diffusion collapses at t=1000, while APDS successfully guides the model to a clean segmentation.

The Cross-Timestep Framework

To solve these issues, the authors propose the Cross-Timestep framework, built on two core innovations:

Adaptive Priori Decoding Strategy (APDS)

To prevent initial-stage collapse, APDS acts as a set of "training wheels." It uses a Priori Decoder on the clean conditional image (the medical scan) to generate a coarse preliminary segmentation mask. This mask is injected into the main diffusion branch using a time-decaying weight. At high noise levels ($t \approx 1000$), the prior strongly guides the model. As the noise decreases and the model's own predictions become reliable, the prior's influence exponentially fades out.

Trans-temporal Memory LSTM (tLSTM)

To fix the isolated iteration problem, the authors embed recurrent neural network logic directly into the denoiser. By maintaining a 3D hidden state and cell state across timesteps, the model accumulates evidence.

Architecture of the Conv-tLSTM module, which embeds recurrent memory directly into the denoising process to carry spatial features across timesteps.

They introduce several modular variants to handle this temporal memory:

  • Conv-tLSTM: Uses 3D convolutions within the LSTM gates to preserve spatial correlations.
  • Linear-tGRU: A lightweight, computationally efficient alternative.
  • SC-tLSTM: A stateful spatial-channel attention mechanism.
  • FFT-tLSTM: Transforms features into the frequency domain, where noise and structural components are easier to separate over time.

Key Insights and Performance

The model was evaluated on two highly heterogeneous, multi-center 3D medical datasets: LNCTVSeg (440 CT images for lymph node clinical target volume) and OAseg (160 MRI scans for Gross Tumor Volume).

State-of-the-Art Results: Cross-Timestep outperformed strong baselines like SwinUNETR, nnFormer, 3DUXNET, and Diff-UNet. On LNCTVSeg, it achieved an 83.7% Dice score and a remarkably low HD95 of 2.44 (compared to Diff-UNet's 81.7% Dice and 3.91 HD95). On OAseg, it reached 72.8% Dice and 6.24 HD95.

Why it works: * Priors prevent collapse without bottlenecking quality: Tracking performance across timesteps reveals that at $t=1000$, the model relies entirely on the APDS prior. However, by the final steps, the diffusion model's accuracy rapidly surpasses the prior. APDS successfully provides a scaffold during unstable early stages without constraining the model's ability to learn fine details later. * Denoising is a sequential trajectory: Visualizing the tLSTM feature heatmaps showed that at high noise, the model's attention is diffuse. As denoising progresses, the temporal memory allows the attention to progressively sharpen and lock onto the target structure. * Efficiency: The model strikes a strong balance. It trains much faster than large transformers (33.4 hours vs. nnFormer's 80.4 hours) and maintains a moderate GPU memory footprint (~15 GB) with competitive inference speeds (0.17s/step).

Limitations and Future Work

Like all diffusion models, Cross-Timestep faces a strict trade-off between computational cost and output quality. Reducing the number of diffusion steps from 1000 to 300 drops the Dice score from 83.7% to 79.3%, meaning high-quality results still require a relatively slow, multi-step sampling process.

However, the proposed recurrent units (Conv-tLSTM, Linear-tGRU, etc.) are highly modular. The authors suggest these could serve as foundational, plug-and-play attention modules to enhance other diffusion-based generative or segmentation architectures beyond this specific framework.

Summary updated

BibTeX
@inproceedings{wu2026cross,
  author = {Shangqian Wu and Siyuan Shen and Yahan Li and Zhijian Huang and Ziyu Fan and Yuanpeng Zhang and YI WANG and Lei Deng},
  title = {{Cross-Timestep: 3D Diffusion Model with Trans-temporal Memory LSTM and Adaptive Priori Decoding Strategy for Medical Segmentation}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=TE3asYO8PQ},
}
Figure