arXiv:2610.24655cs.DSOct 2026

Manuscript Offprint

arXiv:2610.24655

Tight weighted paging with delay via mirror descent

Julian Born, Yann Disser, Linda Thelen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We give an O(log⁡k)\mathcal{O}(\log k)-competitive randomized algorithm for weighted paging with delay. This improves upon the O(log⁡klog⁡n)\mathcal{O}(\log k \log n)-competitive algorithm of Gupta, Kumar, and Panigrahi (STOC 2020, SICOMP 2022) by removing the dependence on the number n of pages. Without delay, the optimal competitive ratio of randomized algorithms is Θ(log⁡k)\Theta(\log k), and since the lower bound carries over, our bound is tight. Our algorithm is fractional and combines mirror descent, used by Bubeck et al. (STOC 2018) for weighted paging without delay, with preemptive service, introduced by Azar et al. (STOC 2017) for online service with delay: when a request is served, an increase in the mirror descent potential is offset by preemptive service to other pending requests, with a budget derived from the mirror descent path. To obtain a randomized algorithm, we use the online rounding of Bansal, Buchbinder, and Naor (FOCS 2007) from classical paging.

1 Introduction

Paging is one of the most fundamental problems in online computation. In weighted paging, a cache holds up to k of n pages, and a requested page that is not in the cache must be fetched, at a cost equal to its weight, while another page is evicted. Classical paging requires every request to be served immediately. In many applications of caching, however, requests can wait for some time, for example in prefetching, cloud computing, or video-on-demand streaming. An algorithm can then save cost by batching requests to the same page instead of fetching it repeatedly. In paging with deadlines, waiting is free, but every request must be served by its deadline. More generally, in paging with delay, every request accrues delay cost until it is served, and the goal is to minimize the total fetch cost plus delay cost. Paging with delay belongs to an active line of work on online problems with delay, including TCP acknowledgment [DGS01], matching [EKW16], online service with delay [Aza+21], multi-level aggregation [Bie+16; Buc+17], and network design [AT19; AT20].

When all pages have the same weight, delay does not make paging harder, since unweighted paging with delay reduces to classical paging [Aza+21]. For general weights, however, the best known randomized algorithm, due to Gupta, Kumar, and Panigrahi, is O(log⁡klog⁡n)\mathcal{O}(\log k \log n)-competitive [GKP22], where the number n of pages can be much larger than k. Without delay, the optimal competitive ratio of randomized algorithms is Θ(log⁡k)\Theta(\log k) [Fia+91; BBN07], and the lower bound carries over to paging with delay. The factor log⁡n\log n comes from one step of the LP-based approach of Gupta, Kumar, and Panigrahi. The natural relaxation over fractional cache states has integrality gap Ω(k)\Omega(k), and Gupta, Kumar, and Panigrahi circumvent this with a hitting-set relaxation that records when pages are fetched and evicted, but not the cache contents. This requires a separate step that decides online which pending requests to serve and when, which costs only a constant factor offline, but a factor log⁡n\log n online. They leave closing the gap to the lower bound as an open problem [GKP22].

We give an O(log⁡k)\mathcal{O}(\log k)-competitive randomized algorithm for weighted paging with delay, in the same clairvoyant model as [GKP22]. This matches the lower bound, does not depend on n, and also applies to deadlines. Hence, weighted paging with delay is as hard as without delay, up to constant factors. For deterministic algorithms, this was already known, with optimal competitive ratio Θ(k)\Theta(k) [ST85;

*Technical University Darmstadt. Email: born@mathematik.tu-darmstadt.de. Supported by DFG grant DI 2041/2-2.

†^{\dagger}Technical University Darmstadt. Email: disser@mathematik.tu-darmstadt.de

‡^{\ddagger}Technical University Darmstadt. Email: thelen@mathematik.tu-darmstadt.de. Supported by a doctoral scholarship from the Studienstiftung des deutschen Volkes.

CL91; Aza+21]. We establish the same equivalence for randomized algorithms, where the optimal competitive ratio is Θ(log⁡k)\Theta(\log k).

Our algorithm combines mirror descent, used by Bubeck et al. for classical weighted paging [Bub+18], with preemptive service, a standard tool for online service with delay [Aza+21]. With delay, the potential function in the analysis of mirror descent can increase when we serve a request, because OPT may serve the same request at another time than we do. We compensate for this increase by preemptive service: when serving a request, we also serve other pending requests, with a budget derived from the mirror descent path. To our knowledge, this is the first use of mirror descent for a problem with delay. Since the fractional cache states of our algorithm also determine when requests are served, no separate step has to decide this, and the classical online rounding for weighted paging [BBN07] applies with only a constant loss.

We state our result formally below, and outline our technique in Section 1.2.

References (37)