The End of Manual Decoding: Towards Truly End-to-End Language Models
本文提出了一种名为AutoDeco的新型语言模型架构,通过动态预测解码参数,实现了真正的“端到端”生成,并展示了其在多个基准测试中的优越性能。
更新于 2025-10-31。作者:Zhichao Wang、Dongyang Ma、Xinting Huang、Deng Cai、Tian Lan、Jiahao Xu、Haitao Mi、Xiaoying Tang、Yan Wang。
中文摘要
“端到端”标签对于大型语言模型来说是一种误称。在实践中,它们依赖于一个非可微的解码过程,这需要手动调整像温度和top-p这样的超参数,这个过程相当繁琐。本文介绍了一种名为AutoDeco的新型架构,它通过学习控制自己的解码策略,实现了真正的“端到端”生成。我们在标准的Transformer模型中加入了轻量级头部,在每个步骤中,它们动态地预测与下一个token的logits相关的上下文特定的温度和top-p值。这种方法将解码转化为一个参数化的、token级别的过程,允许模型在单次正向传播中自我调节其采样策略。通过对八个基准的大量实验,我们证明了AutoDeco不仅显著优于默认解码策略,而且还实现了与“破解测试集”得出的基准相当的性能——这是任何静态方法的实际上限。关键的是,我们发现了一种基于指令的解码控制的新兴能力:模型学会理解自然语言命令(例如,“用低随机性生成”),并根据token逐个调整其预测的温度和top-p值,开辟了一个可控制和交互式的大型语言模型解码的新范式。
英文摘要
The "end-to-end" label for LLMs is a misnomer. In practice, they depend on a non-differentiable decoding process that requires laborious, hand-tuning of hyperparameters like temperature and top-p. This paper introduces AutoDeco, a novel architecture that enables truly "end-to-end" generation by learning to control its own decoding strategy. We augment the standard transformer with lightweight heads that, at each step, dynamically predict context-specific temperature and top-p values alongside the next-token logits. This approach transforms decoding into a parametric, token-level process, allowing the model to self-regulate its sampling strategy within a single forward pass. Through extensive experiments on eight benchmarks, we demonstrate that AutoDeco not only significantly outperforms default decoding strategies but also achieves performance comparable to an oracle-tuned baseline derived from "hacking the test set"-a practical upper bound for any static method. Crucially, we uncover an emergent capability for instruction-based decoding control: the model learns to interpret natural language commands (e.g., "generate with low randomness") and adjusts its predicted temperature and top-p on a token-by-token basis, opening a new paradigm for steerable and interactive LLM decoding.
解读
一句话总结
本文提出了一种名为AutoDeco的新型语言模型架构,通过动态预测解码参数,实现了真正的“端到端”生成,并展示了其在多个基准测试中的优越性能。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:现有的语言模型(LLM)虽然在NLP领域广泛应用,但其生成文本的质量依赖于手动调整解码超参数,如温度和top-p,这个过程既耗时又费力,且对输出文本的创造性和准确性有负面影响。
- 现有方案不足:现有的解码策略依赖于静态、手动调整的超参数,无法动态适应不同的生成需求,导致效率低下且效果不佳。
- 研究目标:提出一种名为AutoDeco的新型架构,使LLM能够动态控制其解码过程,实现真正的“端到端”生成。
问题2:论文的核心创新点是什么?
- 技术创新:引入了AutoDeco架构,通过在标准Transformer模型中添加轻量级的预测头,动态预测每个步骤的上下文特定温度和top-p值。
- 方法改进:提出了一种可微分的“软”top-p机制,使解码过程成为参数化的、标记级别的流程,允许模型在单个正向传递中自我调节其采样策略。
- 优势:与现有方法相比,AutoDeco不仅显著优于默认解码策略,还达到了与专家调整基线相当的性能,并且能够通过自然语言命令进行解码控制。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在八个基准测试上进行了广泛的实验,包括数学推理和通用任务。
- 性能提升:AutoDeco在所有基准测试中均优于标准解码策略,与专家调整基线相当,甚至在某些情况下超过了基线。
- 对比结果:与Greedy Search和Default Sampling等基线方法相比,AutoDeco在Pass@1准确率上取得了显著提升。
问题4:这个研究的实际应用价值是什么?
- 应用场景:AutoDeco可以应用于各种需要高质量文本生成的场景,如问答系统、文本摘要、机器翻译等。
- 实施建议:AutoDeco可以轻松集成到现有的LLM中,只需对用户代码进行微小的修改。
- 局限与展望:AutoDeco目前还不能实现精确的控制,未来可以通过联合训练基模型和AutoDeco头来进一步提高控制精度。
来源
机器可读索引:llms.txt