Optimal Subsampling with Influence Functions
TL;DR
This paper introduces a general framework for optimal subsampling using influence functions, which measure how much an individual data point affects a model's output. By treating model estimation as a problem of calculating a mean over influence vectors, the authors derive sampling probabilities that are asymptotically optimal for a wide range of models (including GLMs and quantile regression). This approach consistently outperforms traditional methods like leverage scores.
What Problem Does This Paper Address?
As datasets grow to massive scales, fitting complex statistical models becomes computationally expensive. Subsampling—selecting a smaller, representative subset of the data to train on—is a common solution. However, most researchers either use uniform sampling (which is inefficient) or specialized non-uniform methods (like leverage scores) that are often restricted to linear regression and lack strong optimality guarantees.
The core challenge is determining which points are the most "important" to keep. If you sample based only on outliers in the input features (the "design"), you might miss critical information in the labels. Conversely, if you sample only based on where the model is currently wrong (the "residuals"), you might ignore points that anchor the model's structural integrity. This paper seeks a mathematically "optimal" way to balance these factors across many different types of models.
Methods
The authors leverage the statistical concept of Influence Functions. In essence, an influence function $\psi(x)$ represents the "infinitesimal" change in a model's parameters if you were to add a specific data point $x$ to the training set.
The Core Logic: 1. Asymptotic Linearity: The authors show that for a broad class of estimators (like Maximum Likelihood Estimators), the error in the estimate behaves like a simple average of influence functions. 2. Reduction to a Mean: This insight transforms the complex task of "optimal sampling for a model" into the well-understood task of "optimal sampling for a multivariate mean." 3. The Algorithm: * Pilot Estimate: Run the model on a tiny uniform subsample to get a rough "pilot" parameter $\hat{\theta}$. * Calculate Influence: For every point in the full dataset, calculate the norm of its influence function using the pilot estimate. * Sample: Draw the final subsample with probabilities proportional to these influence norms. * Weight: Fit the final model using importance weights (the inverse of the sampling probability) to ensure the result remains unbiased.
Practical Tweaks: * Regularization: To prevent points with near-zero influence from having massive weights (which causes high variance), they enforce a minimum sampling probability $\alpha$. * Approximations: Since calculating exact influence involves expensive matrix inversions, the authors provide fast approximations using diagonal matrices or low-rank SVDs.
Key Insights and Ideas
- The "Aha!" Moment: Influence functions naturally combine both the "design" (input features) and the "residual" (how much the point surprises the model). Traditional leverage scores only look at the design, while gradient-based methods focus on the residual. Influence-based sampling is the "Goldilocks" zone that effectively uses both.
- Task-Specific Sampling: The "optimal" sample depends on your end goal. The authors show that the best points for parameter estimation (finding the true $\beta$) are different from the best points for prediction (minimizing MSE). Their framework allows you to swap the influence function to target either specific goal.
- Tight Optimality: Unlike previous work that only provided loose "error bounds," this paper proves that their regularized sampling design achieves the lowest possible asymptotic variance among all such designs.
Key Results
The authors evaluated their method on three real-world datasets: CASP (protein structure), Online News Popularity, and EPA RSEI (environmental risk).
- Efficiency Gains: On the CASP dataset, influence-based sampling achieved the same accuracy as uniform sampling while using only 1/3 to 1/2 of the data.
- Superiority over Leverage: In linear regression, the method consistently beat leverage-score sampling. Interestingly, they found that "root leverage" ($\sqrt{H_{ii}}$) is actually better for prediction than standard leverage ($H_{ii}$), a nuance often missed in practice.
- Robustness: Even when using fast approximations for the influence function to save on compute, the method still significantly outperformed uniform and gradient-based sampling.
Limitations and Future Work
- Pilot Sensitivity: The method relies on a "pilot" estimate. While the authors prove that the pilot only needs to be "consistent" (not perfectly accurate) for the sampling to be asymptotically optimal, a very poor pilot in a finite-sample setting could still lead to sub-optimal results.
- Regularization Tuning: The paper uses a minimum sampling probability $\alpha$ to stabilize weights, but the "optimal" choice for $\alpha$ isn't theoretically defined and likely depends on the specific noise in the pilot estimate.
- Computational Overhead: While subsampling saves time on the final model fit, calculating the influence for every point in a massive dataset still requires a full pass over the data. Integrating this into a Stochastic Gradient Descent (SGD) pass is suggested as a promising future direction.
Summary updated