用于基于transformer的文本生成的神经规则执行跟踪机
Neural Rule-Execution Tracking Machine For Transformer-Based Text Generation
摘要:
序列到序列(S2S)神经文本生成模型,特别是预先训练的模型(例如,BART和T5)在各种自然语言生成任务上表现出令人信服的性能。然而,这些模型的黑盒性质限制了它们在特定规则(例如,可控约束、先验知识)。以前的工作要么设计特定的模型结构(例如,对应于规则“生成的输出应该包括源输入中的某些词”的复制机制)或实现专门的推理算法(例如,受约束的束搜索)以通过文本生成执行特定规则。这些方法需要逐个案例地仔细设计,并且难以并发地支持多个规则。在本文中,我们提出了一种名为神经规则执行跟踪机的新模块,该模块可以配备到各种基于变压器的生成器中,以同时利用多个规则来指导神经生成模型,以统一和可扩展的方式实现卓越的生成性能。多个基准测试的实验结果验证了该模型在可控文本生成和一般文本生成方面的有效性。
英文摘要:
Sequence-to-Sequence (S2S) neural text generation models, especially the pre-trained ones (e.g., BART and T5), have exhibited compelling performance on various natural language generation tasks. However, the black-box nature of these models limits their application in tasks where specific rules (e.g., controllable constraints, prior knowledge) need to be executed. Previous works either design specific model structure (e.g., Copy Mechanism corresponding to the rule "the generated output should include certain words in the source input") or implement specialized inference algorithm (e.g., Constrained Beam Search) to execute particular rules through the text generation. These methods require careful design case-by-case and are difficult to support multiple rules concurrently. In this paper, we propose a novel module named Neural Rule-Execution Tracking Machine that can be equipped into various transformer-based generators to leverage multiple rules simultaneously to guide the neural generation model for superior generation performance in a unified and scalable way. Extensive experimental results on several benchmarks verify the effectiveness of our proposed model in both controllable and general text generation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。