What Context Features Can Transformer Language Models Use?

Joe O’Connor, Jacob Andreas


Abstract
Transformer-based language models benefit from conditioning on contexts of hundreds to thousands of previous tokens. What aspects of these contexts contribute to accurate model prediction? We describe a series of experiments that measure usable information by selectively ablating lexical and structural information in transformer language models trained on English Wikipedia. In both mid- and long-range contexts, we find that several extremely destructive context manipulations—including shuffling word order within sentences and deleting all words other than nouns—remove less than 15% of the usable information. Our results suggest that long contexts, but not their detailed syntactic and propositional content, are important for the low perplexity of current transformer language models.
Anthology ID:
2021.acl-long.70
Volume:
Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers)
Month:
August
Year:
2021
Address:
Online
Editors:
Chengqing Zong, Fei Xia, Wenjie Li, Roberto Navigli
Venues:
ACL | IJCNLP
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
851–864
Language:
URL:
https://aclanthology.org/2021.acl-long.70
DOI:
10.18653/v1/2021.acl-long.70
Bibkey:
Cite (ACL):
Joe O’Connor and Jacob Andreas. 2021. What Context Features Can Transformer Language Models Use?. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 851–864, Online. Association for Computational Linguistics.
Cite (Informal):
What Context Features Can Transformer Language Models Use? (O’Connor & Andreas, ACL-IJCNLP 2021)
Copy Citation:
PDF:
https://aclanthology.org/2021.acl-long.70.pdf
Video:
 https://aclanthology.org/2021.acl-long.70.mp4
Code
 lingo-mit/context-ablations
Data
WikiText-103WikiText-2