Efficient Long-Text Understanding with Short-Text Models

Maor Ivgi, Uri Shaham, Jonathan Berant
8/1/2022
cs.CLcs.AIcs.LG

No official code found. Best implementation: Mivg/SLED (70 stars, MIT, last commit 2023-05-14).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Mivg/SLEDCommunity100%
MIT

The official repository for Efficient Long-Text Understanding Using Short-Text Models (Ivgi et al., 2022) paper

709PythonJul 29, 20223 years agoMIT

Similar Papers

Cite this paper

@article{ivgi2022efficient,
  title  = {Efficient Long-Text Understanding with Short-Text Models},
  author = {Maor Ivgi and Uri Shaham and Jonathan Berant},
  year   = {2022},
  eprint = {2208.00748},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2208.00748v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2208.00748.svg)](https://codeofpaper.com/paper/2208.00748)

Discussion