Introduction
Reinforcement Learning (RL) typically relies on explicit policies, where a neural network maps a state directly to an action. While computationally efficient, these models often struggle with complex, multi-modal, or discontinuous action distributions. Implicit policies, or energy-based models, address these limitations by learning an energy function $E(s, a)$ and selecting the action that minimizes this energy. However, traditional "Implicit One-Tower" (IOT) models, which concatenate state and action vectors, suffer from a significant computational bottleneck: they require evaluating the full network for every candidate action at every timestep, making them prohibitively slow for large-scale applications.
The Implicit Two-Tower (ITT) Architecture
To overcome the efficiency crisis of implicit models, we introduce the Implicit Two-Tower (ITT) architecture. This design disentangles the processing of states and actions into two separate neural networks:
- State Tower: Maps the state $s$ to a latent representation $l_S(s)$.
- Action Tower: Maps candidate actions $a$ to a latent representation $l_A(a)$ in the same space.
The energy function is then defined as a simple kernel operation, such as a dot product, between these two latent vectors. This transformation reframes action selection as a Maximum Inner Product Search (MIPS) problem.
By leveraging the two-tower structure, ITT can utilize sublinear search techniques like Signed Random Projections (SRP) for hashing and Random Feature Trees (RFT). This reduces the search complexity from $O(N)$ to $O(\log N)$, where $N$ is the number of candidate actions. Furthermore, because the action tower is independent of the state, it can be updated "lazily"—less frequently than the state tower—leading to additional computational savings without compromising performance.
Experimental Evaluation
The ITT framework was evaluated across 15 environments from the OpenAI Gym and DeepMind Control Suite (DMCS), encompassing both discrete and continuous action spaces. The policies were trained using Evolutionary Strategies (ES), demonstrating that implicit policies can be successfully optimized using black-box methods.
Performance and Efficiency
ITT policies achieved the highest average scores in 12 out of 15 tasks, consistently outperforming both standard explicit policies and IOT models. For instance, in the Hopper-v2 environment, ITT showed a marked improvement in both final reward and learning stability.
Beyond raw performance, the architectural shift yielded dramatic improvements in training speed. Compared to IOT models, ITT reduced training time by 26% for Hopper-v2, 39% for Walker2d-v2, and 45% for HalfCheetah-v2. These results suggest that the two-tower design effectively resolves the "exponential sample complexity" typically associated with implicit policies.
Conclusion and Future Work
Implicit Two-Tower policies represent a significant step forward in RL architecture, combining the expressivity of energy-based models with the efficiency of modern retrieval systems. While the current implementation uses ES for optimization, future research could integrate ITT into gradient-based frameworks like PPO or SAC to further improve sample efficiency. Additionally, exploring the sensitivity of "lazy updates" and hashing hyperparameters will be crucial for broader deployment in dynamic environments.
Summary updated