Long Range Arena: Um Benchmark para Efficient Transformers
Long Range Arena: A Benchmark for Efficient Transformers
Long Range Arena: A Benchmark for Efficient Transformers
@misc{tay2020long,
title = {Long Range Arena: A Benchmark for Efficient Transformers},
author = {Yi Tay and Mostafa Dehghani and Samira Abnar and Yikang Shen and Dara Bahri and Philip Pham and Jinfeng Rao and Liu Yang and Sebastian Ruder and Donald Metzler},
year = {2020},
eprint = {2011.04006},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2011.04006}
}
Tay, Y., Dehghani, M., Abnar, S., Shen, Y., Bahri, D., Pham, P., Rao, J., Yang, L., Ruder, S., & Metzler, D. (2020). Long Range Arena: A Benchmark for Efficient Transformers [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2011.04006
TAY Y, DEHGHANI M, ABNAR S, et al. Long Range Arena: A Benchmark for Efficient Transformers[EB/OL]. (2020-11-08)[2026-11-30]. https://arxiv.org/abs/2011.04006.
Resumo
Transformers não escalam bem para longos comprimentos de sequência, em grande parte devido à complexidade quadrática da atenção auto. Nos últimos meses, uma vasta gama de Transformers eficientes e rápidos foi proposta para enfrentar este problema, frequentemente alegando qualidade de modelo superior ou comparável aos modelos Transformer padrão. Até o momento, não existe um consenso bem estabelecido sobre como avaliar esta classe de modelos. Além disso, a inconsistência no benchmarking em uma vasta gama de tarefas e conjuntos de dados torna difícil avaliar a qualidade relativa do modelo entre muitos modelos. Este artigo propõe um benchmark sistemático e unificado, LRA, focado especificamente na avaliação da qualidade do modelo em cenários de longo contexto. Nosso benchmark é um conjunto de tarefas consistindo em sequências variando de 1K a 16K tokens, abrangendo uma ampla gama de tipos de dados e modalidades, como texto, imagens naturais, imagens sintéticas e expressões matemáticas que exigem raciocínio de similaridade, estrutural e visuo-espacial. Avaliamos sistematicamente dez modelos Transformer de longo alcance bem estabelecidos (Reformers, Linformers, Linear Transformers, Sinkhorn Transformers, Performers, Synthesizers, Sparse Transformers e Longformers) em nosso novo conjunto de benchmarks. O LRA abre caminho para uma melhor compreensão desta classe de modelos Transformer eficientes, facilita mais pesquisas nesta direção e apresenta novas tarefas desafiadoras para serem enfrentadas. O código do nosso benchmark será liberado em https://github.com/google-research/long-range-arena.
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.