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

跨认知领域接受动态的推测解码

Acceptance Dynamics Across Cognitive Domains in Speculative Decoding

College of Engineering, Al Ain University Abu Dhabi, United Arab Emirates(阿联酋阿因大学工程学院)

Seifeldin Abdellatif

AI总结:

本文研究了基于树的推测解码接受动态,分析了不同NLP任务领域对接受概率的影响,发现任务类型比树深度更能预测接受率,且聊天领域表现出较高的熵和接受率。

摘要:

推测解码加速了大语言模型(LLM)的推理过程。它使用一个小的草案模型提出一个未来token的树。一个更大的目标模型然后在单次批量前向传递中验证这些token。尽管对推测方法的研究日益增多,但任务的认知特征如何影响接受概率仍鲜有探索。我们进行了基于树的推测解码接受动态的实证研究。我们的研究覆盖了四个well-established NLP基准领域:代码生成、数学推理、逻辑推理和开放性聊天。为此,我们使用TinyLlama-1.1B作为草案模型,与Llama-2-7B-Chat-GPTQ作为目标模型。从200个提示中收集的超过99,768个推测节点,我们推导出各领域的接受率、预期接受长度、深度接受曲线和熵-接受相关性。我们发现任务类型比树深度更能预测接受率。此外,只有聊天领域持续产生超过1.0个token每步的预期接受长度。我们还显示,熵-接受相关性在所有领域内始终为负但较弱(rho在[-0.20, -0.15])。反直觉的是,聊天领域产生了最高的熵却也具有最高的接受率。我们归因于RLHF对齐的注册的词法可预测性。这些发现对领域感知的推测预算和草案模型选择策略有直接的影响。索引术语--推测解码,大语言模型推理,树注意力,草案模型,接受概率,LLM效率

英文摘要:

Speculative decoding accelerates large language model (LLM) inference. It uses a small draft model to propose a tree of future tokens. A larger target model then verifies these tokens in a single batched forward pass. Despite the growing body of work on speculative methods, the degree to which the cognitive characteristics of a task affect acceptance probability remains largely unexplored. We present an empirical study of tree-based speculative decoding acceptance dynamics. Our study spans four well-established NLP benchmark domains: code generation, mathematical reasoning, logical reasoning, and open-ended chat. For this, we use TinyLlama-1.1B as the draft model against Llama-2-7B-Chat-GPTQ as the target. Over 99,768 speculative nodes collected from 200 prompts, we derive per-domain acceptance rates, expected accepted lengths, depth-acceptance profiles, and entropy-acceptance correlations. We find that task type is a stronger predictor of acceptance than tree depth. Furthermore, only the chat domain consistently yields an expected accepted length exceeding 1.0 token per step. We also show that the entropy-acceptance correlation is consistently negative but weak across all domains (rho in [-0.20, -0.15]). Counterintuitively, chat produces the highest entropy yet the highest acceptance rate. We attribute this divergence to the lexical predictability of RLHF-aligned register. These findings have direct implications for domain-aware speculation budgets and draft-model selection strategies. Index Terms--speculative decoding, large language model inference, tree attention, draft model, acceptance probability, LLM efficiency

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

↑