Reinforcement Learning (RL) has achieved incredible feats, but it often stumbles when faced with "compositional" problems—complex tasks that require a specific sequence of simpler steps. If the reward is sparse (e.g., the agent only gets a "point" at the very end of a long sequence), it might wander aimlessly forever without ever stumbling upon the solution.
A paper from ICLR 2021, "Solving Compositional Reinforcement Learning Problems via Task Reduction," introduces a clever way to bridge this gap by teaching agents to "simplify" their own problems.
TL;DR
The authors propose Self-Imitation via Reduction (SIR), a paradigm where an agent solves a hard task by actively reducing it to an easier, already-solved task. By concatenating the "reduction" steps with the "easy" solution, the agent generates its own expert demonstrations to learn from, effectively creating an automated curriculum for complex, sparse-reward environments.
What Problem Does This Paper Address?
Imagine a robot tasked with pushing a blue cube to a goal, but a long brown box is blocking the only doorway. To a human, the solution is obvious: move the brown box out of the way first, then push the blue cube.
To a standard RL agent, this is a nightmare. The agent only receives a reward when the blue cube reaches the goal. The odds of randomly moving the brown box and then pushing the blue cube through the door are astronomical.
Existing solutions like Hierarchical RL (HRL) try to break tasks into "sub-policies," but these are notoriously difficult to optimize. Curriculum Learning helps by starting with easy tasks, but often requires a human to design the progression. SIR aims to solve these compositional challenges without needing a complex hierarchy or manual hand-holding.
Methods: The "Reduce and Imitate" Loop
SIR relies on two core concepts to build its automated curriculum:
- Task Reduction: When an agent faces a hard task (Task A), it searches for a "reduction target"—an easier task (Task B) that it already knows how to solve. For example, Task B might be "push the blue cube to the goal starting from an open doorway." The agent's new goal is to transform the state of Task A into the starting state of Task B (e.g., by moving the blocking box).
- How it finds the target: The agent uses a Universal Value Function to find a state $s_B$ that maximizes the "composite value": the probability of reaching $s_B$ from the current state multiplied by the probability of reaching the final goal from $s_B$.
- Self-Imitation: Once the agent successfully reduces Task A to Task B and then completes Task B, it has a complete, successful trajectory for the original hard problem. It then uses Imitation Learning to "distill" this successful behavior back into its main policy.
By repeating this loop, the agent progressively expands its "solved subspace," moving from simple tasks to increasingly complex ones.
Datasets and Environments
The authors evaluated SIR on three challenging MuJoCo-based environments characterized by sparse rewards and compositional structures:
- Push: A robot must move a blocking object before pushing a target cube through a narrow door.
- Stack: A robotic gripper must stack up to three different colored boxes in a specific order to reach a high-altitude goal.
- Maze (4-Room): A 2D particle agent must navigate a maze where multiple doors are blocked by movable boxes.
They also tested a version using visual input (RGB images) in a U-Wall maze to prove the method scales beyond object-coordinate states.
Key Insights and Ideas
- Value Functions as Planners: Instead of just using the value function to estimate future rewards, SIR uses it as a "mental simulator" to find the easiest path through the task space.
- No Hierarchy Needed: Unlike HRL, which requires separate high-level and low-level policies, SIR distills everything into a single, flat policy. This avoids the optimization "chatter" often seen in bi-level architectures.
- Implicit Curriculum: SIR naturally creates a curriculum. It doesn't try to solve the hardest tasks until it has built a library of "easy" tasks to reduce them to.
- Agnostic to RL Algorithm: The paper demonstrates that SIR works equally well with off-policy methods (like SAC) and on-policy methods (like PPO).
Key Results
SIR consistently outperformed state-of-the-art baselines, including standard SAC/PPO, Hierarchical RL (HIRO, DSC), and automatic curriculum generation (GoalGAN).
- Stacking: In the most difficult "stacking 3 boxes from scratch" scenario, SIR achieved an 89% success rate, while all other baselines (including HRL) struggled to even cross 30%.
- Pushing: In hard cases where the door was blocked, SIR reached a ~94% success rate, nearly doubling the performance of standard SAC (~52%).
- Efficiency: SIR proved to be significantly more sample-efficient. In the 4-Room maze, SIR reached high success rates while baselines like SIL (Self-Imitation Learning without reduction) plateaued or failed to progress.
Limitations and Future Work
While powerful, SIR has a few caveats:
- State Space Assumptions: The current implementation works best in "object-centric" spaces where the agent can easily identify and perturb specific objects.
- Environment Resets: The training process currently assumes the agent can be "reset" to specific states during the reduction search, which might not be possible in all real-world robotics setups.
- Multi-modality: There might be many ways to reduce a task. The authors note that handling these "multi-modal" solutions (e.g., moving the box left vs. right) is a promising area for future imitation learning research.
By turning the challenge of "solving a hard task" into the goal of "finding an easier one," SIR provides a robust framework for building agents that can truly handle the compositional complexity of the real world.
Summary updated