step cache — skip a small residual

Neighbouring sampler steps often move the sample by a small residual. A step cache skips a step whose residual is under a threshold, and the drift is the sum of the residuals that were not applied. The skip count stays put between residuals and rises when the threshold passes the next one, and the drift rises with it. The same single skip is a quarter of a four-step schedule and a much smaller share of a long one, so the trick is harshest on the few-step models that already take big jumps.

Four sampler residuals. Raise the threshold and more of them are skipped, so the unapplied drift grows. The same single skip is a quarter of a four-step schedule and a much smaller share of a long one.