CoChat

Competitive Caching with Machine Learned Advice

Open access
Lykouris, Thodoris, Vassilvitskii, Sergei · 2021 · Journal of the ACM

The DOI matches its Crossref record; 55 of the 55 references it cites were found in a registry or an index; none of the 10 sources its claims cite is checked for support yet.

Abstract

Traditional online algorithms encapsulate decision making under uncertainty, and give ways to hedge against all possible future events, while guaranteeing a nearly optimal solution, as compared to an offline optimum. On the other hand, machine learning algorithms are in the business of extrapolating patterns found in the data to predict the future, and usually come with strong guarantees on the expected generalization error. In this work, we develop a framework for augmenting online algorithms with a machine learned predictor to achieve competitive ratios that provably improve upon unconditional worst-case lower bounds when the predictor has low error. Our approach treats the predictor as a complete black box and is not dependent on its inner workings or the exact distribution of its errors. We apply this framework to the traditional caching problem—creating an eviction strategy for a cache of size k . We demonstrate that naively following the oracle’s recommendations may lead to very poor performance, even when the average error is quite low. Instead, we show how to modify the Marker algorithm to take into account the predictions and prove that this combined approach achieves a competitive ratio that both (i) decreases as the predictor’s error decreases and (ii) is always capped by O (log k ), which can be achieved without any assistance from the predictor. We complement our results with an empirical evaluation of our algorithm on real-world datasets and show that it performs well empirically even when using simple off-the-shelf predictions.

Overview

CoChat Summary

TL;DR

The paper introduces an OMLA framework for augmenting online algorithms with machine-learned predictions, instantiated for caching as Predictive Marker. Predictive Marker improves competitive ratio as predictor error decreases while retaining an O(log k) worst-case bound, and experiments on BrightKite/CitiBike data show it outperforms LRU, Marker, and blindly following the oracle.

Key findings

  • Predictive Marker achieves competitive ratio `min(2 + 2·√(5ε), 4H_k)` under absolute loss and `min(2 + 2·3√(14ε), 4H_k)` under squared loss, where `ε` is the predictor error and `H_k` is the k-th harmonic number (Corollaries 1–2).
  • Blindly following the predictor is insufficient: algorithms B and W have competitive ratio `Ω(ε)` under absolute loss (Propositions 3.1–3.2).
  • On PLECO predictions, Predictive Marker had competitive ratios `1.266` on BK and `1.810` on Citi, versus LRU `1.280`/`1.859`, Marker `1.310`/`1.869`, and Blind Oracle `2.049`/`2.023`; it was `2.5%` better than the next best method, LRU, with `p < 0.001` (Table 2).
  • LRU can be expressed as a predictor in the framework and robustified, and a black-box combination of an `α`-robust and `γ`-competitive algorithm yields a `9α`-robust and `9γ`-competitive algorithm (Theorem 4.3).

Methods

  • Theoretical design: the OMLA framework treats the predictor as a black box, defines `ε`-accurate predictors, and analyzes caching where the predictor forecasts the next arrival time of each requested element; analysis uses the Marker algorithm, blame chains, and a loss-function “spread” `S_ℓ`, with extensions to randomized predictors via Jensen’s inequality.
  • Experiments: two public datasets—BK (100 sequences, length 2,101, unique elements 67–800) and Citi (24 sequences, length 25,000, unique elements 593–719)—with synthetic lognormal prediction errors and off-the-shelf PLECO predictions; algorithms compared are LRU, Marker, Predictive Marker, and Blind Oracle, using competitive ratio (misses divided by optimum), with `k = 10` for BK and `k = 100` for Citi.
  • Main analysis: proves consistency, robustness, and worst-case competitiveness bounds, plus a lower bound showing any deterministic `ε`-assisted marking algorithm using predictions only for tie-breaking has competitive ratio `Ω(min(S_ℓ(ε), k))` (Theorem 3.4).

Limitations

  • The paper states that deciding the prediction model and loss function involves learnability trade-offs, and better understanding these exact trade-offs is “a major open direction”; it also conjectures that a randomized approach might achieve rate `log(1 + √ε)` for absolute loss, with subsequent work making progress.
  • The paper states the empirical gains are modest (`2.5%` better than LRU) and that the off-the-shelf PLECO model was not tuned or optimized for predicting next appearance.
  • Evident from the text: the main theoretical results focus on per-item decomposable loss functions, and the experiments cover only two datasets and specific cache sizes (`k = 10` and `k = 100`), so broader empirical and model generality is not established here.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

Crossref · 10.1145/3447579

Cites

55 of 55 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Figures

Figure 1 Ratio of average number of evictions as compared to optimum for varying levels of oracle error.
Figure 1 Ratio of average number of evictions as compared to optimum for varying levels of oracle error.From the PDF

Verification

Claims the paper makes

0 Valid · 3 Not valid · 10 Not checked · 73 Own results and interpretations

47 more claims

Create a free account to see all 86 claims and every source verdict.

See all claims — free account
  • Probably not a substantial claim. 17
  • It may state two separate claims as one. 20
  • The quote only partly states this claim. 2

Create a free account to see these claims.

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

Each contradiction between two passages listed here was confirmed by an independent check.

3 of 3

Citations

Cites

Research works printed but not linked: 9

  1. Thodoris Lykouris and Sergei Vassilvtiskii . 2018 . Competitive caching with machine learned advice . In Proceedings of the 35th International Conference on Machine Learning (Proceedings of Machine Learning Research). PMLR, 3296–3305 . Thodoris Lykouris and Sergei Vassilvtiskii. 2018. Competitive caching with machine learned advice. In Proceedings of the 35th International Conference on Machine Learning (Proceedings of Machine Learning Research). PMLR, 3296–3305.
  2. 10.5555/3294771.3294948 · doi:10.5555/3294771.3294948
  3. 10.5555/2095116.2095250 · doi:10.5555/2095116.2095250
  4. 10.5555/3326943.3326986 · doi:10.5555/3326943.3326986
  5. 10.5555/211390 · doi:10.5555/211390
  6. 10.5555/3327546.3327635 · doi:10.5555/3327546.3327635
  7. 10.5555/3381089.3381201 · doi:10.5555/3381089.3381201
  8. 10.5555/2969442.2969519 · doi:10.5555/2969442.2969519
  9. [Wei20] Alexander Wei. Better and simpler learning-augmented online caching. In International Conference on Approximation Algorithms for Combinatorial Optimization Problems (APPROX) , 2020.

Cited by

See all 172

Metadata

Authors
Lykouris, T., & Vassilvitskii, S.
Affiliations
  • Microsoft (United States) (US)
  • Google (United States) (US)
Venue
Journal of the ACM
Published
2021-07-14
Volume
68
Issue
4
Pages
1-25
ISSN
  • 0004-5411 (ISSN-L)
  • 1557-735X
OpenAlex
W2786176077
Cited by
172
References
41
Citations by year
2026: 36 · 2025: 32 · 2024: 31 · 2023: 18 · 2022: 25 · 2021: 17
FWCI
10.19
Type
journal article
Language
en
Open access
Locations
  • Journal of the ACM (publishedVersion, cc-by-nc-nd)
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
  • International Conference on Machine Learning
Funders
  • NSF (CCF-1563714)
  • Google Ph.D. Fellowship
Topics
  • Physical Sciences › Mathematics › Theoretical Computer Science › Optimization and Search Problems
  • Physical Sciences › Mathematics › Theoretical Computer Science › Algorithms and Data Compression
  • Physical Sciences › Computer Science › Computer Networks and Communications › Caching and Content Delivery
Keywords
online algorithms, competitive ratio

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

A language model drew the claims from the paper on 2026-10-10, under version 3 of the claim definition (model deepseek-v4.1-flash, prompt extract-v3).

A second model labelled each claim on 2026-10-10 (model jev-1.13-20260917, definition revision gold-guideline-v0.2).

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.