When a reinforcement learning agent learns to control a biological system, it faces a peculiar problem: the system it is learning to control changes underneath it. Nowhere is this sharper than in metabolic immune reprogramming of solid tumors. The tumor microenvironment — the chemical and cellular landscape surrounding a tumor — is hostile to immune cells: it is starved of glucose, soaked in lactate, and flooded with adenosine, a metabolite that paralyzes cytotoxic T cells. Metabolic reprogramming drugs (CD39 inhibitors that preserve immunogenic extracellular ATP, AMPK activators like aldometanib that re-educate host liver tissue, IDO1/TDO inhibitors that block tryptophan depletion) convert this "cold" microenvironment into an inflamed "hot" one over days to weeks, after which checkpoint blockade can finally work Metabolic gatekeepers: harnessing tumor-derived metabolites to optimize T cell-based immunotherapy efficacy in the tumor microenvironment. An RL agent scheduling these drugs therefore trains across two different worlds — a cold, immunosuppressive one early and an inflamed one late — and every transition stored in its experience replay buffer (the memory of past interactions that off-policy algorithms reuse for multiple gradient updates) comes from a world that no longer exists.
This proposal argues that replay buffer mechanics, usually treated as an off-the-shelf component, are the deciding factor in whether off-policy RL can learn metabolic reprogramming schedules at all. The core mechanism is drawn from experience replay research: uniform sampling from a buffer provably over-weights early, low-quality experience ("primacy bias"), degrading plasticity precisely when the environment shifts A Forget-and-Grow Strategy for Deep Reinforcement Learning Scaling in Continuous Control, and dependent, autocorrelated transitions bias value learning unless sampling gaps span multiple time scales Multiscale replay: A robust algorithm for stochastic variational inequalities with a Markovian buffer. Metabolic microenvironments are the extreme case of both problems at once: strongly autocorrelated metabolite dynamics (lactate accumulation, enzymatic ATP-to-adenosine conversion) and a genuine non-stationary regime change from cold to hot. We will build the first simulation environment with explicit metabolic kinetics and an immune compartment, and use it to test whether replay-aware off-policy RL discovers schedules that uniform-replay agents, on-policy agents, and fixed clinical schedules cannot.
Core Claim
Two claims, one scientific and one methodological. Scientifically: a reinforcement learning agent whose reward is immediate tumor shrinkage will systematically fail to discover metabolic reprogramming therapies, because effective metabolic agents like aldometanib have zero direct cytotoxicity toward cancer cells and act only by remodeling host tissue — clearing suppressive neutrophils and macrophages so CD8$^+$ T cells can infiltrate Glucose starvation mimetic aldometanib removes immune barriers permitting mice with hepatocellular carcinoma to live to normal ages. The reward must instead credit immune-state remodeling — T-cell infiltration, suppressive-myeloid reduction, metabolite ratios — with a horizon long enough to capture the delayed payoff. Methodologically: under the cold-to-hot distribution shift, uniform FIFO replay is not merely suboptimal but actively harmful, because the buffer becomes dominated by cold-state transitions in which the correct action (immune priming) looks unrewarding; controlled experience decay of the FoG type A Forget-and-Grow Strategy for Deep Reinforcement Learning Scaling in Continuous Control and multiscale sampling gaps of the MER type Multiscale replay: A robust algorithm for stochastic variational inequalities with a Markovian buffer should each recover part of the performance, and their combination should beat either alone. Both claims are testable in simulation before any wet-lab commitment.
Research Program
The first deliverable is an environment, which we call MetaboGym, built as an extension of PhysiGym — the existing Gymnasium wrapper around PhysiCell, a C++ agent-based simulator of individual cells and diffusing chemicals PhysiGym: bridging the gap between the Gymnasium reinforcement learning interface and the PhysiCell agent-based model software. PhysiGym's toy tumor model already couples 512 tumor cells, 128 immune-like cells, and four abstract diffusing factors, and an off-policy Soft Actor-Critic agent with a standard replay buffer learns a two-phase protocol (drug burst, then maintenance) that eradicates the tumor. What it lacks is exactly what metabolic immunology requires: its chemicals are phenomenological ("pro-tumoral" and "anti-tumoral" factors) rather than named metabolites with kinetic rules. MetaboGym replaces these with five explicit substrate fields — glucose, lactate, extracellular ATP, adenosine, and tryptophan/kynurenine — governed by Michaelis-Menten consumption and CD39/CD73 ectoenzyme conversion, plus a spatially resolved AMPK/mTOR state for host tissue. Immune cells in the model are given function that depends on local metabolites: CD8$^+$ T-cell motility, proliferation, and cytotoxicity are suppressed by lactate and adenosine and restored when these are cleared, following the mechanisms catalogued in the metabolic-gatekeepers review Metabolic gatekeepers: harnessing tumor-derived metabolites to optimize T cell-based immunotherapy efficacy in the tumor microenvironment. The action space is a continuous vector of infusion rates for four intervention channels: a CD39 inhibitor, an aldometanib-class AMPK mimetic, an IDO1/TDO inhibitor, and an anti-PD-1 antibody.
The second deliverable is the reward and toxicity model. Following the action-derived-reward pattern of Yauney and Shah, who penalized each unit of chemotherapy dose so the agent must justify it against tumor reduction Reinforcement Learning with Action-Derived Rewards for Chemotherapy and Clinical Trial Dosing Regimen Selection, we define a reward with three terms: immune-state credit (a weighted sum of CD8$^+$ infiltration fraction and the ratio of immunogenic extracellular ATP to suppressive adenosine), tumor burden reduction, and a toxicity penalty. The toxicity term is where the "shared engine" dilemma is made explicit: because tumors and effector T cells burn overlapping metabolic machinery, the penalty couples drug exposure to a host-homeostasis variable (systemic glucose and amino-acid pools) so that schedules which starve the T cells along with the tumor are punished even when the tumor shrinks — the failure mode the metabolic-gatekeepers review identifies as the central barrier to this drug class Metabolic gatekeepers: harnessing tumor-derived metabolites to optimize T cell-based immunotherapy efficacy in the tumor microenvironment. A crucial design check is that a tumor-shrinkage-only reward must fail to select aldometanib, reproducing in silico the logic of the in vivo result that the drug has no intrinsic cytotoxicity Glucose starvation mimetic aldometanib removes immune barriers permitting mice with hepatocellular carcinoma to live to normal ages; this ablation validates the environment before we study buffers at all.
The third deliverable is the replay study itself. We train one fixed algorithm (Soft Actor-Critic, matching PhysiGym) under four buffer regimes: standard uniform FIFO; FIFO with experience decay (per FoG, exponentially down-weighting old transitions); multiscale replay with halving sampling gaps (per MER, drawing transitions at temporal separations $B/2^k$ to decorrelate the autocorrelated metabolite dynamics); and the combination. The hypothesis is specific: the cold-to-hot transition means that early cold-state transitions, in which immune priming yields no near-term tumor benefit, poison value learning under uniform sampling; decay removes them, and multiscale gaps additionally fix the strong temporal correlation of metabolite fields (lactate and adenosine evolve over hours, cell populations over days). We will also measure dormant-neuron fraction as a plasticity probe, following FoG's diagnostic, and test the bang-bang tension directly: Kratz et al. prove that optimal control of memory-bearing cell populations is bang-bang, yet binary pulsing of drugs with narrow therapeutic windows risks toxicity spikes Reinforcement Learning for Control of Non-Markovian Cellular Population Dynamics; our toxicity penalty lets us measure where continuous dosing beats bang-bang and vice versa.
Baselines
The naive reference point is maximum tolerated dose — every intervention channel at its ceiling — and a metronomic schedule (fixed on/off cycling at matched cumulative dose). These are what clinical practice would actually do without an algorithm, and they require no learning; beating them means achieving equal or better tumor control with lower cumulative toxicity burden. The strongest existing methodological competitor is the PhysiGym configuration itself: off-policy Soft Actor-Critic with a standard uniform replay buffer and image-based spatial observations, which on the published toy model achieved a discounted cumulative return of approximately 46 (versus roughly 44 for a scalar-observation variant) after 500k training steps PhysiGym: bridging the gap between the Gymnasium reinforcement learning interface and the PhysiCell agent-based model software. We will run this exact configuration on MetaboGym's abstract-factor compatibility mode as a sanity reproduction, then on the full metabolic mode. It is the strongest competitor because it is the only prior system that has solved a spatial tumor-immune control task with off-policy RL, so any claim that replay design matters must be measured against its own algorithm with its buffer untouched. The comparison is kept fair by holding fixed the network architecture, observation channels, action space, compute budget (500k environment steps, the PhysiGym protocol), and tuning budget (identical hyperparameter search count per method); only the buffer sampling rule varies. The static bandit approach of DCNet, which models dose-response surfaces and penalizes recommendations in regions of sparse historical data, serves as a different kind of baseline: it reduced regret by 98.8% relative to its unconstrained counterpart on semi-synthetic TCGA chemotherapy data Reliable Off-Policy Learning for Dosage Combinations, and we will fit it to MetaboGym rollouts to test whether sequential structure adds value over one-shot dose selection. Finally, the key ablation isolating the proposal's central ingredient is the same SAC agent on the full metabolic environment with the immune-credit term removed from the reward while all replay machinery is kept: if that agent still finds aldometanib-style schedules, the reward design was not the bottleneck, and the claim collapses. A second ablation keeps the full reward but restores uniform FIFO replay, isolating the buffer ingredient. Beating the PhysiGym-style baseline means a higher discounted return on the identical metabolic environment at the same step budget, and additionally a schedule that no fixed metronomic policy at matched cumulative dose can match on the tumor-control-versus-toxicity Pareto frontier.
Why not just…?
Why not just run standard on-policy PPO and skip buffers entirely? On-policy methods avoid the distribution-shift problem by construction, and in principle they track the cold-to-hot transition naturally. The cost is sample efficiency: on MuJoCo's Walker2d, standard PPO needed roughly 750k steps to converge where an off-policy PPO with replay needed about 220k Off-Policy Proximal Policy Optimization — a factor that matters here because each MetaboGym step executes a multi-substrate agent-based simulation in C++. We will still run on-policy PPO as a comparison, and the honest position is that it might win on final policy quality if the transition is gentle enough; the experiment that settles this is the head-to-head at matched wall-clock compute, which is the regime a clinical simulation study would actually face.
Why not just use fixed metronomic or front-loaded schedules? Clinical oncology already knows how to pulse drugs without RL. The evidence against fixed schedules is that adapting cells defeat them: in non-Markovian population models, constant-dosing and threshold policies fail because cells adapt faster with each exposure, and the learned policy must progressively shorten drug holidays Reinforcement Learning for Control of Non-Markovian Cellular Population Dynamics. But this is a real threat in a weaker form: aldometanib alone, given continuously, already extended median lifespan in HCC mice to about 805 days versus roughly 796 days in healthy controls Glucose starvation mimetic aldometanib removes immune barriers permitting mice with hepatocellular carcinoma to live to normal ages. If a single fixed agent at fixed dose solves MetaboGym's metabolic mode, the scheduling question is uninteresting and the project should pivot to the toxicity-constrained combination regime, where four interacting channels with different time constants make hand-designed schedules demonstrably hard to coordinate.
Why not just fit a static dose-combination model like DCNet? DCNet is the best-in-class static answer, and its 98.8% regret reduction on TCGA shows density-aware static optimization is powerful Reliable Off-Policy Learning for Dosage Combinations. But its own framing is a single-time-point contextual bandit, and metabolic reprogramming is intrinsically sequential: priming the microenvironment must precede checkpoint blockade by days, and the payoff of priming is only visible after the delay. The decisive check is to give DCNet the full set of MetaboGym trajectories as observational data and compare its one-shot recommendation against the sequential policies; if the static recommendation matches the RL schedule's endpoint at lower cost, sequencing genuinely does not matter in this environment, which would itself be a useful negative result constraining the proposal.
Why not just accept uniform FIFO replay, since SAC solved PhysiGym with it? This is the most serious alternative, because it is partly true: uniform replay did eradicate the tumor in the abstract-factor toy model PhysiGym: bridging the gap between the Gymnasium reinforcement learning interface and the PhysiCell agent-based model software. Our response is that the toy model has no regime change: its dynamics are stationary, so primacy bias has nothing to distort. MetaboGym's cold-to-hot transition is precisely the condition under which the theoretical failure of uniform sampling manifests — early cold-state transitions dominate exposure, as formalized in FoG's analysis A Forget-and-Grow Strategy for Deep Reinforcement Learning Scaling in Continuous Control — and metabolite autocorrelation is exactly the condition under which uniform temporal-difference updates lose the optimal $\mathcal{O}(1/T)$ error decay that multiscale gaps restore Multiscale replay: A robust algorithm for stochastic variational inequalities with a Markovian buffer. We do not argue around this; the buffer ablation is the experiment, and if uniform FIFO matches decay-plus-multiscale on MetaboGym, the methodological claim is falsified and we will report that the cold-to-hot shift, at least at this simulation scale, is too mild to matter.
Proposed Experiments and Decisive Checks
Experiment one validates the environment and the reward claim: run SAC with the tumor-shrinkage-only reward and confirm it drives aldometanib-class channels to zero while tumor burden stagnates; run the full immune-credit reward and confirm the agent discovers a priming-then-checkpoint sequence qualitatively matching the two-phase protocol PhysiGym's agent found in the abstract setting PhysiGym: bridging the gap between the Gymnasium reinforcement learning interface and the PhysiCell agent-based model software. Experiment two is the buffer study: the four replay regimes at a fixed replay ratio, evaluated on discounted return (directly comparable to PhysiGym's reported ~46), tumor eradication rate, cumulative toxicity burden, and dormant-neuron fraction, across at least ten seeds per cell, with the pre-registered prediction that uniform FIFO plateaus during the transition window while decay and multiscale variants do not. Experiment three tests transfer of the buffer finding: policies trained with domain randomization over metabolic rate constants (the strategy Kratz et al. used over memory parameters Reinforcement Learning for Control of Non-Markovian Cellular Population Dynamics] must control held-out parameter regimes, probing whether replay-aware training yields policies robust to patient-to-patient metabolic variation. The decisive check for the whole program is a two-by-two: reward type (with and without immune credit) crossed with buffer type (uniform and replay-aware). If only the immune-credit-plus-replay-aware cell reliably finds low-toxicity eradication schedules, both halves of the core claim hold; if any other cell succeeds, the corresponding claim is wrong in a way the ablations will localize. All work is in simulation; the explicit longer-term bridge is that any schedule the agent discovers should reproduce, in the environment's aldometanib channel, the in vivo signature of regulatory-neutrophil clearance and CD8$^+$ infiltration reported at ~805-day median survival Glucose starvation mimetic aldometanib removes immune barriers permitting mice with hepatocellular carcinoma to live to normal ages, which is the strongest external anchor the literature provides.
References
- Metabolic gatekeepers: harnessing tumor-derived metabolites to optimize T cell-based immunotherapy efficacy in the tumor microenvironment
- A Forget-and-Grow Strategy for Deep Reinforcement Learning Scaling in Continuous Control
- Multiscale replay: A robust algorithm for stochastic variational inequalities with a Markovian buffer
- Glucose starvation mimetic aldometanib removes immune barriers permitting mice with hepatocellular carcinoma to live to normal ages
- PhysiGym: bridging the gap between the Gymnasium reinforcement learning application interface and the PhysiCell agent-based model software
- Reinforcement Learning with Action-Derived Rewards for Chemotherapy and Clinical Trial Dosing Regimen Selection
- Reinforcement Learning for Control of Non-Markovian Cellular Population Dynamics
- Reliable Off-Policy Learning for Dosage Combinations
- Off-Policy Proximal Policy Optimization