A physics-informed, plug-and-play dose engine for gradient-based radiotherapy treatment planning

Attila Simkó, Matthias Kronsteiner, Simon Glatzer, Minh Vu, Josef A. Lundman, Joakim Jonsson, Jörgen Olofsson, Kristina Sandgren, Wolfgang Lechner, Dietmar Georg, Tommy Löfstedt, Tufve Nyholm, Anders Garpebring, Gerd Heilemann · 2025

Read A physics-informed, plug-and-play dose engine for gradient-based radiotherapy treatment planning by Attila Simkó, Matthias Kronsteiner, Simon Glatzer, Minh Vu, Josef A. Lundman, Joakim Jonsson, Jörgen Olofsson, Kristina Sandgren, Wolfgang Lechner, Dietmar Georg, Tommy Löfstedt, Tufve Nyholm, Anders Garpebring, Gerd Heilemann (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2512-18863.txt.

Introduction

Attila Simkó and eleven co-authors build a dose engine that could free radiotherapy research from commercial planning software. Treatment planning today iterates slowly inside a vendor's system, and machine learning methods still lean on that system to compute dose. Their engine, PyDoseRT, posted to arXiv in December 2025, calculates dose straight from machine settings like leaf positions, jaw positions, gantry angles, and monitor units.

Written in PyTorch and running on GPUs, the physics-informed engine keeps gradients alive through the whole computation, so planners can optimize deliverable settings directly. Tested on 181 clinical prostate plans from two hospitals, it recalculated dose with mean gamma pass rates of 96.8 percent at tight tolerance and 98.9 percent at looser tolerance. Optimized plans passed deliverability checks back in a commercial system, validating the open platform.

Catalog record

CREATORAttila Simkó, Matthias Kronsteiner, Simon Glatzer, Minh Vu, Josef A. Lundman, Joakim Jonsson, Jörgen Olofsson, Kristina Sandgren, Wolfgang Lechner, Dietmar Georg, Tommy Löfstedt, Tufve Nyholm, Anders Garpebring, Gerd Heilemann
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE41 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2512-18863

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

A physics-informed, plug-and-play dose engine for gradient-based radiotherapy treatment planning Attila Simkó, Matthias Kronsteiner, Simon Glatzer, Minh Vu, Josef A. Lundman, Joakim Jonsson, Jörgen Olofsson, Kristina Sandgren, Wolfgang Lechner, Dietmar Georg, Tommy Löfstedt, Tufve Nyholm, Anders Garpebring, Gerd Heilemann Abstract Radiotherapy treatment planning remains a time-intensive iterative process requiring expert intervention in commercial treatment planning systems (TPS). While machine learning approaches have demonstrated promise, most remain depedent on TPS-based dose calculation or surrogate dose models, preventing direct optimization of deliverable treatment plan parameters. We propose PyDoseRT (PDRT) , a physics-informed, GPU-accelerated dose engine implemented in PyTorch that computes three-dimensional dose distributions directly from treatment delivery parameters (i.e., MLC leaf positions, jaw positions, gantry angles, and monitor units). The engine preserves gradient information throughout the dose computation pipeline, enabling gradient-based optimization of hardware-constrained treatment plans without the reliance on a commercial TPS. PDRT was commissioned and validated using water phantom measurements and evaluated on 19 and 162 clinical VMAT prostate cancer plans from two hospitals (with different treatment machines). Central axis depth-dose curves and lateral profiles showed close agreement with measurements (MAE ≤ 1.5 % \leq 1.5\% ). When recalculating clinical plans, PDRT achieved high 3D gamma pass rates (mean 96.8 % for 2 %/2 mm and 98.9 % for 3 %/3 mm, depending on cohort), with Dice coefficients above 0.97 for the 50 % 50\% isodose volume for both cohorts. DVH analysis demonstrated excellent agreement in mean target and OAR doses (within 0.47 Gy across all structures). A kernel size sensitivity analysis identified a favorable accuracy-performance trade-off, enabling gradient-based optimization with computation times of a few seconds per dose evaluation. All optimized plans converged to clinically acceptable solutions and passed deliverability verification when imported into a commercial TPS. This physics-informed framework eliminates TPS dependency for radiotherapy optimization research by enabling gradient-based planning while ensuring that delivery parameters remain in the machine-feasible range. The gradient-enabled dose engine allows exploration of novel optimization strategies and objective functions while maintaining clinical validity. The proposed approach provides a research platform for investigating real-time adaptive radiotherapy concepts, automated planning workflows, and TPS-independent optimization strategies, and democratizing radiotherapy research, by exposing gradient-enabled, hardware-aware, open-source dose computation. 1 Introduction Radiotherapy is a central component of modern cancer treatment, with more than half of all patients receiving radiation as part of their therapeutic course. Modern treatment planning involves optimizing thousands of parameters, i.e. , multi-leaf collimator (MLC) positions, jaw positions, gantry angles, monitor units, to achieve clinically acceptable dose distributions that satisfy complex and competing dose-volume objectives. This optimization currently still requires an expert making manual iterative adjustments to the optimization parameters in commercial treatment planning system (TPS) . The planning process remains fundamentally manual despite decades of algorithmic advances. Two major developments expose the limitations of conventional treatment-planning and optimization algorithms. First, the rising global cancer burden, particularly in low and middle income countries (LMICs) , will place substantial pressure on radiotherapy services, making it necessary to replace current manual planning steps with automated workflows to maintain capacity and quality [ 1 , 3 ] . Second, the widespread adoption of image-guided radiotherapy (IGRT) has highlighted the magnitude of daily inter-fraction anatomical variations across a broad range of tumour sites. Although the clinical need for adaptation is evident, practical implementation remains constrained by substantial infrastructural, operational, and resource barriers, even on dedicated IGRT platforms [ 19 ] . Deep learning (DL) has transformed medical imaging in radiotherapy, achieving expert-level performance on segmentation [ 11 ] , generating synthetic computed tomography (CT) images from magnetic resonance imaging (MRI) [ 8 , 9 ] , and more. Deep learning models have also been trained for dose distribution predictions from patient anatomy [ 23 , 10 ] . However, a critical gap persists: predicted dose distributions are not treatment plans. Generated dose maps must be imported into a TPS for aperture optimization, hence conventional planning stages are still required [ 15 , 7 ] . Alternatively, parameter prediction methods are TPS free, but they learn a direct mapping to delivery parameters without explicitly modeling how parameter variations translate into dose changes, limiting interpretability and gradient-based optimization [ 13 , 12 ] . Dose calculation involves complex physics, traditionally implemented in proprietary codebases with limited interfaces for experimentation. While some open-source dose engines exist [ 21 , 6 ] , they cannot be directly embedded into gradient-based optimization or learning pipelines, where changes in delivery parameters are explicitly mapped to changes in dose. A consequence is that most DL –based approaches have focused on imitating clinically accepted plans generated by conventional TPS algorithms. This imitation inherently limits innovation, as it constrains models to replicate the performance of existing planners rather than exceed it. In principle, DL could enable exploratory optimization beyond the capabilities of current algorithms; however, only few preliminary studies exist [ 15 , 20 ] . Progress has been hindered in part by the absence of open-source, gradient-enabled dose engines capable of supporting more elaborate optimization strategies. Another critical limitation concerns computational performance. Online adaptive radiotherapy workflows require dose calculations that are both fast and sufficiently accurate to support real-time plan re-optimization [ 19 ] . However, many research directions in treatment planning—particularly gradient-based optimization and DL -driven methods—require dose engines that are differentiable and integrated with the optimization process. Commercial TPSs do not expose such low-level interfaces, while existing open-source dose calculation frameworks either lack the computational speed needed for online use or do not support differentiation, limiting their applicability for these emerging optimization approaches. Modern DL frameworks ( e.g. , Pytorch and Tensorflow) enable automatic differentiation: computing gradients of any output with respect to any input through general computational graphs. This capability has revolutionized machine learning, and operations that are implemented with automatic differentiation can be incorporated in a framework that uses gradient-based optimization, such as deep learning models. In radiotherapy, if the dose calculation is differentiable with respect to aperture parameters, we can optimize these parameters directly using gradient descent to achieve the desired dose distributions. While Liang et al. [ 14 ] explored Pytorch-based optimization for CyberKnife using a static dose influence matrix, it did not generalize to volumetric-modulated arc therapy (VMAT) with full physics simulation and hardware constraint modeling. Similarly, Bhattacharya et al. [ 6 ] demonstrated fast GPU-based dose computation for protons, but did not offer gradient access, limiting their utility in optimization and learning tasks. In this work, we present a modular, gradient-enabled, physics-informed radiotherapy dose engine implemented entirely in Pytorch. The engine decomposes beam transport into modular, GPU-accelerated components—fluence generation from aperture parameters, 3D beam propagation, radiological depth computation, pencil-beam convolution, and final dose reconstruction—each implemented to preserve gradients throughout the computation graph. This design enables optimization of physical plan parameters within the same framework used to define objectives and constraints. The proposed approach combines the flexibility of modern optimization methods with the physics-based modelling required in radiotherapy planning and dose computation. By guaranteeing gradient backpropagation, modularity, and computational performance, it creates a foundation for new research directions in treatment-planning optimization, including gradient-based aperture refinement, physics-guided machine learning, or automated treatment planning with a trained deep learning model using the dose engine output in a loss function. Finally, we release the

Read the complete text