Ensembles of Random Partition-Based Models under Covariate Shift

Mary Versa Clemens-Sewall, Eliza O'ReillyarXiv 2026

TL;DR

This paper provides the first rigorous theoretical justification for why ensembles (like Random Forests) are more robust to covariate shift than single models. By introducing new partition-based discrepancy measures, the authors prove that ensembling reduces estimator variance in data-sparse regions, allowing these models to achieve minimax-optimal convergence rates even under severe distribution shifts.

What Problem Does This Paper Address?

Machine learning models often fail when the data they encounter in the real world (the "target" distribution) looks different from the data they were trained on (the "source" distribution). This is known as covariate shift: the relationship between features and labels remains the same, but the frequency of specific feature combinations changes.

Previous research established "transfer exponents" to measure how hard a specific covariate shift is for a learner. While we’ve known empirically that ensembles of models handle these shifts better than single models, we lacked a formal mathematical framework to explain why and to determine exactly how large an ensemble needs to be to overcome a specific level of shift severity. The authors tackle this gap by focusing on random partition-based models, which are the theoretical cousins of popular algorithms like Random Forests.

Methods

The authors focus on random partition-based kernel estimators. These models work by dividing the feature space into cells (partitions) and averaging the labels of training points within those cells to make predictions. Specifically, they study:

  • STIT (Stable Under Iteration) Tessellations: A class of random partitions that are mathematically elegant because they are stationary and scale-invariant.
  • Mondrian Forests: A specific, popular type of STIT ensemble where splits are axis-aligned.
  • New Discrepancy Measures: They introduce the integrated $P^M$-transfer discrepancy. Unlike previous measures that looked at balls of a fixed radius, this measure looks at the union of cells across an ensemble of $M$ partitions.
  • Bias-Variance Decomposition: The authors derive new risk bounds that show how ensembling directly shrinks the variance term that usually explodes under covariate shift.

Datasets

As a theoretical paper, it does not use standard empirical benchmarks like ImageNet or UCI datasets. Instead, it employs:

  • Synthetic Polynomial Density Shifts: A mathematically rigorous "toy" environment (Hypothesis 8) where the source distribution $\nu$ has a density that vanishes near zero (e.g., $x^\alpha$). This allows the authors to precisely control the "severity" of the shift ($\alpha$) and prove exactly when a single tree fails versus when an ensemble succeeds.

Key Insights and Ideas

  • The "Small-Cell" Problem: In single random trees (like Mondrian trees), the cells tend to be very small. Under covariate shift, a test point might fall into a cell that contains zero training points, causing the variance to skyrocket.
  • Ensembling as a "Widener": By taking the union of cells from $M$ different random partitions, the ensemble effectively creates a larger, more robust neighborhood around the test point. This increases the probability of capturing relevant training data even in regions where the source distribution is sparse.
  • The $M \ge \alpha + 2$ Rule: For a polynomial shift of severity $\alpha$, the authors show a striking result: the discrepancy for a single tree is infinite, but an ensemble of size $M \ge \alpha + 2$ restores the minimax-optimal convergence rate.
  • Dimension-Free Complexity: The new partition-based transfer exponent acts as a "complexity parameter" that replaces the standard dimension $d$ in convergence rates, effectively showing that a hard covariate shift makes a low-dimensional problem feel like a high-dimensional one.

Key Results

  • Minimax Optimality: The authors prove that with a large enough ensemble, Mondrian kernel estimators achieve the minimax-optimal risk convergence rate of $n^{-2\beta/(2\beta+\gamma)}$, where $\beta$ is the smoothness of the function and $\gamma$ is the transfer exponent.
  • Variance Control: Theorem 1 demonstrates that the variance of the ensemble is controlled by the new $P^M$-transfer discrepancy, which is proven to be monotonically decreasing as the ensemble size $M$ increases.
  • Theoretical Justification for Large Ensembles: The results provide a formal guideline: the more severe the covariate shift (the higher the $\alpha$ or $\gamma$), the larger the ensemble size $M$ required to maintain optimal performance.

Limitations and Future Work

  • Purely Random Partitions: The study focuses on "purely random" partitions (where splits are chosen independently of the training labels). Standard Random Forests use data-dependent splits (like Gini impurity), which are much harder to analyze theoretically.
  • Finite vs. Infinite Ensembles: The bounds grow logarithmically with ensemble size. While this is useful for practical, finite ensembles, the authors note that analyzing the "infinite ensemble limit" (which relates to the Laplace kernel) remains an open challenge for covariate shift.
  • Posterior Drift: The paper focuses strictly on covariate shift. The authors suggest that future work could extend these discrepancy measures to "posterior drift," where the relationship between features and labels also changes.

Summary updated

Abstract

Distribution shifts, including covariate shifts, are ubiquitous in real-world applications of machine learning. Empirical evidence suggests that, across a variety of models with and without downstream adaptation, ensembles tend to be more robust to covariate shift than single models. We extend the theory of covariate shift severity from single models to ensembles, providing theoretical justification for the empirical trends. We introduce new discrepancy measures of covariate shift severity to control the risk of partition-based kernel estimators. We then show that with sufficient ensemble size, these models can achieve minimax-optimal risk convergence rates under covariate shift. Our results suggest that modelers can expect to need larger ensemble sizes for more severe covariate shifts.
BibTeX
@misc{clemenssewall2026ensembles,
  author = {Mary Versa Clemens-Sewall and Eliza O'Reilly},
  title = {{Ensembles of Random Partition-Based Models under Covariate Shift}},
  year = {2026},
  eprint = {2611.05195},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.05195},
}
Figure