Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Long Range Arena: A Benchmark for Efficient Transformers

About

Transformers do not scale very well to long sequence lengths largely because of quadratic self-attention complexity. In the recent months, a wide spectrum of efficient, fast Transformers have been proposed to tackle this problem, more often than not claiming superior or comparable model quality to vanilla Transformer models. To this date, there is no well-established consensus on how to evaluate this class of models. Moreover, inconsistent benchmarking on a wide spectrum of tasks and datasets makes it difficult to assess relative model quality amongst many models. This paper proposes a systematic and unified benchmark, LRA, specifically focused on evaluating model quality under long-context scenarios. Our benchmark is a suite of tasks consisting of sequences ranging from $1K$ to $16K$ tokens, encompassing a wide range of data types and modalities such as text, natural, synthetic images, and mathematical expressions requiring similarity, structural, and visual-spatial reasoning. We systematically evaluate ten well-established long-range Transformer models (Reformers, Linformers, Linear Transformers, Sinkhorn Transformers, Performers, Synthesizers, Sparse Transformers, and Longformers) on our newly proposed benchmark suite. LRA paves the way towards better understanding this class of efficient Transformer models, facilitates more research in this direction, and presents new challenging tasks to tackle. Our benchmark code will be released at https://github.com/google-research/long-range-arena.

Yi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen, Dara Bahri, Philip Pham, Jinfeng Rao, Liu Yang, Sebastian Ruder, Donald Metzler• 2020

Related benchmarks

TaskDatasetResultRank
Language ModelingWikiText-103 (test)
Perplexity20.51
524
Long-range sequence modelingLong Range Arena (LRA)
Text Accuracy65.9
164
Long-range sequence modelingLong Range Arena (LRA) (test)
Accuracy (Avg)55.83
158
Density EstimationCIFAR-10 (test)
Bits/dim3.47
134
Long sequence classificationLRA (Long Range Arena) (test)
Average Accuracy65.9
92
Efficiency AnalysisLong Range Arena (LRA)
Steps per second98.28
84
Pixel-by-pixel Image ClassificationPermuted Sequential MNIST (pMNIST) (test)
Accuracy97.9
79
Sequential Image ClassificationS-MNIST (test)
Accuracy98.9
70
Univariate long sequence time-series forecastingETTh2
MSE2.03
70
Long-sequence modelingLong Range Arena (LRA) v1 (test)
ListOps37.25
66
Showing 10 of 51 rows

Other info

Code

Follow for update