A Universal Error Measure for Input Predictions Applied to Online Graph Problems

Giulia Bernardini, Alexander Lindermayr, Alberto Marchetti-Spaccamela, Nicole Megow, Leen Stougie, Michelle Sweering

Introduction

In classic online optimization, algorithms must make decisions on the fly as data arrives—such as routing a delivery truck as new orders pop up. Because future requests are unknown, traditional algorithms are evaluated using worst-case analysis, which is often overly pessimistic.

Recently, researchers have started using machine learning to predict future requests, creating "learning-augmented algorithms." The goal is to achieve consistency (near-optimal performance if predictions are perfect) and robustness (a guaranteed baseline performance even if predictions are completely wrong).

However, to mathematically prove how well these algorithms work, we need a robust way to measure how wrong a prediction is. Existing error measures for graph problems—like simply counting the number of wrong nodes or measuring physical distance—fail to capture the true algorithmic cost of an error. For example, they struggle to account for asymmetric costs, such as timing (when a request arrives) or mismatched sequence lengths (predicting 100 requests when only 10 show up). This paper addresses the gap by proposing a novel, universal "cover error" measure that accurately reflects the "extra work" an algorithm must do when it trusts a flawed prediction.

The Universal Cover Error Metric

The authors introduce the Cover Error, which is based on a bipartite hypergraph. The intuition behind this metric is as follows:

  1. The Setup: Imagine two sets of requests: the unexpected actual requests (things that happened but weren't predicted) and the absent predicted requests (things we expected but never happened).
  2. The Hyperedges: The method attempts to "cover" the unexpected requests using the predicted ones. A hyperedge links a single predicted request to a subset of actual requests.
  3. The Cost: The cost of this hyperedge is defined as the optimal cost to serve that subset of actual requests starting from the predicted request.

Essentially, the metric calculates the minimum "detour" cost required to fix the mistakes in the prediction.

Illustration of the hyperedge cover concept, grouping actual requests (green) around predicted ones (red).

This approach yields several key insights. First, not all errors are created equal: a missing request right next to a predicted one is cheap to fix, while one on the other side of the map is expensive. The cover error naturally captures this spatial reality. Second, timing is critical. Because the cover error allows for asymmetric cost functions, it seamlessly integrates release dates, penalizing predictions that get the location right but the timing wrong.

Application to Online Routing

The authors apply this metric to the Online Traveling Salesperson Problem (OLTSP) and Online Dial-a-Ride (OLDARP). They propose a framework called DELAYTRUST (and an optimized version, SMARTTRUST).

In online routing, moving too early based on a prediction leaves you vulnerable to an adversary spawning a request at your starting point. Instead of blindly rushing to serve predicted requests, SMARTTRUST uses a trust parameter $\alpha$ to intentionally delay its commitment to the prediction. It runs a standard, safe online algorithm for a set amount of time, and only later switches to following the predicted optimal route, adjusting for unexpected requests on the fly.

Routing detour cost illustration for online routing problems.

Key Results and Empirical Validation

By applying their new error measure, the authors proved tighter, more forgiving performance bounds than previous papers could manage:

  • Theoretical (OLTSP/OLDARP): The authors proved that their SMARTTRUST algorithm achieves a competitive ratio bounded by $\min\{(1+\alpha)(1 + 3\Lambda_1/C^*), 2 + 2/\alpha\}$, where $\Lambda_1$ is the cover error and $C^*$ is the optimal offline cost. Crucially, when predictions are highly accurate ($\Lambda_1$ approaches 0), this beats the strict worst-case lower bound of 2 for classic Online TSP.
  • Theoretical (Network Design): They proved that existing algorithms for Online Steiner Tree and Facility Location incur a cost of at most $\mathcal{O}(1) \cdot \text{OPT} + \mathcal{O}(\log k) \cdot \Lambda_k$, significantly improving upon previous bounds that scaled poorly when the number of predicted vs. actual requests differed greatly.

To empirically validate their theoretical findings, the authors simulated real-world taxi instances using the road network of Manhattan (via OpenStreetMap) and real-world pickup requests from the NYC Taxi & Limousine Commission. On this dataset, SMARTTRUST consistently outperformed classic online algorithms (like REPLAN and SMARTSTART). It maintained superior performance even when the predictions were injected with heavy Gaussian noise or when only a fraction of the actual instance was predicted correctly.

Limitations and Future Work

The core DELAYTRUST algorithm requires computing optimal TSP tours on sub-instances, which is NP-hard. While the authors provide a polynomial-time approximation variant, it comes at the cost of slightly looser performance guarantees.

For future work, the authors suggest applying the universal cover error to other online-time problems, particularly scheduling. They also note that predicting a full input instance might be overkill; future research could look into using the cover error framework with highly compressed predictions, such as just a few time-stamped waypoints.

Summary updated

BibTeX
@inproceedings{bernardini2022universal,
  author = {Giulia Bernardini and Alexander Lindermayr and Alberto Marchetti-Spaccamela and Nicole Megow and Leen Stougie and Michelle Sweering},
  title = {{A Universal Error Measure for Input Predictions Applied to Online Graph Problems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=7CVhl7Yl6U},
}
Figure