﻿# ReplaySSM in ATOM: committed speculative updates must exclude rejected tokens

The new ATOM report describes compact recurrent rollback state. Accepted-prefix tracking and checkpoint folding need separate correctness evidence from memory savings.

Author: Retrivium editorial team
Updated: 2026-11-18
Canonical URL: https://retrivium.ai/journal/daily-20261118-compute-atom-replayssm-accepted-prefix-state/
Language: en

AMD's November 17 ATOM account describes using ReplaySSM to reduce recurrent-state storage during speculative decoding. This is a new explanation of a specific serving path, not a new date for every referenced implementation or experiment. Its central question is how rejected draft tokens stay outside the state used for continuation.

## Speculation creates several possible continuations

A draft proposes tokens that the target model must verify. Acceptance can stop before the end of that proposal, so the recurrent state must correspond to the accepted position rather than the longest attempted position.

Keeping a complete snapshot for every speculative position is one way to support that choice. It also consumes storage and copying resources as the verification window grows. The acceptance boundary is therefore a state-management problem as well as a token-selection problem.

## Compact records replace repeated full snapshots

The report describes retaining one checkpoint and a short buffer of update records instead of a full recurrent-state copy at every position. The record contains the information needed to reconstruct the selected state. This changes what is retained; it does not make recurrent computation disappear.

For a reviewer, the relevant identity includes the checkpoint, the update sequence and the committed position. Looking only at the current buffer length cannot establish which updates belong to the continuation.

## The accepted prefix determines commitment

In the described path, the next forward step uses the accepted count to advance the committed prefix. Rejected records remain outside it and can be overwritten later. A stale or incorrectly advanced cursor could therefore incorporate work that verification did not accept.

A proposed acceptance trace should connect the verification result to the state position actually consumed next. Counting emitted tokens alone provides weaker evidence because the hidden recurrent state can be wrong even when a visible prefix looks plausible.

## Folding has its own boundary

Periodically incorporating committed updates into the checkpoint allows the compact buffer to be reused. That step must preserve the same logical state while changing its representation. It should not absorb rejected records simply because they occupy nearby storage.

A bounded comparison can exercise acceptance of none, some and all proposed tokens, then repeat across a fold boundary. Compare the continuation with an appropriate reference implementation using a declared numerical tolerance. These are proposed checks, not experiments performed by Retrivium.

## Active rollback state is not historical prefix retention

ReplaySSM manages the active speculative window in this discussion. Prefix checkpoints saved for later requests answer a different question: where a future request may resume from earlier history.

Combining the two into one cache-hit metric would hide their different lifetimes. A useful report tracks active rollback storage separately from historical retention, including the resources and work needed to maintain each representation.

## Evaluate the resource trade rather than a universal multiplier

Reducing snapshot storage can leave more room for other state, but replay and folding still do work. A memory improvement does not automatically predict an equal throughput or hit-rate improvement.

The practical result is a record linking accepted tokens, committed updates, checkpoint folding and correct continuation. It explains what must remain invariant while the storage representation changes, without turning one local memory observation into a general performance guarantee.

## Primary references

- [AMD ATOM technical report](https://rocm.blogs.amd.com/software-tools-optimization/agentx-atom-serving/README.html)
- [Upstream change #1883](https://github.com/ROCm/ATOM/pull/1883)

## Related reading

- [Recurrent state and attention history preserve different information](/journal/recurrent-state-attention-history/)
- [Validate target-specific EAGLE draft checkpoints in SGLang](/journal/sglang-eagle-draft-contract/)
