NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Smoothed Analysis of Online Metric Matching with a Single Sample: Beyond Metric Distortion

Yingxi Li, Ellen Vitercik, Mingwei Yang · DOI

Abstract

Online metric matching is a fundamental problem in algorithmic theory where $n$ requests must be matched to $n$ servers in a metric space to minimize total distance. While adversarial settings are limited by logarithmic lower bounds, this paper introduces the first $O(1)$-competitive algorithms for Euclidean spaces (dimensions $d \neq 2$) under a smoothed analysis model. By assuming requests come from independent, non-identical smooth distributions and utilizing only a single sample from each, the authors bypass traditional metric distortion barriers that have long constrained performance guarantees in this domain.

Introduction

In the online metric matching problem, $n$ servers are initially placed in a metric space. A sequence of $n$ requests arrives one by one, and each must be immediately and irrevocably matched to an available server. The objective is to minimize the total distance of all matches. This problem serves as a theoretical foundation for various real-world applications, such as ride-hailing services where taxis must be assigned to passengers in real-time.

Historically, the analysis of this problem has been bifurcated. In the adversarial model, where an adversary chooses request locations to maximize the algorithm's cost, the best achievable competitive ratio is $O(\log^2 n)$ for general metrics and $O(\log n)$ for Euclidean spaces. Conversely, in the i.i.d. model, where requests are drawn from a single known distribution, constant competitive ratios are achievable. However, the i.i.d. assumption is often too restrictive for practical scenarios where demand patterns fluctuate spatially and temporally.

The Smoothed Analysis Framework

To bridge the gap between overly pessimistic adversarial bounds and overly optimistic i.i.d. assumptions, the authors employ smoothed analysis. In this model, requests are independent but can come from different distributions. These distributions are assumed to be "smooth"—they have a bounded density relative to the Lebesgue measure. This approach allows for spatial trends while preventing an adversary from exploiting infinitesimal precision to create pathologically difficult instances.

Methodology: Bypassing Metric Distortion

A common technique in metric matching is to embed a complex metric space (like Euclidean space) into a simpler one, such as a tree, solve the problem on the tree, and then map the solution back. However, this usually incurs a "distortion" penalty of $\Omega(\log n)$, which becomes the bottleneck for the competitive ratio.

The authors bypass this barrier by using a deterministic dyadic partition to map the Euclidean space $[0, 1]^d$ onto a Hierarchically well-Separated Tree (HST). Instead of treating the embedding and the algorithm as separate entities, they perform a direct analysis of the algorithm's cost on the target Euclidean space.

Hierarchically well-Separated Tree (HST) structure used for deterministic embedding.

The research focuses on two primary algorithms: Random-Subtree (RS) and BBGN. A key innovation is the "single-sample" learning approach. The authors demonstrate that an algorithm designed for known distributions can be adapted to work with just one sample per distribution, making the solution highly practical for environments where full distributional knowledge is unavailable.

Key Results and Comparison

The paper's primary contribution is establishing constant competitive ratios for most Euclidean dimensions. Specifically, for $d=1$ and $d \geq 3$, the proposed algorithms achieve an $O(1)$ competitive ratio. This represents a significant breakthrough, moving beyond the logarithmic barriers of previous work.

Comparison of competitive ratios for online metric matching across different models and metric spaces.

As shown in the table above, the authors' work significantly improves upon the state-of-the-art by handling independent, non-identical, smooth distributions with minimal distributional knowledge.

For the "critical dimension" of $d=2$, the problem remains challenging. The authors achieve a sublinear competitive ratio of approximately $O(n^{0.24})$. While not yet constant, this is an improvement over the $O(\log n)$ adversarial bound for sufficiently large $n$. The difficulty in $d=2$ stems from the unique scaling properties of matching costs in the plane, a well-known phenomenon in stochastic geometry.

Discussion and Future Work

By combining smoothed analysis with direct metric analysis, this work demonstrates that the logarithmic barriers in online metric matching are often artifacts of the analysis techniques rather than inherent properties of the problem in realistic settings.

Future research directions include closing the gap for $d=2$ to achieve a constant competitive ratio. Furthermore, extending these techniques to handle correlated arrivals—where requests are not independent—would bring the model even closer to complex real-world dynamics. The success of the single-sample approach also suggests broader applications in other online optimization problems where distributional information is sparse.

Summary updated

BibTeX
@inproceedings{li2026smoothed,
  author = {Yingxi Li and Ellen Vitercik and Mingwei Yang},
  title = {{Smoothed Analysis of Online Metric Matching with a Single Sample: Beyond Metric Distortion}},
  booktitle = {ITCS},
  year = {2026},
  doi = {10.4230/lipics.itcs.2026.94},
}
Figure