Abstract
The bootstrap provides a simple and powerful means of assessing the quality of estimators. However, in settings involving large datasets, the computation of bootstrap-based quantities can be prohibitively demanding. As an alternative, we present the Bag of Little Bootstraps (BLB), a new procedure which incorporates features of both the bootstrap and subsampling to obtain a robust, computationally efficient means of assessing estimator quality. BLB is well suited to modern parallel and distributed computing architectures and retains the generic applicability, statistical efficiency, and favorable theoretical properties of the bootstrap. We provide the results of an extensive empirical and theoretical investigation of BLB's behavior, including a study of its statistical correctness, its large-scale implementation and performance, selection of hyperparameters, and performance on real data.
Introduction
In modern data analysis, providing a point estimate is rarely sufficient. Quantifying the uncertainty of that estimate—through confidence intervals, bias, or risk—is essential for robust decision-making. The bootstrap has long been the gold standard for this task due to its simplicity and broad applicability. By repeatedly resampling $n$ items with replacement from a dataset of size $n$, it allows for the estimation of the sampling distribution of almost any statistic.
However, the standard bootstrap faces a "Big Data" wall. As $n$ grows into the millions or billions, the computational cost of recalculating an estimator hundreds of times on datasets of size $n$ becomes prohibitive. In distributed environments, the overhead of data movement and memory constraints further exacerbates the problem. While alternatives like subsampling or the "$m$ out of $n$ bootstrap" exist, they often require precise tuning of hyperparameters and knowledge of the estimator's convergence rate, making them less "automatic" than the original bootstrap.
The Bag of Little Bootstraps (BLB)
The Bag of Little Bootstraps (BLB) is designed to combine the statistical robustness of the bootstrap with the computational efficiency of subsampling. The core innovation lies in how it handles resampling.
The BLB procedure follows these steps:
- Subsampling: Draw $s$ small subsets of size $b$ from the original dataset, where $b \ll n$.
- Resampling via Weighting: For each subset, conceptually generate $r$ bootstrap resamples of size $n$. The key insight is that a resample of size $n$ drawn from a subset of size $b$ contains at most $b$ unique points. Instead of processing $n$ points, BLB represents the resample as the $b$ unique points paired with a vector of integer weights (counts) drawn from a multinomial distribution.
- Estimation: Compute the estimator on these weighted subsets. Since most modern algorithms (e.g., GLMs, SVMs) naturally support weighted data, the computational cost scales with $b$, not $n$.
- Aggregation: Average the results across the $r$ resamples within each subset, and then average across the $s$ subsets.
This approach decouples the statistical target (the distribution at size $n$) from the computational cost (processing size $b$), making it natively suited for parallel and distributed architectures.
Experimental Results
Statistical Accuracy and Convergence
The authors evaluated BLB against the standard bootstrap and the $m$ out of $n$ bootstrap (BOFN) using both synthetic and real-world datasets. On synthetic regression and classification tasks, BLB demonstrated rapid convergence to low relative error.
As shown in the figure above, BLB variants (with different subset sizes $b = n^\gamma$) converge to a stable, low relative error much faster than the standard bootstrap. Furthermore, BLB proves to be remarkably robust to the choice of the subset size $b$, unlike the $m$ out of $n$ bootstrap which is highly sensitive to its parameters.
Scalability on Massive Datasets
To test real-world performance, the authors implemented BLB on a 150 GB dataset using the Spark framework on Amazon EC2. In this large-scale setting, the standard bootstrap was nearly unusable due to disk I/O bottlenecks. BLB, by contrast, was able to produce accurate uncertainty estimates in less time than it took the standard bootstrap to complete a single resample. This efficiency stems from the ability to cache the small subsets in memory across worker nodes, minimizing data shuffling.
Conclusion
The Bag of Little Bootstraps offers a powerful solution to the scalability challenges of the standard bootstrap. By leveraging weighted representations of resamples, it achieves the same statistical guarantees as the bootstrap while being orders of magnitude faster on large datasets. While choosing the absolute optimal subset size $b$ remains an area for future research, the default of $b = n^{0.7}$ provides excellent performance across a wide range of applications. BLB represents a significant step forward in making robust statistical inference practical for the era of Big Data.
Summary updated