Active Mini-Batch Sampling Using Repulsive Point Processes

Cheng Zhang, Cengiz Öztireli, Stephan Mandt, Giampiero Salvi

Introduction

Stochastic Gradient Descent (SGD) is the cornerstone of modern machine learning optimization. In each iteration, SGD estimates the model's gradient using a small, randomly sampled subset of the data known as a mini-batch. While computationally efficient, standard uniform sampling often leads to "redundant" mini-batches where data points are highly similar. This similarity results in correlated gradients, increasing the variance of the gradient estimate and necessitating smaller learning rates, which ultimately slows down convergence.

Previous research explored Determinantal Point Processes (DPPs) to enforce diversity within mini-batches. However, the $O(Nk^3)$ computational complexity of DPPs (where $N$ is the dataset size and $k$ is the batch size) makes them impractical for large-scale applications. This paper, presented at AAAI 2019, introduces a framework using Repulsive Point Processes to select diverse and informative mini-batches efficiently.

Theoretical Framework: Repulsion and Variance Reduction

The core contribution of this work is the mathematical proof that spatial repulsion in the feature space directly reduces gradient variance. By ensuring that if one point is selected, nearby (similar) points are less likely to be included in the same batch, the sampling process introduces a negative correlation term into the variance formula.

Comparison of point processes: (a) Non-Repulsive (standard random), (b) Stationary (uniform repulsion), and (c) Non-Stationary (biased repulsion).

As shown in the figure above, standard sampling (a) often results in clusters of points, whereas repulsive processes (b and c) ensure a more even or strategically biased distribution. Theorem 1 in the paper formally demonstrates that any repulsive point process provides a more stable gradient estimator than uniform sampling.

Poisson Disk Sampling for Mini-Batches

To overcome the computational hurdles of DPPs, the authors adapt Poisson Disk Sampling (PDS), a technique widely used in computer graphics for generating well-distributed point sets. PDS employs a "dart-throwing" algorithm to maintain a minimum distance between sampled points.

Visualization of the Poisson Disk Sampling mechanism, where red dots represent sampled points and circles indicate repulsion zones.

The complexity of PDS is $O(k^2)$, making it independent of the total dataset size $N$. This efficiency allows for "smart" mini-batch selection even on massive datasets where previous methods failed.

Active and Adaptive Sampling Strategies

Beyond simple diversity, the authors propose "active" variants that focus on informative data points. They utilize a mingling index to identify points near decision boundaries—regions where different classes overlap and the model is most likely to learn. Three variants were introduced:

  • Easy PDS: Applies repulsion only to "easy" points far from boundaries.
  • Dense PDS: Actively oversamples points from "hard" regions near decision boundaries.
  • Anneal PDS: A curriculum-based approach that starts with easy points and gradually shifts focus to harder points as training progresses.

Experimental Results

The proposed methods were evaluated across diverse domains, including image classification (MNIST, Oxford Flowers) and audio processing (Speech Command Recognition).

  • Computational Efficiency: PDS demonstrated a massive speedup over DPP. For a batch size of 150, PDS required only ~0.16 seconds, compared to ~189 seconds for DPP.
  • Model Accuracy: On the MNIST dataset, the Anneal PDS strategy achieved the lowest test error rate, outperforming both standard SGD and existing active bias baselines.
  • Convergence Speed: In speech recognition tasks, Vanilla PDS reached target validation accuracy in significantly fewer iterations than traditional random sampling.

Conclusion

By leveraging repulsive point processes, specifically Poisson Disk Sampling, this work provides a scalable and theoretically grounded method for improving SGD. The transition from random to repulsive sampling reduces gradient noise, enabling faster training and better final model performance without the prohibitive costs of earlier diversity-promoting techniques. Future research may explore applying these principles directly in the gradient space to further optimize variance reduction.

Summary updated

BibTeX
@inproceedings{zhang2019active,
  author = {Cheng Zhang and Cengiz Öztireli and Stephan Mandt and Giampiero Salvi},
  title = {{Active Mini-Batch Sampling Using Repulsive Point Processes}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33015741},
}
Figure