{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,26]],"date-time":"2026-09-26T01:53:27Z","timestamp":1790387607964,"version":"4.1.0"},"reference-count":42,"publisher":"MIT Press","license":[{"start":{"date-parts":[[2022,9,8]],"date-time":"2022-09-08T00:00:00Z","timestamp":1662595200000},"content-version":"vor","delay-in-days":250,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["direct.mit.edu"],"crossmark-restriction":true},"short-container-title":[],"published-print":{"date-parts":[[2022,9,7]]},"abstract":"<jats:title>Abstract<\/jats:title><jats:p>Pretrained embeddings based on the Transformer architecture have taken the NLP community by storm. We show that they can mathematically be reframed as a sum of vector factors and showcase how to use this reframing to study the impact of each component. We provide evidence that multi-head attentions and feed-forwards are not equally useful in all downstream applications, as well as a quantitative overview of the effects of finetuning on the overall embedding space. This approach allows us to draw connections to a wide range of previous studies, from vector space anisotropy to attention weights.<\/jats:p>","DOI":"10.1162\/tacl_a_00501","type":"journal-article","created":{"date-parts":[[2022,9,8]],"date-time":"2022-09-08T13:57:29Z","timestamp":1662645449000},"page":"981-996","update-policy":"https:\/\/doi.org\/10.1162\/mitpressjournals.corrections.policy","source":"Crossref","is-referenced-by-count":10,"title":["How to Dissect a Muppet: The Structure of Transformer Embedding Spaces"],"prefix":"10.1162","volume":"10","author":[{"given":"Timothee","family":"Mickus","sequence":"first","affiliation":[{"name":"University of Helsinki, Finland. timothee.mickus@helsinki.fi"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Denis","family":"Paperno","sequence":"additional","affiliation":[{"name":"Utrecht University, The Netherlands. d.paperno@uu.nl"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Mathieu","family":"Constant","sequence":"additional","affiliation":[{"name":"Universit\u00e9 de Lorraine, CNRS,ATILF, France. Mathieu.Constant@univ-lorraine.fr"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"281","published-online":{"date-parts":[[2022,9,7]]},"reference":[{"key":"2022090813572084800_bib1","article-title":"Layer normalization","author":"Ba","year":"2016"},{"key":"2022090813572084800_bib2","article-title":"Neural machine translation by jointly learning to align and translate","volume-title":"3rd International Conference on Learning Representations","author":"Bahdanau","year":"2015"},{"key":"2022090813572084800_bib3","volume-title":"Natural Language Processing with Python: Analyzing Text with the Natural Language Toolkit","author":"Bird","year":"2009"},{"key":"2022090813572084800_bib4","article-title":"Man is to computer programmer as woman is to homemaker? Debiasing word embeddings","volume-title":"Advances in Neural Information Processing Systems","author":"Bolukbasi","year":"2016"},{"key":"2022090813572084800_bib5","first-page":"4171","article-title":"BERT: Pre-training of deep bidirectional transformers for language understanding","volume-title":"Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)","author":"Devlin","year":"2019"},{"key":"2022090813572084800_bib6","article-title":"Using BERT for word sense disambiguation","author":"Jiaju","year":"2019","journal-title":"CoRR"},{"key":"2022090813572084800_bib7","doi-asserted-by":"publisher","first-page":"55","DOI":"10.18653\/v1\/D19-1006","article-title":"How contextual are contextualized word representations? Comparing the geometry of BERT, ELMo, and GPT-2 embeddings","volume-title":"Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)","author":"Ethayarajh","year":"2019"},{"key":"2022090813572084800_bib8","doi-asserted-by":"crossref","DOI":"10.18653\/v1\/2022.emnlp-main.3","article-title":"Transformer feed-forward layers build predictions by promoting concepts in the vocabulary space","author":"Geva","year":"2022"},{"key":"2022090813572084800_bib9","doi-asserted-by":"publisher","first-page":"5484","DOI":"10.18653\/v1\/2021.emnlp-main.446","article-title":"Transformer feed-forward layers are key-value memories","volume-title":"Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing","author":"Geva","year":"2021"},{"key":"2022090813572084800_bib10","article-title":"Gaussian error linear units (GELU)","author":"Hendrycks","year":"2016","journal-title":"arXiv preprint arXiv:1606.08415"},{"key":"2022090813572084800_bib11","first-page":"4129","article-title":"A structural probe for finding syntax in word representations","volume-title":"Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)","author":"Hewitt","year":"2019"},{"key":"2022090813572084800_bib12","article-title":"An improved relative self-attention mechanism for transformer with application to music generation","author":"Huang","year":"2018","journal-title":"CoRR"},{"key":"2022090813572084800_bib13","first-page":"3543","article-title":"Attention is not explanation","volume-title":"Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)","author":"Jain","year":"2019"},{"key":"2022090813572084800_bib14","doi-asserted-by":"publisher","first-page":"3651","DOI":"10.18653\/v1\/P19-1356","article-title":"What does BERT learn about the structure of language?","volume-title":"Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics","author":"Jawahar","year":"2019"},{"key":"2022090813572084800_bib15","doi-asserted-by":"publisher","first-page":"7057","DOI":"10.18653\/v1\/2020.emnlp-main.574","article-title":"Attention is not only a weight: Analyzing transformers with vector norms","volume-title":"Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)","author":"Kobayashi","year":"2020"},{"key":"2022090813572084800_bib16","first-page":"79","article-title":"Europarl: A parallel corpus for statistical machine translation","volume-title":"Proceedings of Machine Translation Summit X: Papers","author":"Koehn","year":"2005"},{"key":"2022090813572084800_bib17","first-page":"199","article-title":"Building semantic concordances","volume-title":"WordNet: An Electronic Lexical Database, chapter 8","author":"Landes","year":"1998"},{"key":"2022090813572084800_bib18","article-title":"Decoupled weight decay regularization","volume-title":"International Conference on Learning Representations","author":"Loshchilov","year":"2019"},{"key":"2022090813572084800_bib19","doi-asserted-by":"publisher","first-page":"1412","DOI":"10.18653\/v1\/D15-1166","article-title":"Effective approaches to attention-based neural machine translation","volume-title":"Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing","author":"Luong","year":"2015"},{"key":"2022090813572084800_bib20","first-page":"279","article-title":"What do you mean, BERT?","volume-title":"Proceedings of the Society for Computation in Linguistics 2020","author":"Mickus","year":"2020"},{"key":"2022090813572084800_bib21","first-page":"746","article-title":"Linguistic regularities in continuous space word representations","volume-title":"Proceedings of the 2013 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies","author":"Mikolov","year":"2013"},{"issue":"8","key":"2022090813572084800_bib22","doi-asserted-by":"publisher","first-page":"1388","DOI":"10.1111\/j.1551-6709.2010.01106.x","article-title":"Composition in distributional models of semantics","volume":"34","author":"Mitchell","year":"2010","journal-title":"Cognitive Science"},{"key":"2022090813572084800_bib23","first-page":"2825","article-title":"Scikit-learn: Machine learning in Python","volume":"12","author":"Pedregosa","year":"2011","journal-title":"Journal of Machine Learning Research"},{"key":"2022090813572084800_bib24","doi-asserted-by":"publisher","first-page":"46","DOI":"10.18653\/v1\/2020.emnlp-demos.7","article-title":"Adapterhub: A framework for adapting transformers","volume-title":"Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP 2020): Systems Demonstrations","author":"Pfeiffer","year":"2020"},{"key":"2022090813572084800_bib25","doi-asserted-by":"publisher","first-page":"4782","DOI":"10.18653\/v1\/2020.acl-main.432","article-title":"Learning to deceive with attention-based explanations","volume-title":"Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics","author":"Pruthi","year":"2020"},{"key":"2022090813572084800_bib26","doi-asserted-by":"publisher","first-page":"287","DOI":"10.18653\/v1\/W18-5431","article-title":"An analysis of encoder representations in transformer-based machine translation","volume-title":"Proceedings of the 2018 EMNLP Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP","author":"Raganato","year":"2018"},{"key":"2022090813572084800_bib27","doi-asserted-by":"publisher","first-page":"784","DOI":"10.18653\/v1\/P18-2124","article-title":"Know what you don\u2019t know: Unanswerable questions for SQuAD","volume-title":"Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)","author":"Rajpurkar","year":"2018"},{"key":"2022090813572084800_bib28","doi-asserted-by":"publisher","first-page":"842","DOI":"10.1162\/tacl_a_00349","article-title":"A primer in BERTology: What we know about how BERT works","volume":"8","author":"Rogers","year":"2020","journal-title":"Transactions of the Association for Computational Linguistics"},{"key":"2022090813572084800_bib29","doi-asserted-by":"publisher","first-page":"2931","DOI":"10.18653\/v1\/P19-1282","article-title":"Is attention interpretable?","volume-title":"Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics","author":"Serrano","year":"2019"},{"key":"2022090813572084800_bib30","article-title":"Self-attention with relative position representations","author":"Shaw","year":"2018","journal-title":"CoRR"},{"key":"2022090813572084800_bib31","article-title":"Practical Bayesian optimization of machine learning algorithms","volume-title":"Advances in Neural Information Processing Systems","author":"Snoek","year":"2012"},{"key":"2022090813572084800_bib32","first-page":"138","article-title":"Results of the WNUT16 named entity recognition shared task","volume-title":"Proceedings of the 2nd Workshop on Noisy User-generated Text (WNUT)","author":"Strauss","year":"2016"},{"key":"2022090813572084800_bib33","doi-asserted-by":"publisher","first-page":"4527","DOI":"10.18653\/v1\/2021.emnlp-main.372","article-title":"All bark and no bite: Rogue dimensions in transformer language models obscure representational quality","volume-title":"Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing","author":"Timkey","year":"2021"},{"key":"2022090813572084800_bib34","doi-asserted-by":"publisher","first-page":"142","DOI":"10.3115\/1119176.1119195","article-title":"Introduction to the CoNLL-2003 shared task: Language-independent named entity recognition","volume-title":"Proceedings of the Seventh Conference on Natural Language Learning at HLT-NAACL 2003","author":"Tjong Kim Sang","year":"2003"},{"key":"2022090813572084800_bib35","article-title":"Attention is all you need","volume-title":"Advances in Neural Information Processing Systems","author":"Vaswani","year":"2017"},{"key":"2022090813572084800_bib36","doi-asserted-by":"publisher","first-page":"337","DOI":"10.18653\/v1\/2021.acl-srw.35","article-title":"On the differences between BERT and MT encoder spaces and how to address them in translation tasks","volume-title":"Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing: Student Research Workshop","author":"V\u00e1zquez","year":"2021"},{"key":"2022090813572084800_bib37","doi-asserted-by":"publisher","first-page":"4396","DOI":"10.18653\/v1\/D19-1448","article-title":"The bottom-up evolution of representations in the transformer: A study with machine translation and language modeling objectives","volume-title":"Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)","author":"Voita","year":"2019"},{"key":"2022090813572084800_bib38","doi-asserted-by":"publisher","first-page":"7222","DOI":"10.18653\/v1\/2020.emnlp-main.586","article-title":"Probing pretrained language models for lexical semantics","volume-title":"Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)","author":"Vuli\u0107","year":"2020"},{"key":"2022090813572084800_bib39","article-title":"Does BERT make any sense? Interpretable word sense disambiguation with contextualized embeddings","author":"Wiedemann","year":"2019","journal-title":"ArXiv"},{"key":"2022090813572084800_bib40","doi-asserted-by":"publisher","first-page":"11","DOI":"10.18653\/v1\/D19-1002","article-title":"Attention is not not explanation","volume-title":"Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)","author":"Wiegreffe","year":"2019"},{"key":"2022090813572084800_bib41","doi-asserted-by":"publisher","first-page":"1","DOI":"10.18653\/v1\/2021.deelio-1.1","article-title":"Transformer visualization via dictionary learning: Contextualized embedding as a linear superposition of transformer factors","volume-title":"Proceedings of Deep Learning Inside Out (DeeLIO): The 2nd Workshop on Knowledge Extraction and Integration for Deep Learning Architectures","author":"Yun","year":"2021"},{"key":"2022090813572084800_bib42","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1109\/IJCNN52387.2021.9533563","article-title":"Of non-linearity and commutativity in bert","volume-title":"2021 International Joint Conference on Neural Networks (IJCNN)","author":"Zhao","year":"2021"}],"container-title":["Transactions of the Association for Computational Linguistics"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/direct.mit.edu\/tacl\/article-pdf\/doi\/10.1162\/tacl_a_00501\/2042599\/tacl_a_00501.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/direct.mit.edu\/tacl\/article-pdf\/doi\/10.1162\/tacl_a_00501\/2042599\/tacl_a_00501.pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2023,11,26]],"date-time":"2023-11-26T18:47:54Z","timestamp":1701024474000},"score":1,"resource":{"primary":{"URL":"https:\/\/direct.mit.edu\/tacl\/article\/doi\/10.1162\/tacl_a_00501\/112915\/How-to-Dissect-a-Muppet-The-Structure-of"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022]]},"references-count":42,"URL":"https:\/\/doi.org\/10.1162\/tacl_a_00501","relation":{},"ISSN":["2307-387X"],"issn-type":[{"value":"2307-387X","type":"electronic"}],"subject":[],"published-other":{"date-parts":[[2022]]},"published":{"date-parts":[[2022]]}}}