首页 > AI前沿 > Draft Calibration for Speculative Decoding: Accelerating LLM Serving by Matching Draft and Target Distributions

Draft Calibration for Speculative Decoding: Accelerating LLM Serving by Matching Draft and Target Distributions

arXiv机器学习 2026-11-25 02:41 8 阅读 查看原文
用户现在需要把给定的英文新闻正文排版成语义化HTML片段,遵循规则。首先,开头是一段,先做

。然后看内容,有没有需要划分的?这里整段其实可以,但有没有小节?不对,原文的内容,首先第一段是介绍投机解码,然后讲依赖的条件,然后本文的研究内容,观察,方法,结果,分析。首先,先处理自然段,原文是一个完整的自然段?不对,看原文,其实是一段?不对,仔细看,原文是连贯的,但可以拆分吗?不对,规则说每个自然段落用

包裹,长文用h2/h3划分小节。首先,先确定:首先,开头的投机解码介绍可以作为一个

,然后接下来关于速度依赖的部分?不对,先理清楚内容,不要增删改。哦,原文的整个内容是连贯的,但可以划分小节吗?比如: 首先,

投机解码与速度依赖

?不对,不对,不能自己加小节标题?哦不对,等下,规则说长文用h2/h3划分小节,但用户给的原文有没有小节的划分?哦原文是一段?不对,看原文内容: 第一句是投机解码的原理:Speculative decoding accelerates...utilization. 然后第二句讲速度依赖:The speedup relies on...q. 然后第三句开始本文的研究:In this paper, we study...gap. 然后第四句是观察:We observe that though...mismatch. 然后第五句是方法:To mitigate the effect...calibration. 然后第六句是结果:Our results suggest that...tasks. 然后第七句:Throughput analysis...efficiency. 然后第八句:Analysis of more general...improvement. 不对,但是不能自己加内容,那如果划分小节的话,是不是要用原文的逻辑?不对,规则说保留原文所有信息,不得增删改内容。哦,不对,小节标题能不能用原文的内容提炼?不对,等下,规则说“长文用

/

划分小节”,但如果原文没有明确的小节标题,那是不是可以不用?不对,再看,哦不对,用户给的正文是一段吗?不,其实是一个连贯的学术段落,那是不是可以不用h2?不对,再仔细看规则,规则说“长文用h2/h3划分小节”,如果不需要的话可以不用?不对,等下,再看要求:只输出HTML片段,每个自然段落用p包裹,长文用h2/h3划分,列表用ul,引用blockquote,代码pre code,重要句子strong,保留所有信息,不增删改。 哦,等下,原文里有没有重要的句子?比如结果那句“standard temperature scaling applied to the draft distribution improves the acceptance length by up to approximately 10\% with almost no additional cost across different tasks”可以加strong? 然后,首先,要不要划分小节?比如: 首先,

投机解码基础与研究动机

?不对,不对,不能自己加标题,因为原文没有这些标题,增了就是增内容了!哦对哦,规则说不得增删改内容,所以不能自己加小节标题!哦,那是不是如果原文是一个完整的自然段,就用

包裹?不对,不对,再看原文,是不是可以拆分自然段?比如,原文的内容可以拆分为几个自然段?不,原文是连续的,但自然段是作者划分的,用户给的正文里是一个自然段?不对,看用户给的正文: 正文如下: Speculative decoding accelerates...improvement. 哦,是一整段。那是不是就用

包裹整段?但不对,规则说长文用h2/h3划分,但如果不能加标题的话,怎么划分?哦,不对,等下,会不会我理解错了,小节的划分是把原文的内容按逻辑拆分,用h2/h3的话,是不是h2/h3里的内容是原文的?不对,不对,再仔细看规则:“保留原文所有信息,不得增删改内容”,所以不能添加任何原文没有的文字,包括小节标题?那这样的话,h2/h3是不是不用?那如果原文是一段,就用

包裹,里面重要的句子加strong? 等下,再看原文的内容,有没有需要加strong的?比如: 1. “Speculative decoding accelerates large language model (LLM) inference by employing a lightweight draft model to propose draft tokens and allowing the target model to verify the new tokens in parallel to improve inference-time compute utilization.” 这是核心概念,可以加strong? 2. “The speedup relies on the acceptance probability of draft tokens in target verification, which is directly related to the gap $\|p-q\|_1$ between the target distribution $p$ and the draft distribution $q$.” 这里的核心依赖,可以加strong? 3. “In this paper, we study draft calibration of speculative decoding to improve the speedup of speculative decoding, where we employ post-hoc methods to calibrate the draft distribution to mitigate the distribution gap.” 本文的研究内容,加strong? 4. “We observe that though current community open-source draft models may learn the top candidate token correctly, they are generally underconfident compared to the target model, suggesting a consistent distribution mismatch.” 观察结果,加strong? 5. “To mitigate the effect of this mismatch on the acceptance rate of the draft models, we try various post-hoc calibration methods, including standard temperature scaling and token-wise calibration.” 方法,加strong? 6. “Our results suggest that a standard temperature scaling applied to the draft distribution improves the acceptance length by up to approximately 10\% with almost no additional cost across different tasks.” 核心结果,加strong? 7. “Throughput analysis further verifies that this improvement in serving efficiency.” 不对,原文是“Throughput analysis further verifies that this improvement in serving efficiency.”?哦不对,原文是不是漏了?不对,看用户给的原文:“Throughput analysis further verifies that this improvement in serving efficiency.” 哦,可能是原文的表述,不管,保留。这句可以加strong? 8. “Analysis of more general calibration methods reveals further potential room for improvement.” 结论,加strong? 不对,但会不会加太多strong?规则说“重要句子可用”,所以选最核心的。 等下,再想,有没有需要划分的?比如,原文的内容是不是可以不用h2/h3?因为如果加h2的话需要标题,而原文没有,所以不能加,否则就是增内容。那是不是就用一个

包裹整段?不对,不对,再看用户给的正文,是不是我漏了什么?哦,没有,就是一整段英文。 不对,等下,再仔细看规则:“长文用

/

划分小节”,如果原文是长文,但原文没有小节标题,那是不是可以不用?因为没有的话可以不用,规则说“用”,是如果需要的话?不对,再想,会不会我误解了,小节的划分不需要标题,直接把内容分到h2下?不对,h2是标题标签,里面应该放标题文字。哦,对,h2是二级标题,所以必须有文字,而原文没有对应的标题文字,所以不能加,否则就是增内容。 那现在,处理: 首先,整段是一个自然段,用

包裹。然后里面的重要句子加strong。比如:

Speculative decoding accelerates large language model (LLM) inference by employing a lightweight draft model to propose draft tokens and allowing the target model to verify the new tokens in parallel to improve inference-time compute utilization. The speedup relies on the acceptance probability of draft tokens in target verification, which is directly related to the gap $\|p-q\|_1$ between the target distribution $p$ and the draft distribution $q$. In this paper, we study draft calibration of speculative decoding to improve the speedup of speculative decoding, where we employ post-hoc methods to calibrate the draft distribution to mitigate the distribution gap. We observe that though current community open-source draft models may learn the top candidate token correctly, they are generally underconfident compared to the target model, suggesting a consistent distribution mismatch. To mitigate the effect of this mismatch on the acceptance rate of the draft models, we try various post-hoc calibration methods, including standard temperature scaling and token-wise calibration. Our results suggest that a standard temperature scaling applied to the draft distribution improves the acceptance length by up to approximately 10\% with almost no additional cost across different tasks. Throughput analysis further verifies that this improvement in serving efficiency. Analysis of more general calibration methods reveals further potential room for improvement.

等下,但有没有需要拆分的?比如,原文是不是可以拆分为几个自然段?比如,前两句是背景,然后接下来是研究内容,然后是观察、方法、结果。但拆分自然段会不会改变原文?不,自然段的拆分只要不改变内容