the.ai

Systems / Memory

verified

Activation Checkpointing

Backpropagation needs the activations the forward pass produced, so the obvious implementation stores all of them — which for a deep model is far more memory than the weights themselves. Checkpointing keeps only a few and recomputes the rest on the way back. It buys memory with time, at a rate good enough that almost every large training run takes the deal.

Viz primitive · budget-splitcheckpointed-layers = 6

checkpointed-layers holds 17% of the budget; rest holds the remaining 83%.

Layers whose activations are kept against those recomputed in the backward pass. Drag the number of checkpoints to spend memory and buy back compute.

6

Reviewed by opendroid · 2026-08-04