HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Efficient Long-Text Understanding with Short-Text Models

Maor Ivgi Uri Shaham Jonathan Berant

Efficient Long-Text Understanding with Short-Text Models

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.

Code Repositories

mivg/sled
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
long-range-modeling-on-scrollsBART-large SLED
Avg.: 37.99
CNLI: 87.3
GovRep: 57.5 / 26.3 / 27.4
Nrtv: 24.1
QALT EM-T/H: 34.8 / 34.8
QMSum: 34.2 / 11.0 / 22.0
Qspr: 46.9
SumScr: 35.2 / 8.7 / 19.4

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp