arXiv:2610.34550stat.MLOct 2026

Manuscript Offprint

arXiv:2610.34550

HIFI: A Highly Efficient Framework for Statistical Inference with Foundation Models

Po-Wei Chen, Shan Yu, Chunlin Li

ABSTRACT

Foundation models provide powerful representations for unstructured data, such as text and images, and parameter-efficient fine-tuning (PEFT) makes their adaptation to downstream tasks increasingly practical. For neural estimators that lack a tractable sampling distribution, resampling-based procedures offer a flexible route to statistical inference, but they often require hundreds of model fits, making them computationally prohibitive at foundation-model scale. We introduce HIFI, a two-stage fine-tuning framework for statistical inference on parameters such as conditional means. Stage 1 adapts a foundation model once on a larger sample, capturing the complex structure of the data and controlling estimation bias through a single fit. Stage 2 applies a resampling inference procedure to a smaller independent sample, concurrently fitting multiple lightweight PEFT estimators to the residual to quantify estimation variability without relearning the full task. HIFI accommodates a broad class of resampling procedures, including ensemble subsampling and the nonparametric bootstrap. Across vision and text experiments, HIFI scales to pretrained models ranging from tens of millions to more than ten billion parameters while providing accurate point estimates and well-calibrated confidence intervals across diverse architectures, and reduces training compute by up to 91.9% relative to direct resampling. An application to gene-expression inference illustrates the practical value of the framework for uncertainty-aware scientific inference.

1 INTRODUCTION

Pretrained foundation models have changed how predictive models are built, especially for text, images, and other unstructured data (Bommasani et al., 2021). Rather than estimating every model parameter from a task-specific sample, practitioners can adapt a pretrained backbone using a comparatively small number of trainable parameters (Houlsby et al., 2019; Li and Liang, 2021; Lester et al., 2021; Hu et al., 2022; Wang et al., 2025). Parameter-efficient fine-tuning (PEFT) therefore makes powerful representations available when full fine-tuning is prohibitively expensive. In many scientific applications, however, an accurate point estimate is not the final goal, because reliable scientific interpretation requires quantifying the uncertainty associated with that estimate. We therefore seek a confidence interval for the population conditional mean μ0(x)=E(Y∣X=x)\mu_0(x) = \mathbb{E}(Y \mid X = x) at a fixed input xx.

Several approaches have been developed for inference 1^{1} on conditional means estimated by neural networks. Existing methods include approaches that exploit specialized analytical structure (Liu et al., 2022; Kallus and McInerney, 2022; Sluijterman et al., 2025), sample-splitting procedures such as HulC (Kuchibhotla et al., 2024), and resampling methods (Fei and Li, 2024; Meng and Li, 2025; Wu and Politis, 2025; Arie and Gorfine, 2024). We focus on the resampling-based class because it requires relatively little model-specific analytical structure and therefore provides a flexible route to inference for complex neural estimators. These procedures construct uncertainty estimates from multiple fitted estimators, but doing so introduces two central challenges. First, fitting multiple estimators does not by itself eliminate systematic estimation error, whose control is typically required for valid inference. Second, obtaining many sufficiently accurate fits can be computationally expensive. This cost becomes particularly severe for large foundation models, since each additional fit still requires substantial forward–backward computation even when only a small subset of parameters is updated.

∗^{*}Corresponding author: gjj2pr@virginia.edu.

1^{1}Throughout this paper, “inference” refers to statistical inference unless otherwise specified.

Our contributions. We introduce HIFI, a highly efficient two-stage PEFT framework for statistical inference with foundation models, illustrated in Figure 1. Stage 1 uses a larger sample and a higher-capacity adaptation to capture the complex, task-relevant structure of the data, controlling estimation bias through a single fit. Stage 2 then uses a smaller independent sample to resample and ensemble lightweight PEFT estimators of the remaining residual, quantifying estimation variability without relearning the full task. Because each Stage 2 fit involves a small adaptation module on few samples, repeated fitting is less expensive, and a batched implementation trains many such estimators concurrently over the Stage 1 adapted backbone. Together, these strategies make resampling-based inference practical at foundation-model scale.

The framework accommodates multiple inference methods. We consider the ensemble subsampling method (ESM) (Meng and Li, 2025) and nonparametric bootstrap. Across vision and text tasks and diverse pretrained architectures, the framework provides well-calibrated confidence intervals while reducing training computation by up to 92% at the same total sample size. We further demonstrate its use in a biological application to gene-expression prediction from H&E images.

References (85)