Abstract
Reinforcement learning (RL) has made significant progress in both abstract and real-world domains, but the majority of state-of-the-art algorithms deal only with monotonic actions. However, some applications require agents to reason over different types of actions. Our application simulates reaction-based molecule generation, used as part of the drug discovery pipeline, and includes both uni-molecular and bi-molecular reactions. This paper introduces a novel framework, towered actor critic (TAC), to handle multiple action types. The TAC framework is general in that it is designed to be combined with any existing RL algorithms for continuous action space. We combine it with TD3 to empirically obtain significantly better results than existing methods in the drug discovery setting. TAC is also applied to RL benchmarks in OpenAI Gym and results show that our framework can improve, or at least does not hurt, performance relative to standard TD3.
Introduction
Most Reinforcement Learning (RL) algorithms assume a "monotonic" action space, where every action taken by the agent shares the same structure and dimensionality. However, real-world applications like de novo drug discovery present complex action spaces. In reaction-based molecule generation, an agent must choose between fundamentally different actions: a uni-molecular reaction (modifying one molecule) or a bi-molecular reaction (combining two molecules). Standard RL agents struggle to map these distinct action "shapes" into a single vector, often leading to inefficient learning or "gradient pollution" where updates for one action type negatively impact the parameters of another.
Methodology
The Towered Actor Critic (TAC) framework addresses these challenges by restructuring the agent-environment interaction and the internal architecture of the Critic.
The Agent-Environment Loop
In the drug discovery setting, the agent interacts with an environment that simulates chemical reactions. The agent's actor network outputs a reaction template ($T$), a continuous action ($a$) for reactant selection, and a binary mask ($R_{mask}$) identifying the reaction type.
The Towered Critic
The core innovation of TAC is the "towered" critic. Instead of a single monolithic network, the critic is split into specialized towers designed for specific action types. In the molecular generation task, these are defined as a U-tower for uni-molecular reactions and a B-tower for bi-molecular reactions.
These towers predict a hypothetical next state (the resulting molecule) rather than a direct Q-value. These predictions are combined using the action mask and passed into a Value Network ($V$) to compute the final Q-value. This architecture draws inspiration from "after-state" MDPs, which is particularly effective in deterministic environments like chemical synthesis. To ensure the towers learn valid chemistry, an auxiliary loss is employed, forcing the predicted hypothetical molecule to match the actual molecule produced by the environment.
Experimental Results
The TAC framework was evaluated against several benchmarks, including standard molecular metrics and biological targets.
Drug Discovery Performance
Using the Enamine dataset for initial reactants, TAC (combined with TD3) was tested on biological targets such as HIV-RT, HIV-INT, and HIV-CCR5. TAC-FS (TAC for Forward Synthesis) outperformed previous state-of-the-art methods like PGFS and JT-VAE.
- HIV Targets: TAC achieved higher maximum rewards for HIV-INT (7.75) and HIV-CCR5 (9.17) compared to PGFS (7.55 and 9.05, respectively).
- Consistency: The mean of the top-100 rewards showed significant improvement, particularly in HIV-INT (7.54 vs. 7.16) and HIV-CCR5 (9.07 vs. 8.96).
Generality across RL Benchmarks
To demonstrate its broad applicability, a "Generic TAC" was tested on 10 OpenAI Gym benchmarks (e.g., BipedalWalker, Ant). Results indicated that the towered architecture either improved or maintained performance relative to standard TD3, even in environments without explicit hierarchical action structures.
Discussion and Conclusion
TAC provides a robust solution for handling heterogeneous action spaces by decoupling the prediction of action outcomes from their evaluation. By using specialized towers and masking, it prevents gradient interference between different action types. While currently optimized for deterministic environments, future work will explore stochastic transitions and scaling to a larger number of action types. The framework's ability to integrate with existing off-policy algorithms like TD3 makes it a versatile tool for complex RL tasks beyond drug discovery.
Summary updated