Manuscript Offprint
arXiv:2610.37192Tight Bounds for Randomized Generalized -Server on Uniform Metrics
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
In the generalized k-server problem, each of k servers moves in its own metric space, and a request is served once some server i stands at the point of its space. We determine the randomized competitive ratio against an oblivious adversary when every space is a uniform metric. With unit distances the ratio is : we give a -competitive algorithm and show that for large k every algorithm has ratio at least , improving the bounds and of Bienkowski, Jeż, and Schmidt. When server i pays per move, the ratio is : we give a -competitive algorithm, which also applies to weighted k-server on uniform metrics. This improves the bound of Bijoy, Mondal, and Chiplunkar and matches the lower bound of Ayyadevara and Chiplunkar up to the base of the exponent. Both algorithms follow normalized weights exactly, through couplings whose expected movement is controlled by the decrease of the logarithm of the total weight. The lower bound hides a random permutation among the solutions of random permutation constraints, which split into small, well-separated components, and then forbids one position to one server at a time.
1 Introduction
In the k-server problem of Manasse, McGeoch, and Sleator [MMS90], an online algorithm serves a sequence of requests, each a point of a metric space, by moving one of k servers to the requested point, and it aims to minimize the total distance moved. Koutsoupias and Taylor [KT04] introduced a far-reaching generalization, the generalized k-server problem. Each server i moves in its own metric space . A request is a tuple with , and it is served once some server i is at . The k-server problem is the special case in which all spaces are equal and every request has the form ; in the weighted k-server problem [New91], the spaces are scaled copies of one metric space, again with requests of the form . Koutsoupias and Taylor showed that natural k-server algorithms fail already for two servers on two lines, the CNN problem, which they described as a problem that “may act as a stepping stone towards building a robust (and less ad hoc) theory of online computation”. For general metric spaces, competitive algorithms are known only for [SS06, Sit14].
Uniform metrics. Bansal, Eliáš, Koumoutsos, and Nederlof [BEKN18] obtained the first -competitive algorithms for all k, for the case where every is a uniform metric, in which distinct points are at distance 1. Moving the servers from a configuration to a configuration y then costs the number of coordinates in which x and y differ, and a request r forbids exactly the configurations that differ from r in every coordinate. For deterministic algorithms they gave an
upper bound by the polynomial method, which nearly matches the lower bound of Koutsoupias and Taylor [KT04]. For randomized algorithms against an oblivious adversary, they gave an -competitive algorithm and a lower bound of . Bienkowski, Jeż, and Schmidt [BJS19] recast the phase structure of [BEKN18] as an online game on trees, the Hydra game, and improved the upper bound to ; they also improved the lower bound to . They note that their strategy for the Hydra game is optimal up to a constant factor on a class of trees that includes those arising in their reduction, so that improving requires a different approach [BJS19, Section 5]. Against adaptive online adversaries, the best competitive ratio of memoryless algorithms is [CFK21].
Weighted uniform metrics. In the weighted version, distinct points of are at distance , so that a move of server costs . Its special case where the spaces are copies of one uniform metric and all requests have the form is weighted -server on uniform metrics, introduced by Fiat and Ricklin [FR94]. Here the deterministic competitive ratio is doubly exponential in : Fiat and Ricklin gave a doubly exponential upper bound, Bansal, Eliáš, and Koumoutsos [BEK17] a doubly exponential lower bound, and Bansal et al. [BEKN18] extended the upper bound to generalized requests. For randomized algorithms, the best ratio of memoryless algorithms against adaptive online adversaries is doubly exponential [CV20], and Ayyadevara and Chiplunkar [AC21] proved a lower bound of for weighted -server on uniform metrics that holds for all randomized algorithms against oblivious adversaries. Ayyadevara, Chiplunkar, and Sharma [ACS24] reduced the design of a -competitive algorithm to one of two relaxed problems. Bijoy, Mondal, and Chiplunkar [BMC26] gave the first algorithm that is not doubly exponential, with ratio , together with a sketch of the same bound for generalized requests. They wrote that this almost solves a question of Bansal et al., whether generalized -server on weighted uniform metrics admits an -competitive algorithm, and that “the only gap left to close is between the and bounds on the randomized competitive ratio” [BMC26, Section 7].
Theorem 1.1. Let be uniform metric spaces with unit distances, finite or infinite, and let a be an initial configuration. There is a randomized online algorithm such that, for every finite request sequence ,
where is the cost of an optimal offline solution that starts from a.
Theorem 1.2. There is an absolute constant such that, for every , every randomized online algorithm for generalized -server on copies of the uniform metric on points has competitive ratio at least against an oblivious adversary.
Theorem 1.3. Let be uniform metric spaces in which distinct points of are at distance , where , and let a be an initial configuration. There is a randomized online algorithm such that, for every finite request sequence ,
| Problem | Previous bounds | This paper |
|---|---|---|
| generalized k-server, unit distances | [BJS19] | |
| generalized k-server with weights | [BMC26], [AC21] | |
| weighted k-server | [BMC26], [AC21] | |
| paging with heterogeneous cache slots | [CHL] | |
| k servers, requests of points | [CV15] |
Table 1: Competitive ratios of randomized algorithms on uniform metrics against oblivious adversaries, before and after this paper. The last two rows are applications of Theorem 3.5.
Corollary 1.4. The randomized competitive ratio of generalized -server is on uniform metrics and on weighted uniform metrics. The randomized competitive ratio of weighted -server on uniform metrics is .
Proof. The upper bounds are Theorems 1.1 and 1.3, and Theorem 1.2 is the lower bound with unit weights. Weighted -server on a uniform metric is the special case of generalized -server on weighted uniform metrics described above, so the lower bound of Ayyadevara and Chiplunkar [AC21, Theorem 2] applies to both weighted problems.
Theorem 1.1 improves the upper bound by a factor of , has no additive term, and holds for spaces of any cardinality. Theorem 1.2 improves the lower bound by a factor of ; its construction uses spaces with points, while the construction of [BJS19] uses two points per space. With Theorem 1.1, it shows that for large the ratio lies between and . Theorem 1.3 holds for any number of points and any weights, and its constants do not depend on the ratios between the weights.
The algorithm of Theorem 1.1 also serves requests that specify a set of points for each server: if the sets of every request have at most points in total, it is -competitive (Theorem 3.5). This gives the ratio for paging with heterogeneous cache slots [CHL], in which each request may be served only from certain slots, and for metrical service systems with servers on a uniform metric whose requests are sets of points [CV15]. Table 1 compares all bounds.
1.2 Techniques
The algorithm for unit weights. The algorithms of [BEKN18, BJS19] work in phases. Within a phase they stay in configurations that serve every request of the phase so far; a request that no such configuration serves is served separately and ends the phase, so the optimum moves in every completed phase. Our algorithm gives up this invariant. It keeps a weight on every configuration, initially concentrated on the starting configuration. When a request arrives, a configuration that serves keeps its weight. A configuration that fails passes a fraction of its weight to each of the configurations obtained from by moving one server to its requested point, which we call the repairs of , and loses the remaining half (Fig. 1). The weights thereby account for lazy offline solutions, which move one server only when the request forces them to. A lazy solution that has moved times keeps weight at least , and some lazy solution moves at most OPT times. The servers follow the normalized weights exactly. If the current configuration fails the request, they move to a uniformly random one of its repairs with probability , and otherwise to a fresh sample from the new distribution. This keeps the configuration distributed exactly according to the weights, and its expected movement is at most times the decrease of the logarithm of the total weight, which is at most in total. We build on the analysis of the weighted

Figure 1: One weight update for k = 2 with three points per space, at the request . The configuration sits in column and row , and weights are multiplied by 36. Left: an illustrative weight function, with weight 4 on every configuration. The shaded configurations serve r and keep their weight. Each white configuration fails r and passes a quarter of its weight along each of its two arrows, to its repairs: server 1 moves to point 1 (leftward arrows) or server 2 moves to point 1 (downward arrows); the other half of its weight is discarded. Right: after the request. The total weight drops from 36 to 28, by half the weight of the white configurations, and the servers follow the new weights divided by 28.
majority algorithm [LW94] and its extension to comparators that switch [HW98], which Blum and Burch [BB00] used for metrical task systems, and on the shrinking dartboard algorithm of Geulen, Vöcking, and Winkler [GVW10], which follows a weight distribution exactly and resamples only to account for lost weight.
The lower bound for unit weights. The lower bound of [BJS19] uses two points per space. A configuration is then a binary string, and the request that equals the complement of a string c forbids c and nothing else. The adversary removes the strings of a code of size and minimum distance one at a time, each time the one that the algorithm is most likely to occupy, and between removals it forbids configurations outside the remaining set until the algorithm is in that set with high probability. Both steps use only the distribution of the algorithm's configuration, which the adversary computes from the algorithm and the requests so far, so the requests are independent of the algorithm's random choices, as for an oblivious adversary; the same holds for our adversary. When n strings remain, a removal thus moves the algorithm a distance with probability about or more, so over a phase the algorithm pays times the logarithm of the size of the code, while the optimum pays at most k. To force , we therefore hide the target among candidates, which needs more than a constant number of points per space; but then a single request forbids every configuration that disagrees with it in all coordinates, and candidates can no longer be removed one at a time.
Our adversary hides a uniformly random permutation of , viewed as a configuration on copies of the uniform metric on , among a fixed set of candidate permutations. A configuration serves the requests with if and only if it is a permutation, and a permutation serves the request whose -th coordinate is some and whose other coordinates are all if and only if . So, among permutations, this request forbids one position to one server: it removes the candidates that place server at point . The candidates are the solutions of random

(a) before

(b) after and the confinement requests
Figure 2: One step of the adversary of Theorem 1.2, schematically. Dots are configurations that serve the setup requests, dashed ovals are their components, at distance more than 0.77k from each other, and marks the hidden permutation ; (dark dots) is the set of feasible configurations after the requests . (a) With probability close to 1, the configuration of the algorithm lies in and in a component without , since, given the requests so far, is uniform on and independent of , components have fewer than configurations, and the expected inverse of is far below . (b) With probability more than 0.69/k, the request forbids a position that all configurations of the component of use and avoids, which eliminates the component (light dots fail ), and the confinement requests, which repeat earlier requests, drive the algorithm into , a distance of more than 0.77k away.
permutation constraints: for families of bijections of , the adversary issues the requests with , and a configuration serves all of them if and only if is a permutation. The permutations that serve these setup requests form the solution set of a random constraint satisfaction problem, and we call a configuration feasible if it serves all requests so far. We show that for some families, which the adversary fixes, there are solutions, and they split into components at distance more than 0.77k from each other, each of which has fewer than configurations, in which more than 0.92k servers each take a single position. In each phase, the adversary draws uniformly from the solutions and then issues requests, each forbidding a uniformly random position that avoids. Given the requests, is uniform on the feasible configurations, and the expected inverse of their number stays far below , so at each request the algorithm is in a component without with probability close to 1. In more than 0.69k coordinates, all configurations of that component agree and differ from , so the request eliminates the whole component with probability more than 0.69/k; repeating earlier requests then drives the algorithm back into the feasible set, a distance of more than 0.77k away (Fig. 2). Over a phase the optimum pays at most , while the algorithm pays at least in expectation.
The core of the proof is the component structure, which resembles the clusters of solutions of random constraint satisfaction problems [ACO08]. It reduces to bounding, for a solution x of the setup requests and a set I of coordinates, the values that the coordinates in I take in solutions that agree with x outside I. We bound the probabilities of rare events by first moments under the uniform law of the constraints, and the second moment of the number of solutions [AM06] shows that some families have many solutions and none of these events. We build on the routine Confine of [BJS19], which forbids configurations outside a target set until the algorithm is in that set with high probability, at no cost to an offline solution that stays in the set; we implement it by repeating earlier requests.
The algorithm for weighted uniform metrics. Bijoy, Mondal, and Chiplunkar define phases recursively. The witness of a phase of level 1 is its first request that the heavier servers, held at their points, do not serve; server 1 then serves it, and the phase lasts while these servers serve the requests. A phase of level starts with an explore part made of phases of level , after which the points of named most often by the witnesses of the explore part form the critical set, with . In its exploit part, phases of level are run in parallel, one run for each critical point, with server held at that point (Fig. 3). An offline solution that moves server pays its weight. One that keeps server still pays in many of the phases of level , unless its heavier servers stand at points that many witnesses name: outside the critical set, server serves few of the witnesses of the explore part, and at a critical point , it serves none of the witnesses of the run for . At level there are no heavier servers, so once the weights are rounded so that consecutive ratios are integers at least 2, every offline solution pays at least a fraction of the largest weight per completed phase of level .
Their algorithm, like ours, simulates all runs of the exploit part and lets the real servers follow one run at a time. It follows a uniformly random run until that run ends, then another one, and so on, so its cost bound for a phase of level is about times that for level , where is the -th harmonic number; these factors multiply out to . We instead draw the followed run with exponential weights on the costs that the runs have paid so far, delete a run when it ends, and change the followed run by a maximal coupling of consecutive distributions. If the configurations of the runs and the starting configuration of the real servers lie in a set of diameter , the real servers move at most plus twice the cost of any run that has not ended, in expectation (Lemma 5.3).
After rounding, the explore part and every run consist of phases of level ; so if such a phase costs at most times the weight of server , each of them costs at most times the weight of server , and is at most twice that weight. So the logarithm of the number of runs enters additively: a phase of level costs at most times the weight of server , where collects for the explore part, for the followed runs, and for switching. Hence , and with the factors from the offline bound and from rounding the weights, the ratio is . We also write out the phases and the offline lower bound of [BMC26] for generalized requests, for which the authors sketch the proofs, with the requests counted separately in each coordinate.
1.3 Related work
The generalized k-server problem on uniform metrics is a metrical service system [CL92] on the product space, whose request sets are the sets of configurations that serve a request. For the k-server problem, the work function algorithm is -competitive [KP95], and a recent preprint of Coester, Koutsoupias, and Zbysiński proves that it is k-competitive [CKZ26]. For randomized k-server, mirror descent with a multiscale entropy gives on hierarchically separated trees [BCL 18], and Bubeck, Coester, and Rabani [BCR23] showed that is needed on some metric spaces.
2 Preliminaries
Fix and pairwise disjoint uniform metric spaces , where distinct points of are at distance and . In Sections 3 and 4 all weights are 1. A configuration is a tuple in , whose coordinate , also written , is the position of server .

Figure 3: A phase of level , after [BMC26], and the strategy of Lemma 5.4, drawn with four copies. The real servers (thick line) serve the explore part, and the points of named most often by its witnesses (bars) form the critical set S. In the exploit part, a simulated copy for each keeps server at p and reads the same requests; ticks mark the moves of the copies, and a copy is deleted when its phases stop ( ). The real servers follow one copy at a time, drawn with weights that decay exponentially with the costs of the copies. The followed copy changes by a maximal coupling of consecutive distributions, so the real servers switch when the followed copy stops and possibly when it moves.
Moving the servers from x to y costs
with unit weights this is the Hamming distance . A request is a tuple , and a configuration serves if for some . Let be the set of configurations that serve . Weighted -server on a uniform metric is the special case in which every is a copy of and every request consists of the copies of one point of [BMC26].
An online algorithm starts in a configuration . When request arrives, it moves to a configuration , possibly , and pays . An offline solution for is a sequence of configurations with for . Its cost is , and is the minimum cost of an offline solution with . A randomized online algorithm is -competitive if there is a constant , which may depend on the spaces, the weights and , such that for every finite request sequence . The expectation is over the random choices of the algorithm, and is fixed in advance; that is, the adversary is oblivious .
Repairs and lazy solutions. For a configuration , a request , and , let be the configuration obtained from by moving server to ; that is, and for . If , then every serves and ; these configurations are the repairs of for . An offline solution is lazy if, for every , it stays when , and otherwise moves to a repair of for .
Lemma 2.1. With unit weights, let be an offline solution of cost , and let be a configuration. There is a lazy offline solution with that moves at most times.
Proof. Let . For , if , let . Otherwise choose with , which exists because serves , and let . Let indicate whether the lazy solution moves at time . If , then , and agrees with elsewhere, so . Hence in both cases
Summing over gives .
3 An -competitive algorithm for unit weights
3.1 The weight update
For a function with finite support, write and . For a request , define by
Thus keeps the weight of every configuration that serves , and every configuration that fails passes to each of its repairs. The map is linear, is supported on , and
Given the starting configuration and the requests , let , , , and . By (2), . By linearity, , where
The support of lies in , which is finite even if the spaces are infinite. Figure 1 shows one update.
3.2 The algorithm
The algorithm computes from the requests seen so far, starts at , and moves its servers as follows when request arrives.
(1) If , it stays: .
(2) Otherwise, with probability 1/2 it moves to for a uniformly random , and with probability 1/2 it moves to a configuration drawn from , independently of everything else.
In every case , because is supported on .
Lemma 3.1. For every fixed request sequence and every , the configuration has distribution .
Proof. We use induction on ; the case holds because . Suppose that has distribution , and write . Case (1) and the repair branch of case (2) together put probability
on each configuration . The resampling branch of case (2) is taken with total probability , and then lands at with probability . So by (3).
Lemma 3.2. For every fixed request sequence and every , .
Proof. The servers move only in case (2), which by Lemma 3.1 has probability . In that case the repair branch costs 1 and the resampling branch costs at most . Hence , using for .
Lemma 3.3. If is a lazy offline solution that moves times, then .
Proof. All terms in (1) are nonnegative. So if , then , and if is a repair of , then . Since , the claim follows by induction on .
Proof of Theorem 1.1. Fix a finite request sequence . Summing Lemma 3.2 over and using gives . Apply Lemma 2.1 to an optimal offline solution starting from : there is a lazy solution from that moves at most times. By Lemma 3.3, . Hence .
Remark 3.4. The analysis charges the movement of the algorithm to the moves of a single lazy offline solution over the whole sequence, rather than phase by phase. Against an offline solution that starts from another configuration , the same argument gives , where is the cost of that solution, so the additive term is at most . Lemma 3.1 uses that the request sequence is fixed in advance; the guarantee is against an oblivious adversary. Passing a fraction of the weight to each repair, for some , and taking the repair branch with probability gives the ratio in the same way; for and , this is at most .
3.3 Requests that specify sets
Suppose now that a request specifies a finite set for every , with , and that a configuration serves it if for some . The repairs of a configuration that fails the request are the configurations obtained from by moving one server to one point of ; they are distinct, at distance 1 from , and serve the request. We run the algorithm of Section 3 with these repairs: a configuration that fails a request passes the same fraction of its weight to each of its repairs, and the repair branch of case (2) moves to a uniformly random repair.
Theorem 3.5. For requests that specify sets of at most points in total, this algorithm satisfies for every finite request sequence .
Proof. Lemmas 3.1 and 3.2 hold with the same proofs. In the proof of Lemma 2.1, choose with and move server of the lazy solution to ; since the lazy solution fails the request, this decreases its distance to by one, so the lemma holds. Each move of a lazy solution keeps at least a fraction of its weight, so Lemma 3.3 holds with in place of , and the proof of Theorem 1.1 gives the bound.
In paging with heterogeneous cache slots , a cache has slots, initially empty, each request names a page and a set of slots, and it is served if a slot in holds ; loading a page into a slot costs 1, and emptying a slot is free. Taking every to be the set of pages together with a point for an empty slot, for , and otherwise gives ; since an offline solution never needs to empty a slot, the costs agree, and Theorem 3.5 gives the ratio . The previous bound was , through a reduction to generalized k-server [CHL 23, BJS19], and the lower bound is [CHL 23]. In metrical service systems with k servers on a uniform metric [CV15], a request is a set of at most points, served if some server is at a point of . Labeling the servers changes no cost, and taking for every gives and the ratio ; for the previous bound was , and the lower bound is [CV15].
4 An lower bound for unit weights
The proof follows the plan in Section 1.2. Sections 4.1 and 4.2 set up random permutation constraints and compute two moments of their number of solutions, and Section 4.3 shows that for some fixed system of constraints, the solutions are numerous and split into components at distance more than from each other, each of which varies in fewer than coordinates and has fewer than configurations (Lemmas 4.10 and 4.11). Section 4.4 shows that a request that forbids one position to one server, drawn among those that the hidden permutation serves, eliminates a given component without it with probability at least ; Section 4.5 shows that the hidden permutation is uniform on the feasible configurations and that the expected inverse of their number stays small, and Section 4.6 assembles the adversary.
Throughout this section , and every space is with unit distances, so . Statements “for large ” hold for all , for an absolute constant . We fix the constants
and write and . A configuration is a permutation if are distinct. Let be the set of permutations, so . For and , write . We use the bounds , which give
We also use .
4.1 Permutation constraints
A family is a k-tuple of bijections of . For let . The family accepts a permutation if is a permutation. A system is an h-tuple of families. Let be the set of permutations that every family of accepts, and let .
Lemma 4.1. A configuration serves all of the requests
if and only if it lies in .
Proof. A configuration serves if and only if , so serves all these requests if and only if . It serves if and only if for some , so it serves for all if and only if takes every value in , that is, .
We call these requests the setup requests of F.
4.2 Two moments
Let and refer to a uniformly random system, in which all bijections are independent and uniform.
Lemma 4.2. , and for large , .
Proof. For a fixed , the values are independent and uniform on , so accepts with probability , independently over . Hence . By (4) and , . By (4) and ,
which is at most for large .
Lemma 4.3. Fix , and let be a uniformly random family conditioned on accepting . Then is a uniformly random permutation. Conditioned on , the restrictions of to are independent, and the restriction of is a uniformly random bijection from onto .
Proof. For each , the families with are obtained by choosing, independently for each , a bijection of that maps to . There are of them, a number that does not depend on .
Lemma 4.4. Let differ in exactly coordinates, and let be the number of derangements of elements ( , ). For a uniformly random family , the probability that accepts , conditioned on accepting , is .
Proof. Let , and use Lemma 4.3. For we have . For , the value is uniform on , independently over . Since agrees with the permutation outside , it is a permutation if and only if the values , , are distinct and form the set . Writing , this says that is a bijection of with for all , that is, a derangement of . Each of the derangements has probability .
Lemma 4.5. For , let be the number of ordered pairs of configurations in that differ in exactly coordinates, and let
Then ; for large and , we have , where , and .
Proof. For a fixed , exactly permutations differ from in coordinates, and by Lemma 4.4 and the independence of the families, each of them lies in together with with probability . Hence . Here and . Let . We use , , and , which give
Since and , we have , because . Also for large . With this gives
The function is convex on , since ; it tends to as , and . Hence on , and . Since , Lemma 4.2 gives
4.3 Components of the feasible set
For a system , join two configurations of by an edge if they differ in fewer than coordinates. The connected components of this graph are the components of . For a component and , let be the set of positions that server takes in ; the component varies in coordinate if . To bound these sets, we fix and a set of coordinates and consider the pairs with and , for the configurations that agree with outside ; by Lemma 4.7, the following set contains them.
Definition 4.6. For and , let be the set of pairs with and such that for every .
Lemma 4.7. Let agree outside . Then for every with .
Proof. Since and are permutations that agree outside , we have , so . For each , the permutations and also agree outside , so likewise , and this set contains .
So a component can vary in many coordinates or take many values only if is large for some and some set (Lemma 4.11). The system is good if it has the following three properties. (G1) No two configurations of differ in at least and at most coordinates.
(G2) There are no and with such that every is the first coordinate of some pair in .
(G3) There are no and with and .
Lemma 4.8. Fix and with , and condition on under .
(a) For distinct pairs with and , the probability that all of them lie in is at most .
(b) The probability that every is the first coordinate of some pair in is at most .
Proof. Under this conditioning the families are independent, and each is uniform among the families that accept . Condition further on for every , and apply Lemma 4.3 to each family. For a pair with , the value is uniform on , and if and only if for every , a set of values. If of the given pairs have first coordinate , their second coordinates are distinct, so their images under form a uniformly random -tuple of distinct elements of . All of them lie in the -element set with probability . Different coordinates and different families are independent, which proves (a). For (b), a union bound over the choices of bounds the probability for each by , and different coordinates are independent. Both bounds hold for every value of the , hence also after averaging over them.
Lemma 4.9. For large k, .
Proof. For (G1), Lemmas 4.2 and 4.5 bound the expected number of pairs of configurations of that differ in coordinates, for , by .
For (G2) and (G3), a union bound over and bounds the probability that some pair violates them by , where is the probability, conditioned on , that violates the property. For (G2), let and . Since , , and for large , Lemma 4.8(b) gives
For (G3), let . Then , and there are at most candidate pairs, so by Lemma 4.8(a), , and .
With Lemma 4.2, the logarithms of the three probabilities are therefore at most times
plus . Both functions of are convex, so each maximum is attained at an endpoint; the values are and at and , and at and , and the last expression is . So the sum of the three probabilities is at most for large .
Lemma 4.10. For large k, there is a good system F with .
Proof. Since , the Cauchy–Schwarz inequality and Lemma 4.5 give
so . By Lemma 4.9, this exceeds for large .
Lemma 4.11. Let be good. Configurations in distinct components of differ in more than coordinates, and every component of varies in fewer than coordinates and satisfies ; in particular .
Proof. Configurations in distinct components are not joined by an edge, so they differ in at least coordinates, and hence, by (G1), in more than .
Fix , and let be the set of coordinates in which varies, that is, in which some differs from . Since is connected, it can be ordered as so that every with differs in fewer than coordinates from some with . Let be the set of coordinates in which at least one of differs from ; so agree with outside . Since agrees with outside , every coordinate in is one in which differs from , so . Suppose that , and let be the least index with ; then . Every has some with , and agrees with outside , so by Lemma 4.7. This contradicts (G2), so .
Every agrees with outside . By Lemma 4.7, every pair with lies in , so (G3) gives . Finally, .
4.4 Requests that forbid one position
A request eliminates a set of configurations if no configuration in serves . For , let be the request whose -th coordinate is (or 1 if ) and whose other coordinates are all .
Lemma 4.12. A permutation x serves if and only if .
Proof. If , then for every , and differs from the -th coordinate of , so fails . If , then for some , since is a permutation, so serves .
Lemma 4.13. Let be good, let be a component of , and let . Let be uniformly random among the pairs in with . Then eliminates with probability at least .
Proof. Fix . By Lemma 4.11, differs from in more than coordinates, and varies in fewer than coordinates. So more than coordinates satisfy and for every . For each of them, is one of the pairs, and eliminates by Lemma 4.12.
4.5 The posterior of the hidden permutation
From now on, fix a good system with , which exists for large by Lemma 4.10, and let . Let be uniformly random on , and, given , let be independent, each uniformly random among the pairs with . Let , and for , let be the set of configurations in that serve .
Lemma 4.14. For , given , the permutation is uniform on , and for large .
Proof. By Lemma 4.12, a permutation lies in if and only if for every . Hence , which, for fixed pairs, is proportional to . Summing over shows that the pairs have probability , so is the number of sequences of pairs with divided by , which is at most . Since and , we have , and by Lemma 4.2. So .
4.6 The adversary
Fix a randomized online algorithm ALG for with starting configuration . If ALG is not -competitive for any , there is nothing to prove. Otherwise fix and such that for every finite request sequence . For a finite request sequence , let be the distribution of the configuration of ALG after it serves ; it is determined by ALG and .
Lemma 4.15. Let be a finite request sequence, let be a finite set of requests that occur in such that the set of configurations serving every request in is nonempty, and let . There is a finite sequence of requests from , determined by ALG, , and , such that .
Proof. We build one request at a time. While the current sequence satisfies , let be the first configuration outside , in a fixed order of , with , and append the first request of , in a fixed order, that fails, which exists because . With probability the algorithm is at and must move, so each appended request raises the expected cost of ALG by more than . On the other hand, an offline solution can serve optimally, move to a fixed configuration of at the first appended request, at cost at most , and stay there, since every appended request lies in . So every sequence built this way has . If the construction never stopped, would eventually exceed , a contradiction.
One phase. Let . A phase draws and as in Section 4.5, independently of all earlier phases, and issues the following requests.
(1) The setup requests of F, followed by the confinement sequence of Lemma 4.15 for the set of setup requests.
(2) For : the request , followed by the confinement sequence for .
By Lemma 4.1, the set of configurations serving every request of is , which contains . Each confinement sequence is computed from the distributions of ALG, never from its random choices. Hence the requests of any number of phases form a random sequence that is independent of the random choices of ALG, as required for an oblivious adversary, and it takes finitely many values.
Lemma 4.16. For large k, the expected cost of ALG during each phase is at least .
Proof. Fix a phase and . Let be the configuration of ALG at the end of the confinement sequence that follows (for , the one that follows the setup requests). When , let be the component of that contains it. Let consist of the draws of all earlier phases together with of the current phase. The requests issued up to time are a function of , and the random choices of ALG are independent of . So, given , the configuration is independent of , and since is independent of the earlier phases, Lemma 4.14 shows that is uniform on given .
Let be the event that and . If , then by Lemma 4.11 the conditional probability that , given , is at most . With Lemmas 4.14 and 4.15, this gives .
Given , the pair is independent of and uniform among the pairs with . So by Lemma 4.13, on the request eliminates with conditional probability at least . If it does and , then , so by Lemma 4.11 ALG moves a distance of more than between the two times. Since , the expected cost of ALG between the two times is at least for large . Summing over and using and proves the lemma for large .
Proof of Theorem 1.2. Suppose that ALG is -competitive with additive constant , and let the adversary run L phases. In each phase, the offline solution that moves to that phase's at the first request of the phase and stays there serves every request of the phase: serves the setup requests and, by Lemma 4.12, every , and every confinement request repeats one of them. So for every outcome. By Lemma 4.16, ALG has expected cost at least . Since the input is independent of the random choices of ALG and takes finitely many values, averaging the competitive guarantee over the input gives . Letting yields .
5 A -competitive algorithm for weighted uniform metrics
In this section the weights are arbitrary, and we prove Theorem 1.3. We use the phases of Bijoy, Mondal, and Chiplunkar [BMC26], stated for generalized requests, and replace their rule for following virtual algorithms by the aggregation of Lemma 5.3. Bijoy et al. sketch how their phases and their offline lower bound carry over to generalized requests [BMC26, Appendix C]; we give complete proofs in this setting. As in their sketch, demand is counted separately in every coordinate (Lemma 5.2(d)). Section 5.1 defines the phases, Section 5.2 proves the aggregation lemma, Section 5.3 bounds the cost of our strategy for a phase, Section 5.4 shows that every offline solution pays a fraction of the largest weight per completed phase of level k, and Section 5.5 combines these bounds.
Normalized weights. Until Section 5.5, we assume and that the weights, now written , are positive and satisfy
Following [BMC26], let , so and ; we also assume that for every . Movement costs are measured by , and for every .
5.1 Phases
Let . For , let be the family of sets that contain at most one point of each . A set satisfies a request if for some , and a configuration covers if for every . A configuration that covers serves every request that satisfies. A demand vector is a finitely supported function ; is its restriction to , , and is the indicator vector of a point .
A parser reads a stream of requests. At each request it either accepts the request or stops; when it stops it does not consume the current request, which is then read by whatever runs next. In our strategy for an -phase (Lemma 5.4), only servers move and the configuration covers U, so the requests that U satisfies cost nothing. The witness of a -phase, defined next, is its first request that U does not satisfy; the strategy then places server 1 at the first coordinate of the witness, and the phase stops at the first later request that neither U nor this position of server 1 satisfies.
Definition 5.1 (phases and multiphases, after [BMC26]). Let and .
-
The -phase accepts every request that satisfies, until it reads a request that does not satisfy, its witness. It accepts , then accepts every request that satisfies, and stops at the first request that does not satisfy. Its demand vector is .
-
For , the -multiphase runs copies of the -phase one after another, each starting with the request at which the previous one stopped; it stops when the last one stops, and its demand vector is the sum of theirs.
-
For , the -phase first runs an -multiphase, its explore part, with demand vector . When the explore part stops, the critical set consists of the points
with the largest values , with ties broken by a fixed well-order of . From the request at which the explore part stopped on, the phase runs, for every , an -multiphase, its exploit part for ; all of them read the same requests, each until it stops. The phase accepts a request as long as at least one exploit part accepts it, and stops when all of them have stopped. Its demand vector is , where is the demand vector of the exploit part for .
A phase or multiphase is completed if it has stopped; demand vectors are used only for completed ones.
Note that for . The request sequence is parsed into consecutive -phases, each starting with the request at which the previous one stopped. For example, if the first coordinates of the requests are , the first -phase has the first request as its witness, accepts the second, and stops at the third, which is the witness of the next -phase; that phase accepts the fourth and stops at the fifth.
Lemma 5.2. (a) Every phase and multiphase accepts the first request it reads; in particular, every completed one has accepted at least one request.
(b) Which requests a phase or multiphase accepts, when it stops, its critical sets, and its demand vector once it is completed are determined by , U and the requests it reads.
(c) If and are the witnesses of two consecutive phases of a completed -multiphase, then .
(d) For every , the demand vector of a completed -phase satisfies , where , and that of a completed -multiphase satisfies . Moreover for every .
Proof. (a) A -phase accepts its first request: either U satisfies it, or it is the witness. A multiphase starts with a phase, and a phase of level starts with its explore part, so (a) follows by induction on . (b) holds because all rules are deterministic.
(c) The first phase stops at a request that does not satisfy. This request is therefore not satisfied by , and its first coordinate differs from . It is the first request read by the second phase, which does not satisfy , so it is the witness .
(d) By induction on , as in [BMC26, Lemma 46]. For , the demand vector has one unit in each , and ; since does not satisfy , no point of receives demand. A multiphase sums phases. For , the explore part and the exploit parts of a completed phase are completed -multiphases, each with , so the phase has . Each of these parts belongs to a set that contains , so by induction its demand vector vanishes on .
5.2 Aggregating parallel runs
The next lemma is a version of the experts algorithms with switching costs of Blum and Burch [BB00], in which experts drop out over time.
Lemma 5.3. Let be a metric space of diameter at most , and consider experts over steps. Initially every expert has a position . At step , a nonempty set of active experts is revealed, where , together with a position and a cost for every . There is a randomized master that starts at an arbitrary point of , is at for some after step , and satisfies, for every fixed choice of the active sets, positions and costs and every expert ,
where the expectation is over the random choices of the master only.
Proof. Let , and for let for and otherwise. Let . The master draws from and moves to , at cost at most . At step , given , it keeps with probability , and otherwise draws with probabilities proportional to ; then it moves to . This maximal coupling gives and .
Fix , and let and . Since , we get . On the support of , , and the relative entropy of with respect to is nonnegative, so . The master moves at most when it switches experts and otherwise, so its expected movement at step is at most . Finally, , because .
5.3 Phase strategies
The phases are determined by the requests alone (Lemma 5.2(b)); our strategy adds two independent sources of randomness, the random choices of the simulated copies and those of the master of Lemma 5.3, which chooses the copy that the real servers follow. Let and for .
Lemma 5.4. For every and , there is a randomized online strategy for the -phase with the following properties, for every fixed request stream and every starting configuration that covers .
(a) It moves only servers .
(b) It serves every request that the phase accepts, and it stops when the phase stops.
(c) Its expected cost is at most , also when the stream ends before the phase stops.
For , running it for the phases of an -multiphase gives expected cost at most .
Proof. For , servers stay where they are and serve every request that satisfies; when the witness arrives, server 1 moves to , at cost at most , and the configuration then covers , so it serves every later request of the phase.
For a multiphase, servers never move, so each of the phases starts from a configuration that covers ; each phase uses fresh randomness and costs at most in expectation given the past, so the multiphase costs at most .
Let . The strategy first runs the strategy for the -multiphase on the real servers while the explore part runs, at expected cost at most . When the explore part stops, it computes and starts, for every , a simulated copy of the strategy for the -multiphase with fresh independent randomness, from the current configuration with server moved to ; this configuration covers . Every copy reads every request until its multiphase stops. The real servers follow the master of Lemma 5.3, whose experts are the copies, with their configurations as positions, their movement costs as costs, and the copies that have not stopped as active experts. All these configurations agree on servers , so their distances are at most . After each accepted request the real servers are at the configuration of an active copy, which serves the request, and when all copies have stopped, the phase stops. So (a) and (b) hold.
For (c), condition on everything up to the end of the explore part; this fixes and the starting configurations of the copies. By Lemma 5.2(b), when each copy stops is determined by the request stream, independently of all random choices. Let be the number of requests that the exploit part accepts before it stops or the stream ends. If , the exploit part costs nothing. Otherwise let be the first copy, in a fixed order, that is still active after these requests; does not depend on any random choice. For every fixed outcome of the randomness of the copies, Lemma 5.3 bounds the expected movement of the master by , where is the movement of copy during these requests. Averaging over the randomness of copy , and applying the multiphase bound at level to the first requests, gives . So the exploit part costs at most in expectation, and the phase at most .
Since , induction gives for , and ; so
5.4 The offline lower bound
Let be the sequence of requests accepted by a completed phase or multiphase. A solution for is a sequence of configurations, where and serves the -th request of for ; the configuration is arbitrary. Its cost is . The restriction of to a part, such as a phase of a multiphase, consists of the configuration just before the first request of the part, followed by the configurations at its requests. The phases of a multiphase accept consecutive disjoint intervals of requests, so the costs of the restrictions of to them add up to at most the cost of .
Definition 5.5 (hard multiphase and contamination, after [BMC26]). Let P be a completed -phase and a solution for it.
- If , the hard multiphase is the explore part of if , and the exploit part for if .
• For , the solution is -contaminated for if either and , where is the witness of ; or and, for at least of the phases of , the restriction of to is -contaminated for .
• The solution is contaminated for if it is -contaminated for some .
Informally, the hard multiphase is the part of in which server , kept at , serves few witnesses (Lemma 5.8), and a -contaminated solution in which server stays still keeps it at a point that many witnesses of request (Lemma 5.7). Lemma 5.9 shows that a solution that is not contaminated for a phase of level pays at least ; for , no solution is contaminated.
Define and for .
Lemma 5.6 (after [BMC26, Claim 33]). for every .
Proof. Unrolling the definition,
So the claim is equivalent to , that is, . This holds with equality for , and if it holds for , then .
Lemma 5.7 (after [BMC26, Lemmas 34 and 48]). Let be a completed -phase with demand vector , let , and let be a solution for in which server stays at a point . If is -contaminated for , then .
Proof. By induction on . For , contamination means , so , and . Let and , and let be the demand vectors of the phases of . Server stays at in each restriction of , and at least restrictions are -contaminated. By induction and Lemma 5.2(d), each of them has . The vectors are summands of , so
Lemma 5.8 (after [BMC26, Lemma 18]). Let be a completed -phase with , and let be a solution for in which server stays at a point . Then the restriction of is -contaminated for at most of the phases of .
Proof. Let . If , then is the exploit part for , an -multiphase. By Lemma 5.2(d) the demand vector of each of its phases vanishes at , while by Lemma 5.7 an -contaminated restriction would give it positive demand at ; so no restriction is -contaminated.
If , then is the explore part, with demand vector and . The points of have demand at least , so . If restrictions are -contaminated, Lemma 5.7 at level gives . Hence, by Lemma 5.6,
Lemma 5.9 (after [BMC26, Lemma 19]). Let be a completed -phase with , and let be a solution for that is not contaminated for . Then costs at least .
Proof. If some server moves, the cost is at least . Otherwise servers stay where they are. Let , and call a phase of good if the restriction of to is not -contaminated for for any . By Lemma 5.8, at most phases fail this for , and since is not contaminated for , fewer than fail it for each . So fewer than phases are not good.
For , the phases of are -phases with witnesses . For a good phase , no server is at , because these servers stay at their initial positions and restricted to the phase is not -contaminated. So server 1 is at when arrives. By Lemma 5.2(c), whenever phases and are both good, server 1 moves between the arrivals of and , and these moves happen in disjoint time intervals. Since each phase that is not good belongs to at most two of the pairs , at least of these pairs consist of two good phases when , and all do when , where every phase is good. The cost is therefore at least .
For , the restriction of to a good phase is a solution for a completed -phase that is not contaminated for it, so by induction it costs at least . At least phases are good, so costs at least .
Corollary 5.10 (after [BMC26, Corollary 20]). Every solution for a completed -phase, from any initial configuration, costs at least .
Proof. No solution is contaminated for a phase of level k, since there is no j > k; apply Lemma 5.9.
5.5 Proof of Theorem 1.3
For , moving the server whenever necessary is optimal. If , moving server 1 to at every request serves everything at cost 0. So let and .
Rounding the weights. Let and for . Then , and : the first inequality is immediate, and inductively . Run the algorithm below with the weights ; its true cost is at most its cost under , and evaluating an optimal solution under shows .
Enough points. Add to each points that are never requested, so that . Run the algorithm on the enlarged spaces, and keep each real server at the image of its simulated position under the map that fixes the original points and sends the added points to a fixed original point. The real servers then serve every request served by the simulated ones and never move more, and the enlargement does not increase OPT.
The algorithm. Run the strategy of Lemma 5.4 for -phases repeatedly, each call starting with the request at which the previous phase stopped. By Lemma 5.2(a,b), every call accepts a request, and the number of calls on a finite request sequence does not depend on any random choice. All calls except possibly the last serve completed phases, so , while Corollary 5.10, applied to the restrictions of an optimal solution to the completed phases, gives . Hence , and with (5), and ,
6 Concluding remarks
Theorems 1.1 to 1.3 determine the randomized competitive ratio of generalized k-server on uniform metrics: with unit distances and with weights. The lower bound for unit distances uses spaces with k points, while the bound of [BJS19] needs only two; it would be interesting to determine the ratio as a function of both k and the number of points per space. The leading constant with unit distances remains between and 1, and the base of the exponent with weights between 2 and 20. For deterministic algorithms, the competitive ratio on uniform metrics remains between and [KT04, BEKN18], and on general metrics no -competitive algorithm is known for . Finally, our algorithms maintain distributions with very large supports; algorithms with polynomial running time would be interesting, as Coester and Cosson [CC26] recently obtained for randomized k-server, with ratio on n-point metrics.
AI usage disclosure
AI agents were used for exploratory discussions during the development of the proofs and to assist with drafting and revising the manuscript. The author takes full responsibility for the paper's contents and correctness.
References
[AC21] Nikhil Ayyadevara and Ashish Chiplunkar. The randomized competitive ratio of weighted k-server is at least exponential. In Proceedings of the 29th Annual European Symposium on Algorithms (ESA), volume 204 of LIPIcs, pages 9:1–9:11, 2021.
[ACO08] Dimitris Achlioptas and Amin Coja-Oghlan. Algorithmic barriers from phase transitions. In Proceedings of the 49th IEEE Symposium on Foundations of Computer Science (FOCS), pages 793–802, 2008.
[ACS24] Nikhil Ayyadevara, Ashish Chiplunkar, and Amatya Sharma. A decomposition approach to the weighted k-server problem. In Proceedings of the 44th IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science (FSTTCS), volume 323 of LIPIcs, pages 6:1–6:17, 2024.
[AM06] Dimitris Achlioptas and Cristopher Moore. Random k-SAT: Two moments suffice to cross a sharp threshold. SIAM Journal on Computing, 36(3):740–762, 2006.
[BB00] Avrim Blum and Carl Burch. On-line learning and the metrical task system problem. Machine Learning, 39(1):35–58, 2000.
[BCL 18] Sébastien Bubeck, Michael B. Cohen, Yin Tat Lee, James R. Lee, and Aleksander Mądry. k-server via multiscale entropic regularization. In Proceedings of the 50th Annual ACM Symposium on Theory of Computing (STOC), pages 3–16, 2018.
[BCR23] Sébastien Bubeck, Christian Coester, and Yuval Rabani. The randomized k-server conjecture is false! In Proceedings of the 55th Annual ACM Symposium on Theory of Computing (STOC), pages 581–594, 2023. Full version: arXiv:2211.05753.
[BDBK 94] Shai Ben-David, Allan Borodin, Richard M. Karp, Gábor Tardos, and Avi Wigderson. On the power of randomization in on-line algorithms. Algorithmica, 11(1):2–14, 1994.
[BEK17] Nikhil Bansal, Marek Eliáš, and Grigorios Koumoutsos. Weighted k-server bounds via combinatorial dichotomies. In Proceedings of the 58th IEEE Symposium on Foundations of Computer Science (FOCS), pages 493–504, 2017.
[BEKN18] Nikhil Bansal, Marek Eliáš, Grigorios Koumoutsos, and Jesper Nederlof. Competitive algorithms for generalized k-server in uniform metrics. In Proceedings of the 29th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 992–1001, 2018. Journal version: ACM Transactions on Algorithms 19(1):8:1–8:15, 2023.
[BJS19] Marcin Bienkowski, Łukasz Jeż, and Paweł Schmidt. Slaying Hydrae: Improved bounds for generalized k-server in uniform metrics. In Proceedings of the 30th International Symposium on Algorithms and Computation (ISAAC), volume 149 of LIPIcs, pages 14:1–14:14, 2019.
[BMC26] Adithya Bijoy, Ankit Mondal, and Ashish Chiplunkar. Weighted k-server admits an exponentially competitive algorithm. In Proceedings of the 37th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 4188–4208, 2026. Full version: arXiv:2507.12130v2.
[CC26] Christian Coester and Romain Cosson. Randomized k-server in polynomial time. In Proceedings of the 53rd International Colloquium on Automata, Languages, and Programming (ICALP), volume 374 of LIPIcs, pages 65:1–65:20, 2026.
[CFK21] Dimitris Christou, Dimitris Fotakis, and Grigorios Koumoutsos. Memoryless algorithms for the generalized k-server problem on uniform metrics. In Proceedings of the 18th Workshop on Approximation and Online Algorithms (WAOA 2020), volume 12806 of Lecture Notes in Computer Science, pages 143–158, 2021.
[CHL 23] Marek Chrobak, Samuel Haney, Mehraneh Liaee, Debmalya Panigrahi, Rajmohan Rajaraman, Ravi Sundaram, and Neal E. Young. Online paging with heterogeneous cache slots. In Proceedings of the 40th International Symposium on Theoretical Aspects of Computer Science (STACS), volume 254 of LIPIcs, pages 23:1–23:24, 2023.
[CKZ26] Christian Coester, Elias Koutsoupias, and Marek Zbysiński. The k-server conjecture is true. arXiv:2609.15979, 2026.
[CL92] Marek Chrobak and Lawrence L. Larmore. The server problem and on-line games. In On-Line Algorithms, Proceedings of a DIMACS Workshop, volume 7 of DIMACS Series in Discrete Mathematics and Theoretical Computer Science, pages 11–64. American Mathematical Society, 1992.
[CV15] Ashish Chiplunkar and Sundar Vishwanathan. Metrical service systems with multiple servers. Algorithmica, 71(1):219–231, 2015.
[CV20] Ashish Chiplunkar and Sundar Vishwanathan. Randomized memoryless algorithms for the weighted and the generalized k-server problems. ACM Transactions on Algorithms, 16(1):14:1–14:28, 2020.
[FR94] Amos Fiat and Moty Ricklin. Competitive algorithms for the weighted server problem. Theoretical Computer Science, 130(1):85–99, 1994.
[GVW10] Sascha Geulen, Berthold Vöcking, and Melanie Winkler. Regret minimization for online buffering problems using the weighted majority algorithm. In Proceedings of the 23rd Conference on Learning Theory (COLT), pages 132–143, 2010.
[HW98] Mark Herbster and Manfred K. Warmuth. Tracking the best expert. Machine Learning, 32(2):151–178, 1998.
[KP95] Elias Koutsoupias and Christos H. Papadimitriou. On the k-server conjecture. Journal of the ACM, 42(5):971–983, 1995.
[KT04] Elias Koutsoupias and David Scot Taylor. The CNN problem and other k-server variants. Theoretical Computer Science, 324(2–3):347–359, 2004.
[LW94] Nick Littlestone and Manfred K. Warmuth. The weighted majority algorithm. Information and Computation, 108(2):212–261, 1994.
[MMS90] Mark S. Manasse, Lyle A. McGeoch, and Daniel D. Sleator. Competitive algorithms for server problems. Journal of Algorithms, 11(2):208–230, 1990.
[New91] Lee A. Newberg. The k-server problem with distinguishable servers. Master's thesis, University of California, Berkeley, 1991.
[Sit14] René Sitters. The generalized work function algorithm is competitive for the generalized 2-server problem. SIAM Journal on Computing, 43(1):96–125, 2014.
[SS06] René Sitters and Leen Stougie. The generalized two-server problem. Journal of the ACM, 53(3):437–458, 2006.