Learning to Search via Self-Imitation

Jialin Song, Ravi Lanka, Albert Zhao, Yisong Yue, Masahiro OnoarXiv 2018

Abstract

Retrospective Imitation Learning (RIL) is a novel framework that enables search policies to improve by self-correcting their own successful but inefficient attempts. By identifying optimal paths in hindsight and removing redundant explorations, RIL generates high-quality training data that allows search agents to scale to problem sizes far exceeding those solvable by original experts. This paper demonstrates the effectiveness of RIL across various combinatorial search tasks, including maze solving and risk-aware path planning.

Introduction

Many critical tasks in robotics and logistics require navigating massive combinatorial search spaces. Traditional approaches rely on human-designed heuristics within algorithms like A* or Branch-and-Bound. While machine learning can automate heuristic design, standard Reinforcement Learning (RL) often suffers from sparse rewards, and Imitation Learning (IL) is limited by the availability and scalability of expert demonstrations. Retrospective Imitation addresses these challenges by allowing a policy to learn from its own "cleaned-up" successful traces.

Methodology: Retrospective Imitation

The core of the RIL framework is a four-step iterative process designed to refine search policies through self-imitation.

  1. Initial Bootstrapping: A policy is initially trained on a small set of expert demonstrations.
  2. Policy Roll-out: The current policy attempts to solve a new, often larger, problem instance. While it may explore many dead ends, it eventually reaches a feasible solution.
  3. Retrospective Oracle: Once a solution is found, the algorithm identifies the optimal path from the start to the goal within the explored search tree, discarding all backtracks and sub-optimal branches.
  4. Policy Update: This refined path serves as new training data, and the policy is updated to prefer these direct actions.
The Retrospective Imitation Learning workflow, showing the transition from a messy roll-out trace to a cleaned-up retrospective oracle feedback.

This process allows for "Scaling Up," where a policy trained on problem size $N$ generates the initial traces for size $N+1$, facilitating learning on increasingly complex instances.

Experimental Evaluation

The researchers evaluated RIL on several combinatorial environments: synthetic maze solving, risk-aware path planning (MILP), Minimum Vertex Cover (MVC), and combinatorial auctions.

Key Results

The results indicate that RIL significantly outperforms simple extrapolation (applying a small-scale model to large problems). In maze solving, RIL even surpassed models trained directly on large-scale expert data.

Optimality gap comparisons for MILP-based path planning using DAgger. Retrospective DAgger maintains a significantly lower optimality gap as problem size increases compared to extrapolation.

In risk-aware path planning, Retrospective DAgger achieved optimality gaps approximately 50% lower than the commercial solver Gurobi under identical node exploration constraints. Furthermore, the model successfully generalized to 500-node Minimum Vertex Cover problems after being initialized with data from only 100-node instances.

Discussion and Conclusion

The success of RIL stems from the insight that finding a solution is the primary bottleneck; once found, the optimal path is easily identifiable in hindsight. This creates a virtuous cycle of self-improvement. While the method requires an initial solution to be found (necessitating some exploration), it demonstrates remarkable robustness and scalability. Future work will explore hybrid systems that integrate high-level human guidance with low-level retrospective optimization.

Summary updated

BibTeX
@misc{song2018learning,
  author = {Jialin Song and Ravi Lanka and Albert Zhao and Yisong Yue and Masahiro Ono},
  title = {{Learning to Search via Self-Imitation}},
  year = {2018},
  eprint = {1804.00846},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.00846},
}
Figure