Online Min-Max Paging

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

In the world of computer science, the paging problem is a venerable classic. You have a small, fast cache and a large, slow memory. When a request comes for a page not in the cache (a "fault"), you must evict something to make room. For decades, the goal has been simple: minimize the total number of faults.

But what if total efficiency isn't the only thing that matters? What if we care about fairness?

A new paper, "Online Min-Max Paging" by Chiplunkar et al., introduces a fascinating twist on this problem. Instead of minimizing the sum of all faults, they aim to minimize the maximum number of faults incurred by any single page.

TL;DR

The authors introduce "min-max paging," a fair variant of the classical paging problem that minimizes the maximum faults on any one page. They prove that unlike classical paging, the performance of any online algorithm must depend on the total number of pages ($n$), and they provide near-optimal deterministic and randomized algorithms using online convex programming and novel rounding techniques.

What Problem Does This Paper Address?

In classical paging, an algorithm might be perfectly "optimal" while repeatedly evicting the same page over and over again. In a communication network or a shared data center, this is a disaster for the "user" owning that specific page—they experience constant latency while everyone else enjoys a smooth ride.

The authors propose min-max paging to address this lack of fairness. The objective is to minimize the $\ell_\infty$-norm of the fault vector (the maximum value in the list of fault counts for each page).

The core challenge is that this objective is much harder than the classical one. In standard paging, the best possible "competitive ratio" (how much worse the online algorithm performs compared to an all-knowing offline optimal) depends only on the cache size $k$. In min-max paging, the authors show that you simply cannot escape a dependence on $n$, the total number of pages ever requested.

Methods

The researchers tackle this problem through the lens of Online Convex Programming.

  1. Generalizing the Objective: They first design a fractional algorithm for a much broader problem: minimizing any differentiable convex function applied to the fault vector. This allows them to handle various "fairness" metrics, not just the min-max.
  2. Primal-Dual Framework with Box Constraints: Most online linear programming solvers struggle with "box constraints" (the requirement that a variable $x$ must stay between 0 and 1). The authors extend the online primal-dual framework using Fenchel duality to respect these constraints while maintaining a good competitive ratio.
  3. Norm Approximation: Since the $\ell_\infty$-norm (the "max" in min-max) isn't easily differentiable, they approximate it using the $\ell_q$-norm where $q = \log n$.
  4. Rounding Schemes: To turn their fractional solutions (where a page can be "half-in" the cache) into real-world integral solutions, they employ two rounding strategies:
  5. A deterministic threshold-based rounding that incurs a factor of $k$ loss.
  6. A randomized rounding scheme based on independent evictions, which avoids the linear dependence on $k$ at the cost of an extra $\log n$ factor.

Datasets

As a theoretical paper in algorithms, no empirical datasets were used. Instead, the authors used adversarial request sequences to prove lower bounds. They constructed specific, "cruel" sequences of page requests designed to force any online algorithm to perform poorly compared to an offline optimal strategy.

Key Insights and Ideas

  • The $n$-Dependence Bombshell: The most striking insight is that min-max paging is fundamentally different from classical paging. The competitive ratio must grow with the number of pages $n$. Specifically, they prove a randomized lower bound of $\Omega(\log n)$.
  • Fairness is Expensive: The deterministic lower bound is $\Omega(k \log n / \log k)$. This suggests that if you want absolute fairness in a deterministic system, your performance hit scales with both the cache size and the total page count.
  • Convexity as a Tool: By solving the problem for any convex function, the authors provided a toolkit that could be used for other fairness metrics, such as minimizing the variance of faults or the sum of squares ($\ell_2$-norm).

Key Results

The paper establishes the first upper and lower bounds for this new problem:

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)$

These results are "tight modulo poly-logarithmic factors," meaning the upper and lower bounds are very close, leaving only small logarithmic gaps for future researchers to close.

Limitations and Future Work

  • The Gap: There is still a gap between the lower bounds and the upper bounds (specifically the extra $\log k$ and $\log n$ factors).
  • Offline Complexity: Interestingly, the authors note that they don't yet know if the offline version of min-max paging is NP-hard. Finding an efficient optimal offline algorithm (or proving it's impossible) is a major open question.
  • Resource Augmentation: In classical paging, giving the online algorithm a slightly larger cache than the adversary (resource augmentation) often makes the problem much easier. Whether this holds for min-max paging remains to be seen.

This paper marks a significant step toward making online resource allocation not just efficient, but equitable. For anyone working on network protocols or shared caching systems, "Min-Max Paging" provides a rigorous foundation for building fairer systems.

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},
}

Loading related content...

Figure