arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2310.09930cs.CL
收藏

FiLM:用于任意顺序生成的填充语言模型

FiLM: Fill-in Language Models for Any-Order Generation

University of Washington(华盛顿大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Edinburgh(爱丁堡大学)

Tianxiao Shen, Hao Peng, Ruoqi Shen, Yao Fu, Zaid Harchaoui, Yejin Choi

AI总结:

提出FiLM填充语言模型,支持任意位置生成,通过Beta分布掩码训练增强生成能力,在填充任务上优于现有方法,且具备可扩展性。

摘要:

语言模型已成为当今人工智能系统的基石。然而,其占主导地位的从左到右生成方式限制了双向上下文的使用,而双向上下文对于涉及在中间填充文本的任务至关重要。我们提出了填充语言模型(FiLM),这是一种新的语言建模方法,允许在任何位置灵活生成,而不必遵循特定的生成顺序。其训练通过采用从Beta分布中采样的不同掩码概率来扩展掩码语言建模目标,以增强FiLM的生成能力。在推理过程中,FiLM可以无缝插入缺失的短语、句子或段落,确保输出流畅且与周围上下文连贯。在自动评估和人工评估中,FiLM均优于依赖在重新排列的文本片段上训练的从左到右语言模型的现有填充方法。FiLM易于实现,既可以从头训练,也可以从左到右语言模型微调而来。值得注意的是,随着模型规模的增大,FiLM的困惑度接近类似规模的强从左到右语言模型,这表明了FiLM的可扩展性及其作为大型语言模型的潜力。

英文摘要:

Language models have become the backbone of today's AI systems. However, their predominant left-to-right generation limits the use of bidirectional context, which is essential for tasks that involve filling text in the middle. We propose the Fill-in Language Model (FiLM), a new language modeling approach that allows for flexible generation at any position without adhering to a specific generation order. Its training extends the masked language modeling objective by adopting varying mask probabilities sampled from the Beta distribution to enhance the generative capabilities of FiLM. During inference, FiLM can seamlessly insert missing phrases, sentences, or paragraphs, ensuring that the outputs are fluent and are coherent with the surrounding context. In both automatic and human evaluations, FiLM outperforms existing infilling methods that rely on left-to-right language models trained on rearranged text segments. FiLM is easy to implement and can be either trained from scratch or fine-tuned from a left-to-right language model. Notably, as the model size grows, FiLM's perplexity approaches that of strong left-to-right language models of similar sizes, indicating FiLM's scalability and potential as a large language model.

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

↑