Skip to main content
QUICK REVIEW

[Paper Review] AdaBatch: Efficient Gradient Aggregation Rules for Sequential and Parallel Stochastic Gradient Methods

Alexandre Défossez, Francis Bach|arXiv (Cornell University)|Nov 6, 2017
Stochastic Gradient Optimization TechniquesComputer Science15 references10 citations
TL;DR

AdaBatch introduces a novel gradient aggregation rule for stochastic gradient methods that adaptively rescales gradients per coordinate based on sparsity, improving sample efficiency and enabling effective parallelization. It achieves performance comparable to asynchronous methods like Hogwild! while maintaining convergence guarantees, significantly outperforming standard mini-batch SGD in both sequential and distributed settings on sparse datasets.

ABSTRACT

We study a new aggregation operator for gradients coming from a mini-batch for stochastic gradient (SG) methods that allows a significant speed-up in the case of sparse optimization problems. We call this method AdaBatch and it only requires a few lines of code change compared to regular mini-batch SGD algorithms. We provide a theoretical insight to understand how this new class of algorithms is performing and show that it is equivalent to an implicit per-coordinate rescaling of the gradients, similarly to what Adagrad methods can do. In theory and in practice, this new aggregation allows to keep the same sample efficiency of SG methods while increasing the batch size. Experimentally, we also show that in the case of smooth convex optimization, our procedure can even obtain a better loss when increasing the batch size for a fixed number of samples. We then apply this new algorithm to obtain a parallelizable stochastic gradient method that is synchronous but allows speed-up on par with Hogwild! methods as convergence does not deteriorate with the increase of the batch size. The same approach can be used to make mini-batch provably efficient for variance-reduced SG methods such as SVRG.

Motivation & Objective

  • Address the inefficiency of standard mini-batch SGD in sparse optimization, where large batch sizes reduce sample efficiency.
  • Overcome the limitations of synchronous parallel SGD, which suffers from poor scaling due to reduced iteration count and unstable convergence with large batches.
  • Develop a gradient aggregation rule that maintains sample efficiency while allowing larger batch sizes and effective parallelization.
  • Enable synchronous distributed SGD to achieve performance on par with asynchronous methods like Hogwild! without sacrificing convergence guarantees.
  • Extend the benefits of AdaBatch to variance-reduced methods such as SVRG, improving their efficiency on sparse data.

Proposed method

  • Replace standard mini-batch averaging with a coordinate-wise normalization: each gradient component is divided by the number of non-zero gradients in that coordinate across the batch.
  • This rule implicitly reweights the optimization problem to exploit data sparsity, similar to Adagrad’s per-coordinate learning rate adaptation.
  • The method ensures gradient norm control by maintaining a stochastic average per coordinate, preserving stability.
  • The approach is compatible with both sequential and parallel SGD, enabling efficient synchronous distributed training.
  • It can be integrated into existing SGD and SVRG frameworks with minimal code changes, requiring only gradient aggregation logic modification.
  • Theoretical analysis shows equivalence to implicit per-coordinate rescaling, providing convergence guarantees under standard assumptions.

Experimental results

Research questions

  • RQ1Can a modified gradient aggregation rule improve sample efficiency in sparse stochastic optimization without increasing computational cost?
  • RQ2Does the proposed AdaBatch rule allow synchronous SGD to scale effectively with larger batch sizes and more workers, matching the performance of asynchronous methods like Hogwild!?
  • RQ3To what extent does AdaBatch improve convergence speed and final test error compared to standard mini-batch SGD on sparse datasets?
  • RQ4Can AdaBatch be successfully extended to variance-reduced methods such as SVRG, maintaining its benefits in terms of sample efficiency and parallel scalability?
  • RQ5How does AdaBatch’s performance compare to state-of-the-art asynchronous methods like Hogwild! in terms of wall-clock time and sample efficiency?

Key findings

  • AdaBatch significantly outperforms standard mini-batch SGD in terms of convergence speed and final test error, especially when increasing batch size and number of workers.
  • On the spam and url datasets, AdaBatch achieves convergence comparable to Hogwild! in wall-clock time, even with synchronous training, while standard mini-batch SGD degrades with larger batches.
  • For the news20 dataset, AdaBatch maintains or improves sample efficiency over standard SGD, even when using large batch sizes.
  • In SVRG experiments, AdaBatch achieves faster convergence than standard mini-batch SVRG, particularly in early optimization stages, with gains observed on news20 and spam.
  • The method enables synchronous SGD to scale efficiently with the number of workers, achieving near-ideal speedup in terms of samples processed per second, as shown on spam and url datasets.
  • Theoretical analysis confirms that AdaBatch is equivalent to an implicit per-coordinate rescaling of gradients, similar to Adagrad, which explains its improved stability and convergence properties.

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.