Online Min-Max Paging

Ashish Chiplunkar, Monika Henzinger, Sagar Sudhir Kale, Maximilian Vötsch

Abstract: Motivated by fairness requirements in communication networks, we introduce a natural variant of the online paging problem, called min-max paging, where the objective is to minimize the maximum number of faults on any page. While the classical paging problem, whose objective is to minimize the total number of faults, admits $k$-competitive deterministic and $O(\log k)$-competitive randomized algorithms, we show that min-max paging does not admit a $c(k)$-competitive algorithm for any function $c$. Specifically, we prove that the randomized competitive ratio of min-max paging is $\Omega(\log(n))$ and its deterministic competitive ratio is $\Omega(k\log(n)/\log(k))$, where $n$ is the total number of pages ever requested. We design a fractional algorithm for paging with a more general objective -- minimize the value of an $n$-variate differentiable convex function applied to the vector of the number of faults on each page. This gives an $O(\log(n)\log(k))$-competitive fractional algorithm for min-max paging. We show how to round such a fractional algorithm with at most a $k$ factor loss in the competitive ratio, resulting in a deterministic $O(k\log(n)\log(k))$-competitive algorithm for min-max paging. This matches our lower bound modulo a $\mathrm{poly}(\log(k))$ factor. We also give a randomized rounding algorithm that results in a $O(\log^2 n \log k)$-competitive algorithm.

1. Introduction

The paging problem is a cornerstone of online algorithms and systems design. In its classical form, an algorithm manages a cache of size $k$ to serve a sequence of requests for pages from a larger universe of size $n$. When a requested page is not in the cache, a "fault" occurs, necessitating the eviction of an existing page to accommodate the new one. For decades, the primary objective has been efficiency: minimizing the total number of faults across the entire request sequence. Standard algorithms like Least Recently Used (LRU) and First-In-First-Out (FIFO) are known to be $k$-competitive, meaning their performance is at most $k$ times worse than an optimal offline algorithm that knows the entire request sequence in advance.

However, in modern multi-tenant environments—such as shared data centers, cloud storage, or communication networks—total efficiency is often insufficient. If an algorithm minimizes total faults by repeatedly evicting pages belonging to a specific user, that user suffers disproportionately high latency. This observation motivates the need for fairness in paging. In a recent paper, "Online Min-Max Paging," Chiplunkar et al. propose a new objective: minimizing the maximum number of faults incurred by any single page.

2. Problem Formulation

In the min-max paging model, we track a fault vector $f = (f_1, f_2, ..., f_n)$, where $f_p$ represents the total number of times page $p$ has been faulted. While classical paging seeks to minimize the $\ell_1$-norm of this vector ($\|f\|_1 = \sum f_p$), min-max paging seeks to minimize the $\ell_\infty$-norm ($\|f\|_\infty = \max_p f_p$).

This shift in objective introduces significant theoretical hurdles. In classical paging, the competitive ratio depends solely on the cache size $k$. The authors demonstrate that for min-max paging, the competitive ratio must necessarily depend on $n$, the total number of pages. This implies that as the diversity of requests increases, the relative performance of any online algorithm compared to the offline optimum inevitably degrades.

3. Lower Bounds: The Cost of Fairness

The researchers establish fundamental limits on how well any online algorithm can perform for this problem. By constructing adversarial request sequences, they prove the following lower bounds on the competitive ratio:

  • Randomized Lower Bound: $\Omega(\log n)$
  • Deterministic Lower Bound: $\Omega(k \frac{\log n}{\log k})$

These results are striking because they show that the "price of fairness" is not just a constant factor, but a logarithmic dependence on the total number of pages. This distinguishes min-max paging from almost all other well-studied variants of the paging problem.

4. Algorithmic Framework

To address this challenge, the authors utilize the framework of Online Convex Programming (OCP). Their approach involves three main steps:

4.1 Generalizing the Objective

Instead of attacking the $\ell_\infty$-norm directly, which is non-differentiable and difficult to optimize online, the authors design a fractional algorithm for a more general class of objectives. They consider minimizing $\sum_p \Psi(f_p)$ for any differentiable convex function $\Psi$. By choosing $\Psi(x) = x^q$ with $q \approx \log n$, they can closely approximate the min-max objective.

4.2 Primal-Dual with Box Constraints

They employ an online primal-dual approach to solve the fractional version of the problem. A key technical innovation here is the handling of "box constraints"—the requirement that the probability (or fraction) of a page being in the cache must remain between 0 and 1. They extend existing primal-dual techniques using Fenchel duality to maintain these constraints while ensuring a competitive ratio of $O(\log n \log k)$ for the fractional problem.

4.3 Rounding Strategies

To convert the fractional solution (where pages can be partially cached) into a valid integral solution, the authors propose two rounding schemes:

  1. Deterministic Rounding: A threshold-based method that incurs an additional factor of $k$ in the competitive ratio.
  2. Randomized Rounding: A scheme based on independent evictions that achieves a better dependence on $k$ at the cost of an additional $\log n$ factor.

5. Summary of Results

The following table summarizes the competitive ratios achieved by the proposed algorithms compared to the established lower bounds:

Algorithm Type Competitive Ratio (Upper Bound) Lower Bound
Fractional $O(\log n \log k)$ —
Deterministic $O(k \log n \log k)$ $\Omega(k \frac{\log n}{\log k})$
Randomized $O(\log^2 n \log k)$ $\Omega(\log n)$

The upper bounds match the lower bounds up to poly-logarithmic factors, indicating that these algorithms are near-optimal.

6. Conclusion and Future Work

This work provides the first rigorous analysis of fairness in online paging. By moving beyond the $\ell_1$ objective, the authors open a new avenue for research in resource allocation. Significant open questions remain, including whether the offline version of min-max paging is NP-hard and whether resource augmentation (providing the online algorithm with a larger cache than the adversary) can eliminate the dependence on $n$. As shared systems continue to scale, these fairness-aware algorithms will become increasingly vital for maintaining quality of service across diverse user bases.

Summary updated

BibTeX
@inproceedings{chiplunkar2023online,
  author = {Ashish Chiplunkar and Monika Henzinger and Sagar Sudhir Kale and Maximilian Vötsch},
  title = {{Online Min-Max Paging}},
  booktitle = {SODA},
  year = {2023},
  url = {https://openreview.net/forum?id=1wl3oGC-iWx},
}
Figure