Saved in:
Bibliographic Details
Main Authors: Qin, Guanghui, Feng, Yukun, Van Durme, Benjamin
Format: Preprint
Published: 2022
Subjects:
Online Access:https://arxiv.org/abs/2202.07856
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913600219643904
author Qin, Guanghui
Feng, Yukun
Van Durme, Benjamin
author_facet Qin, Guanghui
Feng, Yukun
Van Durme, Benjamin
contents Transformer models cannot easily scale to long sequences due to their O(N^2) time and space complexity. This has led to Transformer variants seeking to lower computational complexity, such as Longformer and Performer. While such models have theoretically greater efficiency, their effectiveness on real NLP tasks has not been well studied. We benchmark 7 variants of Transformer models on 5 difficult NLP tasks and 7 datasets. We design experiments to isolate the effect of pretraining and hyperparameter settings, to focus on their capacity for long-range attention. Moreover, we present various methods to investigate attention behaviors to illuminate model details beyond metric scores. We find that the modified attention in long-range transformers has advantages on content selection and query-guided decoding, but they come with previously unrecognized drawbacks such as insufficient attention to distant tokens and accumulated approximation error.
format Preprint
id arxiv_https___arxiv_org_abs_2202_07856
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle The NLP Task Effectiveness of Long-Range Transformers
Qin, Guanghui
Feng, Yukun
Van Durme, Benjamin
Computation and Language
Machine Learning
Transformer models cannot easily scale to long sequences due to their O(N^2) time and space complexity. This has led to Transformer variants seeking to lower computational complexity, such as Longformer and Performer. While such models have theoretically greater efficiency, their effectiveness on real NLP tasks has not been well studied. We benchmark 7 variants of Transformer models on 5 difficult NLP tasks and 7 datasets. We design experiments to isolate the effect of pretraining and hyperparameter settings, to focus on their capacity for long-range attention. Moreover, we present various methods to investigate attention behaviors to illuminate model details beyond metric scores. We find that the modified attention in long-range transformers has advantages on content selection and query-guided decoding, but they come with previously unrecognized drawbacks such as insufficient attention to distant tokens and accumulated approximation error.
title The NLP Task Effectiveness of Long-Range Transformers
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2202.07856