Efficiently learning structured distributions from untrusted batches

Sitan Chen, Jerry Li, Ankur Moitra

TL;DR

This paper provides the first polynomial-time algorithms for robustly learning probability distributions from "untrusted batches"—a setting where data comes from many users, but a fraction of them are providing maliciously corrupted data. By leveraging the Sum-of-Squares (SoS) hierarchy and Haar wavelets, the authors achieve near-optimal estimation error and show that if a distribution has a specific "shape" (like being monotone or log-concave), it can be learned with a number of samples that is nearly independent of the domain size.

What Problem Does This Paper Address?

In modern machine learning, especially federated learning, data is often collected in batches from many different users. This presents two major challenges:

  1. Heterogeneity: Different users might have slightly different underlying distributions.
  2. Robustness: Some users might be "untrusted" or malicious, sending adversarially chosen data to bias the model.

Previous work by Qiao and Valiant (2017) introduced the "untrusted batches" model. They discovered a surprising "tensorization" effect: if each user provides a batch of $k$ samples, the unavoidable error floor of $O(\epsilon)$ (where $\epsilon$ is the fraction of bad users) can be beaten, potentially reaching $O(\epsilon/\sqrt{k})$. However, their proposed algorithms were computationally expensive—running in time exponential to the domain size or batch size. This paper aims to bridge that gap by creating efficient (polynomial-time) algorithms that reach these optimal error rates.

Methods

The authors frame the problem as a high-dimensional robust mean estimation task and solve it using the Sum-of-Squares (SoS) hierarchy.

  • Moment-Bounded Subsets: The core idea is to search for a large subset of the batches whose empirical moments are "well-behaved" (i.e., they look like they came from a multinomial distribution).
  • Matrix SoS: To avoid checking an exponential number of possible domain partitions (an $L_\infty$ constraint), the authors use "Matrix SoS." This technique allows the algorithm to reason about matrix-valued polynomials to efficiently certify that the distribution's moments are bounded.
  • Haar Wavelet Basis: To handle "shape constraints" (like learning a distribution that is piecewise polynomial), the authors translate combinatorial constraints—such as the number of "sign changes" in a vector—into linear algebraic ones. They show that structured distributions are sparse in the Haar wavelet basis, allowing the SoS framework to incorporate these priors and reduce sample complexity.

Datasets

This is a theoretical research paper focused on algorithmic proofs and complexity analysis. Consequently, no empirical datasets or benchmarks were used. The results are proven for a general generative model where $m$ users provide $k$ i.i.d. samples each from distributions $\eta$-close to a target $p$.

Key Insights and Ideas

  • The $L_\infty$ Shift: Standard robust mean estimation usually focuses on $L_2$ (Euclidean) norms. Learning discrete distributions requires controlling the $L_\infty$ norm (total variation distance). The authors show how to adapt SoS tools to this more difficult norm.
  • Simple Proofs = Fast Algorithms: A recurring theme in SoS research is that if you can write a "simple" (low-degree polynomial) proof that a property holds, you can turn that proof into a polynomial-time algorithm. The authors provide a new SoS proof for the moment bounds of multinomial distributions.
  • Shape as a Complexity Reducer: By utilizing VC-theory and $A_K$ norms, the authors demonstrate that "shape" isn't just a nice-to-have property; it's a mathematical lever that allows the algorithm to ignore the vast majority of the domain, focusing only on a few "degrees of freedom."

Key Results

  • Near-Optimal Error: For general distributions over a domain of size $n$, the algorithm achieves an error of $O(\epsilon^{1-1/t}/\sqrt{k/t} + \eta)$ in polynomial time. As the degree $t$ increases, this approaches the information-theoretic limit.
  • Sublinear Sample Complexity: When the distribution is "structured" (e.g., $s$-part piecewise degree-$d$ polynomial), the number of batches required becomes polylogarithmic in $n$. This makes the approach viable for distributions over massive domains where traditional learning would require too much data.
  • Broad Applicability: Because many natural distributions (Gaussians, log-concave, Poisson Binomial) can be approximated by piecewise polynomials, this algorithm serves as a "universal" robust learner for structured data.

Limitations and Future Work

  • High Polynomial Exponents: While the algorithms are "polynomial time," the exponents in the runtime depend on the degree of the SoS hierarchy ($t$) and the complexity of the shape constraints. In practice, these could still be quite slow for very high-precision requirements.
  • Numerical Precision: The authors note that their SoS relaxations require solving large Semidefinite Programs (SDPs). While theoretically efficient, the practical implementation of such SDPs for large-scale federated learning remains a challenge.
  • Future Directions: The authors suggest exploring what other types of "test functions" (beyond $L_2$ and $L_\infty$) can be incorporated into this framework to handle different types of data corruption or structural priors.

Summary updated

BibTeX
@inproceedings{chen2020efficiently,
  author = {Sitan Chen and Jerry Li and Ankur Moitra},
  title = {{Efficiently learning structured distributions from untrusted batches}},
  booktitle = {STOC},
  year = {2020},
  url = {https://openreview.net/forum?id=o60HBX2z5N},
}

Loading related content...

Figure