A Polylogarithmic-Competitive Algorithm for the k-Server Problem: Randomized k-Server Is O(log² k · log³ n · log log n)-Competitive on Every n-Point MetricResearch Paper
Motivation
The k-server problem (Manasse, McGeoch and Sleator, 1990) is the central problem of online computation: servers sit on points of a metric space, requests arrive one at a time at points of the space, and each request must be served by moving a server to it, at a cost equal to the distance travelled. An online algorithm decides without knowing future requests; its quality is its competitive ratio, the worst-case ratio between its cost and the cost of an optimal offline schedule. Paging (caching) is the special case of a uniform metric, and weighted paging the case of a weighted star.
Timeline of the upper bounds for general metrics:
- 1990: Manasse, McGeoch and Sleator prove that every deterministic algorithm has ratio at least and conjecture that is achievable.
- 1991: Fiat, Rabani and Ravid give the first ratio depending on only (exponential in ).
- 1995: Koutsoupias and Papadimitriou prove that the work function algorithm is -competitive.
- For randomized algorithms against an oblivious adversary, the conjectured answer is , achieved for paging (Fiat et al., 1991), but until 2011 nothing better than the deterministic was known for general metrics, even when the ratio may depend on the number of points .
- 2011: Bansal, Buchbinder, Mądry and Naor give the first polylogarithmic bound, (arXiv:1110.1580; J. ACM 62(5), 2015, DOI 10.1145/2783434), the result of this mission.
Setting
Let be a finite metric space with points and a number of servers. A configuration places server at . A deterministic online algorithm maps each prefix of the request sequence to a configuration that has a server at the last request; its cost on a sequence is the total distance travelled. is the least cost of any schedule serving from the initial configuration . A randomized algorithm is a probability distribution over deterministic online algorithms, all starting at ; it is -competitive if there is a constant such that its expected cost on every request sequence is at most .
The paper works with three auxiliary objects. A σ-HST is a rooted tree whose leaves are the points, in which all edges from a node to its children have one common length, equal to times the length of the edge above that node; the distance between two leaves is the length of the tree path. A weighted σ-HST only requires that the edge above a non-root internal node be at least times each edge below it. In the fractional k-server problem on a tree, the state is a vector of server probabilities on the leaves with and , a request at leaf forces , and moving from to costs , where is the mass below node and the length of the edge above . In the allocation problem on a weighted star with weights , requests carry a location , a monotone cost vector (the cost of serving with servers there) and a server quota .
Formalization targets
Goal: Theorem 1
There is a universal constant such that for all , every metric space with points and every initial configuration , some randomized online algorithm starting at is
Milestones
In the order the proof uses them:
- Claim 15: the fix-stage inequality behind the allocation algorithm's analysis.
- Theorem 5: for every , a fractional allocation algorithm whose hit cost is at most and whose movement cost is at most , where .
- Theorem 6: given such allocation algorithms, an -competitive fractional k-server algorithm on every weighted σ-HST of depth with .
- Theorem 8: every σ-HST with leaves becomes a weighted σ-HST of depth on the same leaves, with distances distorted by at most .
- Lemma 25 and Theorem 24: on a σ-HST with , randomized states consistent with a changing fractional state can be maintained online at cost per step.
- Theorem 7: on a σ-HST with , a -competitive fractional algorithm yields an -competitive randomized one.
Significance
The theorem broke the exponential gap between the lower bound and the upper bound for randomized k-server, and showed that randomization helps on every finite metric, not only on uniform or specially structured ones. Its two-level method (a fractional algorithm on trees driven by per-node allocation problems, followed by an online rounding) became the template for later work, including the bound on HSTs of Bubeck, Cohen, Lee, Lee and Mądry (STOC 2018) and Lee's bound on general metrics (FOCS 2018).
The result is proved, in this paper. As far as is known it has no machine-checked proof. Formalizing it means formalizing the analysis of an online algorithm driven by a continuous-time process, a potential-function argument with exact constants, a tree contraction with a distortion bound, and an online randomized rounding against a transportation cost. The allocation, HST and rounding statements are reusable for other online problems on trees (metrical task systems, weighted paging).
Difficulty
For a deterministic or randomized algorithm on a tree, the natural recursion splits the servers of each node among its children. Coté, Meyerson and Poplawski showed that this works if each node solves an allocation problem with a strong guarantee: hit cost within a factor of optimal. Integral allocation algorithms cannot achieve this; the integrality gap example of the paper (p. 8) gives a factor . The fractional relaxation avoids the gap, but then the rounding step must keep a randomized state consistent with a fractional state at constant-factor cost, and the HSTs obtained from general metrics have depth growing with the aspect ratio, which a depth-dependent ratio cannot afford. Each of the three reductions (allocation to fractional k-server, deep HST to shallow weighted HST, fractional to randomized) loses only polylogarithmic or constant factors, and the main theorem needs all three at once.
Formalization scope
The k-server model, randomized algorithms and competitiveness are the published definitions KServer_model and KServer_randomized; competitiveness carries an additive constant fixed before the request sequence. Trees are finite rooted trees with a parent map, a depth function and positive edge lengths; points of the k-server problem are the leaves, and the theorems take an arbitrary finite metric space together with a bijection to the leaves and the hypothesis that the distance equals the tree distance. Fractional k-server states have exactly units of mass, each leaf at most , and fractional algorithms are measured against the integral offline optimum. The allocation optimum is the integral optimum; cost vectors are finite, non-negative and non-increasing; the diameter of the star is . The cost of changing a randomized state is the transportation cost over couplings, with minimum-matching cost between configurations. Every is an explicit constant quantified before the instance, except that in Theorems 7 and 24 and Lemma 25 it may depend on .
Formalizations that make the targets trivial are excluded: the fractional state must place a full server on every request and stay in , the benchmark is the integral optimum (not the algorithm's own or the fractional cost), and no constant may depend on , , the metric or the tree, since otherwise Theorem 1 would follow from the bound.
The proof of Theorem 1 also uses the embedding of Fakcharoenphol, Rao and Talwar [18] of a finite metric into a distribution over σ-HSTs with expected distortion . It is an external ingredient, not a result of this paper, and is not a milestone; contributions formalizing it (or Bartal's earlier embedding) are welcome, as are formalizations of the integral optimum's properties on trees (Lemmas 21–22 of the paper), which are not stated here.
Selected references
- N. Bansal, N. Buchbinder, A. Mądry, J. Naor, A Polylogarithmic-Competitive Algorithm for the k-Server Problem, arXiv:1110.1580v1, 2011; J. ACM 62(5), 2015. https://arxiv.org/abs/1110.1580, https://doi.org/10.1145/2783434
- M. Manasse, L. McGeoch, D. Sleator, Competitive algorithms for server problems, J. Algorithms 11, 1990. https://doi.org/10.1016/0196-6774(90)90003-W
- E. Koutsoupias, C. Papadimitriou, On the k-server conjecture, J. ACM 42(5), 1995. https://doi.org/10.1145/210118.210128
- A. Fiat, R. Karp, M. Luby, L. McGeoch, D. Sleator, N. Young, Competitive paging algorithms, J. Algorithms 12, 1991. https://doi.org/10.1016/0196-6774(91)90041-V
- J. Fakcharoenphol, S. Rao, K. Talwar, A tight bound on approximating arbitrary metrics by tree metrics, J. Comput. Syst. Sci. 69(3), 2004. https://doi.org/10.1016/j.jcss.2004.04.011
- A. Coté, A. Meyerson, L. Poplawski, Randomized k-server on hierarchical binary trees, STOC 2008. https://doi.org/10.1145/1374376.1374474