复制还是不复制:通过内在模型信号控制推测解码 To Copy or Not to Copy: Controlling Speculative Decoding via Intrinsic Model Signals 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-09-17
⬇️ 3 次下载
👁️ 预览文献
💡 AI 中文简介
大语言模型推理时常用推测解码加速,但神经草稿和复制草稿各有优劣:前者通用,后者在重复文本上更快,却容易误判。本研究提出SwitchSD,利用模型内部信号训练轻量探针,精准识别真正需要复制的意图(AUC>0.99),从而动态切换两种策略。在Llama和Qwen上,吞吐量比EAGLE3提升高达15%,让复制从粗糙启发式变为模型感知的可靠机制。
领域自然语言处理 / 大语言模型推理加速
适合谁读需要一定专业背景(熟悉LLM推理与推测解码)
核心贡献1. 发现现有复制方法因表面n-gram重叠导致误触发,提出将复制视为潜在控制信号;2. 设计SwitchSD框架,通过内部表示探针精准识别复制意图,实现神经草稿与复制草稿的动态切换。
关键数据复制意图检测AUC > 0.99;在Llama和Qwen系列上,吞吐量比EAGLE3等最优基线提升最高15%。
推荐理由如果你关心大模型推理加速,这篇工作用内部信号巧妙解决了复制与神经草稿的切换难题,实测提升显著,值得一读。
关键词["推测解码", "大语言模型推理", "自适应解码", "复制意图检测", "模型内部表示", "吞吐量优化"]

原文摘要

查看英文原文摘要

Speculative Decoding (SD) has significantly accelerated Large Language Model (LLM) inference, yet existing approaches face a fundamental tradeoff between two drafting strategies: neural drafting and context-based copying. Neural drafts (e.g., EAGLE3) provide robust performance across diverse text settings, while copy-based methods achieve higher speedups in copy-intensive regimes by generating candidates faster and exploiting long repetition spans for near-perfect speculation. We analyze existing copy-based methods and find that they are prone to accidental repetitions where surface-level n-gram overlap does not reflect a structural intent to copy, leading to false-positive triggers that ultimately degrade throughput. We introduce SwitchSD, an adaptive framework that treats copying as a latent control signal of the LLM. By training lightweight probes on the target model's internal representations, SwitchSD identifies genuine copy-intent with high precision (AUC > 0.99). This allows the system to dynamically switch between neural drafting (e.g., EAGLE) and context-based copying. Our results across Llama and Qwen families demonstrate throughput gains of up to 15% over state-of-the-art baselines like EAGLE3, effectively turning copying from a noisy heuristic into a principled, model-aware decoding regime.