TL;DR
State-Conditioned Adversarial Subgoal Generation (SAGA) tackles the notorious "non-stationarity" problem in hierarchical reinforcement learning (HRL). By introducing a state-conditioned discriminator, SAGA forces the high-level policy to only generate subgoals that the low-level policy can realistically achieve at its current stage of training. This simple adversarial constraint drastically improves sample efficiency and success rates on complex, long-horizon continuous control tasks.
What Problem Does This Paper Address?
In goal-conditioned Hierarchical Reinforcement Learning (HRL), a task is split between two entities: a high-level policy (the "manager") that breaks a long-term goal into a sequence of shorter-term subgoals, and a low-level policy (the "worker") that executes primitive actions to reach those subgoals.
When training these systems using data-efficient off-policy methods, a major roadblock emerges: non-stationarity. Because the low-level worker policy is constantly learning and changing its behavior, a subgoal generated by the manager in the past might lead to completely different state transitions today. This makes historical data in the replay buffer highly misleading, causing the manager to miscalculate the value of its subgoals and stall out during exploration.
While prior methods like HIRO attempt to fix this retroactively by "relabeling" old subgoals to match current worker capabilities, they don't prevent the manager from continuing to issue impossible, incompatible subgoals in the future.
Methods
The authors introduce SAGA (State-conditioned Adversarial subGoal generAtion), which frames HRL training as a two-player adversarial game reminiscent of Conditional GANs:
- The Generator: The high-level policy acts as the generator, mapping the current environment state to a proposed subgoal.
- The Discriminator: A newly introduced state-conditioned network trained concurrently with the policies. It takes the current state and a subgoal as input, and tries to distinguish between currently generated subgoals and successfully relabeled subgoals (which represent valid, reachable targets from past experiences).
To stabilize training, the high-level policy is optimized using a joint objective function. It must simultaneously maximize the standard expected environmental reward and "fool" the discriminator into thinking its proposed subgoals are realistic and reachable for the current low-level policy.
Datasets
The framework was evaluated on five challenging, long-horizon continuous control benchmarks featuring a quadruped "Ant" robot in the MuJoCo simulator:
- Ant Maze / Ant Maze (Image): Navigating a '⊃'-shaped maze with dense rewards or low-resolution top-down image observations.
- Ant Maze Sparse: Navigating the same maze but receiving a reward only upon reaching the final destination.
- Ant Gather: Collecting green apples while avoiding red bombs.
- Ant Push: Pushing a large block out of the way to clear a path toward a target.
- Ant Fall: A 3D task where the ant must push a block into a chasm to bridge a gap, cross over, and reach the goal.
Key Insights and Ideas
- Distribution Divergence as a Metric: The authors identify that the divergence between the distribution of newly generated subgoals and past relabeled subgoals is the primary indicator of non-stationarity. Minimizing this divergence directly stabilizes the hierarchy.
- Context Matters (State-Conditioning): A subgoal's reachability is highly dependent on the agent's current situation. The ablation studies showed that omitting the current state from the discriminator (
w/o state for D) causes performance to collapse in complex environments like Ant Push and Ant Fall, where subgoals must interact dynamically with objects (blocks, chasms). - Self-Bounding Exploration: Instead of restricting the subgoal space using rigid geometric constraints, SAGA dynamically and softly bounds the manager's exploration space based on the worker's fluid capabilities.
Key Results
SAGA consistently outperformed state-of-the-art HRL baselines (HIRO, HRAC, LESSON) and flat RL (TD3) across all tasks in both learning speed and final performance.
- Complex Task Mastery: In the highly complex Ant Push environment, SAGA achieved a final success rate of 0.72, whereas HRAC only reached 0.06 and HIRO failed completely (0.00).
- 3D Navigation Success: In Ant Fall, SAGA achieved a success rate of 0.47, significantly beating LESSON (0.38) and leaving HRAC (0.11) and HIRO (0.01) far behind.
- Sample Efficiency: SAGA demonstrated rapid initial learning, often requiring fewer than 3 million environment steps to achieve high success rates on tasks where other algorithms struggled to learn at all.
Limitations and Future Work
While SAGA shows remarkable performance, a few limitations remain open for future exploration:
- Hyperparameter Sensitivity: The adversarial loss weight ($\alpha_{adv}$) requires careful tuning; if it is too large, it slows down high-level value function learning and hurts exploration.
- Two-Layer Limitation: The current architecture is strictly evaluated on a two-layer hierarchy. Extending this adversarial distribution matching to deeper, multi-layer hierarchies remains an open engineering question.
- Dependence on Relabeling: SAGA relies on the quality of the underlying subgoal relabeling mechanism to provide a clean "ground truth" distribution of reachable states.
Summary updated