← AI glossary

AI glossary · Basic · Language models · Efficiency & infra

SpecOPD

SpecOPD is a training method that teaches the "draft model" in speculative decoding more effectively. It speeds up training by running the On-policy Distillation process, in which a large model scores the drafts, along multiple branches at once. It is a research-stage technique published on arXiv in November 2026.

About this term
Level
Basic · Technical terms you often meet in AI news
Added
2026-11-06
In plain words It can be compared to a junior reporter writing article drafts and an editor-in-chief correcting them. Previously, the reporter had to get one paragraph corrected before writing the next. SpecOPD is like submitting drafts of several paragraphs at once and having the editor review them all in one sitting. In practice, though, this is not about people but about models matching probabilities, so the analogy only gives a rough picture.

What it is

LLMs are slow because they generate text one token at a time. Speculative decoding is an acceleration method in which a small, fast draft model (Drafter) writes a few tokens ahead, and the large main model (Target model) checks them all at once and accepts only the correct part. The more of the draft accepted at once (the longer the Acceptance length), the faster it gets. SpecOPD is a method for training this draft model better with On-policy Distillation, proposed in the paper "SpecOPD: Branch-Parallel On-Policy Distillation for Speculative Decoding."

How it works

In On-policy Distillation, the main model scores drafts that the draft model actually wrote, and the draft model learns from those scores. Previously, the process of writing a draft and getting it checked had to be repeated sequentially, so collecting training data was slow. The paper's key idea is that scoring a chunk of draft only requires "the preceding part of the reference text" and "what the draft model wrote at that position." So it samples independent Branches from multiple points in the reference text at the same time, and bundles these branches into a single tree so the computation for the shared prefix is reused. The draft model is also trained with a training objective designed to directly increase Acceptance length.

Teaching the draft model with branch parallelismReference text → Draft model; Draft model → Branch 1; Draft model → Branch 2; Draft model → Branch 3; Branch 1 → Bundle into proposal tree; Branch 2 → Bundle into proposal tree; Branch 3 → Bundle into proposal tree; Bundle into proposal tree → Main model scoring; Main model scoring → Draft model training; Draft model training → Draft model(Repeat)Reference textMultiple points(anchors)Draft modelDrafterBranch 1Branch 2Branch 3Bundle intoproposal treeShare common prefixMain model scoringTarget modelDraft modeltrainingTargets AcceptancelengthRepeat
Teaching the draft model with branch parallelism Branches are sampled simultaneously from multiple points in the reference text and bundled into a tree, and the draft model is updated using the results the main model scores all at once. The updated draft model then samples new branches.

Why it matters

Speculative decoding raises speed without changing answer quality, so it directly affects the cost and response time of LLM services. The paper states that, compared with sequential On-policy Distillation, it collected training signals up to 16.09 times faster, increased average Acceptance length by up to 41.45%, and achieved generation up to 3.56 times faster than generating one token at a time. The experiments reportedly covered four areas—chat, coding, math and agent tasks—and models of several sizes, including ones mixing sparse attention and linear attention in addition to standard attention.

Key figures reported in the paper

Up to 16.09xTraining signal collection speed (vs. sequential)
Up to 41.45%Increase in average Acceptance length
Up to 3.56xGeneration speed (vs. one token at a time)
All are "maximum" values reported by the researchers and vary by setting.

Things to know

As of today, this paper has only just been published, and there is no evidence yet that it is a feature in any product. The figures above are "maximum" values the researchers obtained in specific settings, so results in real services may vary by model, task and hardware. The community has described it as research from the Qwen side, but this has not been confirmed by an official announcement. Also note that SpecOPD is not speculative decoding itself but a method for training its draft model.

Example

Suppose a team running an LLM service uses speculative decoding to speed up responses without changing answer quality. They add a draft model, but drafts keep getting rejected partway, so the speedup falls short of expectations. The paper's claim is that additionally training the draft model to match the main model's scoring with a method like SpecOPD can increase the number of tokens accepted at once while spending less training time. The paper tested this on chat, coding, math and agent tasks.

Related terms

References