Why it matters
Gradient checkpointing enables larger models. Understanding shapes memory.
Advertisement
The architecture
Optimal checkpoint spacing: sqrt(L) for L layers.
Memory O(sqrt(L)) vs O(L).
Compute 1.33x.
Advertisement
How it works end to end
Chen et al. 2016.
Optimal spacing = sqrt(L).
Selective for expensive activations.