Efficient Learning with Arbitrary Covariate Shift

Adam Kalai, Varun Kanade

Introduction

In classical machine learning, a fundamental assumption is that training data (drawn from distribution $P$) and test data (drawn from distribution $Q$) are independent and identically distributed (i.i.d.). When this assumption fails—a phenomenon known as covariate shift—the performance of standard models can degrade significantly. In extreme cases where $P$ and $Q$ are completely disjoint, learning is traditionally considered impossible.

This paper explores a robust framework called PQ-learning, which enables learning even under arbitrary covariate shift. By granting the learner two specific capabilities—unlabeled access to the test distribution $Q$ and a "reject" option ($\bot$)—the authors demonstrate that learning becomes computationally feasible for classes that were previously thought to be out of reach.

The PQ-Learning Framework

The PQ-learning model addresses the challenge of non-overlapping distributions by relaxing the requirements of the learner. Instead of forcing a prediction on every test instance, the learner can output a "don't know" symbol ($\bot$). The objective is twofold:

  1. Accuracy: Maintain a low error rate on the test distribution $Q$ for all non-rejected examples.
  2. Coverage: Ensure the rejection rate on the training distribution $P$ remains low, preventing the learner from simply rejecting everything to avoid errors.

While prior research established the statistical possibility of PQ-learning using an Empirical Risk Minimization (ERM) oracle, the computational complexity remained an open question. This paper bridges that gap by identifying the exact computational requirements for PQ-learning.

The Slice-and-Dice Algorithm

The authors introduce the Slice-and-Dice (S&D) algorithm, a polynomial-time method that reduces the complex PQ-learning problem to a simpler task: reliable learning. A reliable learner is one that handles one-sided noise, guaranteeing zero false positives while tolerating some false negatives.

Geometric intuition for reliable learning (a) and the Slice-and-Dice algorithm's rejection regions (b).

The S&D algorithm operates in two distinct phases:

  • Slice: The algorithm trains a base classifier $c$ on the labeled training data $P$. This classifier "slices" the input space into regions based on its predictions (e.g., $c(x)=0$ vs. $c(x)=1$).
  • Dice: Within these slices, the algorithm mixes labeled $P$ data with unlabeled $Q$ data. It then uses a reliable learner to identify regions where $Q$ is significantly different from $P$. If the reliable learner flags a region as distinguishable, the algorithm "dices" it away by assigning a reject symbol ($\bot$) to those test examples.

This approach ensures that the learner only makes predictions in regions where the training data $P$ provides sufficient information to generalize to $Q$.

Theoretical Hierarchy and Equivalence

A key contribution of this work is the establishment of a new computational hierarchy in learning theory. The authors prove that PQ-learning sits between standard PAC learning and agnostic learning (learning with arbitrary noise).

  • Equivalence to Reliable Learning: The paper formally proves that a concept class $C$ is PQ-learnable if and only if it is reliably learnable. This equivalence provides a powerful tool for analyzing the complexity of different function classes.
  • The Case of Parities: Parity functions are notoriously difficult to learn agnostically—a property used in cryptography. However, the authors show that parities are efficiently PQ-learnable. This demonstrates that the PQ-learning framework is strictly more tractable than full agnostic learning.
  • The Hardness of Conjunctions: Surprisingly, simple conjunctions, which are easy to PAC-learn, are likely not PQ-learnable. The authors show that PQ-learning conjunctions would imply the ability to PAC-learn DNF formulas, a major unsolved problem in the field since 1984.

Key Results and Implications

The theoretical findings are summarized in several landmark results:

  • Theorem 1 & 2: Establishes the computational equivalence between PQ-learning and reliable learning.
  • Algorithmic Efficiency: The S&D algorithm is shown to run in expected polynomial time relative to the error rate ($\epsilon$) and confidence ($\delta$).
  • Class Separations: The paper provides concrete examples of classes (like Parities) that are PQ-learnable but not agnostically learnable, and classes (like Conjunctions) that are PAC-learnable but likely not PQ-learnable.

Conclusion

This research provides a rigorous foundation for understanding how machines can learn when faced with unfamiliar environments. By showing that PQ-learning is equivalent to reliable learning, the authors offer a more practical path toward out-of-distribution generalization than the computationally prohibitive agnostic learning framework. While currently a theoretical breakthrough, future work could adapt the Slice-and-Dice algorithm for use with modern cost-sensitive classifiers in deep learning pipelines, potentially improving the reliability of AI systems in real-world, shifting environments.

Summary updated

BibTeX
@inproceedings{kalai2021efficient,
  author = {Adam Kalai and Varun Kanade},
  title = {{Efficient Learning with Arbitrary Covariate Shift}},
  booktitle = {ALT},
  year = {2021},
  url = {https://openreview.net/forum?id=4SBea7eYLgn},
}
Figure