Towards a theory of out-of-distribution learning

Ali Geisa, Ronak D. Mehta, Hayden S. Helm, Jayanta Dey, Eric Eaton, Carey E. Priebe, Joshua T. Vogelstein

Introduction

Classical machine learning theory relies heavily on the "in-distribution" (ID) assumption: the premise that training and test data are drawn from the same underlying distribution. However, real-world applications frequently encounter distribution shifts, leading to model failure. This paper proposes a formal theoretical framework for Out-of-Distribution (OOD) learning, introducing a universal metric called Learning Efficiency (LE) to quantify how models leverage data across diverse paradigms like transfer, multitask, and meta-learning.

The Problem: The Fragility of the ID Assumption

Most foundational ML frameworks, such as Probably Approximately Correct (PAC) learning, assume identical distributions for training and evaluation. In practice, this assumption is rarely met—for instance, a medical diagnostic tool trained on one demographic may fail when deployed on another. While specialized fields like domain adaptation and meta-learning address specific facets of this problem, the theoretical landscape has remained fragmented. There is a lack of a unified mathematical language to compare these scenarios or measure the benefit of "source" data on a "target" task.

A Unified Framework for OOD Learning

The authors address this by decoupling the training distribution from the evaluation distribution. This "small but profound" shift allows for a rigorous definition of OOD learning tasks.

Conceptual framework comparing In-Distribution and Out-of-Distribution learning tasks and the resulting hierarchy of learners.

Learning Efficiency (LE)

The centerpiece of this framework is Learning Efficiency (LE), which quantifies the value of additional data. It is defined as the ratio of the error achieved using only target data to the error achieved using both target and source (OOD) data.

  • Positive Transfer: Indicated by $\log(LE) > 0$, where OOD data improves performance.
  • Interference/Forgetting: Indicated by $\log(LE) < 0$, where OOD data degrades performance.

A Taxonomy of Learning Paradigms

The paper provides a rigorous hierarchy that classifies various learning paradigms based on specific constraints, such as the number of datasets, the presence of unobserved tasks, and computational limits.

A taxonomy of learning scenarios categorized by data types, task counts, and computational constraints.

By identifying nine distinct components of a learning task (e.g., query space, action space, risk function), the authors demonstrate that changing any of these leads to over 512 different types of continual learning problems. This explains the current fragmentation in literature, as researchers often solve distinct versions of the same high-level problem.

Key Theoretical Results

The authors extend classical learnability definitions (Weak, Strong, and Non-uniform) to the OOD setting, proving several key relationships:

  • Strong implies Weak: A model that can achieve near-optimal performance (Strongly OOD Learnable) is necessarily better than a baseline (Weakly OOD Learnable).
  • Positive Transfer vs. Learnability: Positive transfer is a weaker condition than formal learnability; a model might benefit slightly from OOD data without meeting the strict probability thresholds required for learnability.
  • Meta-Learning Limits: The "Weak OOD Meta-Learner Theorem" proves that there are scenarios where a learner can perform well on average across tasks but fail to converge to the optimal solution for any specific task.

Conclusion and Future Directions

This theoretical work provides the "rules of the game" for evaluating OOD models. A significant motivation is aligning AI with biological systems, which excel at OOD tasks. However, the framework currently relies on discrete "tasks," whereas biological learning is often a continuous stream. Future research will focus on integrating computational complexity more deeply into learnability definitions and determining the fundamental bounds of what can be transferred between differing distributions.

Summary updated

BibTeX
@misc{geisa2021towards,
  author = {Ali Geisa and Ronak D. Mehta and Hayden S. Helm and Jayanta Dey and Eric Eaton and Carey E. Priebe and Joshua T. Vogelstein},
  title = {{Towards a theory of out-of-distribution learning}},
  year = {2021},
  eprint = {2109.14501},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.14501},
}
Figure