TL;DR
Existing curricula for goal-conditioned reinforcement learning (RL) struggle with sample efficiency because they rely on crude proxies for an agent's confidence—such as visitation counts or roll-out success rates. Query The Agent (QTA) fixes this by estimating the agent’s internal epistemic uncertainty via Predictive Uncertainty Networks (PUN), which measure the disagreement among auxiliary next-state predictions tied directly to the critic’s latent representations. By steering exploration toward states the agent is most uncertain about, QTA dramatically improves sample efficiency and gracefully recovers from catastrophic forgetting.
What Problem Does This Paper Address?
In goal-conditioned RL, agents often need to solve long-horizon navigation or manipulation tasks with sparse rewards. To speed up training, curriculum learning algorithms choose intermediate goals for the agent. However, most existing curricula suffer from three major failure modes:
- Setting goals that are too easy or too hard, slowing down progress.
- Ignoring catastrophic forgetting, where an agent unlearns previously mastered areas without the curriculum realizing it.
- Decoupled uncertainty proxies: Methods that rely on visitation counts (e.g., density estimation like MEGA) or separate external ensembles (like VDS) do not reflect the agent's actual value function uncertainty, leading to misaligned curricula.
The authors address how to efficiently and accurately gauge an agent's own epistemic uncertainty across previously visited states to generate informative goal curricula.
Methods
The authors introduce a curriculum framework built on top of Deep Deterministic Policy Gradient (DDPG) and Hindsight Experience Replay (HER):
- Predictive Uncertainty Networks (PUN): Rather than measuring the variance of Q-values directly—which suffers from high variance due to reward noise and bootstrapping—PUN attaches a small auxiliary head $P_i$ to each critic backbone in a critic ensemble ($G=3$). Given a shared latent state $\xi_i = Q_{\text{backbone},i}(s, a, g)$, the auxiliary head predicts the next environment state $\tilde{s}'$. Epistemic uncertainty $\epsilon$ is quantified as the standard deviation across the predictive heads' outputs.
- Goal Selection via QTA: QTA samples candidate states from the replay buffer, filters out unachievable goals using a Q-value threshold heuristic ($Q \ge cT$), and estimates the state uncertainty averaged across $d$ random actions. Candidate goals are then sampled with probability linearly proportional to their estimated uncertainty.
- Uncertainty-Weighted Prioritized Experience Replay (PER): Standard PER prioritizes transitions by Temporal Difference (TD) error. QTA introduces an epistemic-uncertainty-based priority metric inside a HER buffer, directly prioritizing transitions that the critic backbone least understands.
Datasets
The paper evaluates the methods on procedurally generated continuous-control 2D maze environments with sparse rewards:
- Square-Wave Mazes: Long corridors requiring multiple sharp turns, testing how quickly an agent traverses narrow paths and avoids catastrophic forgetting.
- M-Mazes: Mazes featuring large dead-end detours, designed to test exploration efficiency when faced with extraneous, distractingly large state spaces.
Key Insights and Ideas
- Next-State Disagreement Beats Q-Value Disagreement: Intuitively, one might measure uncertainty using the spread of ensemble Q-values. However, Q-values compound noise from three sources ($\delta r$, $\delta s'$, and $\delta Q(s', a')$). Auxiliary next-state predictions from the critic's latent layer isolate the error ($\delta s'$), delivering a vastly higher signal-to-noise ratio for uncertainty estimation.
- Shared Latent Representation is Key: By feeding the critic backbone’s latent embedding directly into both the Q-value output and the predictive head, uncertainty in the predictive head directly mirrors representational uncertainty in the critic.
- Curricula Require Precision: Adding tiny amounts of Gaussian noise ($\sigma = 0.01$ to $0.05$) to PUN's uncertainty estimates severely degrades or collapses performance, confirming that QTA’s gains stem from genuine uncertainty tracking rather than simply pushing goals farther away.
Key Results
- Sample Efficiency: On both square-wave and M-mazes of varying lengths (tested across 12 random seeds), QTA consistently reaches 100% success in significantly fewer environment timesteps than curriculum baselines like MEGA (density-based) and VDS (value disagreement with external critics). HER alone failed to reach the goal within the allocated time.
- Uncertainty PER Outperforms Standard PER: Incorporating uncertainty-prioritized replay into QTA further accelerated convergence in longer mazes, whereas standard TD-error PER provided negligible benefit over uniform sampling.
- Architectural Comparisons: PUN outperformed other uncertainty estimation backbones, including Deep Ensembles and Bootstrapped Q-Networks.
Limitations and Future Work
- Toy Benchmark Scope: The evaluation is restricted to 2D continuous-state navigation mazes. Scaling and testing on high-dimensional robotics or visual continuous-control tasks remains unverified.
- Long-Horizon Overfitting: In very long-horizon M-mazes, the predictive heads occasionally overfit, causing QTA's performance advantage over simpler baselines like MEGA to narrow.
- Achievability Heuristic: Filtering invalid candidate goals relies on a hard-threshold heuristic ($cT$ cutoff), which the authors note could be upgraded to learned reachability discriminators or generative goal proposals.
Summary updated