Sample Complexity of Learning Heuristic Functions for Greedy-Best-First and A* Search
Abstract
Greedy best-first search (GBFS) and A* search (A*) are popular algorithms for path-finding on large graphs. Both use so-called heuristic functions, which estimate how close a vertex is to the goal. While heuristic functions have been handcrafted using domain knowledge, recent studies demonstrate that learning heuristic functions from data is effective in many applications. Motivated by this emerging approach, we study the sample complexity of learning heuristic functions for GBFS and A*. We build on a recent framework called data-driven algorithm design and evaluate the pseudo-dimension of a class of utility functions that measure the performance of parameterized algorithms. Assuming that a vertex set of size is fixed, we present and upper bounds on the pseudo-dimensions for GBFS and A*, respectively, parameterized by heuristic function values. The upper bound for A* can be improved to if every vertex has a degree of at most and to if edge weights are integers bounded by . We also give lower bounds for GBFS and A*, which imply that our bounds for GBFS and A* under the integer-weight condition are tight up to a factor. Finally, we discuss a case where the performance of A* is measured by the suboptimality and show that we can sometimes obtain a better guarantee by combining a parameter-dependent worst-case bound with a sample complexity bound.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
4 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Generalization Guarantees for Learning Score-Based Branch-and-Cut Policies in Integer Programming cites Generalization Bound and Learning Methods for Data-Driven Projections in Linear Programming
- Learning Admissible Heuristics for A: Theory and Practice cites Path Planning using Neural A Search
Cited by top-tier papers4
- Generalization Bound and Learning Methods for Data-Driven Projections in Linear ProgrammingShinsaku Sakaue, Taihei OkiNeurIPS 2024 · 13 citations
- Generalization Guarantees for Learning Score-Based Branch-and-Cut Policies in Integer ProgrammingHongyu Cheng, Amitabh BasuNeurIPS 2025 · 6 citations
- Learning Admissible Heuristics for A*: Theory and PracticeEhsan Futuhi, Nathan R. SturtevantICLR 2026 · 3 citations
- Learning Configurations for Data-Driven Multi-Objective OptimizationZhiyang Chen, Hailong Yao, Xia YinICML 2025
Builds on3
- Retro*: Learning Retrosynthetic Planning with Neural Guided A* SearchBinghong Chen, Chengtao Li, Hanjun Dai, Le SongICML 2020 · 151 citations
- Path Planning using Neural A* SearchRyo Yonetani, Tatsunori Taniai, Mohammadamin Barekatain, Mai Nishimura et al.ICML 2021 · 134 citations
- Learning Predictions for Algorithms with PredictionsMisha Khodak, Maria-Florina Balcan, Ameet Talwalkar, Sergei VassilvitskiiNeurIPS 2022 · 40 citations
Related papers
- Optimize Planning Heuristics to Rank, not to Estimate Cost-to-GoalLeah Chrestien, Stefan Edelkamp, Antonín Komenda, Tomás PevnýNeurIPS 2023 · 17 citations
- Data driven semi-supervised learningMaria-Florina Balcan, Dravyansh SharmaNeurIPS 2021 · 21 citations
- Subgoal-Guided Policy Heuristic Search with Learned SubgoalsJake Tuero, Michael Buro, Levi LelisICML 2025
- Policy-Guided Heuristic Search with GuaranteesLaurent Orseau, Levi H. S. LelisAAAI 2021 · 30 citations
- How hard is learning to cut? Trade-offs and sample complexitySammy Khalife, Andrea LodiICLR 2026 · 1 citation
