Accelerating Stochastic Gradient Descent Using Antithetic Sampling

Jingchang Liu, Linli Xu · DOI

Abstract

(Mini-batch) Stochastic Gradient Descent (SGD) is a popular optimization method applied to many machine learning applications. However, the high variance introduced by the stochastic gradient in each step can significantly slow down convergence. In this paper, we propose an antithetic sampling strategy to reduce this variance by leveraging the internal structure of the dataset. Under this strategy, stochastic gradients in a mini-batch are no longer independent but are designed to be as negatively correlated as possible, while remaining an unbiased estimator of the full gradient. For binary classification problems, we pre-calculate antithetic samples to maintain practical efficiency. Experiments confirm that this method effectively reduces variance and accelerates convergence.

Introduction: The Variance Problem in SGD

Stochastic Gradient Descent (SGD) is the workhorse of modern machine learning, but it has a notorious Achilles' heel: variance. Because SGD estimates the true gradient using only a tiny subset of data, the steps it takes can be noisy and erratic, forcing the use of smaller learning rates and slowing down convergence. High variance manifests as "jitter" in the optimization process; the model bounces around instead of heading straight for the minimum.

While existing variance reduction techniques like SVRG or SAGA focus on tracking historical gradients, this paper tackles the problem from the perspective of the internal structure of the dataset. It asks: Can we pick a pair of samples such that the error in one sample's gradient is cancelled out by the error in the other?

Antithetic Sampling: The "Mirror Image" Strategy

The core idea is borrowed from statistics: Antithetic Variates. If you want to estimate the average of two random variables, the variance of that average is lower if the variables are negatively correlated. In a mini-batch of size 2, instead of picking two random samples independently, the authors propose picking one sample randomly and then finding its "antithesis."

Geometric intuition of antithetic sampling: pairing samples to cancel out gradient errors.

Geometrically, if sample A tells the model to move "North-East" and its antithetic partner B tells it to move "North-West," the East/West errors cancel out, leaving a much cleaner "North" signal for the optimization process.

Practical Implementation for Binary Classification

Calculating the perfect antithetic sample in every iteration would be computationally expensive. However, for binary classification (like Logistic Regression or SVMs), the direction of the gradient is heavily influenced by the product of the label and the feature vector ($y_i x_i$). Because this relationship is relatively stable, the authors can pre-calculate an Antithetic Table before training begins:

  1. For every sample $i$, find a sample $j$ that minimizes the inner product $y_i y_j x_i^T x_j$.
  2. Store these pairs in a lookup table.
  3. During training, when sample $i$ is picked, simply look up its partner $j$ from the table.

This turns a potentially expensive per-iteration calculation into a one-time preprocessing step, making the method highly practical for large-scale tasks.

Experimental Results

The authors evaluated their method (SGD-as) on several standard binary classification benchmarks, including fourclass, diabetes, and splice. The results consistently demonstrate that introducing specific dependencies (negative correlation) improves optimization performance over the standard i.i.d. (independent and identically distributed) sampling assumption.

Variance and objective value comparisons across different datasets, showing the stability and speed of SGD-as.

Key findings include:

  • Significant Variance Reduction: In all tests, the variance of the stochastic gradient was markedly lower for SGD-as compared to uniform SGD, especially in the early stages of training.
  • Faster Convergence: The objective value plots show that SGD-as reaches lower loss levels much faster than standard SGD.
  • Stability: The convergence curves for SGD-as are much smoother, suggesting the method is more robust to the choice of step size.

Conclusion

Antithetic sampling offers a clever way to steady SGD’s path by breaking the rule of sample independence. By pairing samples whose gradients point in roughly opposite directions, noise is cancelled out, leading to faster and more stable convergence. While currently tailored for binary classification, the success of this "mirror image" strategy opens new doors for dataset-aware optimization techniques.

Summary updated

BibTeX
@misc{liu2018accelerating,
  author = {Jingchang Liu and Linli Xu},
  title = {{Accelerating Stochastic Gradient Descent Using Antithetic Sampling}},
  year = {2018},
  eprint = {1810.03124},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.03124},
}
Figure