arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.07525cs.CLcs.AI
收藏

先思考再约束:大型语言模型的统一解码框架

Thinking Before Constraining: A Unified Decoding Framework for Large Language Models

Télécom Paris, Institut Polytechnique de Paris(巴黎电信学院,巴黎理工学院);Nokia Bell Labs(诺基亚贝尔实验室);Nokia(诺基亚)

Ngoc Trinh Hung Nguyen, Alonso Silva, Laith Zumot, Liubov Tupikina, Armen Aghasaryan, Mehwish Alam

AI总结:

提出In-Writing混合方法,通过触发令牌将自由形式推理与结构化解码解耦,在分类和推理任务上准确率提升高达27%。

摘要:

自然生成允许大型语言模型(LLMs)产生具有丰富推理的自由形式响应,但缺乏结构使得输出难以验证。相反,约束解码确保标准化格式,但可能在生成过程中过早施加约束,从而无意中限制推理能力。我们提出一种混合方法,即In-Writing,它在单次调用中结合了自由形式推理和结构化生成。模型首先执行无约束推理,仅在生成触发令牌后应用结构化解码,明确地将推理与格式化解耦。我们证明,我们的触发令牌策略能够几乎消除过早触发,即约束解码中断正在进行推理的失败模式。在涵盖分类和推理任务的多个数据集上的评估表明,我们的方法优于现有技术,在自然生成基础上准确率提升高达27%。我们的代码可在https://github.com/Nokia-Bell-Labs/InWriting获取。

英文摘要:

Natural generation allows Large Language Models (LLMs) to produce free-form responses with rich reasoning, yet the lack of structure makes outputs difficult to verify. Conversely, constrained decoding ensures standardized formats but can inadvertently restrict reasoning capabilities by imposing constraints too early in the generation process. We propose a hybrid approach, namely In-Writing, that combines free-form reasoning and structured generation in a single call. The model first performs unconstrained reasoning and only applies structured decoding after a trigger token is generated, explicitly decoupling reasoning from formatting. We establish that our trigger-token strategies are able to virtually eradicate premature triggering, a failure mode in which constrained decoding interrupts on-going reasoning. Evaluations across diverse datasets covering classification and reasoning tasks demonstrate that our approach outperforms the state-of-the-art by achieving accuracy gains of up to 27% over natural generation. Our code are available at: https://github.com/Nokia-Bell-Labs/InWriting.

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

↑