Identity testing under label mismatch

Clément L. Canonne, Karl Wimmer · DOI

TL;DR

This paper introduces a new variant of identity testing for probability distributions, where the observed data's labels might be permuted relative to the true distribution. They show that this "label mismatch" problem dramatically changes the sample complexity, making non-tolerant testing surprisingly easy (polylogarithmic samples) while making tolerant testing exponentially harder (nearly linear samples). This highlights a surprising disconnect between tolerant and non-tolerant testing under this new setting.

What Problem Does This Paper Address?

Identity testing is a fundamental problem in statistics and computer science: given data, can we tell if it comes from a specific, known probability distribution (the "reference distribution")? This is crucial for tasks like checking if a machine learning model is behaving as expected or if a random number generator is truly random.

The standard formulation, however, assumes perfect knowledge of the data's labels. This paper tackles a more realistic scenario: what if the labels themselves are systematically permuted? Imagine you've collected data and estimated its distribution, but a systematic error in your data collection process has shuffled the labels. You have a good guess about the true permutation, but you want to verify if your data, after accounting for this potential permutation, truly matches the reference distribution. This is "identity testing under promise of permutation." The core challenge is to design algorithms that can efficiently detect deviations from the reference distribution, even when the labels are not directly aligned.

Methods

The paper introduces algorithms and lower bounds for two related problems:

  • Non-tolerant Identity Testing (under promise of permutation): The algorithm needs to distinguish between the case where the data distribution p is exactly a permuted version of the reference distribution q (i.e., p = q o π for some permutation π), and the case where p is significantly different from any permuted version of q. The key algorithmic idea here involves bucketing the domain of the distribution based on the reference distribution q. This allows them to efficiently estimate the distribution of these buckets using a surprisingly small number of samples.
  • Tolerant Identity Testing (under promise of permutation): This is a more relaxed version where the algorithm should accept if p is "close" to some permuted q and reject if it's "far" from all permuted qs. The paper shows that this relaxation dramatically increases the sample complexity. The techniques here involve constructing specific families of distributions that are hard to distinguish and leveraging existing results from distribution testing literature, adapted to the permutation promise.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and algorithmic constructions rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • The "Promise" is Powerful (for non-tolerant testing): The assumption that the unknown distribution p is some permutation of the reference q drastically simplifies the non-tolerant testing problem. It reduces the sample complexity from O(√n) (for standard identity testing) to O(log² n). This is a huge win for scenarios where you can be confident about the label permutation structure.
  • Tolerant Testing Suffers Dramatically: The promise of permutation, which helps so much in the non-tolerant case, becomes almost useless for tolerant testing. The sample complexity jumps from polylogarithmic to nearly linear (O(n¹⁻⁰⁽¹⁾)), a massive increase. This is a key finding, showing a stark contrast between tolerant and non-tolerant settings under this specific promise.
  • Uniformity is Trivial (with the promise): A well-known hard case for standard identity testing is when the reference distribution is uniform. However, under the permutation promise, testing uniformity becomes trivial. Any distribution that is a permutation of the uniform distribution is still the uniform distribution itself, so you need zero samples to distinguish it from itself.
  • Exponential Gap: The paper highlights the first known example of an exponential gap between the sample complexities of tolerant and non-tolerant versions of a distribution testing problem under a specific promise.

Key Results

  • Non-tolerant Identity Testing: Achieves O(log² n) sample complexity, a significant improvement over the O(√n) for standard identity testing.
  • Tolerant Identity Testing: Requires Ω(n¹⁻⁰⁽¹⁾) sample complexity, a substantial increase compared to the non-tolerant case and also significantly harder than standard tolerant identity testing.
  • Multiplicative-factor Tolerant Testing: Even with a multiplicative gap, the sample complexity remains polynomial, specifically Ω(√n).

Limitations and Future Work

  • Theoretical Focus: The paper is primarily theoretical, establishing upper and lower bounds. Empirical validation of the proposed algorithms would be a natural next step.
  • Specific Promise: The results are contingent on the "promise of permutation." Exploring other types of label-related errors or structural promises could be fruitful.
  • Constant Factors: While the asymptotic complexities are established, the constants hidden in the Big-O and Omega notations might be significant in practice.
  • Future Work: The authors suggest exploring the impact of this promise on other distribution testing problems and investigating the role of different types of label errors. The paper also hints at further refinements of the tolerant testing bounds.

Summary updated

BibTeX
@inproceedings{canonne2021identity,
  author = {Clément L. Canonne and Karl Wimmer},
  title = {{Identity testing under label mismatch}},
  booktitle = {ISAAC},
  year = {2021},
  doi = {10.4230/lipics.isaac.2021.55},
}
Figure