Determinantal point processes based on orthogonal polynomials for sampling minibatches in SGD

Rémi Bardenet, Subhroshekhar Ghosh, Meixia Lin

Stochastic Gradient Descent (SGD) is the workhorse of modern machine learning, relying on small, randomly sampled "minibatches" to estimate the true gradient of a massive dataset. Traditionally, these minibatches are sampled uniformly at random. However, uniform sampling is inherently blind to the underlying data distribution; it can easily select redundant, nearly identical data points, leading to high variance in the gradient estimate and slower training.

While "repulsive" sampling techniques like Determinantal Point Processes (DPPs) have been proposed to enforce diversity and reduce this variance, a rigorous theoretical understanding of their benefits in general optimization tasks has been lacking. This paper bridges that gap, introducing a novel DPP paradigm based on orthogonal polynomials that provably accelerates variance reduction and improves convergence.

Tailoring DPPs with Orthogonal Polynomial Ensembles

To construct minibatches that genuinely reflect the dataset's diversity, the authors develop a method that tailors the DPP kernel to the specific distribution of the data. They achieve this by bridging discrete data and continuous mathematical theory using Multivariate Orthogonal Polynomial Ensembles (OPEs).

The construction follows a systematic pipeline:

  1. Density Estimation: A Kernel Density Estimator (KDE) is used to approximate the underlying continuous distribution of the dataset.
  2. Reweighting Polynomials: Standard orthogonal polynomials—mathematical functions that are independent in a specific, rigorous sense—are reweighted using this KDE.
  3. Discrete Adaptation: To create a practical gradient estimator (denoted as $\Xi_{A,DPP}$), the continuous OPE kernel is restricted to the actual discrete data points. Its eigenvalues are then "saturated" to ensure it forms a valid DPP.

While DPPs are notoriously computationally heavy, the authors note that the required eigen-decomposition is a one-time preprocessing step. Furthermore, the estimators are compatible with recent algorithmic advances that sample the "linear statistics" (the gradient itself) directly, bypassing the need to materialize the full minibatch and significantly reducing computational overhead.

Theoretical Insights: Provably Faster Variance Decay

The standout contribution of this work is the rigorous proof of accelerated variance decay. For a batch size $p$ and data dimension $d$, the variance of the proposed DPP estimator decays at a rate of $O(p^{-(1+1/d)})$. In contrast, standard uniform sampling yields a slower decay rate of $O(p^{-1})$. Because $1/d$ is strictly positive, the DPP approach guarantees a faster reduction in variance.

This mathematical breakthrough relies heavily on the Christoffel-Darboux formula. During the variance calculation, the natural "repulsion" between points in the DPP exactly cancels out the leading-order error near the diagonal, leaving only a much smaller residual error. By interweaving continuous calculus tools with the discrete problem of selecting $p$ points from $N$ items, the authors unlock analytical capabilities previously unavailable for purely discrete sets.

Empirical Validation: Quality Over Quantity

The theoretical claims are substantiated through extensive experiments on both synthetic datasets (drawn from uniform and Gaussian mixture distributions across various dimensions) and real-world data.

In practical tasks like linear and logistic regression, DPP-based SGD consistently achieved lower error levels faster than uniform sampling under a fixed budget of gradient evaluations. Remarkably, the quality of the sampled points proved more impactful than sheer quantity: a diverse DPP minibatch of size 5 frequently outperformed a uniform minibatch of size 10. Empirical measurements of the variance decay slope on a log-log scale perfectly matched the theoretical predictions, showing a slope of -2.00 for $d=1$ (compared to -1.00 for uniform sampling), with the advantage narrowing but remaining significant as dimensions increased.

Limitations and Future Directions

Despite its theoretical elegance and empirical success, the method faces practical constraints:

  • The Curse of Dimensionality: Because the variance reduction advantage scales with $1/d$, the benefit diminishes in highly high-dimensional spaces, eventually behaving similarly to uniform sampling.
  • Computational Overhead: The one-time preprocessing step carries an $O(Np^2)$ computational cost, which may become prohibitive for massive datasets or very large batch sizes.
  • Discrete Labels: While the method performs well empirically on tasks with discrete labels (like logistic regression), the current theoretical framework assumes a continuous data distribution, leaving the formal proof for discrete labels as an open challenge.

Looking forward, the authors suggest exploring "repulsiveness" across consecutive iterations of SGD—rather than just within a single minibatch—to further smooth the optimization trajectory and maximize the benefits of diverse sampling.

Summary updated

BibTeX
@inproceedings{bardenet2021determinantal,
  author = {Rémi Bardenet and Subhroshekhar Ghosh and Meixia LIN},
  title = {{Determinantal point processes based on orthogonal polynomials for sampling minibatches in SGD}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=QpRufbD4xdn},
}
Figure