Any2Any 3D Diffusion Models with Knowledge Transfer: A Radiotherapy Planning Study

Yuhan Wang, Zihan Li, Han Liu, Simon Arberet, Martin Kraus, Yuyin Zhou, Florin-Cristian Ghesu, Dorin Comaniciu, Ali Kamen, Riqiang Gao

TL;DR

DiffKT3D is a novel 3D diffusion framework that adapts large-scale pretrained video and image models to the complex task of radiotherapy dose prediction. By combining a flexible "Any2Any" multimodal conditioning scheme with reinforcement learning guided by clinical scorecards, it significantly outperforms traditional medical regression models and aligns generations directly with institutional clinical preferences.

What Problem Does This Paper Address?

In radiotherapy (RT) planning, accurately predicting the 3D radiation dose distribution within a patient's body is critical to maximizing tumor destruction while sparing healthy organs at risk (OARs). Traditionally, AI-driven dose prediction (DP) relies on bespoke deep learning models trained from scratch on highly specialized, institutional datasets.

However, these models face two major hurdles:

  1. Data Scarcity & Generalization: Medical datasets are small, causing models to struggle when generalizing across different scanners, clinics, or anatomical variations.
  2. Misaligned Objectives: Standard models minimize voxel-wise errors (like MAE or MSE). However, a mathematically low error does not necessarily mean a plan is clinically acceptable, as it fails to capture the nuanced trade-offs encoded in institutional clinical guidelines.

DiffKT3D tackles these issues by transferring the rich structural and geometric priors learned by large-scale foundation models to the medical domain, and introducing a mechanism to explicitly enforce clinical guidelines during training.

Figure 1. Illustration of the proposed DiffKT3D. We first transfer priors from diffusion models pretrained on large-scale public video or CT data, despite a substantial domain gap to radiotherapy dose prediction. These backbones are then adapted to heterogeneous RT modalities with relatively limited data, followed by RL post- training driven by guideline-derived clinical Scorecards to better align predictions with institutional planning preferences.

Methods

The authors introduce DiffKT3D, an Any2Any 3D Diffusion Transformer (DiT) architecture built upon three core pillars:

  1. Generative Knowledge Transfer: Instead of training from scratch, the framework repurposes advanced 3D diffusion models pretrained on massive public video datasets (Wan 2.1) or synthetic medical data (MAISI).
  2. Any2Any DiT Framework: Radiotherapy planning involves heterogeneous inputs (CT scans, PTV target masks, OAR masks, beam configurations). DiffKT3D maps all inputs into a shared VAE latent space. Rather than using computationally heavy cross-attention mechanisms, it uses a unified transformer backbone where any modality can act as either a condition or a generation target. It achieves this using:
  3. Role Embeddings: Binary tags distinguishing target tokens from condition tokens.
  4. Slot-aware 4D Rotary Position Embeddings (RoPE): An extension of 3D positional embeddings that adds a "modality slot" axis, allowing the model to track spatial coordinates and modality identities simultaneously.
  5. ScardNFT (Scorecard-aligned RL Post-training): To bridge the gap between voxel accuracy and clinical utility, the authors implement reinforcement learning post-training. They transform standard clinical "Scorecards" (which evaluate metrics like mean dose or volume-at-dose thresholds) into a differentiable reward function to fine-tune the diffusion policy.
Figure 2. Training mechanism for DiffKT3D. The multimodal inputs first pass through the VAE encoder to obtain latent features. With the Any2Any gating mechanism, each modality is randomly assigned as either a condition or a target. Conditional modalities are independently encoded into patch tokens, while target modalities are combined with latent noise xt. Each token carries a role embedding that distinguishes targets from conditions, while modality identity is conveyed by modality-specific patch heads and slot-aware 4D RoPE. The DiT jointly attends to the clean condition tokens and the noised target tokens, predicting the noise parameterization (vθ) for the selected target modality. The VAE and DiT are pretrained on videos, and only the DiT blocks are fine-tuned. During post-training, we convert a clinically informed Scorecard into an RL reward, improving clinical preference alignment while maintaining voxel-level fidelity.

Datasets

The model was trained and evaluated on two primary datasets:

  • GDP-HMM Grand Challenge Dataset: Consists of 3,732 plans (2,878 training, 356 validation, 498 test) for head-and-neck (HaN) and lung cancer sites.
  • REQUITE Prostate Cohort: Consists of 5,356 re-optimized prostate planning cases (5,100 training, 256 test) used to evaluate cross-site transferability and model robustness.

Key Insights and Ideas

  • Video Models Understand Anatomy: A key "aha moment" is that models pretrained on billions of natural video frames contain powerful geometric and structural priors that transfer remarkably well to 3D medical volumes, drastically accelerating training convergence compared to training from scratch.
  • Denoising $\neq$ Clinical Utility: Standard diffusion objectives optimize for image reconstruction. By introducing the ScardNFT RL step, the authors demonstrate that you can reshape the model's preference behavior to favor clinically superior dose distributions without degrading voxel-level fidelity.
  • Unified Token Space Flexibility: By avoiding rigid cross-attention and treating all modalities as tokens in a shared space, the model inherently supports single-modality prediction and cross-modal imputation (e.g., predicting masks or beam plates from doses).
Figure 3. MAE vs. training epochs / inference steps. The single figure contains three subplots: (left) pretrain vs. from-scratch across epochs, (middle) model-transfer finetuning curve, and (right) test- time scaling (single-sample vs. best-of-10).

Key Results

  • State-of-the-Art Performance: On the competitive GDP-HMM challenge dataset, DiffKT3D reduced voxel-wise Mean Absolute Error (MAE) from 2.07 Gy (the top existing challenge solution) to 1.93 Gy, while simultaneously boosting clinical scorecard metrics and image quality (PSNR, SSIM, LPIPS).
  • REQUITE Prostate Benchmark: When transferred to prostate data, DiffKT3D achieved an MAE of 1.01 Gy, vastly outperforming top regression baselines which scored between 1.37 Gy and 1.65 Gy. Applying a "best-of-10" stochastic sampling strategy pushed the MAE down further to 0.97 Gy.
  • Clinical Alignment: Radar plot evaluations showed that the RL-refined model (Ours+ScardNFT) achieved superior target conformity and better sparing of critical structures like the spinal cord and brainstem compared to standard regression baselines.
Figure 4. Per-structure scorecard value comparison of head-and- neck plans. The plot contrasts reference, the challenge Top- 1 baseline, our diffusion model, and our RL-enhanced variant (Ours+ScardNFT), showing how reinforcement learning improves alignment with institutional planning objectives.

Limitations and Future Work

Despite its strong performance, DiffKT3D is computationally expensive because it relies on a large 1.3-billion parameter transformer backbone with full 3D attention. This makes inference slower than traditional single-pass regression networks.

The authors note that future work will focus on efficiency-seeking methods such as sparse attention, token pruning, and knowledge distillation to create lighter backbones. They also plan to explore integrating dose-specific loss functions (like DVH-based terms) directly into the primary training loop and extending the Any2Any framework to automate other parts of the radiotherapy pipeline, such as leaf sequencing.

Summary updated

BibTeX
@inproceedings{wang2026any,
  author = {Yuhan Wang and Zihan Li and Han Liu and Simon Arberet and Martin Kraus and Yuyin Zhou and Florin-Cristian Ghesu and Dorin Comaniciu and Ali Kamen and Riqiang Gao},
  title = {{Any2Any 3D Diffusion Models with Knowledge Transfer: A Radiotherapy Planning Study}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=yqWILo7Ihh},
}
Figure