Abstract
Radiation therapy treatment planning is an iterative, expertise-dependent process, and the growing burden of cancer cases has made reliance on manual planning increasingly unsustainable, underscoring the need for automation. In this study, we propose a workflow that leverages a large language model (LLM)-based agent to navigate inverse treatment planning for intensity-modulated radiation therapy (IMRT). The LLM agent was implemented to directly interact with a clinical treatment planning system (TPS) to iteratively extract intermediate plan states and propose new constraint values to guide inverse optimization. The agent's decision-making process is informed by current observations and previous optimization attempts and evaluations, allowing for dynamic strategy refinement. The planning process was performed in a zero-shot inference setting, where the LLM operated without prior exposure to manually generated treatment plans and was utilized without any fine-tuning or task-specific training. The LLM-generated plans were evaluated on twenty head-and-neck cancer cases against clinical manual plans, with key dosimetric endpoints analyzed and reported. The LLM-generated plans achieved comparable organ-at-risk (OAR) sparing relative to clinical plans while demonstrating improved hot spot control (Dmax: 106.5% vs. 108.8%) and superior conformity (conformity index: 1.18 vs. 1.39 for boost PTV; 1.82 vs. 1.88 for primary PTV). This study demonstrates the feasibility of a zero-shot, LLM-driven workflow for automated IMRT treatment planning in a commercial TPS.
Introduction
Radiotherapy is a cornerstone of cancer treatment, yet the process of creating a treatment plan—balancing tumor destruction with the preservation of healthy tissue—remains a significant manual bottleneck. Traditionally, this "tug-of-war" is performed iteratively by dosimetrists. While automation attempts like Knowledge-Based Planning (KBP) and Reinforcement Learning (RL) exist, they often require massive historical datasets or complex reward functions that are difficult to scale. This study investigates whether the general reasoning capabilities of Large Language Models (LLMs) can navigate this specialized domain in a "zero-shot" setting, requiring no prior exposure to medical plans or task-specific training.
Methods
The researchers developed an agentic workflow utilizing GPT-4.1 and GPT-4.1-mini in a closed loop with the Varian Eclipse Treatment Planning System (TPS). The agent operates through a three-step cycle: Observe, Analyze, and Update. Using the Eclipse Scripting API (ESAPI), the agent extracts plan states, including Dose-Volume Histograms (DVHs) and objective function losses. To overcome the LLM's limitations with raw numerical data, an arithmetic tool was provided to calculate deviations.
Central to the agent's success is Chain-of-Thought (CoT) reasoning, which allows it to evaluate trends and make strategic trade-offs (e.g., relaxing a constraint that yields no benefit to prioritize tumor coverage). The study also highlighted the importance of "optimization priors"—high-level guidance on the planning engine's behavior—which proved essential for grounding the LLM's general intelligence in the specialized medical domain.
Results and Discussion
The workflow was evaluated on 20 complex head-and-neck cancer cases, where tumors are often adjacent to critical structures like the spinal cord and brainstem. The LLM-generated plans were benchmarked against clinically approved manual plans created by human experts.
Key findings include:
- Clinical Equivalency and Precision: The LLM agent achieved Organ-at-Risk (OAR) sparing comparable to human experts while demonstrating superior dose conformity and improved hot spot control (106.5% vs. 108.8%).
- Efficiency: The automated process completed in under five minutes per case, a massive reduction compared to the hours of active labor typically required for manual planning.
- Strategic Adaptability: The agent naturally adopted a "coarse-to-fine" strategy, identifying the limits of organ tolerance before fine-tuning constraints.
Conclusion
This study demonstrates that zero-shot LLM agents can achieve expert-level performance in radiotherapy planning by mimicking the logical reasoning of human dosimetrists. By eliminating the need for large training datasets, this approach offers a generalizable solution that could reduce planning variability and expand access to high-quality radiotherapy, particularly in resource-limited clinical settings. Future work will focus on validating the model across other cancer sites and standardizing clinical goal prompts.
Summary updated