NeuroLogic Decoding:带有谓词逻辑约束的(非)监督神经文本生成
NeuroLogic Decoding: (Un)supervised Neural Text Generation with Predicate Logic Constraints
摘要:
条件文本生成通常需要词汇约束,即,哪些词应该或不应该包含在输出文本中。虽然条件文本生成的主要方法是大规模预训练的语言模型,这些模型在特定于任务的训练数据上进行微调,但即使在大量特定于任务的示例的监督下,这些模型也无法可靠地学习遵循底层约束。我们提出了神经逻辑解码,一个简单而有效的算法,使神经语言模型-监督或不-生成流畅的文本,同时满足复杂的词汇约束。我们的方法是强大而有效的。它处理任何一组在谓词逻辑下可表达的词汇约束,而其渐近运行时相当于传统的束搜索。四个基准测试的实证结果表明,神经逻辑解码优于以前的方法,包括处理我们的约束子集的算法。此外,我们发现,神经逻辑解码的无监督模型往往优于传统解码的监督模型,即使后者是基于相当大的网络。我们的研究结果表明,大规模神经网络的细粒度可控生成和推理时间算法的承诺的限制。
英文摘要:
Conditional text generation often requires lexical constraints, i.e., which words should or shouldn't be included in the output text. While the dominant recipe for conditional text generation has been large-scale pretrained language models that are finetuned on the task-specific training data, such models do not learn to follow the underlying constraints reliably, even when supervised with large amounts of task-specific examples. We propose NeuroLogic Decoding, a simple yet effective algorithm that enables neural language models -- supervised or not -- to generate fluent text while satisfying complex lexical constraints. Our approach is powerful yet efficient. It handles any set of lexical constraints that is expressible under predicate logic, while its asymptotic runtime is equivalent to conventional beam search. Empirical results on four benchmarks show that NeuroLogic Decoding outperforms previous approaches, including algorithms that handle a subset of our constraints. Moreover, we find that unsupervised models with NeuroLogic Decoding often outperform supervised models with conventional decoding, even when the latter is based on considerably larger networks. Our results suggest the limit of large-scale neural networks for fine-grained controllable generation and the promise of inference-time algorithms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。