arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.00053cs.CL
收藏

通过学习自校正生成序列

Generating Sequences by Learning to Self-Correct

Allen Institute for Artificial Intelligence(艾伦人工智能研究所);Paul G. Allen School of Computer Science & Engineering, University of Washington(华盛顿大学保罗·G·艾伦计算机科学与工程学院);Center for Language and Speech Processing, Johns Hopkins University(约翰斯·霍普金斯大学语言与语音处理中心)

Sean Welleck, Ximing Lu, Peter West, Faeze Brahman, Tianxiao Shen, Daniel Khashabi, Yejin Choi

摘要:

序列生成应用程序需要满足语义约束,例如确保程序正确、使用某些关键字或避免不需要的内容。语言模型,无论是微调或提示与Few-Shot示范,经常违反这些约束,并缺乏一种机制,迭代修改其输出。此外,一些强大的语言模型是极端规模或不可访问的,这使得它的效率低,如果不是不可行的,更新其参数的任务特定的适应。我们提出了自校正,一种方法,从一个单独的校正器,学习迭代地纠正不完美的代的不完美的基础生成器(现成的语言模型或监督序列到序列模型)。为了训练校正器,我们提出了一个在线训练过程,可以使用标量或自然语言反馈中间不完美的一代。我们表明,自校正改进后,在三个不同的生成任务的基础生成器-数学程序合成,词汇约束生成,和毒性控制-即使当校正器是远远小于基础生成器。

英文摘要:

Sequence generation applications require satisfying semantic constraints, such as ensuring that programs are correct, using certain keywords, or avoiding undesirable content. Language models, whether fine-tuned or prompted with few-shot demonstrations, frequently violate these constraints, and lack a mechanism to iteratively revise their outputs. Moreover, some powerful language models are of extreme scale or inaccessible, making it inefficient, if not infeasible, to update their parameters for task-specific adaptation. We present Self-Correction, an approach that decouples an imperfect base generator (an off-the-shelf language model or supervised sequence-to-sequence model) from a separate corrector that learns to iteratively correct imperfect generations. To train the corrector, we propose an online training procedure that can use either scalar or natural language feedback on intermediate imperfect generations. We show that Self-Correction improves upon the base generator in three diverse generation tasks - mathematical program synthesis, lexically-constrained generation, and toxicity control - even when the corrector is much smaller than the base generator.

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

↑