AI engineering glossary · LLM training alignment

What is critical batch size?

Critical batch size (also called Gradient noise scale): The batch size beyond which making batches larger yields sharply diminishing gains in learning per example. Below it, doubling the batch nearly halves the steps needed; above it, extra compute is largely wasted.

Level: advancedTopic: LLM training alignment

Critical batch size: an example

If the critical size is about 4 million tokens, using 16 million tokens per batch costs more compute for little speed-up.

Related terms

More LLM training alignment terms

Where you learn it

Critical batch size is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.