Abstract
Standard reinforcement learning (RL) builds trajectories step-by-step, which can lead to compounding errors over long horizons. This paper introduces Sub-Goal Trees (SGT), a divide-and-conquer framework that recursively predicts intermediate sub-goals between a start and a goal state. By shifting from sequential prediction to a hierarchical tree structure, SGT drastically reduces error accumulation from $O(N^2)$ to $O(N \log N)$ and significantly outperforms standard RL in complex robotic motion planning tasks.
Introduction: The Problem of Drift
Many AI tasks, such as robotic motion planning, require an agent to find a trajectory from a starting state to a specific goal state. Standard RL approaches this using the Bellman equation, which optimizes trajectories sequentially—predicting the very next state or action one step at a time.
The primary drawback of sequential prediction is drift. Small approximation errors at early steps compound over time, causing the agent to drift off course. Mathematically, error accumulation in standard sequential RL scales quadratically, $O(N^2)$, with the trajectory length $N$. While classical algorithms like Floyd-Warshall solve multi-goal routing exactly, they do not scale to continuous state spaces or neural network function approximation. SGT bridges this gap by providing an algorithm inspired by All-Pairs Shortest Path (APSP) that integrates seamlessly with deep learning.
The Sub-Goal Tree Framework
The authors propose abandoning the step-by-step approach in favor of a divide-and-conquer strategy.
Sub-Goal Tree Dynamic Programming (SGTDP)
Instead of predicting $s_{t+1}$ from $s_t$, the model is given a start and a goal and predicts a state exactly halfway between them. This splits the trajectory into two smaller segments. The model then recursively predicts the midpoints of those new segments until the full trajectory is fleshed out.
Implementation and Optimization
To scale this to continuous spaces, the authors introduce Fitted SGTDP, a batch RL algorithm that uses function approximation to learn value functions from offline data. For high-dimensional tasks like controlling a 7-joint robot arm, they develop SGT Policy Gradient (SGT-PG). This method utilizes a custom Policy Gradient theorem derived specifically for the recursive tree structure, allowing a stochastic policy to directly output optimal sub-goals.
Key Insights
- Reduced Error Bounds: The SGT approach reduces the error bound of a greedy trajectory from $O(N^2)$ to $O(N \log N)$. Breaking the trajectory into exponentially smaller segments limits the runway for errors to compound.
- Parallelization: Unlike sequential RL, where step 10 depends on steps 1-9, SGT branches are independent once a midpoint is predicted. This drops prediction time from $O(N)$ to $O(\log N)$.
- Memory Efficiency: SGT requires storing only $\log_2(N)$ value functions, compared to $N$ for standard finite-horizon approaches.
Experimental Results
The framework was evaluated on a 2D Point Robot and a 7-DoF Franka Panda Robotic Arm.
- Batch RL (2D Domain): Fitted SGTDP achieved an average distance to the goal of 0.13, while a standard sequential baseline (Fitted Q-Iteration) failed with a distance of 0.58.
- Neural Motion Planning (7-DoF Arm): In a challenging "wall" scenario, SGT-PG achieved a 97.3% success rate using 7 sub-goals. In contrast, a sequential baseline (SeqSG) trained with the same objective only managed a 48.7% success rate.
- Imitation Learning: SGT captured multi-modal behaviors better than sequential models and generated trajectories approximately 17x faster.
Conclusion and Future Work
The Sub-Goal Tree framework offers a robust alternative to sequential RL for long-horizon planning. While currently limited to deterministic environments, future work aims to extend SGT to stochastic transitions, active exploration, and high-dimensional image-based tasks.
Summary updated