TL;DR
Classic online algorithms often prepare for a malicious universe, designing strategies that survive worst-case scenarios at the expense of everyday performance. This paper flips the script for Metrical Task Systems (a massive umbrella of problems including caching and resource allocation), assuming instead that incoming requests follow unknown, evolving probabilistic patterns. The authors show how to learn an online strategy from data in polynomial time whose expected cost gets arbitrarily close to the theoretical best possible online algorithm.
What Problem Does This Paper Address?
Imagine managing a fleet of city bikes or deciding which files to keep in a computer’s fast memory cache. You have a set of states (where the bikes are, or what’s in the cache), moving between states costs something, and at every step, a new request arrives with its own serving costs. In computer science, this is a Metrical Task System (MTS).
Traditionally, MTS is studied in an adversarial model: we assume a cosmic trickster designs the sequence of requests specifically to ruin our day. While mathematically robust, this leads to overly pessimistic algorithms because real-world data usually has rhythm—commuters ride bikes in the morning, and programs access memory with temporal locality.
What if requests are instead generated by an unknown Markov chain (an evolving environment, like shifting weather or time of day)? Can we learn a nearly optimal decision-making policy just by observing the system? While this looks like a classic Markov Decision Process (MDP), there is a catch: because cost functions can take infinitely many continuous values, the MDP’s state space is infinite. Standard finite-state reinforcement learning tools break down here.
Methods
To tame this infinite state space, the authors exploit the underlying geometry of MTS, blending dynamic programming with fixed-point mathematics:
- Averaging the Bellman Operator: Instead of tracking every possible cost function as a state, they define an optimality equation that averages the standard Bellman operator (which balances immediate movement/service costs against future expected costs) over the randomness of the incoming requests. This collapses the problem down to learning a value function over just the finite metric states and Markov states.
- Anchored Value Iteration (Halpern Iteration): In average-cost settings (no discount factor), standard value iteration can loop forever without converging because the Bellman operator is non-expansive rather than strictly contracting. To force convergence, the authors use Halpern iteration, a classical fixed-point technique that gently pulls each update back toward an initial "anchor" point (zero).
- Empirical Approximation: Since the true probability distributions of the requests are unknown, the algorithm builds an empirical Bellman operator by averaging over observed data samples (either via sampling oracles or a single continuous trajectory of states and requests) and runs Halpern iteration on that empirical stand-in.
Datasets
The authors evaluate their algorithms on two setups (no new public benchmark datasets are introduced, though they construct specific experimental instances):
- Synthetic Markov Caching: A 12-page circular universe where the probability of requesting page $j$ after page $i$ decays exponentially with distance, creating behaviours ranging from uniform randomness to tight locality.
- Citi Bike System Data (2025): Real-world trip data from New York's bike-sharing platform, mapped to the $k$-server problem on the top 10 most popular stations using Euclidean distance. Temporal patterns are modeled as a 48-state Markov chain combining weekday/weekend status and the hour of the day.
Key Insights and Ideas
- Bypassing Infinite States via Lipschitz Geometry: Even though the space of possible request cost functions is infinite, any single Bellman update is 1-Lipschitz with respect to the metric space. This keeps the value functions neatly bounded by the metric's diameter $D$, allowing sample complexity to scale with the finite number of metric points $n$ rather than the infinite request space.
- Rare States Don't Ruin the Policy: When learning from a live trajectory or stationary distribution, some Markov states might rarely appear, making their local estimates terrible. The authors prove that the overall policy error weights state estimation errors by their stationary probabilities—meaning you don't need accurate estimates for states the world barely visits.
- Imperfect Markov Models Still Win: Real-world bike demand isn't truly a 48-state Markov chain. Yet, treating observable context labels (hour and weekend status) as Markov states gives the algorithm enough temporal structure to beat both worst-case baselines and IID-assuming learners.
Key Results
- Theoretical Guarantees: For an $n$-point metric space of diameter $D$ and Markov state space $\mathcal{X}$, the algorithm finds a policy within $\varepsilon$ of the optimal online average cost $g^*$ in polynomial time. It requires $\tilde{O}\left(\frac{D^2|\mathcal{X}|^2 n}{\varepsilon^2}\right)$ samples with oracle access (reducing to $|\mathcal{X}|=1$ for IID requests), plus an additive $\tilde{O}\left(\tau \frac{D|\mathcal{X}|}{\varepsilon}\right)$ term when learning from a single trajectory with mixing time $\tau$.
- Synthetic Caching: Across cache sizes $k \in \{2, 4, 6, 8, 10\}$ over 10,000 requests, the proposed algorithm consistently achieved the lowest empirical competitive ratio (closest to 1.0), outperforming LRU, Randomized Marker, the Work Function Algorithm (WFA), and even the Dominating Distribution Algorithm (which was given the exact Markov transition matrix upfront, whereas the authors' method learned from 500 samples per state).
- Citi Bike $k$-Server ($n=10, k=8$): Evaluated via leave-one-out cross-validation across the 12 months of 2025 over 500 Halpern iterations, WFA sat at a competitive ratio around ~1.54. The authors' IID learner dropped this to ~1.52, and the Markov learner pushed it down below 1.40, while driving the empirical Bellman residual error nearly to 0.
Limitations and Future Work
The biggest catch is hidden in the phrase "polynomial in $n$"—where $n$ is the number of states in the MTS, not necessarily the natural size of a specific subproblem. For instance, if you reduce caching or the $k$-server problem on $m$ locations to general MTS, each MTS state represents an entire configuration of servers, causing $n$ to blow up Combinatorially as $\binom{m}{k}$.
Finding ways to exploit the special structure of problems like $k$-server to achieve sample complexity and runtime polynomial in $m$ and $k$—for example, computing an $O(1)$-approximation under Markov requests in truly polynomial time—remains wide open.
Summary updated