Batch Size

Intermediate

Number of samples per gradient update; impacts compute efficiency, generalization, and stability.

AdvertisementAd space — term-top

Why It Matters

Batch size is a vital hyperparameter in training machine learning models, influencing both the efficiency of the training process and the model's ability to generalize to new data. Choosing the right batch size can lead to faster training times and improved performance, making it a key consideration in the development of AI systems across various applications.

Batch size refers to the number of training examples utilized in one iteration of the model's training process. In the context of stochastic gradient descent, the update rule can be expressed as θ(t+1) = θ(t) - η * (1/m) ∑(i=1 to m) ∇L(θ(t); x_i, y_i), where m is the batch size, and (x_i, y_i) are the training samples in the current batch. The choice of batch size affects the convergence behavior, generalization ability, and computational efficiency of the training process. Smaller batch sizes introduce more noise into the gradient estimates, which can help escape local minima but may lead to unstable convergence. Conversely, larger batch sizes provide more accurate gradient estimates but require more memory and computational resources, potentially leading to overfitting. The selection of an optimal batch size is often a trade-off between convergence speed and generalization performance.

Keywords

Domains

Related Terms

Welcome to AI Glossary

The free, self-building AI dictionary. Help us keep it free—click an ad once in a while!

Search

Type any question or keyword into the search bar at the top.

Browse

Tap a letter in the A–Z bar to browse terms alphabetically, or filter by domain, industry, or difficulty level.

3D WordGraph

Fly around the interactive 3D graph to explore how AI concepts connect. Click any word to read its full definition.