HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Long Range Arena: A Benchmark for Efficient Transformers

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

Long Range Arena: A Benchmark for Efficient Transformers

Abstract

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.

Code Repositories

guyd1995/lra-benchmark
pytorch
Mentioned in GitHub
guyd1995/lra-benchmarks
pytorch
Mentioned in GitHub
google-research/bigbird
tf
Mentioned in GitHub
dar-tau/lra-benchmark
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
long-range-modeling-on-lraLinear Trans.
Avg: 50.55
Image: 42.34
ListOps: 16.13
Pathfinder: 75.3
Retrieval: 53.09
Text: 65.9
long-range-modeling-on-lraSparse Trans.
Avg: 51.24
Image: 44.24
ListOps: 17.07
Pathfinder: 71.71
Retrieval: 59.59
Text: 63.58
long-range-modeling-on-lraTransformer
Avg: 54.39
Image: 42.44
ListOps: 36.37
Pathfinder: 71.4
Retrieval: 57.46
Text: 64.27
long-range-modeling-on-lraPerformer
Avg: 51.41
Image: 42.77
ListOps: 18.01
Pathfinder: 77.05
Retrieval: 53.82
Text: 65.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