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

适应预训练的文本到文本模型用于长文本序列

Adapting Pretrained Text-to-Text Models for Long Text Sequences

Meta AI

Wenhan Xiong, Anchit Gupta, Shubham Toshniwal, Yashar Mehdad, Wen-tau Yih

摘要:

我们提出了一个实证研究,以适应现有的预训练文本到文本模型的长序列输入。通过沿着预训练管道的三个轴-模型架构,优化目标和预训练语料库进行全面研究,我们提出了一种有效的方法来从现有的短上下文模型构建长上下文模型。具体来说,我们将Transformers中的全部注意力替换为池化增强的块式注意力,并使用具有不同长度跨度的掩蔽跨度预测任务对模型进行预训练。在预训练语料库方面,我们发现使用来自大型开放域语料库的随机连接的短文档比使用现有的长文档语料库具有更好的性能,而现有的长文档语料库通常在其域覆盖范围内受到限制。有了这些发现,我们建立了一个长上下文模型,在长文本QA任务上实现了有竞争力的性能,并在五个长文本摘要数据集上建立了最新的技术水平,通常比以前的方法具有更大的模型大小。我们的代码已在https://github.com/facebookresearch/bart_ls上发布。

英文摘要:

We present an empirical study of adapting an existing pretrained text-to-text model for long-sequence inputs. Through a comprehensive study along three axes of the pretraining pipeline -- model architecture, optimization objective, and pretraining corpus, we propose an effective recipe to build long-context models from existing short-context models. Specifically, we replace the full attention in transformers with pooling-augmented blockwise attention, and pretrain the model with a masked-span prediction task with spans of varying length. In terms of the pretraining corpus, we find that using randomly concatenated short-documents from a large open-domain corpus results in better performance than using existing long document corpora which are typically limited in their domain coverage. With these findings, we build a long-context model that achieves competitive performance on long-text QA tasks and establishes the new state of the art on five long-text summarization datasets, often outperforming previous methods with larger model sizes. Our code has been released at https://github.com/facebookresearch/bart_ls.

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

↑