Online Paging with Heterogeneous Cache Slots

Marek Chrobak, Samuel Haney, Mehraneh Liaee, Debmalya Panigrahi, Rajmohan Rajaraman, Ravi Sundaram, Neal E. Young

TL;DR

This paper introduces Slot-Heterogeneous Paging, a realistic generalization of the classic online paging problem where data requests specify not just a page, but also a restricted subset of cache slots where that page must be placed. The authors map out the competitive landscape of this problem, demonstrating that while unrestricted slot requests cause an exponential explosion in complexity, enforcing natural structural constraints—like hierarchical (laminar) cache partitioning—keeps the problem highly manageable with polynomial or linear competitive ratios.

What Problem Does This Paper Address?

In the classic online paging problem, a cache consists of $k$ identical, interchangeable slots. Any requested page can be placed into any available slot. However, modern computing architectures rarely look this uniform. Think of multi-core processors with partitioned caches, distributed Content Delivery Networks (CDNs) like Akamai with multi-level caching, or systems that dynamically restrict cache slot accessibility based on specific threads or processes.

To model these scenarios, the authors introduce Slot-Heterogeneous Paging. In this framework, each online request arrives as a pair $\langle p, S \rangle$, meaning page $p$ must be served by placing it into some slot within the specific subset $S \subseteq [k]$. The problem is parameterized by the family $\mathcal{S}$ of allowed requestable slot sets. The core challenge is to design online algorithms that minimize cache misses (retrievals) without knowing future requests, evaluated using competitive analysis against an optimal offline adversary.

Methods

The authors employ several sophisticated theoretical techniques to bound the competitive ratios:

  • Matrix Rank Method: To establish upper bounds for arbitrary slot families, the authors analyze a phase-based deterministic algorithm called EXHSEARCH.

    The deterministic online algorithm EXHSEARCH uses a phase-based approach to satisfy slot-heterogeneous requests.

    They bound the maximum number of distinct requests within a single phase by constructing a specialized upper-triangular matrix and calculating its algebraic rank.

  • Problem Reductions and Rounding: For hierarchical cache structures (Slot-Laminar Paging), they introduce a dual problem called Page-Laminar Paging (where requests specify a set of pages rather than slots). They show how to relax the slot-capacity constraints, solve the problem in the page-laminar domain, and then "round" the solution back to the original slot-constrained domain while losing only a small factor in efficiency.

  • Primal-Dual Linear Programming: For the Weighted All-or-One Paging variant (where pages have different retrieval costs), the authors design a deterministic online algorithm using a fractional linear program. They augment the standard paging LP with capacity constraints to partially capture the rigid slot requirements, preventing the fractional relaxation from collapsing into an uninformative state.

Datasets

Not discussed in the paper. This is a purely theoretical paper focused on algorithmic design and mathematical proofs; no empirical datasets or experimental benchmarks were used.

Key Insights and Ideas

  • The Exponential Penalty of Total Freedom: If an application is allowed to request any arbitrary subset of cache slots ($\mathcal{S} = 2^{[k]} \setminus \{\emptyset\}$), the competitive ratio suffers an exponential blowup compared to standard paging. Freedom of choice for the requester severely handicaps the online algorithm.
  • Structure Saves the Day: The massive complexity explosion only occurs if the request sequence utilizes exponentially many distinct slot combinations. If the slot subsets form a laminar family—meaning any two requestable slot sets are either entirely disjoint or nested hierarchically (mirroring real-world core/thread cache isolation)—the competitive ratio drops back down to a polynomial or linear function of the cache size.
  • Offline Hardness: In standard paging, finding the absolute best offline schedule is easy using Belady's classic furthest-in-the-future strategy. Remarkably, the authors show that adding even the simplest slot constraints (e.g., All-or-One Paging, where you either request the whole cache or one specific slot) turns the offline optimization problem NP-hard.

Key Results

The paper maps out a comprehensive taxonomy of upper and lower bounds for different slot families, summarized in the paper's core results table:

Summary of upper and lower bounds on optimal competitive ratios for various paging problem flavors.

Key quantitative highlights include:

  • Unrestricted Slots: The optimal deterministic competitive ratio is bounded above by $k2^k$, while the randomized ratio is at most $O(k^2 \log k)$. The authors prove a deterministic lower bound of $\Omega(2^k/\sqrt{k})$, confirming the exponential complexity.
  • Polynomial Bounds via Family Size: As a function of the number of requestable slot sets $|\mathcal{S}|$, the optimal deterministic ratio is strictly polynomial: at most $O(k^2|\mathcal{S}|)$ and at least $\Omega(\sqrt{|\mathcal{S}|})$.
  • Laminar (Hierarchical) Families: For a laminar family of height $h$, the authors refine their approach into an algorithm called REFSEARCH, achieving a tight deterministic competitive ratio of $O(hk)$ and a randomized ratio of $O(h^2 \log k)$.
  • Weighted All-or-One Paging: The deterministic online algorithm achieves a competitive ratio of $O(k)$, matching the order of standard weighted paging despite the added slot constraints.

Limitations and Future Work

The authors highlight several open problems to bridge remaining theoretical gaps:

  1. Tightening the Bounds: Is the $O(k^2|\mathcal{S}|)$ deterministic upper bound tight for all arbitrary families, or can it be lowered?
  2. Polylogarithmic Randomized Ratios: For arbitrary slot families, is it possible to achieve a randomized competitive ratio that scales poly-logarithmically with $|\mathcal{S}|$ and $k$?
  3. Eliminating Hierarchy Height ($h$) Dependence: Can the multiplicative dependence on the tree height $h$ be reduced or eliminated for laminar paging variants?
  4. The Ultimate Generalization: The ultimate goal is solving the Heterogeneous $k$-Server problem in arbitrary metric spaces, which remains wide open.

Summary updated

BibTeX
@inproceedings{chrobak2023online,
  author = {Marek Chrobak and Samuel Haney and Mehraneh Liaee and Debmalya Panigrahi and Rajmohan Rajaraman and Ravi Sundaram and Neal E. Young},
  title = {{Online Paging with Heterogeneous Cache Slots}},
  booktitle = {STACS},
  year = {2023},
  doi = {10.4230/lipics.stacs.2023.23},
}
Figure