TL;DR
In cancer radiotherapy, AI models can paint an "ideal" 3D map of where radiation should go, but turning that wish-list into a physically deliverable plan requires tuning a dozen competing mathematical knobs—each test taking minutes of heavy computation. RadOncGym puts an LLM agent in the driver's seat, pairing it with a fast, approximate "surrogate" model so it can brainstorm cheaply and spend its limited budget of expensive physics simulations wisely. The result? Better-balanced radiation plans than standard black-box optimizers, achieved in roughly a quarter of the time.
What Problem Does This Paper Address?
Imagine asking an artist to paint the perfect portrait, and then asking a bricklayer to recreate it out of LEGOs. Deep learning is great at the first part: looking at a patient's CT scan and predicting an ideal 3D radiation dose distribution that blasts the tumor while sparing nearby organs. However, linear accelerators obey strict laws of physics and geometry—meaning an AI-predicted dose isn't automatically deliverable.
To bridge this gap, planners use dose-mimicking optimization: a downstream mathematical solver tries to match the AI's prediction as closely as possible under physical constraints. Because you can't have everything at once, this optimizer relies on objective weights—essentially priority knobs balancing tumor coverage (Planning Target Volumes, or PTVs) against sparing delicate Organs at Risk (OARs) like the spinal cord or salivary glands.
Finding the right weights for an individual patient is tough. Traditional black-box methods (like Bayesian optimization) tune these knobs by trial and error, running the heavy-duty solver after every single guess. Because each full solve takes several minutes, searching thoroughly becomes painfully slow.
Methods
The authors introduce RadOncGym, an environment and benchmark where an LLM agent iteratively tunes 12 objective weights (covering 3 tumor targets, 7 organs at risk, and 2 spatial shaping rules) over a 16-turn horizon.
What makes this novel is its multi-fidelity, budget-aware loop:
- The Fast Sketch (Surrogate Verifier): Instead of running the slow Gurobi linear programming solver on every turn, every weight proposal gets instant feedback from an ensemble of 24 gradient-boosting regressors. Trained offline, this surrogate estimates whether the proposed weights will improve clinical violations (measured in Gray, or Gy—the standard unit of absorbed radiation dose).
- The Expensive Check (Selective Full Solves): The agent is given a strict budget (typically just 3 full Gurobi solves across 16 turns). Using the surrogate's rapid estimates, the agent decides when a candidate looks promising enough to cash in a token for a slow, exact physics solve, which returns precise clinical metrics and visual Dose-Volume Histogram (DVH) plots.
- Agent Architecture: The authors test different LLM backbones (GPT-5.6 Sol, Claude Sonnet 5, Qwen3.6-27B) alongside modular memory systems (e.g., contrasting best/worst past turns) and role structures (e.g., adding a self-critique step before spending a full solve).
Datasets
The framework builds directly on OpenKBP and OpenKBP-Opt, public benchmarks of head-and-neck cancer patients.
- Surrogate Training: 30 training and 10 validation patients, using offline scrambled Sobol weight samples solved via Gurobi.
- RadOncGym Benchmark: Evaluated on a completely disjoint set of 60 patients. Each patient is paired with the top 10 AI dose-prediction models from OpenKBP-Opt, creating 600 distinct patient–prediction contexts for apples-to-apples comparisons between LLM agents and classical optimizers.
Key Insights and Ideas
- LLMs carry strong prior intuition for sample-efficient search: You might assume the LLM wins simply because it gets richer visual feedback (like DVH diagrams) or chooses when to run full solves. Surprisingly, an ablation stripping the GPT agent down to the exact same fixed schedule and single-number feedback as classical Bayesian optimization still crushed the non-agent baselines (+0.590 Gy vs. +0.228 Gy improvement). In a tight 16-turn window, the LLM's ability to reason about domain trade-offs beats cold-start statistical search.
- Spend early, stop early: Rather than hoarding its 3-solve budget until turn 16, the top GPT agent typically spends its solves around turns 2, 4, and 7, explicitly choosing to stop around turn 9 once it locks in a strong plan.
- Asymmetric knob-turning: Across the 600 cases, the agent learned consistent domain heuristics—for example, cranking up high-dose tumor coverage (PTV70) in 96.2% of cases and parotid gland sparing (~66–67%), while relaxing weights on serial organs like the brainstem when thresholds were already safely met.
Key Results
All results measure improvement over the standard "all-ones" baseline (leaving all 12 weights at 1.0):
- Matched Budget (16 turns, 3 full solves): GPT-5.6 Sol reduced mean clinical-criterion violation by 0.613 Gy, and improved post-hoc DVH and 3D dose scores by 0.599 Gy and 0.220 Gy. The best classical black-box methods (SAAS-BO and CMA-ES) peaked at just +0.228, +0.259, and +0.096 Gy on those respective metrics.
- Massive Speedups: With just 3 solves (~27.5 minutes/context), GPT-5.6 Sol rivaled classical optimizers given 16 full solves (110–123 minutes/context), cutting normalized runtime by 75.0–77.6%.
- Clinical Feasibility: Strict satisfaction of all clinical criteria jumped from 13.0% (all-ones) to 20.5% with GPT-5.6 Sol, while average worst-case organ/target violation dropped from 10.01 Gy to 6.65 Gy.
Limitations and Future Work
- Narrow Clinical Scope: Everything is tested on head-and-neck cancer using a fixed 9-beam research setup and 12 weights. Generalizing to prostate or lung cancer, or different hospital software, remains untested.
- Research vs. Reality: OpenKBP-Opt models idealized beamlet intensities ("fluence"), skipping real-world mechanical delivery constraints and quality assurance checks. Benchmark gains don't equal ready-for-clinic plans.
- Single-Seed Runs: Due to compute costs across 600 contexts, experiments used a single fixed random seed; multi-seed runs are needed to quantify run-to-run variance.
Summary updated