The same weights can take a different next step
A checkpoint can restore the right parameter value and still take a different next step. In this original CPU-only worksheet, every continuation starts at -5/4. The parameter-only restore next reaches -17/4. Restoring momentum and the completed-step counter reaches -8/3, exactly as the uninterrupted path does.
This is synthetic arithmetic, not a trained model, GPU test or framework benchmark. It isolates what a small stateful update needs to continue.
An explicit continuation contract
The state is parameter p, momentum m and completed-update counter t. The authored update is:
m_next = m/2 + g
p_next = p - m_next/(t + 1)
t_next = t + 1
The inputs [1, 2, 3, 4] are prescribed scalars. They occupy the gradient position in the rule; no model or loss computes them. Starting from p=1, m=0 and t=0, we save after two updates. The checkpoint is p=-5/4, m=5/2, t=2. Every continuation receives [3, 4] in order, with the same fixed configuration.
| Mode | Momentum | Step | Next parameter | Complete suffix matches |
|---|---|---|---|---|
| Uninterrupted | 5/2 | 2 | -8/3 | Yes |
| Parameter only | 0 | 0 | -17/4 | No |
| Parameter + step | 0 | 2 | -9/4 | No |
| Parameter + momentum | 5/2 | 0 | -11/2 | No |
| Full toy state | 5/2 | 2 | -8/3 | Yes |
The parameter-plus-step mode isolates missing momentum. The parameter-plus-momentum mode isolates the counter reset: with this schedule, it uses the first learning rate again. The full restore JSON-roundtrips all three fields and matches both remaining updates, including the momentum and counter. Advancing a progress number or comparing only the final parameter would be a weaker check.
When a missing field does not change the parameter path
The controls deliberately include exceptions. With a zero momentum coefficient, discarding the buffer while preserving the step makes no difference. With a constant learning rate, a reset counter can leave the parameter path unchanged even though the complete state differs. These are conditional results, not a claim that any omitted field always breaks a job.
The one retained standard-library invocation covers five authored modes and fourteen separate checks. Every prefix and suffix state is retained, along with changed-input and malformed-state checks. Exact fractions avoid a numerical-tolerance question. The counts describe the worksheet, not independent trials or real recovery prevalence.
What carries over to a real checkpoint
PyTorch’s general-checkpoint guide includes optimizer state and progress information for resuming training. Its SGD documentation describes momentum state and implementation details. Those are background sources; this proof does not execute PyTorch.
Real programs may require scheduler, RNG, input-order, buffer, scaler and distributed state as well. PyTorch’s reproducibility notes also limit guarantees across versions and platforms. Here, “full state” means p,m,t only for the declared recurrence, with fixed external configuration and identical future inputs.
The original Nodus MIT package contains the exact executed source, fixture, protocol and complete saved result. It establishes a narrow continuation counterexample, not checkpoint durability, recovery speed, model quality, training uplift or a provider comparison.
About the author
- Founder @ Nodus Compute
Comments
Join the discussionNo comments yet. Be the first to comment.