FluenceFormer: Transformer-Driven Multi-Beam Fluence Map Regression for Radiotherapy Planning

Ujunwa Mgboh, Rafi Ibn Sultan, Joshua Kim, Kundan S Thind, Dongxiao Zhu

TL;DR

This paper introduces FluenceFormer, a novel two-stage transformer-based framework for automating radiotherapy planning by directly predicting beam fluence maps. By first estimating a dose distribution and then conditioning it on beam geometry, FluenceFormer overcomes the inherent ambiguity in direct regression and achieves more physically realistic and accurate treatment plans, significantly reducing energy errors and improving structural fidelity.

What Problem Does This Paper Address?

Radiotherapy planning, particularly Intensity-Modulated Radiation Therapy (IMRT), aims to deliver a precise radiation dose to a tumor while sparing surrounding healthy tissues. This is achieved by modulating the intensity of multiple radiation beams using complex spatial patterns called fluence maps. Predicting these fluence maps directly from patient anatomy is a challenging "ill-posed inverse problem" because a single dose distribution can be achieved by many different combinations of beam parameters. Traditional convolutional neural networks (CNNs) struggle with this due to their limited ability to capture long-range dependencies in the anatomical data, often leading to plans that are structurally inconsistent or physically unrealizable. Existing deep learning approaches often focus on dose prediction or segmentation, requiring subsequent complex optimization steps. This paper tackles the problem of directly and accurately predicting these crucial fluence maps in an automated fashion.

Methods

FluenceFormer employs a novel two-stage transformer-based architecture:

  • Stage 1: Dose Regression: This stage takes anatomical inputs (CT scans and contours) and uses a transformer backbone (like UNETR, Swin UNETR, nnFormer, or MedFormer) to predict a slice-by-slice dose distribution. This predicted dose acts as a "structural prior," guiding the subsequent stage. The backbones are adapted for regression by replacing segmentation heads with pixel-wise regression heads.
  • Stage 2: Geometry-Conditioned Fluence Regression: This stage takes the predicted dose from Stage 1 and explicitly conditions it on the beam's geometric information (gantry angle, encoded as sine and cosine maps). This conditioning is crucial for disambiguating beam directionality and resolving the inherent ambiguity in fluence prediction. The output is a physically calibrated, beam-specific fluence map.

A key innovation is the Fluence-Aware Regression (FAR) loss function. This physics-informed loss comprises four components:

  • Pixel Fidelity (MSE): Ensures accurate intensity agreement at each pixel.
  • Gradient Smoothness: Penalizes sharp intensity changes to ensure deliverable transitions by the Multi-Leaf Collimator (MLC).
  • Correlation Consistency: Maximizes the Pearson correlation coefficient to ensure structural alignment of predicted and ground-truth fluence patterns.
  • Energy Conservation: Enforces that the total predicted photon flux (scaled by pixel area) matches the prescription, anchoring the prediction to physical output constraints (Monitor Units).

The framework is designed to be backbone-agnostic, meaning it can leverage various transformer architectures.

Datasets

The study utilized an anonymized dataset of ninety-nine (n=99) prostate cancer patients who underwent IMRT. Each case included:

  • Planning CT scans
  • Anatomical contours
  • Clinical dose distributions
  • Nine beam-specific fluence maps

Data preprocessing involved resampling to a 128x128 in-plane grid, clipping CT intensities, and normalizing to [0,1]. Crucially, ground truth dose and fluence maps were not min-max normalized per sample but scaled globally to preserve relative physical intensities (Monitor Units).

Key Insights and Ideas

  • The "Structural Bridge" of Dose: The two-stage approach, where an intermediate dose prediction acts as a bridge between anatomy and fluence, is critical. This dose prior significantly helps resolve the ambiguity inherent in directly mapping anatomy to fluence.
  • Geometry is Key for Disambiguation: Explicitly conditioning the fluence regression on beam geometry (gantry angle) is essential for accurate prediction, especially for complex modulation patterns.
  • Physics-Informed Loss Matters: The FAR loss, by incorporating physical constraints like gradient smoothness and energy conservation, leads to more clinically relevant and deliverable fluence maps compared to simple pixel-wise losses.
  • Transformer Architectures Shine: Transformers, with their self-attention mechanisms, are well-suited for capturing the long-range dependencies and global context required for accurate fluence prediction.
  • Backbone Agnosticism is Achievable: The FluenceFormer framework demonstrates that its core two-stage approach and FAR loss can be effectively applied across different transformer architectures, highlighting the generality of the method.

Key Results

  • FluenceFormer with Swin UNETR achieved the strongest performance among evaluated models.
  • It significantly reduced Energy Error to 4.5%, a substantial improvement over strong baselines (around 7-8%).
  • Statistically significant gains in structural fidelity (SSIM) were observed (p < 0.05).
  • Qualitative comparisons showed FluenceFormer accurately reconstructing complex internal modulation patterns, unlike baselines that suffered from saturation artifacts or blurring.
  • DVH (Dose Volume Histogram) comparisons using TPS-recalculated doses from predicted fluences closely matched reference plans, indicating preserved target coverage and organ-at-risk sparing.
  • 3D gamma analysis showed high pass rates (up to 92±8.01% for Swin UNETR), confirming physical deliverability.
  • Inference time was efficient, requiring only 0.33-0.55 seconds per patient on a GPU.

Limitations and Future Work

  • Generalization to Diverse Settings: The authors acknowledge that the primary limitation is the potential bias towards the specific distributional priors of the training dataset, which might restrict generalization to unseen clinical settings or diverse beam configurations.
  • Scarcity of Benchmarks: The lack of standardized open-source benchmarks for fluence prediction hinders rigorous reproducibility and fair comparison.
  • Future Work:
    • Extend the framework to additional treatment sites and variable beam configurations.
  • Investigate domain adaptation techniques for better generalization.
  • Integrate differentiable dose calculation layers to enable end-to-end physically consistent optimization.

Summary updated

BibTeX
@inproceedings{mgboh2026fluenceformer,
  author = {Ujunwa Mgboh and Rafi Ibn Sultan and Joshua Kim and Kundan S Thind and Dongxiao Zhu},
  title = {{FluenceFormer: Transformer-Driven Multi-Beam Fluence Map Regression for Radiotherapy Planning}},
  booktitle = {MIDL},
  year = {2026},
  url = {https://openreview.net/forum?id=EEFzQ4bRTo},
}
Figure