Predictive Inference in Multi-environment Scenarios

John C. Duchi, Suyash Gupta, Kuanhao Jiang, Pragya SurStatistical 2024

Abstract

Standard conformal prediction relies on the assumption of exchangeability, which often fails in real-world hierarchical data structures where observations originate from distinct "environments." We present new distribution-free methods—Multi-environment Jackknife-minmax and Split Conformal—designed to provide rigorous $(\alpha, \delta)$-coverage guarantees. These methods ensure that for a new environment, prediction sets cover at least a $1-\alpha$ fraction of future observations with probability at least $1-\delta$. Furthermore, we introduce a resizing technique that utilizes minimal labeled data from a test environment to significantly improve prediction set efficiency.

Introduction

In many practical machine learning applications, data is naturally grouped into environments, such as different sensors, geographic regions, or clinical sites. While traditional conformal prediction assumes all data points are exchangeable, hierarchical settings only guarantee exchangeability at the environment level. This discrepancy leads to a failure of marginal coverage guarantees when deploying models to a previously unseen environment.

This work addresses the challenge of $(\alpha, \delta)$-coverage. Unlike marginal coverage, which only guarantees average performance across all possible environments, $(\alpha, \delta)$-coverage provides a high-probability guarantee ($1-\delta$) that a specific new environment will achieve the desired $1-\alpha$ coverage level.

Methodology

We extend two foundational predictive inference frameworks to the multi-environment setting:

  1. Multi-environment Jackknife-minmax: A "leave-one-environment-out" approach that calculates residual quantiles across training environments to establish a robust global threshold.
  2. Multi-environment Split Conformal: A computationally efficient alternative that uses a dedicated calibration set of environments.

The Resizing Technique

A significant challenge in multi-environment inference is that prediction intervals must often be conservatively large to account for the most volatile training environments. We propose a resizing method that leverages a small number of labeled samples (e.g., 20-30) from the target test environment. By calculating a local resizing factor, we can scale global residuals to better match the specific characteristics of the new environment, leading to tighter and more informative prediction sets without compromising the $(\alpha, \delta)$ guarantee.

Experimental Results

The proposed methods were evaluated on two real-world datasets: neurochemical sensing (dopamine prediction across 15 electrodes) and species classification (camera trap data across 219 environments).

Validity and Robustness

A key theoretical finding of this work is the impossibility of guaranteeing valid conditional coverage for every environment without producing infinitely large sets. However, our $(\alpha, \delta)$ approach provides a practical alternative. As shown in Figure 1, the empirical $1-\delta$ coverage remains at or above the target input level, demonstrating that the methods reliably protect against "unlucky" environment draws for the vast majority of cases.

Empirical $(\alpha, \delta)$-coverage and set length as a function of the input $1-\delta$ parameter. The top-left plot confirms that both methods maintain valid $\delta$-coverage by staying above the $y=x$ diagonal.

Figure 2 further illustrates the relationship between the target miscoverage rate $\alpha$ and the resulting empirical performance. The methods scale predictably, maintaining high empirical coverage even as the target confidence level increases.

Performance metrics as a function of the input $1-\alpha$ parameter. These plots demonstrate how empirical coverage and set length scale with the target confidence level across different environments.

Efficiency and Trade-offs

The resizing breakthrough proved particularly effective in the dopamine sensing task. By adapting to the local noise levels of a specific electrode, the resized intervals were significantly smaller than those produced by naive hierarchical methods. Additionally, we observe a trade-off between the Jackknife and Split Conformal methods: while the Jackknife approach can be more efficient with very few environments, Split Conformal scales better and often yields superior performance in large-scale environment settings.

Conclusion

This work provides a robust framework for predictive inference in hierarchical settings. By shifting the focus to $(\alpha, \delta)$-coverage and introducing environment-specific resizing, we bridge the gap between theoretical safety and practical utility in multi-environment scenarios. Future work will explore extending these guarantees to more complex risk control tasks and non-exchangeable environment sequences.

Summary updated

BibTeX
@misc{duchi2024predictive,
  author = {John C. Duchi and Suyash Gupta and Kuanhao Jiang and Pragya Sur},
  title = {{Predictive Inference in Multi-environment Scenarios}},
  year = {2024},
  eprint = {2403.16336},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.16336},
}
Figure