Efficiently Determine the Starting Sample Size for Progressive Sampling

Baohua Gu, Bing Liu, Feifang Hu, Huan Liu

In the era of big data, training machine learning models on every available record is often computationally prohibitive and can lead to overly complex models without significant accuracy gains. Progressive Sampling (PS) offers a solution by starting with a small random sample and incrementally increasing its size until model accuracy plateaus. However, the efficiency of PS depends heavily on the initial sample size ($n_0$). A starting point that is too small leads to redundant iterations and excessive I/O costs, while one that is too large negates the benefits of sampling. This paper by Gu et al. proposes a statistical method to identify an optimal starting point, termed the Statistical Optimal Sample Size (SOSS).

The Challenge of Finding the Optimal Sample Size

Progressive Sampling relies on the characteristic "learning curve" of a model, where accuracy initially rises sharply and then levels off as it approaches the Optimal Sample Size (OSS).

Conceptual learning curve showing the relationship between training set size and accuracy, highlighting the Optimal Sample Size (OSS).

The primary difficulty lies in the arbitrary selection of $n_0$. If $n_0$ is significantly smaller than the actual OSS, the system may undergo numerous geometric progression steps, each requiring a new model training cycle and potentially a full database scan. For massive datasets, these I/O costs and redundant training cycles become a major bottleneck.

Methodology: Sample Quality and SOSS

The authors introduce Sample Quality ($Q$) as a metric to estimate how well a sample represents the full dataset's distribution without needing to train a model.

  1. Information Divergence: Using Kullback’s divergence ($J$), they measure the distance between the probability distribution of a sample and the entire dataset.
  2. Quantifying Resemblance: Sample Quality is defined as $Q = \exp(-J)$, where $Q=1$ indicates a perfect representation. The authors prove that as $Q$ approaches 1, model accuracy asymptotically approaches its maximum.
  3. The SOSS Algorithm: To find the SOSS efficiently, the authors employ "Binomial Sampling." This allows them to calculate statistics for multiple sample sizes simultaneously during a single sequential scan of the data.
  4. Convergence Detection: By plotting a "Quality Curve" (Sample Size vs. Quality) and performing linear regression on its tail, they identify the point where the slope approaches zero—this is the SOSS.

Experimental Evaluation and Results

The researchers evaluated their approach using four large-scale datasets from the UCIKDD repository: Adult, Led, Census, and Covtype (the largest, with 400,000 instances). Experiments were conducted using the C5.0 decision tree algorithm.

Experimental results comparing performance and model complexity across full datasets (N), optimal sample sizes (oss), and statistical optimal sample sizes (soss).

The results demonstrate that SOSS provides a near-optimal starting point, significantly reducing training time while maintaining high accuracy and producing simpler models:

  • Efficiency Gains: On the covtype dataset, training on the full data took 1330 seconds. Standard PS took 766 seconds, while using SOSS as a starting point further reduced the time to 668 seconds.
  • Accuracy and Simplicity: Models trained at the SOSS level maintained nearly identical accuracy to those trained on the full dataset but were significantly smaller. For example, on covtype, the tree size dropped from 10,970 nodes to 2,417 nodes at the SOSS level, with only a minor dip in accuracy (73.0% vs 75.8%).
  • Proximity to OSS: For the led and census datasets, SOSS was nearly identical to the actual OSS. In other cases, it was close enough to converge in just one additional iteration.

Conclusion

The SOSS method offers a robust, algorithm-independent way to jumpstart Progressive Sampling. By leveraging a single data scan to estimate sample quality, it minimizes the I/O and computational overhead typically associated with finding the optimal training set size. While the current implementation assumes attribute independence, it provides a powerful foundation for scaling data mining tasks to massive datasets.

Summary updated

BibTeX
@inproceedings{gu2001efficiently,
  author = {Baohua Gu and Bing Liu and Feifang Hu and Huan Liu},
  title = {{Efficiently Determine the Starting Sample Size for Progressive Sampling}},
  booktitle = {DMKD},
  year = {2001},
}
Figure