Why it matters

Selective recompute optimizes trade-off. Understanding shapes advanced training.

Advertisement

The architecture

Store: MLP + norm activations (small).

Recompute: attention softmax + intermediate (large).

Selective recomputeStoresmall activationsRecomputeattention onlySave memorytargetedReduces overhead vs full activation ckpt; used in Megatron
Selective.
Advertisement

How it works end to end

Megatron-LM introduced.

Attention softmax + P dropout stored else large.

~5% compute vs 30% for full checkpoint.