A Scalable Bootstrap for Massive Data

Ariel Kleiner, Ameet Talwalkar, Purnamrita Sarkar, Michael I. Jordan · DOI

Abstract

The bootstrap provides a simple and powerful means of assessing the quality of estimators. However, in settings involving large datasets—which are increasingly prevalent—the computation of bootstrap-based quantities can be prohibitively demanding computationally. While variants such as subsampling and the $m$ out of $n$ bootstrap can be used in principle to reduce the cost of bootstrap computations, we find that these methods are generally not robust to specification of hyperparameters (such as the number of subsampled data points), and they often require use of more prior information (such as rates of convergence of estimators) than the bootstrap. As an alternative, we introduce the Bag of Little Bootstraps (BLB), a new procedure which incorporates features of both the bootstrap and subsampling to yield a robust, computationally efficient means of assessing the quality of estimators. BLB is well suited to modern parallel and distributed computing architectures and furthermore retains the generic applicability and statistical efficiency of the bootstrap. We demonstrate BLB's favorable statistical performance via a theoretical analysis elucidating the procedure's properties, as well as a simulation study comparing BLB to the bootstrap, the $m$ out of $n$ bootstrap, and subsampling. In addition, we present results from a large-scale distributed implementation of BLB demonstrating its computational superiority on massive data, a method for adaptively selecting BLB's hyperparameters, an empirical study applying BLB to several real datasets, and an extension of BLB to time series data.

Introduction

In modern statistical practice, the bootstrap is the gold standard for assessing the quality of an estimator. By repeatedly resampling from the observed data, it allows researchers to calculate confidence intervals and other measures of uncertainty without making restrictive parametric assumptions. However, the traditional bootstrap faces a significant bottleneck in the era of "Big Data." Because it requires creating multiple resamples, each the same size ($n$) as the original dataset, the computational cost scales linearly with both the number of iterations and the size of the data. For a terabyte-scale dataset, every bootstrap iteration requires processing another terabyte, making the process prohibitively expensive.

Existing alternatives, such as the "$m$ out of $n$" bootstrap or subsampling, attempt to mitigate this by using smaller samples. However, these methods are notoriously sensitive to hyperparameters and often require the researcher to know the "rate of convergence" of their estimator beforehand to analytically rescale the results. This lack of automation makes them difficult to apply in general-purpose data pipelines. The Bag of Little Bootstraps (BLB) was developed to bridge this gap, offering a method that is as "automatic" as the bootstrap but as computationally light as subsampling.

The Bag of Little Bootstraps (BLB) Framework

BLB introduces a hierarchical approach to resampling that combines the statistical robustness of the bootstrap with the computational efficiency of subsampling. The procedure follows four primary steps:

  1. Subsampling: The algorithm takes several small subsets of the data of size $b$, where $b \ll n$.
  2. The "Little" Bootstrap: For each subset, the algorithm performs a bootstrap. Crucially, instead of resampling to size $b$, it simulates a resample of the original full size $n$ using only the $b$ points available in that subset.
  3. The Weighting Trick: To avoid the computational burden of actually generating $n$ data points, BLB utilizes frequency weights. By assigning weights to each of the $b$ points using a multinomial distribution, the algorithm can simulate a size-$n$ resample while only ever processing $b$ distinct points. This is compatible with any estimator that can handle weighted data (e.g., most M-estimators).
  4. Aggregation: Finally, the results (such as the variance of the estimator) are averaged across all subsets to produce the final estimate.

By simulating a size-$n$ resample within a size-$b$ subset, BLB naturally accounts for the scale of the original data. This eliminates the need for the complex analytical corrections required by previous subsampling methods.

Computational Advantages and Scalability

BLB is designed for modern parallel and distributed computing environments. Because each subset is processed independently, the algorithm is "embarrassingly parallel." A small subset can be sent to a single node in a cluster, and that node can perform hundreds of "little bootstraps" entirely in its local memory without further communication or disk I/O.

Furthermore, BLB is remarkably robust to the choice of subset size $b$. While traditional subsampling is highly sensitive to this parameter, the authors found that a heuristic of $b = n^{0.7}$ worked consistently across a wide range of experiments. To further optimize performance, the paper introduces a "Convergence Assessment" algorithm (Algorithm 2), which allows the system to adaptively stop processing more resamples or subsets once the estimate stabilizes, preventing unnecessary computation.

Empirical Performance

The authors validated BLB using synthetic benchmarks, seven diverse real-world datasets from the UCI Machine Learning Repository (including millionsong and connect4), and a massive 150 GB simulation. The large-scale test involved 6 million points and 3,000 dimensions processed on an Amazon EC2 cluster using the Spark framework.

Key results include:

  • Speed: In the 150 GB test, BLB produced high-accuracy confidence intervals in less time than it took the traditional bootstrap to complete a single iteration.
  • Accuracy: Theoretically and empirically, BLB matches the "higher-order correctness" of the bootstrap. It converged to low relative error significantly faster than the bootstrap and showed much greater stability than subsampling.
  • Memory Efficiency: BLB enables uncertainty quantification on datasets that are far too large to fit in a single machine's RAM by breaking the problem into memory-sized chunks.

Conclusion and Future Work

The Bag of Little Bootstraps provides a robust, scalable framework for statistical inference on massive datasets. While it requires that the estimator in question can accept frequency weights, this is a common feature for most statistical models. BLB does not solve cases where the standard bootstrap itself fails (such as with non-smooth estimators), but for the vast majority of applications, it offers a path forward for big data analytics. Future research may focus on more formal, data-driven methods for selecting the optimal subset size $b$ and extending the framework to even more complex, non-standard algorithms.

Summary updated

BibTeX
@article{kleiner2014scalable,
  author = {Ariel Kleiner and Ameet Talwalkar and Purnamrita Sarkar and Michael I. Jordan},
  title = {{A Scalable Bootstrap for Massive Data}},
  journal = {Journal of the Royal Statistical Society Series B (Statistical Methodology)},
  year = {2014},
  doi = {10.1111/rssb.12050},
}
Figure