Reinforcement-learning post-training repeatedly generates rollouts, often revisiting the same prompt across training epochs. The NgramRL paper uses that repetition as a draft source for speculative decoding, rather than maintaining another model to predict tokens.
Build the drafter from bounded recent history
NgramRL constructs a per-prompt n-gram drafter from recent rollouts. It requires no auxiliary model, drafter training or persistent GPU-resident drafter state. The target model verifies proposed continuations, preserving the rollout distribution under the method's verification process.
This distinguishes draft quality from accepted output. A continuation found in history is useful only when target-model verification accepts it; the history itself does not become the authority for the next committed token.
Prefetch likely lookup paths
An adaptive fan-out prefetcher predicts likely verification outcomes using the accepted draft length and the target-emitted continuation token. A causal budget allocator concentrates prefetches on likely outcomes to hide CPU lookup and scheduling work.
Uncovered outcomes fall back to sequential lookup without changing committed tokens. The fallback matters because the prefetcher does not need to predict every outcome correctly to provide useful overlap.
Keep tokens per forward separate from throughput
Across two model families and three reasoning or structured-generation workloads, the paper reports 3.60–7.77 committed tokens per target-model forward in the warm-cache regime. The reported maxima are 1.99 times SuffixDecoding and 7.0 times prompt-lookup decoding on that measure.
On Spider, the prefetcher covers 96.6% of Qwen3-8B outcomes at a candidate budget of 16 and improves measured rollout throughput by 1.38 times over synchronous NgramRL, near the reported 1.40-times overlap ceiling.
Those are separate measurements with specific cache and workload conditions. A reproduction should include cache warm-up, lookup overhead, target verification and actual throughput. The paper supports using recent rollout repetition where it exists, while the benefit for a different prompt mix or training setup remains an empirical question.
Comments