Research map / Architectures and efficiency / Attention and transformers
How do Transformer Embeddings Represent Compositions? A Functional Analysis
Aishik Nagar, Ishaan Rawal, Mansi Dhanania, Cheston Tan
ASUS Intelligent Cloud Services · Texas A&M University · Technology and Research (A*STAR) · McGill University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use Ridge Regression instead of Simple Addition as composition function (ablation) | Google/Mistral/OpenAI Large embeddings · LADEC | cosine similarity: Mistral 0.854 -> 0.914; Google 0.852 -> 0.922; OpenAI 0.609 -> 0.767 | Improved |
| use element-wise Multiplication as composition function (ablation) | all four embedding models · LADEC | cosine similarity: -0.038 (Google), -0.042 (Mistral), 0.001 (OpenAI), -0.610 (BERT) | Hurt |
| replace Ridge Regression with a non-linear MLP (ablation) | Google/Mistral/OpenAI Large embeddings · LADEC | cosine similarity: Mistral 0.914 -> 0.854; OpenAI 0.767 -> 0.673 | Hurt |
| use Weighted Addition or Dilation instead of Simple Addition (ablation) | Google/Mistral/OpenAI Large embeddings · LADEC | cosine similarity: Mistral 0.854 -> 0.856; Google 0.852 -> 0.854 | No clear effect |
| switch from BERT (CLS, layer 12) to Google/Mistral/OpenAI embeddings | Simple Addition · LADEC | JS divergence: BERT 0.289 -> Mistral 0.829 | Improved |
| test on novel compounds (LADEC-NC) instead of existing compounds (ablation) | Simple Addition, Mistral · LADEC-NC | cosine similarity: 0.854 -> 0.862 | No clear effect |
| test novel compounds with Ridge Regression (ablation) | Ridge Regression, Mistral · LADEC-NC | cosine similarity: 0.914 -> 0.925 | No clear effect |
| test novel compounds with MLP (ablation) | MLP, Mistral · LADEC-NC | cosine similarity: 0.854 -> 0.827 | Hurt |
| tune Weighted Addition/Dilation parameters by gradient descent instead of grid search (ablation) | Additive and Dilation models · LADEC | similarity | Improved |
| use Simple Addition on adjective-noun compositions (SANC) | Simple Addition · SANC | cosine similarity: Google 0.921, Mistral 0.893, OpenAI Large 0.703, BERT 0.838 | Improved |
Open problems in attention head mechanisms
Do the attention-head mechanisms and length-generalization results hold in full-scale, real-world models?
- Mechanisms are shown only at small scale, with larger models untested. · 19 papers state it
- Theory covers only one-layer or attention-only transformers. · 14 papers state it
- Findings come from synthetic or toy tasks that may not match natural language. · 12 papers state it
Closest papers by meaning
- Towards Equipping Transformer with the Ability of Systematic Compositionality (AAAI 2024 · similarity 0.90)
- Towards a Formal Theory of Representational Compositionality (ICML 2025 · similarity 0.89)
- Not Only Text: Exploring Compositionality of Visual Representations in Vision-Language Models (CVPR 2025 · similarity 0.88)
- When does compositional structure yield compositional generalization? A kernel theory. (ICLR 2025 · similarity 0.88)
- Compositional Capabilities of Autoregressive Transformers: A Study on Synthetic, Interpretable Tasks (ICML 2024 · similarity 0.87)
- How Do Language Models Compose Functions? (NeurIPS 2026 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.