Abstract
We consider the problem of graph searching with prediction recently introduced by Banerjee et al. (2023). In this problem, an agent starting at some vertex $r$ has to traverse a (potentially unknown) graph $G$ to find a hidden goal node $g$ while minimizing the total distance traveled. We study a setting in which at any node $v$, the agent receives a noisy estimate of the distance from $v$ to $g$. We design algorithms for this search task on unknown graphs. We establish the first formal guarantees on unknown weighted graphs and provide lower bounds showing that the algorithms we propose have optimal or nearly-optimal dependence on the prediction error. Further, we perform numerical experiments demonstrating that in addition to being robust to adversarial error, our algorithms perform well in typical instances in which the error is stochastic. Finally, we provide simpler performance bounds on the algorithms of Banerjee et al. (2023) for the case of searching on a known graph and establish new lower bounds for this setting.
Introduction
Graph searching is a fundamental problem in computer science with applications ranging from autonomous navigation to network routing. Traditionally, an agent must explore a graph to find a hidden goal node $g$ while minimizing the total distance traveled. Recent advancements in machine learning (ML) have opened a new frontier: "learning-augmented" algorithms. These algorithms leverage potentially noisy predictions—such as distance estimates from an ML model—to guide the search process.
This paper addresses the challenges of using these imperfect predictions in the exploration setting, where the graph's layout is initially unknown. Unlike previous work that focused on unweighted trees or known graphs (the planning setting), this research provides robust algorithms for arbitrary weighted and directed graphs.
Algorithmic Approaches
The study introduces distinct strategies tailored to different error models:
- Absolute Error ($\ell_1$-Greedy Search): When prediction error is independent of the actual distance, the $\ell_1$-Greedy Search algorithm is employed. At any point, the agent explores the node on the current boundary that minimizes the sum of the known distance from the root and the predicted distance to the goal. This approach is proven effective for general weighted and directed graphs.
- Relative Error: In many real-world scenarios, prediction error scales with distance (e.g., a 10% error rate). The authors propose algorithms that either prune the search space based on known error bounds or use a reweighted greedy strategy to penalize deep, potentially erroneous branches when the error rate is unknown but small.
- Metric Embeddings: For the planning setting, the authors utilize graph embeddings into simpler structures like paths or cycles to derive tighter performance bounds based on the distortion of these embeddings.
Theoretical Guarantees
The paper establishes rigorous upper and lower bounds for the proposed algorithms. A key finding is the asymmetry of error: overestimating the distance to the goal is significantly more detrimental than underestimating it, as it can lead the agent to ignore the optimal path in favor of costly detours.
The theoretical results show that for trees with maximum degree $\Delta$, the performance scales with the error parameters $\mathcal{E}_0$ or $\mathcal{E}_1$. For more complex graphs, such as those with bounded doubling dimension or path-embedding distortion, the algorithms maintain competitive performance relative to the optimal path (OPT).
Empirical Performance
While theoretical bounds often focus on adversarial, worst-case scenarios, numerical experiments reveal that these algorithms excel in average-case settings with stochastic errors. The authors tested their methods on diverse graph topologies, including Erdös-Rényi random graphs, random trees, lobster graphs, and circular ladders.
As shown in the figure above, the competitive ratio (the cost of the algorithm divided by the optimal cost) remains low even as the relative error $\varepsilon$ increases. Notably, the $\ell_1$-Greedy Search algorithm typically achieved costs between 0.7% and 3.1% of its theoretical upper bound, significantly outperforming naive baselines.
Discussion and Future Work
This work provides a robust framework for graph searching with noisy predictions. It highlights that relative error is a tractable model for exploration, particularly on tree structures. However, several avenues for future research remain:
- Generalizing Relative Error: Extending the formal guarantees for relative error algorithms from trees to general cyclic graphs.
- Average-Case Analysis: Developing theoretical bounds specifically for random error distributions to match the strong empirical results.
- Refining Structural Assumptions: Exploring how specific graph properties can be leveraged to further tighten performance guarantees.
By bridging the gap between worst-case theory and practical performance, this research paves the way for more efficient autonomous agents guided by machine learning.
Summary updated