Learning augmented algorithm explained

A learning augmented algorithm (also called algorithm with predictions) is an algorithm that can make use of a prediction to improve its performance.[1] Whereas in regular algorithms just the problem instance is inputted, learning augmented algorithms accept an extra parameter.This extra parameter often is a prediction of some property of the solution.This prediction is then used by the algorithm to improve its running time or the quality of its output. The most common application are online algorithms, where a prediction on the uncertain instance is provided.

Description

A learning augmented algorithm typically takes an input

(l{I},l{A})

. Here

l{I}

is a problem instance and

l{A}

is the prediction.A prediction can be any object. Common are the following types:

Learning augmented algorithms usually satisfy the following three properties:

Learning augmented algorithms generally do not prescribe how the prediction should be done. For this purpose machine learning can be used.

Applications

A few examples of problems where learning augmented algorithms have been applied are the following.

Online algorithms

Warm starting

Data structures

The binary search algorithm is an algorithm for finding elements of a sorted list

x1,\ldots,xn

. It needs

O(log(n))

steps to find an element with some known value

y

in a list of length

n

.With a prediction

i

for the position of

y

, the following learning augmented algorithm can be used.

i

in the list. If

xi=y

, the element has been found.

xi<y

, look at positions

i+1,i+2,i+4,\ldots

until an index

j

with

xj\geqy

is found.

xi,\ldots,xj

.

xi>y

, do the same as in the previous case, but instead consider

i-1,i-2,i-4,\ldots

.

The error is defined to be

η=|i-i*|

, where

i*

is the real index of

y

.In the learning augmented algorithm, probing the positions

i+1,i+2,i+4,\ldots

takes

log2(η)

steps.Then a binary search is performed on a list of size at most

2η

, which takes

log2(η)

steps. This makes the total running time of the algorithm

2log2(η)

.So, when the error is small, the algorithm is faster than a normal binary search. This shows that the algorithm is consistent.Even in the worst case, the error will be at most

n

. Then the algorithm takes at most

O(log(n))

steps, so the algorithm is robust.

More examples

Approximation algorithms

Mechanism Design

See also

External links

Notes and References

  1. Book: Beyond the Worst-Case Analysis of Algorithms . Mitzenmacher . Michael Mitzenmacher . Michael . Vassilvitskii . Sergei . Algorithms with Predictions . 31 December 2020 . 646–662 . Cambridge University Press . 10.1017/9781108637435.037 . 2006.09123 . 978-1-108-63743-5 .
  2. Purohit . Manish . Svitkina . Zoya . Kumar . Ravi . Improving Online Algorithms via ML Predictions . Advances in Neural Information Processing Systems 31 (NeurIPS 2018) . 9684–9693 . 2018 . Montréal, Canada . 18 December 2025.
  3. Book: Proceedings of the 2022 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA) . Bansal . Nikhil . Coester . Christian . Kumar . Ravi . Purohit . Manish . Vee . Erik . Learning-Augmented Weighted Paging . January 2022 . 67–89 . Society for Industrial and Applied Mathematics . 10.1137/1.9781611977073.4 . 978-1-61197-707-3 .
  4. Bamas . Étienne . Maggiori . Andreas . Svensson . Ola . The Primal-Dual Method for Learning Augmented Algorithms . Advances in Neural Information Processing Systems 33 (NeurIPS 2020) . 2020 . Virtual conference . 18 December 2025.
  5. Grigorescu . Elena . Lin . Young-San . Silwal . Sandeep . Song . Maoyuan . Zhou . Samson . Learning-Augmented Algorithms for Online Linear and Semidefinite Programming . 2209.10614 . cs . 2022.
  6. Im . Sungjin . Kumar . Ravi . Montazer Qaem . Mahshid . Purohit . Manish . Non-Clairvoyant Scheduling with Predictions . Proceedings of the 33rd ACM Symposium on Parallelism in Algorithms and Architectures (SPAA 2021) . 285–294 . ACM . 2021 . Virtual conference, USA . 10.1145/3409964.3461790 . 18 December 2025. free .
  7. Lindermayr . Alexander . Megow . Nicole . Permutation Predictions for Non-Clairvoyant Scheduling . ACM Transactions on Parallel Computing . 12 . 2 . 4:1–4:26 . 2025 . ACM . 10.1145/3711872 . 18 December 2025. subscription .
  8. Jin . Billy . Ma . Will . Online Bipartite Matching with Advice: Tight Robustness–Consistency Tradeoffs for the Two-Stage Model . Advances in Neural Information Processing Systems 35 (NeurIPS 2022) . 2022 . New Orleans, Louisiana, United States . 18 December 2025.
  9. Book: Michael. Dinitz. Sungjin. Im. Thomas. Lavastida. Benjamin. Benjamin. Sergei. Vassilvitskii. Advances in Neural Information Processing Systems. Curran Associates, Inc.. Faster Matchings via Learned Duals. 2021.
  10. Cohen-Addad . Vincent . d'Orsi . Tommaso . Gupta . Anupam . Lee . Euiwoong . Panigrahi . Debmalya . Learning-Augmented Approximation Algorithms for Maximum Cut and Related Problems . Advances in Neural Information Processing Systems 38 (NeurIPS 2024) . 2024 . Vancouver, British Columbia, Canada . 18 December 2025.
  11. Antoniadis . Antonios . Eliás . Marek . Polak . Adam . Venzin . Moritz . Approximation Algorithms for Combinatorial Optimization with Predictions . Proceedings of the Thirteenth International Conference on Learning Representations (ICLR 2025) . OpenReview . 2025 . Singapore . 18 December 2025.
  12. Agrawal . Priyank . Balkanski . Eric . Gkatzelis . Vasilis . Ou . Tingting . Tan . Xizhi . Learning-Augmented Mechanism Design: Leveraging Predictions for Facility Location . Mathematics of Operations Research . 49 . 4 . 2626–2651 . 2024 . INFORMS . 10.1287/MOOR.2022.0225 . 18 December 2025. subscription .