The NLP Task Effectiveness of Long-Range Transformers

Guanghui Qin, Yukun Feng, Benjamin Van Durme


Abstract
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.
Anthology ID:
2023.eacl-main.273
Volume:
Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics
Month:
May
Year:
2023
Address:
Dubrovnik, Croatia
Editors:
Andreas Vlachos, Isabelle Augenstein
Venue:
EACL
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
3774–3790
Language:
URL:
https://aclanthology.org/2023.eacl-main.273
DOI:
10.18653/v1/2023.eacl-main.273
Bibkey:
Cite (ACL):
Guanghui Qin, Yukun Feng, and Benjamin Van Durme. 2023. The NLP Task Effectiveness of Long-Range Transformers. In Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics, pages 3774–3790, Dubrovnik, Croatia. Association for Computational Linguistics.
Cite (Informal):
The NLP Task Effectiveness of Long-Range Transformers (Qin et al., EACL 2023)
Copy Citation:
PDF:
https://aclanthology.org/2023.eacl-main.273.pdf
Video:
 https://aclanthology.org/2023.eacl-main.273.mp4