arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.22788cs.LGcs.AIcs.ET
收藏

下一个 token 还是向量?学习解码的距离

Next Token or Vector? Learning How Far to Decode

Microsoft(微软);University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校)

Sai Sreenivas Chintha, Chidera Biringa, Rishab Sharma, Anusha Agrawal, Prachi Badarayani, Gemma Zhang, Nigel Boachie Kumankumah, Marco Ayala, Sulaiman Vesal

AI总结:

针对自回归解码每次仅生成单 token 的局限,提出上下文自适应解码(CADENCE),通过高斯预测头、学习型路由等机制适配生成粒度,在 Llama-3.1-8B-Instruct 上实现最高 1.3 倍的生成吞吐量提升。

摘要:

标准自回归解码每次仅推进一个 token,即便可联合预测后续多个 token。我们提出 CADENCE(上下文自适应解码),一种学习草拟内容与草拟距离的生成方法:高斯预测头将未来片段表示为连续潜在向量,共享解码器将选中的向量并行转换为 token 预测;学习型路由从模型自身隐藏状态与预测的高斯参数中选择预测长度,将生成粒度适配当前上下文,单 token 生成为 fallback 方案;主干网络验证每个提议的延续,保留与自身贪心预测匹配的前缀。在 Llama-3.1-8B-Instruct 上针对 Alpaca、GSM8K 和 HumanEval 的实验显示,路由选中的位置比在所有地方应用对应预测长度具有更高的草稿接受率,CADENCE 的生成吞吐量比标准贪心解码最高提升 1.3 倍。

英文摘要:

Standard autoregressive decoding advances one token at a time, even when several upcoming tokens can be predicted together. We propose CADENCE (Context-Adaptive DEcoding), a generation method that learns both what to draft and how far to draft. Gaussian prediction heads represent future spans as continuous latent vectors, and a shared decoder converts the selected vector into token predictions in parallel. A learned router selects the prediction length from the model's own hidden states and predicted Gaussian parameters, adapting generation granularity to the current context with single-token generation as a fallback. The backbone verifies each proposed continuation and retains the prefix that matches its greedy predictions. Experiments with Llama-3.1-8B-Instruct on Alpaca, GSM8K, and HumanEval show that router-selected positions yield higher draft acceptance than applying the corresponding prediction length everywhere. CADENCE achieves up to 1.3x higher generation throughput than standard greedy decoding.

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

↑