Abstract
Reinforcement learning (RL) agents often struggle in environments with sparse rewards or deceptive local optima. Traditional exploration strategies based on state novelty frequently fail to capture the underlying reward structure, especially in goal-conditioned tasks. We introduce QXplore, an algorithm that uses absolute Temporal Difference (TD) error—a measure of "surprise" in reward prediction—as an intrinsic motivation signal. By training an auxiliary explorer agent to seek out states where the primary agent's predictions are most inaccurate, QXplore effectively navigates complex reward landscapes. Our results demonstrate that QXplore significantly outperforms state-of-the-art novelty-based methods in challenging benchmarks like OpenAI Gym’s Fetch tasks and environments designed with local reward traps.
Introduction
A fundamental challenge in RL is the exploration-exploitation trade-off. In sparse-reward settings, simple stochastic exploration (e.g., $\epsilon$-greedy) is often insufficient. While intrinsic motivation based on state novelty ("go where you haven't been") has seen success, it has limitations. Specifically, novelty-based methods struggle with:
- Goal-Conditioned Tasks: Where the reward depends on a dynamic target, making simple state visitation a poor proxy for learning the reward relationship.
- Local Maxima: Where an agent settles for a sub-optimal reward and ceases exploration, missing higher global rewards nearby.
QXplore addresses these by shifting the exploration objective from state novelty to "reward landscape novelty."
Methodology: TD-Error as Exploration Objective
QXplore utilizes the absolute Temporal Difference (TD) error of the main agent as a dense intrinsic reward signal. A high TD-error indicates that the agent's current value function is inaccurate, signaling a region of the environment that requires further exploration.
The architecture consists of two distinct Q-functions:
- $Q_\theta$ (The Exploiter): Optimized to maximize the extrinsic task reward.
- $Q_x$ (The Explorer): Optimized to maximize the absolute TD-error of $Q_\theta$.
These networks interact through a shared replay buffer. The explorer $Q_x$ acts as an adversarial teacher, identifying and sampling trajectories that are most "surprising" to the exploiter $Q_\theta$, thereby forcing the latter to refine its understanding of difficult regions.
Key Insights
- Dense Propagation: Unlike binary state novelty, TD-error propagates through the value function. States leading to surprising outcomes become intrinsically valuable, providing a smoother gradient for exploration.
- Dynamic Boredom: As $Q_\theta$ masters a region, its TD-error decreases. Consequently, $Q_x$ loses interest in those states and naturally shifts its focus to the boundaries of the agent's current knowledge.
- Robustness to Zero Reward: In the absence of extrinsic rewards, neural network extrapolation errors ensure that TD-error remains non-zero in unseen states. This allows QXplore to revert to a form of state-novelty exploration when necessary.
Experimental Results
We evaluated QXplore across diverse benchmarks, including continuous control (MuJoCo), goal-conditioned robotics (Fetch), and Atari games.
Key findings include:
- Superiority in Goal-Conditioned Tasks: On
FetchPushandFetchSlide, QXplore successfully solved tasks where Random Network Distillation (RND) failed to find any non-random reward. - Escaping Local Optima: In the
LocalMaxEscapeenvironment—designed with a "trap" reward—QXplore consistently pushed past the local maximum to find the global optimum, whereas RND remained stuck. - Efficiency: In
SparseHalfCheetah, QXplore reached performance milestones significantly faster than previous state-of-the-art methods like VIME or EMI.
Limitations and Future Work
While effective, QXplore's tendency to seek high TD-error can be "risky" in environments with high-magnitude negative rewards (e.g., falling off a cliff), as these transitions are inherently surprising. Future work will focus on balancing intrinsic and extrinsic rewards more robustly and investigating the method's performance in high-dimensional visual environments where TD-error might be noisier.
Summary updated