Learning augmented algorithm explained
A learning augmented algorithm 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.
Description
A learning augmented algorithm typically takes an input
. Here
is a problem instance and
is the advice: a prediction about a certain property of the optimal solution. The type of the problem instance and the prediction depend on the algorithm. Learning augmented algorithms usually satisfy the following two properties:
- Consistency. A learning augmented algorithm is said to be consistent if the algorithm can be proven to have a good performance when it is provided with an accurate prediction. Usually, this is quantified by giving a bound on the performance that depends on the error in the prediction.
- Robustnesss. An algorithm is called robust if its worst-case performance can be bounded even if the given prediction is inaccurate.
Learning augmented algorithms generally do not prescribe how the prediction should be done. For this purpose machine learning can be used.
Examples
Binary search
The binary search algorithm is an algorithm for finding elements of a sorted list
. It needs
steps to find an element with some known value
in a list of length
.With a prediction
for the position of
, the following learning augmented algorithm can be used.
in the list. If
, the element has been found.
, look at positions
until an index
with
is found.
- Now perform a binary search on
.
, do the same as in the previous case, but instead consider
.
The error is defined to be
, where
is the real index of
.In the learning augmented algorithm, probing the positions
takes
steps.Then a binary search is performed on a list of size at most
, which takes
steps. This makes the total running time of the algorithm
.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
. Then the algorithm takes at most
steps, so the algorithm is robust.
More examples
Learning augmented algorithms are known for:
See also
External links
Notes and References
- 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 .
- Book: NIPS'20: Proceedings of the 34th International Conference on Neural Information Processing Systems . Online Algorithms for Multi-shop Ski Rental with Machine Learned Advice . 2020 . 1-71382-954-1 . 1263313383 . 2002.05808 . Shufan . Wang. Jian. Li. Shiqiang. Wang.
- 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.
- 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 .