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.
- Initial Bootstrapping: A policy is initially trained on a small set of expert demonstrations.
- 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.
- 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.
- Policy Update: This refined path serves as new training data, and the policy is updated to prefer these direct actions.
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.
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