Gradient Accumulation
What is Gradient Accumulation?
In one sentence: Gradient accumulation adds up gradients over several small batches before updating the model, to act like one big batch.
What does Gradient Accumulation look like?
Four batches of 8 examples with gradient accumulation act like one batch of 32.
Why does Gradient Accumulation matter?
It lets people train with large effective batches on smaller hardware.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/gradient-accumulation/">Gradient Accumulation, explained simply</a> (The AI Math Dictionary)