Barely Random Algorithms and Collective Metrical Task Systems

Romain Cosson, Laurent Massoulié

Online decision-making often forces a choice between poor performance and the unrealistic assumption of infinite randomness. In the context of Metrical Task Systems (MTS), this paper demonstrates that an infinite stream of random bits is unnecessary. The authors prove that any fully randomized MTS algorithm can be transformed into a "barely random" version using only $2 \log n$ random bits, maintaining nearly the same competitive ratio. This breakthrough bridges the long-standing gap between poorly performing deterministic algorithms and resource-heavy fully randomized ones.

The Metrical Task System (MTS) Challenge

Imagine managing a system with $n$ possible states (e.g., server locations or system configurations). At each time step, a task arrives, incurring a specific service cost depending on your current state. You can either stay put and pay this service cost or move to a new state, paying a movement cost based on the distance. The objective is to minimize the total cost compared to an offline optimal player who knows all future tasks—a metric known as the "competitive ratio."

Historically, there has been a stark divide in MTS performance:

  • Deterministic algorithms are stuck with a poor competitive ratio of $2n-1$.
  • Randomized algorithms can achieve a vastly superior $O(\log^2 n)$ ratio.

However, modern randomized algorithms (such as those based on online mirror descent) assume access to an infinite supply of random bits. This paper asks a fundamental question: How much randomness is actually necessary to remain competitive?

The Power of the Team: A Collective Viewpoint

To answer this, the authors introduce the concept of "Collective Metrical Task Systems." They demonstrate that a "barely random" algorithm (using $\log k$ bits) is mathematically equivalent to a collective system where a team of $k$ deterministic agents works together, sharing the average of the team's expenses.

While a single deterministic agent is easily fooled by an adversary (yielding the $\Omega(n)$ bound), a team of $k \geq n^2$ deterministic agents can achieve the coveted $O(\log^2 n)$ competitive ratio. This "collective intelligence" emerges simply from averaging the costs of agents starting at different positions.

Methodology: Discretization and Hysteresis

The authors bridge the gap between continuous probability distributions and discrete agents using discrete geometry and optimal transport theory. Instead of a continuous distribution over states, they employ "barely fractional strategies" where probability mass is restricted to multiples of $1/k$.

To convert a fully randomized strategy into a discrete one, they introduce a novel first-order optimization method called the Discrete Proximal Method. A major challenge in this conversion is hysteresis—simple rounding fails because tiny shifts in a continuous distribution can trigger large, expensive jumps in the discrete configuration.

To counter this, the authors use a potential function based on the Wasserstein-1 distance (Earth Mover's Distance). This creates a necessary "lag," ensuring the discrete configuration tracks the continuous one without unnecessary, costly movements. Furthermore, they leverage the classical Birkhoff-von Neumann theorem to prove that any discrete movement between probability configurations can be decomposed into movements of individual agents without splitting them, which is crucial for the collective equivalence.

Key Results and Implications

The paper establishes several foundational results for online algorithms:

  • The Conversion Theorem: For any metric space with $n$ points, any $\alpha$-competitive randomized algorithm can be transformed into a $(1+\epsilon)\alpha$-competitive algorithm using $k \geq n^2/\epsilon$ states.
  • Order-Optimal Randomness: The paper proves that $O(\log^2 n)$ competitiveness is achievable with just $\lceil 2 \log n \rceil$ random bits. Crucially, this number does not depend on the length of the request sequence.
  • Advice Complexity: This result implies that a deterministic algorithm only needs $2 \log n$ bits of "advice" (prior information about the future or environment) to break the $2n-1$ barrier. This is a significant improvement over prior bounds that scaled with the length of the request sequence.
  • Lower Bounds: The authors provide a near-matching lower bound, proving that at least $\log n - O(\log \log n)$ bits are strictly required for any $O(\log^2 n)$-competitive algorithm.

Limitations and Future Directions

As a theoretical work, the paper focuses on mathematical proofs and competitive analysis rather than empirical datasets or computational runtime.

The current proof requires $k \geq n^2$ agents (or $2 \log n$ bits), but the authors suspect that for specific metric spaces (like weighted stars), $k = O(n)$ might suffice. Additionally, while the algorithm establishes the existence of the competitive ratio, the computational efficiency of solving the optimization step at every time step remains an area for future exploration. Finally, the "collective" framework introduced here holds promise for broader applications in online decision-making, such as the $k$-server problem, transaction costs, or distributed systems with restricted communication.

Summary updated

BibTeX
@inproceedings{cosson2024barely,
  author = {Romain Cosson and Laurent Massoulié},
  title = {{Barely Random Algorithms and Collective Metrical Task Systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=OAjHFvrTbq},
}
Figure