Scale-invariant Optimal Sampling for Rare-events Data and Sparse Models

Jing Wang, HaiYing Wang, Hao ZhangNeurIPS 2024

In the era of massive datasets, analyzing "rare-events" data—binary responses where non-events (zeros) outnumber events (ones) by thousands to one—presents significant computational hurdles. To make model training feasible, researchers frequently rely on subsampling, a technique that retains all the rare "ones" but only a fraction of the "zeros."

However, choosing which zeros to keep is a complex optimization problem. This paper introduces a novel, "scale-invariant" subsampling method designed specifically for rare-events data and sparse models, ensuring robust performance regardless of how feature data is scaled.

The Challenge of Scale Dependence

Existing "optimal" subsampling methods, such as A-optimality or L-optimality, focus on minimizing the variance of the model parameters. While theoretically sound, these methods harbor a critical flaw: they are highly sensitive to the scale of the data.

If a feature's unit of measurement changes (e.g., from meters to millimeters), these traditional methods can suddenly produce highly inefficient subsamples. This vulnerability is particularly damaging in sparse models, where many features are "inactive" (their true effect is zero). Inappropriate scaling of these inactive features can arbitrarily magnify their influence, drowning out the signal from truly important variables during the sampling process and leading to poor predictive performance.

Prediction error across different scaling factors for non-sparse and sparse parameters.

A Scale-Invariant Solution: P-Optimality

To overcome this, the authors propose a unified framework that shifts the focus from parameter variance to prediction accuracy. They introduce P-OS (Prediction-oriented Optimal Subsampling), a scale-invariant subsampling function aimed at minimizing the Mean Squared Prediction Error (MSPE).

The methodology relies on a practical two-step algorithm combined with penalty-based variable selection:

  1. Initial Screening (Pilot Sample): The algorithm takes a small pilot subsample to perform initial variable screening using the Adaptive Lasso. The authors mathematically establish that the Adaptive Lasso works reliably even with highly imbalanced rare-events data.
  2. Optimal Subsampling: Using the pilot results, the algorithm calculates the P-OS probabilities and draws a larger, highly informative subsample.
  3. MSCL Estimation: To maximize efficiency and correct for the bias introduced by non-uniform sampling, the final model utilizes a Maximum Sampled Conditional Likelihood (MSCL) estimator rather than standard inverse probability weighting.

Because prediction inherently depends on the physical or logical relationship between features and outcomes, optimizing for prediction error naturally insulates the model from arbitrary numerical scaling.

Key Results and Performance

The researchers validated their approach using both synthetic logistic regression models and real-world datasets (Covtype for forest cover prediction and a Font character recognition dataset).

  • Unmatched Robustness: In simulations where feature scales were artificially manipulated by factors ranging from 0.01 to 100, the P-OS method maintained a consistently low prediction error. In contrast, previous methods (A-OS and L-OS) saw their errors spike by orders of magnitude as scales shifted.
  • Superior Accuracy: Across various sampling rates, P-OS consistently achieved lower prediction errors and higher AUC (Area Under the Curve) scores compared to uniform sampling and other optimal variants.
  • Better Variable Selection: The method demonstrated a lower false-negative rate (missing active variables) than uniform sampling, particularly when the overall sampling rate was severely constrained.
Log Mean Squared Prediction Error (MSPE) vs. sampling rate across different simulation cases.

Remarkably, this robustness does not come at a steep computational cost. Calculating the optimal sampling probabilities takes only a fraction of a percent of the time required to run a full-data Adaptive Lasso, making it highly scalable for massive datasets.

Limitations and Future Directions

While highly effective, the proposed framework has boundaries. The theoretical guarantees rely on asymptotic properties, meaning they assume the dataset grows toward infinity; these guarantees might falter in extremely high-dimensional cases where the number of features exceeds the number of observations. Additionally, the method assumes the underlying model is correctly specified (e.g., linear relationships are truly linear). Finally, because the final model depends heavily on the initial pilot sample, future work could explore alternative screening methods, like Sure Independence Screening, to handle even larger feature sets more reliably.

Summary updated

BibTeX
@inproceedings{wang2024scale,
  author = {Jing Wang and HaiYing Wang and Hao Zhang},
  title = {{Scale-invariant Optimal Sampling for Rare-events Data and Sparse Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=6SAnp0vr9X},
}
Figure