New AI Training Trick Makes Chatbots Answer Twice as Fast
This could mean instant answers from AI, saving you time and frustration.
Speculative decoding accelerates large language model inference by using a lightweight draft model to propose tokens for verification by a target model. Draft training commonly optimizes token-level distribution alignment, but this does not directly optimize the length of the accepted prefix: once a draft token is rejected, all subsequent draft tokens are discarded.
FreDraft is an on-policy training method that directly maximizes the expected accepted length of drafts sampled from the current draft model. This objective accounts for first-rejection truncation and induces prefix-aware credit assignment, weighting each token by its contribution to the acceptance of the current and subsequent tokens.
To optimize the objective efficiently, FreDraft analytically marginalizes token-level acceptance rate, using the target model’s vocabulary distribution to reduce gradient variance. It further redistributes part of this distribution-level gradient into an explicit penalty for sampled tokens whose probabilities are overestimated by the draft model, while preserving the expected gradient. Experiments across multiple benchmarks and target models show that FreDraft improves accepted length and decoding speedup over strong baselines, achieving faster on-policy training convergence.
- FreDraft trains AI draft models to maximize the number of words accepted in a row, speeding up responses.
- It improves decoding speedup by up to 2x compared to standard methods in tests.
- Faster AI means quicker answers and lower costs, benefiting everyday users.
Why It Matters
Faster AI responses save you time and could make AI services cheaper and more accessible.