PortPy.AI: A Benchmark for AI and Optimization in Cancer Radiotherapy Planning

Gourav Jhanwar, Mojtaba Tefagh, Qijie Huang, Alireza Golkarieh, Linda X. Hong, Hai Pham, Vicki Trier Taasti, Seppo Tuomaala, Anthony Magliari, Michael Folkerts, Ying Zhou, Jie Yang, Saad Nadeem, Masoud ZarepishehNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

Roughly half of all cancer patients receive radiotherapy, which requires solving a massive, patient-specific optimization problem to blast tumors while sparing healthy organs. Until now, AI and optimization researchers lacked a standardized, clinically grounded playground to test their ideas end-to-end. PortPy.AI changes that by releasing an 8 TB open-source dataset, three interconnected benchmark tasks, and clinically validated baselines—all built on the open-source PortPy Python platform.

What Problem Does This Paper Address?

In external beam radiotherapy, a machine called a linear accelerator shoots high-energy radiation beams at a tumor from multiple angles. To protect nearby healthy organs, the machine uses a multi-leaf collimator (MLC)—a set of narrow metal leaves that slide independently to shape each beam.

Figure 1: Radiotherapy treatment planning and research trends. (a) A radiotherapy machine (linear accelerator) delivers shaped radiation beams to the patient. (b) Multiple beams from different directions and with different shapes and intensities are combined to deliver high dose to the tumor and lower dose to surrounding healthy tissues; inset: example dose map overlaid on CT image. (c) Publication trends in radiotherapy planning, showing increasing interest in learning-based methods. An animated illustration of (a) is available in the PortPy repository.

Because every patient's anatomy is unique, clinicians must customize beam shapes and intensities for each case. Mathematically, this means discretizing the patient into 100,000–1,000,000 3D volume elements (voxels) and the beams into 10,000–100,000 2D elements (beamlets), then solving a massive, non-convex, combinatorial optimization problem under tight clinical deadlines.

While AI/ML has shown promise in speeding up this process and reducing manual parameter tuning, progress has been bottlenecked. Most prior work relies on private patient data, proprietary commercial software, or studies isolated subproblems without checking if the resulting plans are actually deliverable on a real machine. PortPy.AI bridges this gap by providing an end-to-end, clinically grounded benchmark.

Methods

PortPy.AI is built on PortPy, an open-source Python toolkit for data management, plan generation, and plan evaluation. The benchmark defines three interconnected tasks that span the entire planning pipeline:

Figure 3: Benchmark tasks and their interconnections. Task 1 predicts beamlet-specific dose from patient anatomy and beamlet encoding; applying it across all beamlets yields the beamlet dose representation required for optimization. Task 2 predicts the patient-specific total dose distribution, which serves as a reference dose for planning. Task 3 then solves the treatment planning optimization problem under clinical constraints to generate deliverable beam shapes and intensities. The resulting plans are assessed using downstream metrics such as scorecard, overall plan score, and runtime.
  • Task 1: Beamlet dose prediction. Given a patient's CT scan and geometric beamlet encodings, predict the 3D dose deposited by a single beamlet at unit intensity. Applying this across all beamlets produces the dose-influence matrix $A$ needed for optimization. Baselines: A 3D U-Net (strongest), a 3D Vision Transformer, and a 3D Swin UNETR.
  • Task 2: Total dose prediction. Given the CT, organ masks, and a unit-intensity beam encoder, predict the final 3D dose distribution. This serves as a patient-specific reference dose to eliminate manual weight tuning. Baselines: A MedNeXt architecture, alongside attention-augmented and dual-decoder MedNeXt variants.
  • Task 3: Plan optimization. Using Task 1's dose-influence matrix, Task 2's reference dose, and clinical criteria, solve for deliverable beam shapes and intensities that obey physical MLC rules. Baselines: Mixed-Integer Programming (MIP) as a global optimality reference, a clinically deployed greedy/convex-relaxation algorithm, and a fast greedy-only baseline.

Crucially, Tasks 1 and 2 are evaluated not just on prediction accuracy (mean absolute error, or MAE), but on the downstream clinical quality of the treatment plans they produce.

Datasets

The authors started with publicly available CT images and organ contours from 200 lung cancer patients and 129 prostate cancer patients (~6 GB of raw DICOM data). Using a commissioned beam model of a real radiotherapy machine, an FDA-approved commercial system (Eclipse), and their in-house clinical planning system, they expanded this into ~8 TB of AI- and optimization-ready data in JSON and HDF5 formats.

The dataset includes precomputed physics-based beamlet-to-voxel dose matrices, harmonized organ names, curated clinical criteria, and expert-quality deliverable plans. Unlike prior benchmarks such as OpenKBP (which lacks deliverable beam shapes and uses simplified physics) or GDP-HMM (which lacks beamlet doses and an optimization engine), PortPy.AI supports true end-to-end evaluation.

Key Insights and Ideas

  • Upstream accuracy $\neq$ clinical value: A low MAE is a useful fast signal for model selection, but it doesn't guarantee a better treatment plan. Downstream optimization and per-criterion clinical scorecards are essential to measure real-world impact.
  • The 7,000x speedup: In Task 3, the clinically deployed greedy/convex-relaxation algorithm achieves nearly the exact same plan quality as exact Mixed-Integer Programming (71.48 vs. 71.52) while running roughly 7,000 times faster (1.45 minutes vs. 7 days).
  • Isolating the value of refinement: Comparing the greedy-only baseline (65.27) against greedy/convex-relaxation (71.48) cleanly quantifies the ~6-point clinical quality boost contributed by the convex-relaxation refinement step.

Key Results

  • Task 1 (Beamlet dose): The 3D U-Net achieves an MAE of $0.00014 \pm 3 \times 10^{-5}$. When plugged into downstream optimization, it yields an overall plan score of $52.30 \pm 15.51$, closely trailing the physics-based ground truth ($53.95 \pm 14.64$).
  • Task 2 (Total dose): MedNeXt achieves an MAE of $1.105 \pm 0.394$ for lung and $0.442 \pm 0.135$ for prostate. Downstream optimized plan scores reach $45.69 \pm 11.79$ (vs. $50.29 \pm 9.74$ expert reference) for lung, and $48.11 \pm 16.19$ (vs. $52.35 \pm 12.17$ reference) for prostate.
  • Task 3 (Plan optimization, VMAT): On a representative patient, MIP scores 71.52 in 10,080 minutes; greedy/convex-relaxation scores 71.48 in 1.45 minutes; and greedy-only scores 65.27 in 0.14 minutes.

Limitations and Future Work

The current release focuses on two disease sites (lung and prostate) and does not yet cover every AI paradigm in radiotherapy, such as large language models or reinforcement learning. However, the clinical criteria are stored as editable JSON files, and an accompanying Eclipse scripting tool lets institutions export their own patient data into PortPy format.

Looking ahead, the authors highlight online adaptive radiotherapy as a major frontier: generating or continuously updating high-quality treatment plans in just 5–10 minutes while the patient is lying on the treatment couch.

Summary updated

BibTeX
@inproceedings{jhanwar2026portpy,
  author = {Gourav Jhanwar and Mojtaba Tefagh and Qijie Huang and Alireza Golkarieh and Linda X. Hong and Hai Pham and Vicki Trier Taasti and Seppo Tuomaala and Anthony Magliari and Michael Folkerts and Ying Zhou and Jie Yang and Saad Nadeem and Masoud Zarepisheh},
  title = {{PortPy.AI: A Benchmark for AI and Optimization in Cancer Radiotherapy Planning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=rZoz5VsSaP},
}
Figure