Matching Under Metric Privacy

Hongyi B. Hu, Dung Nguyen, M. Amin RahimianarXiv 2026

It’s late, the coffee is cold, and you’ve spent all day worrying about data leaks. You know the drill: you have a set of sensitive data points (say, user locations) and you need to match them to a set of public points (like service hubs) to minimize the total distance. But how do you do that without revealing exactly where those users are?

TL;DR

This paper explores how to perform bipartite matching while maintaining "metric privacy"—a flavor of differential privacy where the protection scales with the distance between points. The authors discover a fundamental "regime change" at $d \approx \log n$: in low dimensions, it's best to randomize the points themselves, but in high dimensions, you should randomize the matching costs using a technique called Gumbel matching.

What Problem Does This Paper Address?

Bipartite matching is a classic optimization problem: pair $n$ items from group A with $n$ items from group B to minimize the total "cost" (usually Euclidean distance). We use it for everything from assigning workers to tasks to aligning biological datasets.

The headache starts when group A is sensitive. If you release the optimal matching, an adversary might reverse-engineer the coordinates of your private points. Standard Differential Privacy (DP) usually protects the existence of a record, but here we need to protect the numerical values of the coordinates.

The authors use Metric Privacy. Think of it as a "smooth" version of privacy: if I move my private point by a tiny amount, the probability of any specific matching being released should only change by a tiny amount. The challenge is finding the "utility-privacy frontier"—how much extra distance (excess cost) do we have to swallow to keep our data safe?

Methods

The authors analyze two main trust models:

  1. Local Privacy (The "Don't Trust Anyone" Model): Each private point is randomized before it ever reaches a server.
  2. Original Points: Adding Laplace noise directly to the coordinates.
  3. Projected Representation: A clever geometric trick. Since matching only cares about distances to public points, you can project private points onto the "affine span" (the flat surface) where the public points live. This reduces the number of dimensions you need to "noise up," saving your privacy budget.
  4. Central Privacy (The "Trusted Server" Model): A trusted platform sees the raw data, adds noise to the edge costs of the matching graph, and only releases the final pairing.
  5. Gumbel Matching: The authors adapt the "Gumbel-max trick" to matching. By adding independent Gumbel noise to the $n^2$ possible edges, they satisfy metric privacy while achieving much better accuracy in high dimensions.

Datasets

The authors didn't just stick to theory; they stress-tested these methods on 16 different benchmarks:

  • Real-world data: Classics like Iris, Wine, Sonar, and the heavy hitters MNIST and Fashion-MNIST.
  • Synthetic data: Geometries like "Ring noisy" and "Chainlink" to see how different shapes affect privacy.
  • Specific Sweeps: They used the Banknote dataset for sample-size tests and Fashion-MNIST for dimensionality tests.
Table 1: Experimental configurations. The dimension and sample-size sweeps vary one quantity while holding the other fixed.

Key Insights and Ideas

  • The $\log n$ Threshold: This is the "aha!" moment. The error for randomizing points scales with the dimension $d$, but the error for Gumbel matching scales with $\log n$. This means once your data has more than $\log n$ dimensions, you should stop worrying about the coordinates and start randomizing the costs.
  • Geometry is a Shield: If your public points live in a 2D plane even though the ambient space is 100D, you only need to protect those 2 dimensions. The "Projected Representation" method formalizes this intuition.
  • Gumbel is Optimal: The authors proved a "lower bound," showing that no matter how clever you are, you can't beat an error rate of $\Theta(n \min\{d, \log n\} / \varepsilon)$. Gumbel matching actually hits this theoretical limit in high dimensions.

Key Results

  • Theoretical Tightness: They established the tight rate for expected excess cost as $\Theta(n \min\{d, \log n\} / \varepsilon)$.
  • High-Dimensional Dominance: In experiments with Fashion-MNIST ($d=784$), Gumbel matching stayed accurate while point-perturbation methods saw their error explode.
  • Hypothesis Testing: They applied this to a "Two-Sample Rank-Energy Test" on the Sonar dataset. Even with a strict privacy budget ($\varepsilon=16$), Gumbel matching preserved enough signal to correctly reject the null hypothesis (p-value < 0.05), whereas simpler methods were too noisy to be useful.

Limitations and Future Work

While the paper closes the book on several theoretical gaps, some doors remain open:

  • The Local Gap: While Gumbel matching is optimal for central privacy, the optimal rate for local privacy in high dimensions is still a bit of a mystery.
  • Dynamic Matching: The current work assumes a static "batch" of points. In the real world, people arrive one by one (like Uber riders). Extending these guarantees to "online" matching is the next big frontier.
  • Soft Assignments: The authors suggest that moving from discrete pairings to "soft" (probabilistic) assignments could bring metric privacy closer to the world of differentiable deep learning.

Summary updated

Abstract

We study how to represent and randomize points in $d$-dimensional Euclidean space to obtain accurate bipartite matchings under metric privacy. Given $n$ private and $n$ public points, we analyze local mechanisms that randomize each private point or its distances to the public points. Using the public points' affine span, we construct a smaller representation that preserves all matching costs. When a trusted server receives the private points, we establish privacy and utility guarantees for Gumbel matching, which randomizes edge costs and releases only the assignment. Through upper bounds and worst-case constructions, we establish the tight rate $Θ\!\left(n\min\{d,\log n\}/\varepsilon\right)$ for expected cost above the nonprivate optimum. Benchmark experiments support $d\approx\log n$ as a practical guide to the transition between directly randomizing point coordinates and using Gumbel matching. Extensions to squared Euclidean costs enable private nonparametric two-sample hypothesis testing. These results show how the application's trust model guides representation and dimension choices for better utility: under local privacy, low-dimensional point representations reduce excess cost, while under central privacy, distance representations achieve the optimal rate even in high dimension.
BibTeX
@misc{hu2026matching,
  author = {Hongyi B. Hu and Dung Nguyen and M. Amin Rahimian},
  title = {{Matching Under Metric Privacy}},
  year = {2026},
  eprint = {2611.31208},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31208},
}
Figure