Batch-Expansion Training: An Efficient Optimization Framework

Michal Derezinski, Dhruv Mahajan, S. Sathiya Keerthi, S. V. N. Vishwanathan, Markus Weimer

Abstract

We propose Batch-Expansion Training (BET), a framework for running a batch optimizer on a gradually expanding dataset. As opposed to stochastic approaches, batches do not need to be resampled i.i.d. at every iteration, thus making BET more resource efficient in a distributed setting, and when disk-access is constrained. Moreover, BET can be easily paired with most batch optimizers, does not require any parameter-tuning, and compares favorably to existing stochastic and batch methods. We show that when the batch size grows exponentially with the number of outer iterations, BET achieves optimal $O(1/\epsilon)$ data-access convergence rate for strongly convex objectives. Experiments in parallel and distributed settings show that BET performs better than standard batch and stochastic approaches.

Introduction

In large-scale machine learning, practitioners typically choose between two extremes: Batch methods (e.g., L-BFGS), which use the entire dataset for every update, and Stochastic methods (e.g., SGD), which use small random subsets.

Batch methods are stable and easy to distribute but are "slow starters" because they must load the entire dataset before making a single update. Stochastic methods start fast but are notoriously difficult to tune, hard to parallelize efficiently, and require many random disk accesses—a major bottleneck in industrial settings where data is stored on slow Network Attached Storage (NAS). Batch-Expansion Training (BET) is a meta-algorithm that bridges this gap, accelerating batch optimizers by starting on a small subset of data and doubling the dataset size as training progresses.

Methodology

BET is designed to be a parameter-free framework compatible with any linear optimizer. Its core idea is based on the observation that early in training, a model is far from the optimal solution, so the precision provided by the full dataset is not yet required.

Matching Errors and Resource Efficiency

The fundamental intuition behind BET is matching optimization error to statistical error. There is no utility in spending extensive compute time optimizing a model to high precision on a small subset if the statistical noise of that subset is significantly higher. BET maintains this balance by expanding the dataset only when the optimization error reaches the level of the statistical error.

Conceptual comparison of Fixed Batch vs. Expanding Batch training. Panels (a) and (b) show error reduction relative to estimation error; (c) and (d) show training time relative to dataset size.

The Two-Track Algorithm

A key contribution of BET is its parameter-free nature. Instead of manually scheduling expansions, BET runs two optimization "tracks" in parallel: one on the current batch ($n$) and one on half that batch ($n/2$). When the track on the larger batch begins producing a lower loss than the smaller batch track, it signals that the model has learned sufficient information from the current subset, and the dataset size is doubled ($n_{t+1} = 2n_t$).

Experimental Results

The researchers evaluated BET on several standard large-scale datasets, including url (1GB), covtype (19GB), webspam (30GB), and a massive 1.5TB subset of the splice-site dataset.

Performance and Scalability

  • Convergence Speed: BET achieves an optimal $O(1/\epsilon)$ data-access convergence rate for strongly convex objectives, matching the theoretical performance of SGD while being strictly faster than standard batch methods.
  • Distributed Efficiency: In a distributed setting with 1,000 cores on the 1.5TB splice-site dataset, BET reached optimum test accuracy significantly faster than both standard batch methods and Parallel SGD.
  • Parallel Scaling: BET showed near-linear speed-up as the number of cores increased, whereas Parallel SGD’s performance plateaued due to communication overhead.

Conclusion

Batch-Expansion Training offers a robust framework for large-scale optimization that combines the fast start of stochastic methods with the stability and parallelizability of batch methods. By re-using loaded data and avoiding random sampling, it is particularly well-suited for environments with constrained disk access or distributed resources. While currently focused on strongly convex objectives, extending BET to non-convex optimization, such as deep learning, remains a promising direction for future research.

Summary updated

BibTeX
@inproceedings{derezinski2018batch,
  author = {Michal Derezinski and Dhruv Mahajan and S. Sathiya Keerthi and S. V. N. Vishwanathan and Markus Weimer},
  title = {{Batch-Expansion Training: An Efficient Optimization Framework}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2018},
  url = {https://openreview.net/forum?id=WdyBQoLOnQ},
}
Figure