Skip to main content
QUICK REVIEW

[Paper Review] Mini-batch stochastic gradient descent with dynamic sample sizes

Michael R. Metel|arXiv (Cornell University)|Aug 2, 2017
Stochastic Gradient Optimization TechniquesComputer Science9 references5 citations
TL;DR

This paper proposes dynamic mini-batch sample size rules for stochastic gradient descent (SGD) that ensure a descent direction with high probability by adaptively adjusting batch sizes per dimension based on gradient estimate uncertainty. The method uses confidence intervals derived from sample covariance to minimize unnecessary computation while improving convergence, outperforming fixed-batch SGD in two real-world optimization problems.

ABSTRACT

We focus on solving constrained convex optimization problems using mini-batch stochastic gradient descent. Dynamic sample size rules are presented which ensure a descent direction with high probability. Empirical results from two applications show superior convergence compared to fixed sample implementations.

Motivation & Objective

  • To address the trade-off between computational cost and gradient estimate accuracy in mini-batch SGD for large-scale convex optimization.
  • To develop a sample size rule that ensures a descent direction with high probability while minimizing the number of samples used.
  • To improve convergence speed in practice by dynamically adjusting batch sizes based on gradient uncertainty.
  • To provide a practical, adaptive alternative to fixed-batch SGD that reduces variance without excessive computation.

Proposed method

  • The method estimates the gradient using a mini-batch of size $ N^i $, computing the sample mean $ \hat{g}(x^i) $ and sample covariance matrix $ \hat{\Sigma}(x^i) $.
  • For each dimension $ k $, the probability that the true gradient $ g(x^i)_k $ is positive (or negative) is estimated using the standard normal CDF: $ \Phi\left( \frac{|\hat{g}(x^i)_k|}{\sqrt{\hat{\Sigma}(x^i)_{kk}}} \right) $.
  • A per-dimension sample size rule is derived to achieve a target descent probability $ 1 - \alpha $, given by $ N_k^{i+1} = \left\lceil N_k^i \cdot \frac{\hat{\Sigma}(x^i)_{kk} \cdot (\Phi^{-1}(1 - \alpha))^2}{\hat{g}(x^i)^2_k} \right\rceil $.
  • A single-sample-size rule is also proposed, applying the same logic globally across all dimensions using the maximum gradient magnitude and average covariance.
  • The algorithm uses these dynamic batch sizes in an SGD update: $ x^{i+1} = \pi\left( x^i - \frac{\eta^i}{N^i} \sum_{j=1}^{N^i} \nabla F(x^i, y_j^i) \right) $.
  • The method assumes asymptotic normality of the gradient estimate and uses the t-distribution approximation, later simplified to normal for computational tractability.

Experimental results

Research questions

  • RQ1Can dynamic sample size selection improve convergence in mini-batch SGD while ensuring descent with high probability?
  • RQ2What is the minimal number of samples required per dimension to guarantee a descent direction with confidence $ 1 - \alpha $?
  • RQ3How does per-dimension adaptive sampling compare to fixed-batch SGD in terms of convergence speed and stability?
  • RQ4Can the method reduce computational cost without sacrificing optimization performance in real-world applications?

Key findings

  • The dynamic sample size rule based on per-dimension gradient uncertainty significantly improves convergence speed compared to fixed-batch SGD with sample sizes of 32, 256, and 512.
  • In the newsvendor problem, the per-dimension rule achieved faster convergence than fixed-batch methods under both basic SGD and Adam optimization.
  • In the options portfolio problem, the dynamic approach outperformed fixed-batch implementations in terms of expected utility over time.
  • The per-dimension update rule consistently outperformed the single-sample-size rule in both test applications.
  • Superior convergence was observed even with minimal computational overhead, as the method adapts batch size only when necessary to ensure descent.
  • Empirical results confirm that the method maintains high descent probability while minimizing redundant sampling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.