Sampling With Replacement vs Poisson Sampling: A Comparative Study in Optimal Subsampling

Jing Wang, Jiahui Zou, HaiYing Wang

Introduction

In the era of massive data, the computational cost of running iterative optimization algorithms—such as finding the Maximum Likelihood Estimator (MLE) or solving Ordinary Least Squares (OLS)—on a full dataset can be prohibitive. To mitigate this, researchers use subsampling, a technique where a smaller, representative fraction of the data is used to approximate the full-data estimator.

To maximize the accuracy of these approximations, nonuniform subsampling probabilities are often employed, assigning higher weights to "informative" data points. Traditionally, this is implemented via two primary methods: Sampling with Replacement (SWR), which uses a multinomial distribution, and Poisson Sampling (PS), where each data point is independently selected based on a biased coin flip. While both are common, this study provides the first rigorous statistical comparison of their efficiency and optimal structures.

Methodology

The authors evaluate the performance of SWR and PS through the lens of asymptotic efficiency and practical algorithm design. The core of their theoretical approach involves:

  1. Asymptotic Distributions: Deriving the conditional and unconditional asymptotic distributions for estimators produced by both methods to compare their variances.
  2. L-Optimality Criterion: To determine the "best" sampling probabilities, the authors minimize the trace of the asymptotic variance matrix. This mathematical framework allows for the identification of probability weights that specifically minimize estimation error.
  3. Defensive Importance Sampling: To ensure numerical stability, the authors incorporate a "defensive" strategy, mixing optimal probabilities with a small uniform baseline to prevent variance inflation caused by probabilities near zero.

Optimal Probability Structures

A key contribution of this research is the discovery of structural differences in how these two methods handle informative data:

  • Sampling with Replacement (SWR): The optimal probabilities are strictly proportional to the gradient norm of the data points. In this regime, even highly informative points are selected based on chance.
  • Poisson Sampling (PS): The optimal probabilities are truncated at an upper bound of 1. This means that once a data point's informativeness exceeds a certain threshold, Poisson sampling includes it deterministically.

This truncation mechanism is a primary driver of efficiency. While SWR might miss a critical data point due to the randomness of the draw, PS ensures that the most influential observations are always present in the subsample.

Practical Two-Step Algorithms

Because optimal probabilities depend on the full-data estimator (the very value we are trying to approximate), the authors propose a practical two-step algorithm:

  1. Pilot Phase: Draw a small, uniform pilot subsample to obtain a rough estimate of the model parameters.
  2. Estimation Phase: Use the pilot estimate to calculate approximate optimal probabilities for the remaining data, then draw the final subsample and compute the final estimator.

Empirical Results and Key Insights

The study tested these methods on synthetic datasets (including heavy-tailed distributions like LogNormal and multivariate $t$) and real-world datasets such as the SUSY (5 million observations) and Covtype datasets.

Efficiency at Scale

The research proves that the asymptotic variance of the Poisson subsampling estimator is strictly smaller than that of SWR. The magnitude of this advantage depends on the subsampling ratio ($s_n/n$):

  • Small Ratios: When the subsample is a tiny fraction of the total data (e.g., 2%), SWR and PS perform nearly identically.
  • Large Ratios: As the ratio increases (e.g., 10% to 50%), PS significantly outperforms SWR. In extreme cases with heavy-tailed data, even uniform Poisson sampling can outperform optimal sampling with replacement.

Computational Advantages

Beyond statistical efficiency, Poisson sampling offers practical benefits for modern computing environments. SWR requires holding a full probability array in memory to perform multinomial draws. In contrast, PS evaluates each data point independently, making it naturally suited for streaming data and distributed computing architectures.

Conclusion

This comparative study demonstrates that while Sampling with Replacement is a valid approach for very small subsamples, Poisson Sampling is the superior choice as the subsample size grows. Its ability to deterministically include highly informative points through probability truncation leads to strictly higher estimation efficiency. For practitioners dealing with massive datasets, the proposed two-step Poisson sampling algorithm provides a more accurate and memory-friendly alternative to traditional multinomial subsampling.

Summary updated

BibTeX
@article{wang2022sampling,
  author = {Jing Wang and Jiahui Zou and HaiYing Wang},
  title = {{Sampling With Replacement vs Poisson Sampling: A Comparative Study in Optimal Subsampling}},
  journal = {IEEE Trans. Information Theory},
  year = {2022},
  doi = {10.1109/tit.2022.3176955},
}
Figure