arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.20175cs.CL
收藏

TreeSpark:学习为投机解码草拟待验证的树

TreeSpark: Learning to Draft the Trees You Verify for Speculative Decoding

School of Information, Renmin University of China(中国人民大学信息学院);National Key Lab for Novel Software Technology, Nanjing University(南京大学计算机软件新技术国家重点实验室);Huawei Technologies Ltd.(华为技术有限公司)

Jihao Zhao, Qianyu Jiang, Shuaishuai Zu, Pengfei Li, Guanghuan Fang, Ben Feng, Biao Qin, Zhibin Wang, Baochuan Yang

AI总结:

TreeSpark是扩展DSpark的统一训练推理框架,通过构建候选树优化投机解码,在多基准上较DSpark显著提升接受长度与吞吐量。

摘要:

DFlash和DSpark等并行起草器可降低提案延迟,但早期不匹配限制了每个块的可接受量。保留替代方案会引入父状态和候选选择,而参考条件训练无法直接监督这些内容。我们提出TreeSpark,这是一个扩展半自回归DSpark架构的统一训练与推理框架。它通过一次骨干网络前向传播构建父条件候选树,并在训练过程中重放其扩展、剪枝和预算打包操作。生存负对数似然通过参考衍生的路径质量对保留的边进行加权,而截断覆盖铰链则在局部选择边界附近促进目标重要的替代方案。这两个目标均复用参考链的目标分布,无需额外的目标前向传播。我们使用Qwen3-4B和Qwen3-8B在9个通用基准和6个写作领域评估贪心解码。在所有目标和套件中,TreeSpark较DSpark将平均接受长度提升23.4%至31.6%,平均单请求吞吐量提升15.1%至25.0%,批量Qwen3-4B吞吐量提升12.6%至17.2%。在固定注意力容量和推理策略下,所提出的监督方法进一步使Qwen3-4B的平均接受长度提升约6.4%,平均系统吞吐量提升4.2%至5.0%。

英文摘要:

Parallel drafters such as DFlash and DSpark reduce proposal latency, but early mismatches limit how much of each block can be accepted. Retaining alternatives introduces parent states and candidate choices that reference-conditioned training does not directly supervise. We introduce TreeSpark, a unified training and inference framework extending the semi-autoregressive DSpark architecture. It constructs parent-conditioned candidate trees from one backbone pass and replays their expansion, pruning, and budgeted packing during training. Survival negative log-likelihood weights retained edges by reference-derived path mass, while a capped coverage hinge promotes target-important alternatives near local selection boundaries. Both objectives reuse reference-chain target distributions without additional target forward passes. We evaluate greedy decoding with Qwen3-4B and Qwen3-8B on nine general benchmarks and six writing domains. Across targets and suites, TreeSpark improves mean acceptance length over DSpark by 23.4% to 31.6% and mean single-request throughput by 15.1% to 25.0%. Batched Qwen3-4B throughput improves by 12.6% to 17.2%. At fixed attention capacity and inference policy, the proposed supervision further improves mean acceptance length by approximately 6.4% and mean system throughput by 4.2% to 5.0% on Qwen3-4B.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑