Batch Predictive Inference

Yonghoon Lee, Edgar Dobriban, Eric Tchetgen Tchetgen

TL;DR

While traditional predictive inference focuses on individual data points, this paper introduces Batch Predictive Inference (Batch PI), a framework for constructing distribution-free prediction sets for functions of multiple test points (like the mean or median). By leveraging exchangeability and a novel dynamic programming approach, the authors provide rigorous coverage guarantees even when calibration data is limited.

What Problem Does This Paper Address?

In modern statistics, we often use "conformal prediction" to create a range that is 95% likely to contain a single future outcome. However, real-world decisions often depend on a batch of outcomes. For example:

  • Medicine: What is the average treatment effect for the next 50 patients?
  • Finance: What is the median return of a basket of 10 stocks?
  • Quality Control: How many items in the next shipment will be defective?

Existing methods struggle here. If you try to apply individual conformal bounds to a batch, the intervals often become "trivial" (e.g., an interval so wide it's useless) or fail to provide joint guarantees. Furthermore, joint inference is often computationally "NP-hard"—meaning it takes an impossibly long time to calculate as the batch size grows.

Methods

The authors introduce Batch Predictive Inference (Batch PI). The core idea is to move from predicting values to predicting the ranks of test scores relative to calibration scores.

  1. Rank-Ordering Functions: The method uses a function ($\tilde{h}$) to prioritize which combinations of ranks are most likely. This allows the user to "aim" the inference at the specific batch statistic of interest (like the mean).
  2. Distribution-Free Guarantee: Under the assumption of "exchangeability" (the data points are essentially shuffled versions of the same process), the method guarantees that the true batch function will fall within the predicted set at least $1-\alpha$ percent of the time.
  3. Dynamic Programming (DP): To solve the NP-hard problem of counting rank combinations, the authors developed a DP algorithm for "compositional" functions. This makes calculating bounds for the batch mean computationally efficient, turning a combinatorial explosion into a manageable polynomial-time task.
  4. Covariate Shift Extension: They also provide a version of the algorithm that uses rejection sampling to handle cases where the test data comes from a different distribution than the training data (covariate shift).

Datasets

The paper evaluates Batch PI using:

  • Simulated Data: Synthetic regression and classification datasets used to verify that the method hits its coverage targets and to compare interval widths against baseline methods.
  • Drug-Target Interaction (DTI) Dataset: Using the DeepPurpose library, the authors applied Batch PI to a dataset of 16,486 observations. The goal was to select high-scoring drug-target pairs while strictly controlling the number of "false claims" (errors).

Key Insights and Ideas

  • Small Sample Efficiency: One of the most striking insights is that Batch PI remains informative even when the calibration set is small relative to the test set. Baseline methods (like partitioning data) often fail completely in this "small $n$, large $m$" regime.
  • Monotonicity is Key: The framework works for any batch function that is "monotone"—meaning if all individual scores in a batch increase, the batch function's value doesn't decrease. This covers the mean, median, quantiles, and truncated means.
  • Optimality: For the specific case of predicting a single quantile of a test batch, the authors prove that Batch PI produces the shortest possible intervals among a broad class of valid procedures.

Key Results

  • Tight Coverage: In simulations, Batch PI hit the target coverage (e.g., 90%) almost exactly, whereas baseline methods like the Bonferroni correction were overly conservative and produced much wider, less useful intervals.
  • Power in Selection: In the drug-discovery task, Batch PI demonstrated significantly higher "power" (the ability to correctly identify high-scoring pairs) than existing conformal p-value methods while still maintaining the same error control.
  • Computational Feasibility: The DP approach allowed the researchers to compute bounds for means of batches in $O(m^2kn^3)$ time, making it practical for real-world use cases where $n$ and $m$ are in the hundreds.

Limitations and Future Work

  • Computational Complexity: While DP solves the problem for compositional functions, Batch PI remains NP-hard for general, complex batch functions. Finding efficient approximations for these cases is an open challenge.
  • Over-coverage: While the method is "distribution-free," its performance still depends on the underlying data. In some scenarios, the intervals can be slightly conservative (providing more coverage than requested) depending on the "score" function used.
  • Beyond Exchangeability: The authors suggest future work could explore more complex data structures, such as hierarchical data or time-series, where simple exchangeability doesn't hold.

Summary updated

BibTeX
@misc{lee2024batch,
  author = {Yonghoon Lee and Edgar Dobriban and Eric Tchetgen Tchetgen},
  title = {{Batch Predictive Inference}},
  year = {2024},
  eprint = {2409.13990},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.13990},
}

Loading related content...

Figure