G.3 Additional Experimental Details
Dataset The dataset used in this study comprised imaging and treatment plans for 5 prostate cancer patients who underwent intensity- modulated radiation therapy (IMRT). Available data for each patient includes CT scans, delineated anatomical structures, and clinically approved treatment plans obtained via Eclipse®.
Method As we mentioned in 3.5, TEXTGRAD is used to optimize the hyperparameters (e.g., importance weights for PTV and OARs) of the inner- loop numerical optimizer that generates the treatment plan. This optimization is done using a variation of vanilla TEXTGRAD, i.e. "projected gradient descent with momentum updates". In particular, three prostate cancer treatment plans optimized by clinicians, along with their corresponding hyperparameters, are provided. These examples guide the updates of the hyperparameters. This procedure can be viewed as an analogy to projection, as the updated hyperparameters are "softly projected" onto a feasible set defined by the three in- context examples. Moreover, the historical hyperparameters and the textual gradients from past iterations, as an analogy to momentum, are also included in the prompts for updating the hyperparameters. This additional context helps refine the optimization process. The optimization will be stopped if the loss suggests all protocols meet, other wise, it will be stopped if the maximum number of iterations (we set it to 10) is reached.
Initialization The hyperparameters i.e. the importance weights are all initialized at 100 for different organs. The dose objectives are set to 70.20 for PTV, 0.00 for bladder and rectum, and 30.00 for femoral heads and body, and fixed during optimization.