Reinforcement Learning (RL) has long struggled with a fundamental tension: how to explore a complex environment without getting stuck in local optima or wasting millions of samples on unproductive actions. Traditional methods often rely on "local" exploration—tweaking a policy's parameters or actions slightly and observing the outcome. However, in environments with sparse rewards or long horizons, these local adjustments often fail to find a meaningful signal.
In their ICML 2023 paper, Representation-Driven Reinforcement Learning, Ofir Nabati and colleagues from the Technion and Nvidia Research propose a paradigm shift. Instead of treating exploration as a search through action space, they reframe it as a search through a learned policy representation space, leveraging the mathematical elegance of contextual bandits to navigate the policy landscape more effectively.
The Challenge of Sparse Rewards and Local Search
Standard RL algorithms, particularly policy gradient methods, often suffer from high variance and poor exploration in "hard" problems. These are typically tasks where the agent only receives a reward signal at the very end of a long sequence of actions.
The core issue is that these methods usually optimize locally. They evaluate the current state and attempt a small improvement. If the reward is distant, the gradient signal is weak or non-existent, leaving the agent wandering aimlessly. While Evolution Strategies (ES) explore more broadly by perturbing policy parameters, they are often sample-inefficient because they lack a mechanism to reason about which directions in the parameter space are most promising.
The RepRL Framework
The authors introduce RepRL, a framework that treats the set of possible policies as "arms" in a multi-armed bandit problem. The framework consists of four primary components:
- Policy Embedding: The key innovation is mapping an entire policy—represented by its neural network weights $\theta$—into a lower-dimensional latent space $z$ using a Variational Autoencoder (VAE) style approach.
- Linearity Constraint: The representation is trained such that the expected return of a policy is a linear function of its latent vector ($v(\pi) \approx \langle z, w \rangle$). This transformation is crucial as it simplifies the complex, non-linear relationship between neural weights and environment rewards.
- Bandit Selection: Once policies are mapped into this linear space, the authors can utilize "off-the-shelf" linear bandit algorithms like Optimism in the Face of Uncertainty (OFUL) or Thompson Sampling (TS). These algorithms provide theoretical guarantees for balancing exploration and exploitation.
- Decision Sets: At each iteration, the agent generates a "decision set" of candidate policies (e.g., by sampling around the current policy). It then uses bandit logic to select the most promising candidate to test in the environment.
The authors demonstrate two main implementations of this framework: RepES, which integrates RepRL into Evolution Strategies, and RepPG, which uses RepRL as a regularizer for Policy Gradient methods like PPO.
Experimental Evaluation
The framework was evaluated across three distinct domains designed to test different aspects of the exploration problem:
- GridWorld: A custom environment with noisy, spatially distributed rewards used to visualize how RepRL navigates toward a goal compared to standard search methods.
- MuJoCo: The standard benchmark for continuous robotic control (Humanoid, Hopper, HalfCheetah). The researchers also created "Sparse" versions of these tasks, where rewards are only granted at specific distance intervals, significantly increasing the difficulty of exploration.
- MinAtar: A simplified version of Atari games (SpaceInvaders, Breakout) used to test the agent's ability to handle discrete state spaces and sparse rewards.
Key Insights and Results
RepRL shifts the exploration challenge from action-exploration to representation-exploration. The paper argues that good policy representations enable optimal exploration; if a latent space captures the essence of what makes a policy successful, a bandit algorithm can navigate that space far more efficiently than random noise.
To combat the "vanishing signal" problem caused by discount factors in long-horizon tasks, the authors proposed Inner Trajectory Sampling. By sampling trajectories from various points along a path rather than just the starting state, they provide a denser learning signal for the representation network.
Performance Highlights:
- Superior Sparse Exploration: In Sparse MuJoCo tasks, RepES significantly outperformed both standard Evolution Strategies and Soft Actor-Critic (SAC). In many instances, standard methods failed to reach the goal entirely, while RepRL found it consistently.
- Boosting PPO: When applied to MinAtar games as a regularizer (RepPG), the framework consistently outperformed standard PPO, demonstrating that the bandit-driven perspective benefits even established gradient-based methods.
- Meaningful Latent Spaces: Visualization of the learned latent space via t-SNE confirmed that RepRL successfully clusters policies by their value, proving that the representation learning captures meaningful performance features.
Limitations and Future Directions
While RepRL offers a powerful new perspective, it shifts the difficulty of RL from "finding a good policy" to "finding a good representation." If the mapping to the latent space is poor, the bandit selection will be equally ineffective. Additionally, the "inverse mapping"—decoding a point in latent space back into neural network weights—can be computationally expensive.
Future work may involve leveraging large pre-trained models, such as Transformers, to provide even more robust policy representations, potentially allowing for zero-shot exploration in entirely new environments.
Summary updated