arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.00748cs.CLcs.AIcs.LG
收藏

基于短文本模型的高效长文本理解

Efficient Long-Text Understanding with Short-Text Models

Tel-Aviv University(特拉维夫大学)

Maor Ivgi, Uri Shaham, Jonathan Berant

摘要:

基于transformer的预训练语言模型(LM)在自然语言理解中无处不在,但由于其二次复杂性,无法应用于故事,科学文章和长文档等长序列。虽然已经提出了无数高效的Transformer变体,但它们通常基于自定义实现,需要从头开始进行昂贵的预训练。在这项工作中,我们提出了SLED:滑动编码器和解码器,这是一种处理长序列的简单方法,可以重复使用并利用经过实战测试的短文本预训练LM。具体来说,我们将输入划分为重叠的块,使用短文本LM编码器对每个块进行编码,并使用预训练的解码器来融合块之间的信息(解码器融合)。我们通过对照实验说明,SLED提供了一个可行的策略,长文本的理解和评估我们的方法上SCROLLS,一个基准,在广泛的语言理解任务的七个数据集。我们发现,SLED与大50倍的专用模型相比具有竞争力,并且需要专门且昂贵的预训练步骤。

英文摘要:

Transformer-based pretrained language models (LMs) are ubiquitous across natural language understanding, but cannot be applied to long sequences such as stories, scientific articles and long documents, due to their quadratic complexity. While a myriad of efficient transformer variants have been proposed, they are typically based on custom implementations that require expensive pretraining from scratch. In this work, we propose SLED: SLiding-Encoder and Decoder, a simple approach for processing long sequences that re-uses and leverages battle-tested short-text pretrained LMs. Specifically, we partition the input into overlapping chunks, encode each with a short-text LM encoder and use the pretrained decoder to fuse information across chunks (fusion-in-decoder). We illustrate through controlled experiments that SLED offers a viable strategy for long text understanding and evaluate our approach on SCROLLS, a benchmark with seven datasets across a wide range of language understanding tasks. We find that SLED is competitive with specialized models that are up to 50x larger and require a dedicated and expensive pretraining step.

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

↑