Jane Street
Jane Street logoJane Street · Feature trail

Activation Checkpointing

3 posts · Sep 2026

What this trail covers

This post introduces a new capability for activation checkpointing in model training. It details a novel procedure for finding optimal nodes to checkpoint to trade off compute for memory, addressing limitations in existing PyTorch tools. The procedure involves a planning pass to estimate true memory usage and recomputation costs, followed by a greedy algorithm to select nodes for checkpointing based on the cheapest recompute cost per byte of peak memory freed. This capability aims to provide use cases for autoregressive diffusion models in quantitative finance, specifically for generating market data. The post details the challenges of modeling market data, which exhibits both continuous and discrete characteristics, and explores solutions using diffusion and flow-matching models. It highlights findings on the instability of DDPM and the better performance of flow matching. The post also discusses techniques for handling discontinuities in market data, such as fracturing categorical predictions and using 'atom smoothing'. Finally, it presents results comparing model-generated data to real market data using total variational divergence and a discriminator classifier.

All Jane Street trails