Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/willyfh/batch-size-vs-iteration

A small experiment to investigate the relationship between batch size and number of iterations
https://github.com/willyfh/batch-size-vs-iteration

Last synced: 5 days ago
JSON representation

A small experiment to investigate the relationship between batch size and number of iterations

Awesome Lists containing this project

README

        

# The Relationship of Batch Size and Number of Iterations
In order to achieve a similar performance when using a different batch size, gradient accumulation is often applied. However, there is also an assumption that adjusting the number of epochs (to maintain the number of iterations accross different batch sizes) can also help to achieve a similar performance.

This small experiment attempts to address the following questions:

1) Do we need to increase the number of epochs, i.e., fix the number of iterations, as we increase the batch size?
2) Or do we need to fix the number of epochs, i.e., decrease the number of iterations, as we increase the batch size?

Note: While other hyperparameters, such as the learning rate, may also impact the results, I maintain consistent values for these parameters across all experiments.

## Dataset

## Architecture

## Results