NgramRL: Accelerating RL Post-Training for Structured Generation via Rollout-Aware N-gram Speculative Decoding
TL;DR - NgramRL accelerates RL post-training rollouts by using recent per-prompt generations as an adaptive n-gram speculative-decoding source. It improves throughput without an auxiliary drafting model or changing the rollout distribution.
- Commits 3.60–7.77 tokens per target-model forward with a warm cache.
- Outperforms SuffixDecoding by up to 1.99Ă— and prompt-lookup decoding by up to 7.0Ă—.
- An adaptive CPU prefetcher hides lookup latency by predicting verification outcomes.
- On Spider with Qwen3-8B, prefetching covers 96.6% of outcomes and raises rollout throughput 1.38Ă— over synchronous NgramRL.