Abstract
The problem of matching a set of observations to their generating distributions is fundamental in statistical estimation. While the Maximum Likelihood Estimator (MLE) is theoretically optimal, its computation via the standard Hungarian algorithm scales cubically ($O(n^3)$), making it impractical for large datasets. This paper introduces a Sparsified Hungarian Algorithm that computes the exact MLE in $\tilde{O}(n^2)$ time. By reducing the bipartite graph's edge density to $O(\log n)$ per group, the authors prove that the optimal matching is preserved with high probability. Furthermore, the paper establishes rigorous statistical bounds on the mismatch probability, showing it vanishes rapidly as distribution separation grows.
Introduction
In many scientific domains, such as signal processing and genomics, researchers face the challenge of "un-shuffling" data. Given $N$ observations known to originate from $k$ distinct distributions (with $n$ samples each, such that $N = nk$), the goal is to assign each observation to its correct source. This task is formally a weighted bipartite matching problem, where the Maximum Likelihood Estimator (MLE) serves as the gold standard for accuracy.
However, the computational cost of the MLE is a significant barrier. The classic Hungarian algorithm, used to solve such matching problems, has a runtime complexity of $O(n^3)$. As $n$ grows, this cubic scaling becomes a bottleneck. This paper presents a breakthrough by achieving the exact MLE in roughly $O(n^2)$ time through a novel graph-sparsification technique.
The Sparsified Hungarian Algorithm
The core innovation lies in reducing the number of edges in the bipartite graph without losing the optimal solution. In a standard setup, every observation would be connected to every potential distribution slot, resulting in $N^2$ edges.
The authors propose a randomized sparsification strategy:
- Random Sparsification: For each observation, only $c \log n$ random edges are drawn to the slots of each distribution group.
- Optimality Preservation: Leveraging Hall’s Marriage Theorem, the authors demonstrate that even with this extreme sparsity, the "true" maximum weight matching (the MLE) remains within the graph with high probability.
This reduction in edge complexity from $O(n^2)$ to $O(n \log n)$ allows the Hungarian algorithm to operate in $\tilde{O}(n^2)$ time, specifically $O(k^3 n^2 \log n)$. This approach is unique because it provides an exact solution rather than an approximation, which is common in fast matching algorithms.
Statistical Analysis and Risk Bounding
Beyond algorithmic efficiency, the paper provides a deep dive into the statistical reliability of the MLE. The authors frame the matching problem as Empirical Risk Minimization (ERM) and utilize Adamczak’s concentration inequality to bound the "excess risk"—the loss in likelihood due to incorrect matches.
Using synthetic isotropic Gaussian mixtures in $\mathbb{R}^k$, where means are separated by a factor $\eta$, the authors show that the expected fraction of mismatched observations decays at a rate of $O((\log k)^2 / \eta^2)$. They provide two sets of risk bounds, with the "sharper" bound (Theorem 5) offering tighter guarantees for well-separated distributions.
Key Results and Insights
- Logarithmic Connectivity: The "magic number" for maintaining the optimal matching is $O(\log n)$ random connections per group, a result echoing principles from random graph theory and expander graphs.
- Computational Leap: The transition from $O(n^3)$ to $\tilde{O}(n^2)$ enables the processing of significantly larger datasets while maintaining the statistical guarantees of the MLE.
- Separation Thresholds: For Gaussian sources, if the separation $\eta$ exceeds $\sqrt{\log k}$, the error rate drops precipitously, confirming the estimator's robustness in high-dimensional spaces.
Conclusion and Future Work
This work bridges the gap between statistical optimality and computational feasibility for the observation-to-distribution matching problem. While the current framework assumes known, balanced distributions, it sets the stage for future extensions. Potential research directions include handling "unbalanced" cases where sample counts per source are unknown, and adapting the algorithm for scenarios where the distributions themselves must be estimated concurrently with the matching.
Summary updated