English

Competitive Algorithms for Block-Aware Caching

Data Structures and Algorithms 2022-05-25 v1

Abstract

We study the block-aware caching problem, a generalization of classic caching in which fetching (or evicting) pages from the same block incurs the same cost as fetching (or evicting) just one page from the block. Given a cache of size kk, and a sequence of requests from nn pages partitioned into given blocks of size βk\beta\leq k, the goal is to minimize the total cost of fetching to (or evicting from) cache. We show the following results: \bullet For the eviction cost model, we show an O(logk)O(\log k)-approximate offline algorithm, a kk-competitive deterministic online algorithm, and an O(log2k)O(\log^2 k)-competitive randomized online algorithm. \bullet For the fetching cost model, we show an integrality gap of Ω(β)\Omega(\beta) for the natural LP relaxation of the problem, and an Ω(β+logk)\Omega(\beta + \log k) lower bound for randomized online algorithms. The strategy of ignoring the block-structure and running a classical paging algorithm trivially achieves an O(β)O(\beta) approximation and an O(βlogk)O(\beta \log k) competitive ratio respectively for the offline and online-randomized setting. \bullet For both fetching and eviction models, we show improved bounds for the (h,k)(h,k)-bicriteria version of the problem. In particular, when k=2hk=2h, we match the performance of classical caching algorithms up to constant factors. Our results establish a separation between the tractability of the fetching and eviction cost models, which is interesting since fetching/evictions costs are the same up to an additive term for classic caching. Previous work only studied online deterministic algorithms for the fetching cost model when k>hk > h. Our insight is to relax the block-aware caching problem to a submodular covering LP. The main technical challenge is to maintain a competitive fractional solution, and to round it with bounded loss, as the constraints of this LP are revealed online.

Keywords

Cite

@article{arxiv.2205.12249,
  title  = {Competitive Algorithms for Block-Aware Caching},
  author = {Christian Coester and Roie Levin and Joseph and Naor and Ohad Talmon},
  journal= {arXiv preprint arXiv:2205.12249},
  year   = {2022}
}
R2 v1 2026-06-24T11:27:26.546Z