Derandomizing Multi-Distribution Learning

Kasper Green Larsen, Omar Montasser, Nikita Zhivotovskiy

Abstract

Multi-distribution learning (MDL) aims to identify a single predictor that performs robustly across $k$ distinct data distributions, a framework essential for min-max fairness and robust optimization. While existing MDL algorithms typically output randomized classifiers—effectively a weighted average of multiple rules—deterministic models are preferred for consistency, safety, and deployment. This paper investigates the computational feasibility of derandomizing these learners. We demonstrate that while finding a deterministic classifier is NP-hard in the general agnostic setting due to potential disagreements between distributions, efficient derandomization is possible under a "label-consistent" assumption. We provide a black-box reduction that converts randomized learners into deterministic ones with near-optimal sample complexity using $r$-wise independent hashing.

1. Introduction

In standard PAC learning, the goal is to find a hypothesis that performs well on a single distribution. A fundamental result in this field is that we can always find a single, deterministic rule that is optimal. However, modern machine learning increasingly operates in multi-distribution settings, such as collaborative learning or fairness-constrained optimization, where a model must perform well across $k$ different demographics or data sources simultaneously.

In these multi-distribution "agnostic" settings—where no single hypothesis in a class $\mathcal{H}$ is perfect—state-of-the-art algorithms often output a randomized classifier. To make a prediction, such a model effectively samples a new classifier from a distribution for every input. This lack of determinism poses significant hurdles for real-world applications where consistency is paramount. This paper addresses the "usability gap" by exploring whether these randomized averages can be efficiently converted into a single, reliable deterministic rule.

2. The Hardness of General Derandomization

The authors first establish that the difficulty of derandomization is not merely a technical limitation but a fundamental computational barrier. By employing a reduction from Discrepancy Minimization, the paper proves that if $BPP \neq NP$, any algorithm producing a deterministic classifier for $k$ distributions in the general agnostic setting must take super-polynomial time in either training or evaluation.

The core of this hardness lies in the "labeling problem." In the general case, different distributions might disagree on the ground-truth label for a specific input point. A deterministic learner is forced to choose one label, which inevitably degrades performance on the distributions that expect the alternative. This tension makes the search for an optimal deterministic rule equivalent to solving NP-hard combinatorial problems.

3. The Label-Consistent Framework

To bypass the general hardness result, the researchers introduce a structural condition called label consistency. This assumption posits that while different distributions might cover different regions of the input space or have different marginals, the underlying conditional probability of a label given an input ($P(y|x)$) remains the same across all distributions.

Under label consistency, the "disagreement" problem is eliminated. This allows the multi-distribution problem to behave more like classical PAC learning, where a single ground truth exists for every point, even if that point is sampled from different sources.

4. Algorithmic Approach: Black-Box Reduction

The paper introduces Algorithm 1, a black-box reduction that transforms any randomized multi-distribution learner into a deterministic one. The approach follows three primary steps:

  1. Identification of Biased Points: The algorithm identifies "heavily biased" points where the randomized learner's average prediction is clear. These points are assigned fixed labels.
  2. Random Rounding: For "lightly biased" points where the label is less certain, the algorithm employs a rounding strategy to assign a deterministic label.
  3. Efficient Evaluation via Hashing: To avoid the need for massive lookup tables (which would be required to store a unique choice for every possible input), the authors use $r$-wise independent hash functions. This ensures the resulting classifier can be evaluated in polynomial time and requires only logarithmic storage overhead.

5. Key Results and Theoretical Impact

The theoretical contributions of this work are twofold:

  • Sample Complexity: Under the label-consistent assumption, the authors achieve a deterministic classifier with a sample complexity of $\tilde{O}((d + k)/\epsilon^2)$, where $d$ is the VC-dimension and $k$ is the number of distributions. This matches the near-optimal rates previously only achievable by randomized learners.
  • Computational Efficiency: The reduction is computationally efficient, running in polynomial time relative to the complexity of the original randomized learner and the number of distributions $k$.

6. Discussion and Future Work

While this work provides a robust path forward for derandomization, several open questions remain. The current algorithm is primarily optimized for finite input domains $\mathcal{X}$, though the authors provide a theoretical sketch for infinite domains using dual VC-dimension. Furthermore, the resulting deterministic classifier may be "improper," meaning it might not reside within the original hypothesis class $\mathcal{H}$.

Finally, while label consistency is a natural fit for many multi-sensor or multi-regional datasets, it may not hold in adversarial settings where different groups have fundamentally different ground truths for the same input. Exploring derandomization in these high-disagreement regimes remains a challenging frontier for machine learning theory.

Summary updated

BibTeX
@inproceedings{larsen2024derandomizing,
  author = {Kasper Green Larsen and Omar Montasser and Nikita Zhivotovskiy},
  title = {{Derandomizing Multi-Distribution Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=twYE75Mnkt},
}
Figure