How does gradient accumulation let you simulate a larger batch size under a memory limit?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how gradient accumulation trains with a large effective batch when only a small batch fits in GPU memory. Tests loss scaling across micro-batches, which memory depends on batch size, and where accumulation differs from a true large batch in practice.