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

TL;DR

This paper breaks a long-standing $\Omega(\log n)$ competitive barrier in online metric matching under a smoothed analysis framework. By utilizing just a single sample from each request's distribution, the authors design an $O(1)$-competitive algorithm for Euclidean spaces where the dimension $d \neq 2$. They achieve this by bypassing traditional metric embedding distortion analysis, directly bounding the algorithm's cost on a deterministic tree structure.

What Problem Does This Paper Address?

The paper studies the online metric matching problem. Imagine a ride-hailing platform with $n$ drivers (servers) available at fixed locations. Suddenly, $n$ passengers (requests) appear one by one. As each passenger arrives, the platform must immediately and permanently match them to an available driver, incurring a cost equal to the distance between them. The ultimate goal is to minimize the total matching cost.

When the placement of drivers and passengers is completely adversarial (worst-case), algorithms are forced to suffer a logarithmic competitive ratio—meaning the online algorithm performs at least $\Omega(\log n)$ times worse than an offline planner who sees all requests upfront. While prior work bypassed this barrier by assuming requests are independent and identically distributed (i.i.d.), real-world scenarios rarely feature identical distributions.

This paper tackles a much more realistic setting using smoothed analysis: requests are independent but non-identical, coming from distinct, smooth distributions. Crucially, the algorithm does not actually know these distributions; it only has access to a single sample from each distribution.

Methods

The authors introduce a novel analysis pipeline that departs from decades of standard practice in online algorithms:

  1. Deterministic Tree Embedding: Typically, researchers randomly embed metric spaces into Hierarchically well-Separated Trees (HSTs) to simplify the geometry, which inherently loses a factor of $\Omega(\log n)$ due to "embedding distortion." Instead, the authors use a simple, deterministic dyadic partition to map the Euclidean space $[0,1]^d$ into a tree (as illustrated in Figure 1).
  2. Bypassing Distortion Analysis: Instead of analyzing the embedding distortion and the matching algorithm separately, they analyze the algorithm's cost directly on the resulting tree. Because the embedding is non-contractive, the tree-based cost safely upper-bounds the true Euclidean cost.
  3. Majorization and Fluctuations: They prove that the expected cost of standard tree-matching algorithms depends on fluctuations in request counts across subtrees. Using majorization theory, they show that the absolute worst-case fluctuations occur when requests are uniformly distributed, allowing them to derive distribution-free upper bounds.
  4. Single-Sample Reduction: They extend a black-box reduction technique to show that having just one sample per request distribution is mathematically sufficient to mimic having full distributional knowledge.
An example of a 4-ary $\alpha$-HST used to simplify the metric space geometry.

Datasets

Not discussed in the paper. This is a purely theoretical paper containing mathematical proofs and algorithmic analysis; no empirical evaluations or datasets were used.

Key Insights and Ideas

  • Bypassing the Distortion Barrier: The "aha moment" of the paper is realizing that you don't need a low-distortion embedding to design a good online algorithm. A high-distortion deterministic embedding works perfectly fine if you can bound the algorithm's cost directly on the target tree structure.
  • Uniformity is the Enemy: By applying concavity and majorization arguments to Poisson-binomial counts, the authors discovered that the online algorithm performs worst when requests are spread perfectly uniformly across the tree branches.
  • The 2D Anomaly: The geometry of a two-dimensional plane ($d=2$) scales differently than a 1D line or $\ge 3\text{D}$ spaces. This scaling difference changes how "obstacles to matching" grow, making the plane uniquely challenging.

Key Results

The paper provides the first algorithm to achieve an $o(\log n)$ competitive ratio for non-trivial metrics beyond the i.i.d. setting. Specifically, the main algorithm achieves an $O(1)$-competitive ratio for any dimension $d \neq 2$.

A thorough comparison with state-of-the-art results is summarized in the table below:

Comparison of the paper's results with prior work on online metric matching.

Limitations and Future Work

  • The Two-Dimensional Gap: The main algorithm is not $O(1)$-competitive in two dimensions ($d=2$). While the authors present a secondary, complementary algorithm that improves performance on the plane, achieving a constant competitive ratio for $d=2$ remains an open challenge.
  • Assuming Independence: The current framework assumes that request distributions are independent of one another. A natural next step is exploring whether these techniques can handle correlations—for instance, where a passenger's location distribution depends on where previous passengers appeared.

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