On the Role of Batch Size in Stochastic Conditional Gradient Methods
Abstract
Lay Summary
When training large machine learning models, practitioners must decide how much data to process at each training step. This choice, known as the batch size, can strongly affect both training speed and final performance. In this work, we study how batch size should be chosen for a class of optimization methods that are useful in large-scale training. Our analysis shows that larger batches are helpful only up to a point. At first, increasing the batch size improves training, but after a critical threshold, the benefits become small and may even hurt performance when the total training budget is fixed. We also show how the best learning-rate-like parameter changes with batch size and training budget, and our predictions match empirical trends seen in large-scale experiments. These insights lead to practical rules for choosing batch size and step size. We also propose a training strategy that gradually increases the batch size and sequence length during training while maintaining theoretical guarantees. Preliminary experiments support the theory and show the predicted scaling patterns. Overall, this work helps explain when larger batches are useful and guides the design of more efficient training schedules for large machine learning models.