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

DECIDER:一种用于语言生成的双系统规则可控解码框架

DECIDER: A Dual-System Rule-Controllable Decoding Framework for Language Generation

Key Laboratory of Brain Health Intelligent Evaluation and Intervention, Ministry of Education, School of Medical Technology, Bejing Institute of Technology (BIT), China(脑健康智能评估与干预关键实验室,教育部,医学技术学院,北京理工大学(BIT),中国);School of Computer Science and Technology, BIT, China(计算机科学与技术学院,北京理工大学(BIT),中国);Nanjing University of Aeronautics and Astronautics, Nanjing, China(南京航空航天大学,南京,中国)

Chen Xu, Tian Lan, Yu Ji, Changlong Yu, Wei Wang, Jun Gao, Qunxi Dong, Kun Qian, Piji Li, Wei Bi, Bin Hu

AI总结:

本文提出DECIDER框架,将一阶逻辑推理器与LLMs结合,通过双系统决策引导生成,在CommonGen和PersonaChat上验证了其能更符合人类逻辑地控制文本生成。

摘要:

受约束解码方法旨在推理时控制预训练大语言模型(LLMs或PLMs)为各种任务生成文本的含义或风格。然而,这些方法往往通过贪婪且显式地选择目标来引导合理的续写。尽管满足了任务要求,但这些方法可能忽视人类在朝向此类目标时会隐式遵循的某些通用且自然的逻辑。受认知双过程理论启发,本文提出了一种新颖的解码框架DECIDER,其中基础LLMs配备了一阶逻辑(FOL)推理器以表达和评估规则,并配有一个决策函数来合并两个系统的输出以引导生成。与以往的受约束解码不同,DECIDER将对目标特定词的鼓励转化为对所有满足若干高层级规则的词的鼓励,使我们能够以编程方式将逻辑集成到LLMs中。在CommonGen和PersonaChat上的实验表明,DECIDER能有效遵循给定的FOL规则,以更接近人类且受逻辑控制的方式引导LLMs。

英文摘要:

Constrained decoding approaches aim to control the meaning or style of text generated by the pre-trained large language models (LLMs or also PLMs) for various tasks at inference time. However, these methods often guide plausible continuations by greedily and explicitly selecting targets. Though fulfilling the task requirements, these methods may overlook certain general and natural logics that humans would implicitly follow towards such targets. Inspired by cognitive dual-process theory, in this work, we propose a novel decoding framework DECIDER where the base LLMs are equipped with a First-Order Logic (FOL) reasoner to express and evaluate the rules, along with a decision function that merges the outputs of both systems to guide the generation. Unlike previous constrained decodings, DECIDER transforms the encouragement of target-specific words into all words that satisfy several high-level rules, enabling us to programmatically integrate our logic into LLMs. Experiments on CommonGen and PersonaChat demonstrate that DECIDER effectively follows given FOL rules to guide LLMs in a more human-like and logic-controlled manner.

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

↑