Task-Agnostic Machine Learning-Assisted Inference

Jiacheng Miao, Qiongshi Lu · DOI

Abstract

In many scientific domains, the high cost of obtaining "gold-standard" labels limits the power of statistical analysis. While researchers often use machine learning (ML) models to predict missing outcomes, treating these predictions as ground truth leads to biased results and false discoveries. Existing correction methods, such as Prediction-Powered Inference (PPI), require complex, task-specific mathematical derivations that hinder broad adoption. We present PSPS (PoSt-Prediction Summary-statistics-based inference), a task-agnostic framework that automates ML-assisted inference. By utilizing summary statistics from standard statistical software and a simple debiasing formula, PSPS enables researchers to safely leverage ML predictions across diverse statistical routines without custom optimization. Our experiments demonstrate that PSPS maintains valid coverage and significantly boosts discovery power, identifying 108 genetic variants in a UK Biobank study where classical methods found none.

Introduction

Scientific discovery often relies on statistical inference—estimating parameters and testing hypotheses—using high-quality labeled data. However, in fields like genomics or medicine, obtaining these labels (e.g., specialized lab tests or expert diagnoses) is frequently the primary bottleneck. Conversely, unlabeled data is often abundant. A common but dangerous practice is "imputation-based inference," where an ML model is trained on a small labeled set to predict outcomes for a large unlabeled set, and these predictions are subsequently treated as ground truth.

This approach is statistically flawed because it ignores the ML model's inherent prediction errors, leading to narrow confidence intervals and inflated Type-I error rates. While recent frameworks like PPI and PPI++ provide a mathematical bridge to debias these predictions, they require researchers to derive specific loss functions and gradients for every new statistical test. This "mathematical bottleneck" prevents the use of ML-assisted inference for complex or niche statistical tasks where such derivations are non-trivial.

The PSPS Framework

We introduce PSPS (PoSt-Prediction Summary-statistics-based inference), a framework designed to be "task-agnostic." Instead of requiring researchers to rewrite the underlying calculus of a statistical test, PSPS works directly with the outputs—summary statistics—of existing, off-the-shelf statistical software.

The Three-Step Protocol

PSPS operates through a streamlined three-step process that replaces manual derivation with computational resampling:

  1. Predict: A pre-trained ML model generates predicted outcomes for both the small labeled dataset and the large unlabeled dataset.
  2. Analyze: The researcher runs their existing statistical tool (e.g., standard R or Python functions) on three distinct data configurations to obtain point estimators and variances:
  3. The labeled data using true outcomes.
  4. The labeled data using predicted outcomes.
  5. The unlabeled data using predicted outcomes.
  6. Note: Standard bootstrapping is performed on the labeled data to estimate the covariance between the true and predicted estimators.
  7. Debias: These standard outputs are combined using a universal "one-step debiasing" formula. This formula uses a matrix-based weighting approach to share information across parameter coordinates, ensuring higher statistical efficiency than previous scalar-based methods.

By leveraging the asymptotic normality of most common estimators, PSPS allows researchers to "upgrade" any standard analysis to an ML-assisted version without modifying the core software or deriving new math.

Experimental Validation

Simulation Studies

To test the versatility of PSPS, we applied it to a wide array of statistical tasks, including mean estimation, linear and logistic regression, quantile regression, instrumental variable (IV) regression, and the Wilcoxon rank-sum test. In every scenario, PSPS maintained correct confidence interval coverage. In contrast, naive imputation methods consistently failed, showing high rates of false discoveries. Notably, PSPS successfully performed ML-assisted inference on tasks like False Discovery Rate (FDR) control, which were previously unsupported by existing frameworks.

Real-World Application: UK Biobank

We applied PSPS to a Genome-Wide Association Study (GWAS) to identify genetic variants associated with the variability of bone mineral density (vQTLs for DXA-BMD). The study utilized 36,971 labeled samples and 319,548 unlabeled samples across 9.4 million genetic variants.

  • Classical Method: Using only the 36,971 labeled samples, the analysis failed to find any significant genetic variants.
  • PSPS Method: By leveraging the 319,548 ML-predicted samples and correcting for bias, PSPS identified 108 significant variants (FDR < 0.05) across five independent loci.

This result demonstrates that PSPS can unlock the latent power in massive unlabeled datasets while maintaining the rigorous standards required for scientific publication.

Discussion and Limitations

PSPS represents a shift from "calculus to computation." Its primary advantage is its compatibility with legacy software and its ability to handle complex nuisances (like population structure in genomics) that are already managed by existing tools. Furthermore, because PSPS only requires summary statistics, it is naturally suited for federated learning environments where sharing raw data is prohibited due to privacy concerns.

The main trade-off for this flexibility is computational overhead. Because PSPS relies on bootstrapping to estimate covariance, it is slower than closed-form algebraic solutions. In linear regression tests, PSPS took approximately 1.62 seconds compared to 0.024 seconds for PPI. While this difference is negligible for most individual studies, it may become relevant for massive-scale simulations. Future work will focus on optimizing resampling algorithms to bridge this efficiency gap.

Conclusion

PSPS provides a safe, easy-to-use pathway for researchers to integrate machine learning into their statistical workflows. By removing the need for custom mathematical derivations, it democratizes ML-assisted inference, allowing for more powerful scientific discoveries across a vast range of disciplines.

Summary updated

BibTeX
@inproceedings{miao2024task,
  author = {Jiacheng Miao and Qiongshi Lu},
  title = {{Task-Agnostic Machine Learning-Assisted Inference}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=KQp7dk5YYH},
}
Figure