Learning augmented algorithm
A learning augmented algorithm is an algorithm that can make use of a prediction to improve its performance.
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. Here is a problem instance and is the prediction.A prediction can be any object. Common are the following types:
- Prediction of an optimal solution. The prediction gives a solution to the problem or characterizes an optimal solution.
- Prediction of the input. This is mainly used for online problems.
- Prediction of algorithmic actions. A prediction tailored to a specific algorithm that suggests a specific algorithm execution.
- 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.
- Smoothness. A learning augmented algorithm is called smooth if its performance can be bounded by a function of the quality of the prediction. Here, the quality can be measured in a problem specific way. This is also called the prediction error.
- Robustness. A learning augmented algorithm is called robust if its worst-case performance can be bounded even if the given prediction is inaccurate.
Applications
A few examples of problems where learning augmented algorithms have been applied are the following.Online algorithms
- The ski rental problem
- The weighted paging problem
- The set cover problem
- Nonclairvoyant scheduling
- The online matching problem
Warm starting
Data structures
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.
- First, look at position in the list. If, the element has been found.
- If, look at positions until an index with is found.
- * Now perform a binary search on.
- If, do the same as in the previous case, but instead consider.
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
- The maximum weight matching problem
Approximation algorithms
- The maximum cut problem
- The vertex cover problem
Mechanism Design
- The facility location problem