Skip to main content
QUICK REVIEW

[Paper Review] A Resizable Mini-batch Gradient Descent based on a Randomized Weighted Majority

Seong Jin Cho, Sunghun Kang|arXiv (Cornell University)|Jan 1, 2017
Machine Learning and ELMComputer Science2 citations
TL;DR

This paper proposes a Resizable Mini-batch Gradient Descent (RMGD) algorithm that dynamically selects batch sizes at each epoch using a probability distribution informed by past performance and validation error. By balancing exploration of new batch sizes and exploitation of successful ones, RMGD outperforms both fixed batch size baselines and grid search in accuracy and training speed.

ABSTRACT

Determining the appropriate batch size for mini-batch gradient descent is always time consuming as it often relies on grid search. This paper considers a resizable mini-batch gradient descent (RMGD) algorithm-inspired by the randomized weighted majority algorithm-for achieving best performance in grid search by selecting an appropriate batch size at each epoch with a probability defined as a function of its previous success/failure and the validation error. This probability encourages exploration of different batch size and then later exploitation of batch size with history of success. At each epoch, the RMGD samples a batch size from its probability distribution, then uses the selected batch size for mini-batch gradient descent. After obtaining the validation error at each epoch, the probability distribution is updated to incorporate the effectiveness of the sampled batch size. The RMGD essentially assists the learning process to explore the possible domain of the batch size and exploit successful batch size. Experimental results show that the RMGD achieves performance better than the best performing single batch size. Furthermore, it attains this performance in a shorter amount of time than that of the best performing. It is surprising that the RMGD achieves better performance than grid search.

Motivation & Objective

  • To address the time-consuming nature of batch size selection in mini-batch gradient descent, which traditionally relies on grid search.
  • To reduce the need for exhaustive hyperparameter tuning by enabling adaptive batch size selection during training.
  • To improve model generalization and convergence speed by intelligently exploring and exploiting batch size configurations.
  • To develop a method that achieves better performance than the best single batch size found via grid search.

Proposed method

  • The RMGD algorithm maintains a probability distribution over possible batch sizes, updated based on each batch size’s historical success in reducing validation error.
  • At each epoch, a batch size is sampled from this distribution using a randomized weighted majority mechanism.
  • The algorithm evaluates the model’s performance on a validation set after each epoch to assess the effectiveness of the sampled batch size.
  • The probability distribution is updated using a weighted majority rule, increasing the likelihood of selecting batch sizes that yield lower validation error.
  • The method balances exploration (trying new batch sizes) and exploitation (favoring previously successful sizes) through adaptive probability reweighting.
  • The core mechanism uses a probability update rule that incorporates both success/failure feedback and the magnitude of validation error.

Experimental results

Research questions

  • RQ1Can a dynamic batch size selection strategy outperform fixed batch size configurations in terms of model accuracy and training efficiency?
  • RQ2To what extent can an adaptive batch size mechanism reduce the need for grid search in hyperparameter tuning?
  • RQ3Does balancing exploration and exploitation in batch size selection lead to faster convergence and better generalization?
  • RQ4Can a randomized weighted majority approach effectively guide batch size adaptation during training?

Key findings

  • RMGD achieves better generalization performance than the best single batch size identified through grid search.
  • The RMGD method reaches superior model performance in less training time compared to the best-performing fixed batch size.
  • The algorithm effectively explores diverse batch sizes early in training and progressively exploits the most successful configurations.
  • The dynamic adaptation mechanism leads to faster convergence and improved validation error compared to static batch size strategies.

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.