Abstract
Traditional policy tree search algorithms often struggle with "needle-in-a-haystack" problems where finding a single solution is computationally expensive. This paper introduces a hierarchical, subgoal-guided policy framework ($\pi^{SG}$) that significantly improves sample efficiency by learning from both successful and failed search attempts. By applying the Louvain algorithm to cluster states in failed search trees, the agent learns local navigation skills even without reaching the final goal. Our method maintains completeness guarantees and demonstrates superior performance on complex deterministic tasks like CraftWorld and BoulderDash.
Introduction
Single-agent deterministic search tasks, such as complex robotic navigation or network routing, often present "needle-in-a-haystack" challenges. In these domains, finding even one valid solution is extremely difficult. Current state-of-the-art policy tree search algorithms, like PHS*, rely on neural networks to guide the search. However, these models typically use a "Bootstrap" training process that discards data from failed search attempts. This leads to high computational waste, especially in early training phases where failures are frequent and provide no training signal.
Methodology
The proposed framework consists of two main components: a hierarchical policy architecture and a novel training regime that utilizes failed search trees to learn environment topology.
Subgoal-Guided Policy ($\pi^{SG}$)
The system employs a Vector Quantized Variational Autoencoder (VQVAE) to generate $k$ candidate subgoals. A high-level policy $\pi^{hi}$ assigns weights to these subgoals, while a low-level policy $\pi^{low}$ provides action distributions conditioned on each subgoal. These components are integrated using a weighted geometric mean to guide the search process: $$\pi^{SG}(a|s) \propto \prod_{i=1}^k [\pi^{low}(a|\hat{s}_{g_i}, s)]^{\pi^{hi}(\hat{s}_{g_i}|s)}$$
Crucially, the search is performed in the original action space, ensuring the algorithm remains complete and can bypass unreachable subgoals.
Learning from Failure
To address sample inefficiency, the authors propose learning from failed searches. When a search fails, the expanded tree is not discarded. Instead, the Louvain algorithm is used to cluster states within the tree, revealing the environment's local topology.
By sampling pairs of states from adjacent clusters, the agent learns to navigate between local regions. This allows the VQVAE and policies to improve even before a full path to the goal is discovered, bridging the gap between high-level planning and low-level execution.
Experiments and Results
The method was evaluated on several challenging domains, including Box-World, CraftWorld, BoulderDash, Sokoban, and the Traveling Salesman Problem (TSP).
Sample Efficiency and Success Rate
In standard versions of Box-World and CraftWorld, the subgoal-guided approach required significantly fewer node expansions than baselines like PHS and LevinTS. On "Hard" variants of these tasks, where traditional search methods failed to solve almost any instances within a 16-hour budget, PHS($\pi^{SG}$) achieved nearly a 100% success rate.
Robustness
The $\pi^{SG}$ framework proved more robust than alternatives like HIPS-$\epsilon$. While HIPS-$\epsilon$ requires precise state reconstructions to function, $\pi^{SG}$'s action-level search can bypass imperfect subgoals generated by the VQVAE, maintaining performance even with noisy hierarchical guidance.
Conclusion
This work demonstrates that "failed" search attempts contain valuable information for training hierarchical policies. By clustering failed search trees and using learned subgoals to guide search, agents can solve long-horizon problems with unprecedented sample efficiency. While the computational cost per node expansion is higher due to multiple neural network passes, the dramatic reduction in the total number of expansions makes this a powerful approach for difficult search tasks. Future work will focus on optimizing the subgoal generation process and improving performance in domains with less clear topological structures, such as Sokoban.
Summary updated