How do Transformer Embeddings Represent Compositions? A Functional Analysis
Not on the map. Why?
Abstract (arXiv)
Compositionality is a key aspect of human intelligence, essential for reasoning and generalization. While transformer-based models have become the de facto standard for many language modeling tasks, little is known about how they represent compound words, and whether these representations are compositional. In this study, we test compositionality in Mistral, OpenAI Large, and Google embedding models, and compare them with BERT. First, we evaluate compositionality in the representations by examining six diverse models of compositionality (addition, multiplication, dilation, regression, etc.). We find that ridge regression, albeit linear, best accounts for compositionality. Surprisingly, we find that the classic vector addition model performs almost as well as any other model. Next, we verify that most embedding models are highly compositional, while BERT shows much poorer compositionality. We verify and visualize our findings with a synthetic dataset consisting of fully transparent adjective-noun compositions. Overall, we present a thorough investigation of compositionality.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 12 of its 48 references that are in the map. First posted on arXiv 1 Jun 2025.
Builds on
12 of 48 references.
References · 12
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
- 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,898
- 2016CLEVR: A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoningcited by 1,457
- 2022CREPE: Open-Domain Question Answering with False Presuppositionscited by 72
- 2018Towards Understanding Linear Word Analogiescited by 57
- 2021Exploring the Role of BERT Token Representations to Explain Sentence Probing Resultscited by 29
- 2023From chocolate bunny to chocolate crocodile: Do Language Models Understand Noun Compounds?cited by 12
- 2023A Psycholinguistic Analysis of BERT's Representations of Compoundscited by 7
- 2024Transformers, Contextualism, and Polysemycited by 5
Built on by
Citing papers per year: 2026: 1.
1 paper.