Abstract
AlphaNPI-X is a three-stage learning framework designed to solve complex, multi-step robotic tasks characterized by sparse rewards. By integrating reinforcement learning, program synthesis, and model-based planning, AlphaNPI-X learns a library of atomic skills and a transition model of their effects. This allows the agent to plan hierarchical programs through internal "imagination," significantly enhancing sample efficiency compared to standard model-free reinforcement learning methods.
Introduction
Robotic control often involves long-horizon planning where success depends on a sequence of precise actions. For instance, a task like "clear the table and stack blue blocks" requires hierarchical reasoning. Traditional Deep Reinforcement Learning (RL) struggles with such tasks due to the "sparse reward" problem—feedback is only received at the end of a long sequence, making random exploration ineffective.
AlphaNPI-X addresses this by constructing a hierarchy of abstract actions, enabling the agent to solve complex tasks that are otherwise intractable for model-free approaches. By combining the strengths of AlphaZero-style planning with neural program synthesis, the system learns to decompose high-level goals into executable sub-routines.
Methodology
AlphaNPI-X decomposes the learning process into three distinct modules that work in concert to bridge the gap between low-level control and high-level reasoning:
- Atomic Programs: The agent first learns goal-conditioned policies for basic skills (e.g., moving a specific block to a target position) using DDPG and Hindsight Experience Replay (HER). HER facilitates learning from sparse rewards by relabeling failed trajectories as successful attempts for the states they actually reached.
- Self-Behavioral Model: Once atomic skills are mastered, the agent learns a transition model. Unlike frame-by-frame predictors, this model predicts the environment's state after the execution of an entire atomic skill. These "jumpy" predictions allow for stable long-term planning over extended time horizons.
- Meta-Controller: The agent utilizes a recursive version of Monte Carlo Tree Search (MCTS) to compose atomic skills into high-level programs. Using the self-behavioral model, the agent can simulate these sequences internally—effectively "imagining" the outcome—before acting in the real world.
Experimental Results
The framework was evaluated in an extended OpenAI Gym Fetch environment featuring four colored blocks and two target zones. The agent was tasked with mastering a library of 27 programs, including complex tasks like CLEAN_AND_STACK.
Key findings include:
- Solving Complex Tasks: On the most challenging
CLEAN_AND_STACKtask, standard DDPG+HER baselines failed completely (0% success). In contrast, AlphaNPI-X achieved success rates between 38% and 95% depending on the planning mode. - Enhanced Sample Efficiency: The agent mastered the entire task library in approximately 750,000 episodes. For comparison, previous state-of-the-art methods required over 2.5 million episodes just for simpler block-stacking tasks.
- Robustness through Re-planning: The authors found that "re-planning" after every atomic action (receding horizon planning) made the agent significantly more robust to discrepancies between imagined and actual environment states.
Discussion and Future Work
The success of AlphaNPI-X highlights the importance of temporal abstraction and hierarchical planning in continuous control. By predicting outcomes at the level of skills rather than raw time steps, the agent achieves more stable and efficient planning.
A primary limitation of the current work is that the hierarchical library is pre-specified by human designers. Future research aims to enable "program discovery," where the agent autonomously identifies and defines its own useful sub-routines and hierarchies, moving toward truly unsupervised robotic intelligence.
Summary updated