Lune

NeurIPS2022Top-tier venue

Sample Complexity of Learning Heuristic Functions for Greedy-Best-First and A* Search

Shinsaku Sakaue, Taihei Oki

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 nn is fixed, we present O(nlg⁡n)\mathrm{O}(n\lg n) and O(n2lg⁡n)\mathrm{O}(n^2\lg n) 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 O(n2lg⁡d)\mathrm{O}(n^2\lg d) if every vertex has a degree of at most dd and to O(nlg⁡n)\mathrm{O}(n \lg n) if edge weights are integers bounded by poly(n)\mathrm{poly}(n). We also give Ω(n)\Omega(n) 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 lg⁡n\lg n 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.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

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
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Generalization Bound and Learning Methods for Data-Driven Projections in Linear ProgrammingShinsaku Sakaue, Taihei OkiNeurIPS 2024 · 13 citations
  2. Generalization Guarantees for Learning Score-Based Branch-and-Cut Policies in Integer ProgrammingHongyu Cheng, Amitabh BasuNeurIPS 2025 · 6 citations
  3. Learning Admissible Heuristics for A*: Theory and PracticeEhsan Futuhi, Nathan R. SturtevantICLR 2026 · 3 citations
  4. Learning Configurations for Data-Driven Multi-Objective OptimizationZhiyang Chen, Hailong Yao, Xia YinICML 2025

Builds on3

  1. Retro*: Learning Retrosynthetic Planning with Neural Guided A* SearchBinghong Chen, Chengtao Li, Hanjun Dai, Le SongICML 2020 · 151 citations
  2. Path Planning using Neural A* SearchRyo Yonetani, Tatsunori Taniai, Mohammadamin Barekatain, Mai Nishimura et al.ICML 2021 · 134 citations
  3. Learning Predictions for Algorithms with PredictionsMisha Khodak, Maria-Florina Balcan, Ameet Talwalkar, Sergei VassilvitskiiNeurIPS 2022 · 40 citations

Related papers

  1. Optimize Planning Heuristics to Rank, not to Estimate Cost-to-GoalLeah Chrestien, Stefan Edelkamp, Antonín Komenda, Tomás PevnýNeurIPS 2023 · 17 citations
  2. Data driven semi-supervised learningMaria-Florina Balcan, Dravyansh SharmaNeurIPS 2021 · 21 citations
  3. Subgoal-Guided Policy Heuristic Search with Learned SubgoalsJake Tuero, Michael Buro, Levi LelisICML 2025
  4. Policy-Guided Heuristic Search with GuaranteesLaurent Orseau, Levi H. S. LelisAAAI 2021 · 30 citations
  5. How hard is learning to cut? Trade-offs and sample complexitySammy Khalife, Andrea LodiICLR 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines