TL;DR
This paper reframes goal-conditioned reinforcement learning (RL) as a probabilistic inference problem: instead of maximizing a hand-crafted reward, the agent infers a trajectory distribution conditioned on achieving a desired future outcome. By applying variational inference, the authors derive Outcome-Driven Actor-Critic (ODAC), an off-policy algorithm that automatically generates dense reward signals and a dynamic discount factor directly from environment interactions, eliminating the need for manual reward engineering.
What Problem Does This Paper Address?
Designing reward functions is one of the most tedious and heuristic aspects of reinforcement learning. If the reward is sparse (e.g., a binary indicator showing whether a robot reached a goal), the agent receives virtually no feedback early in training, making learning incredibly slow or impossible in continuous state spaces. Conversely, hand-crafting dense rewards (like using negative Euclidean distance to a goal) requires significant domain expertise, can introduce unintended biases, and often leads to reward mis-specification where the agent exploits loopholes in the reward function rather than solving the actual task.
While prior work has attempted to view control through the lens of probabilistic inference, existing methods either assumed a pre-specified reward function or were restricted to on-policy learning and simple, low-dimensional settings. This paper addresses the challenge of learning complex, high-dimensional continuous control tasks over unknown time horizons without manually engineered rewards.
Methods
The authors formulate goal-conditioned RL as a stochastic boundary value problem. They model the state-action trajectory up to an unknown termination time $T$, conditioned on starting at an initial state $s_0$ and successfully reaching a desired outcome state $g$ (i.e., $S_T = g$).
To make this probabilistic inference problem tractable, they introduce a variational framework that minimizes the Kullback-Leibler (KL) divergence between a policy-induced trajectory distribution and the true goal-conditioned posterior distribution. From this variational objective, two key components emerge automatically:
-
Automatic Reward Shaping: The reward function is mathematically derived as the log-likelihood of achieving the desired outcome in the next step under the environment's transition dynamics: $$r(s, a, g) \propto \log p_d(g | s, a)$$ This provides a dense, well-shaped learning signal across the entire state space without human intervention.
-
Dynamic Discount Factor: Rather than using a fixed discount factor ($\gamma$), the variational distribution over the unknown termination time $T$ yields a state-action-dependent dynamic discount factor ($q_\Delta$). This factor automatically adjusts the agent's planning horizon based on its proximity to the goal or its likelihood of entering an irrecoverable state.
The authors instantiate this framework as Outcome-Driven Actor-Critic (ODAC), an off-policy temporal-difference algorithm compatible with deep neural networks for continuous control. ODAC learns a simple dynamics model alongside the policy and action-value functions, using it solely to compute the dense reward signal rather than for multi-step trajectory planning.
Datasets
The authors evaluated ODAC across six distinct simulated environments encompassing navigation, locomotion, and robotic manipulation:
- Box 2D: A simple 2D navigation task requiring the agent to maneuver around a central obstacle.
- Ant: A high-dimensional MuJoCo quadruped locomotion task where the robot must match a specific target location and pose.
- Sawyer Push & Fetch Push: Robotic manipulation tasks requiring an arm to push an object to a target position on a table.
- Sawyer Window & Sawyer Faucet: Complex manipulation tasks selected from the Meta-World benchmark suite, where the robot must open a window or rotate a faucet valve.
Key Insights and Ideas
- Emergent Dense Rewards: The dense reward structure is not a heuristic hack; it is a direct mathematical consequence of framing control as variational inference. As shown in the paper's grid-world visualization, the derived reward automatically flattens out near the goal early in training and sharpens its gradient as the policy improves.
- Local Dynamics are Sufficient: Unlike traditional model-based RL algorithms that suffer from compounding errors when planning long trajectories into the future, ODAC only uses its learned dynamics model for single-step predictions to evaluate $\log p_d(g | s, a)$. This makes the algorithm highly robust to imperfect dynamics models.
- Automatic Risk Aversion: The dynamic discount factor ($q_\Delta$) acts as an implicit safety mechanism. For example, in the Ant environment, if the robot flips over into an irrecoverable state, the learned value of $q_\Delta$ drops sharply, effectively terminating the episode's optimization horizon and teaching the agent to avoid catastrophic failures.
Key Results
ODAC was compared against several competitive baselines, including Hindsight Experience Replay (HER), DISCERN, Universal Value Density Estimation (UVD), and an oracle Soft Actor-Critic (SAC) baseline utilizing hand-crafted rewards.
To make the evaluation realistic and challenging, the tasks utilized a fixed, distant goal during exploration rather than uniform oracle goal sampling.
As illustrated in the learning curves above, ODAC consistently outperformed all alternative approaches across all six environments, learning significantly faster and achieving final distances to the goal that were often orders of magnitude closer than the baselines. Even when compared against SAC using manually engineered rewards, ODAC matched or exceeded its performance without requiring any human reward design.
Limitations and Future Work
While ODAC eliminates manual reward shaping, it introduces the requirement of learning a dynamics model ($p_\psi$). Although the empirical results demonstrate that ODAC performs well even with simple, crude dynamics models (such as a factorized Laplace distribution), highly complex or partially observable environments might demand more sophisticated modeling architectures.
The authors suggest that integrating dynamics models capable of capturing epistemic uncertainty or leveraging domain-specific structural priors represents a promising direction for future research.
Summary updated