Saved in:
Bibliographic Details
Main Authors: Guo, Zhijin, Xue, Chenhao, Xu, Zhaozhen, Bo, Hongbo, Ye, Yuxuan, Pierrehumbert, Janet B., Lewis, Martha
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2509.19332
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918146563112960
author Guo, Zhijin
Xue, Chenhao
Xu, Zhaozhen
Bo, Hongbo
Ye, Yuxuan
Pierrehumbert, Janet B.
Lewis, Martha
author_facet Guo, Zhijin
Xue, Chenhao
Xu, Zhaozhen
Bo, Hongbo
Ye, Yuxuan
Pierrehumbert, Janet B.
Lewis, Martha
contents For language models to generalize correctly to novel expressions, it is critical that they exploit access compositional meanings when this is justified. Even if we don't know what a "pelp" is, we can use our knowledge of numbers to understand that "ten pelps" makes more pelps than "two pelps". Static word embeddings such as Word2vec made strong, indeed excessive, claims about compositionality. The SOTA generative, transformer models and graph models, however, go too far in the other direction by providing no real limits on shifts in meaning due to context. To quantify the additive compositionality, we formalize a two-step, generalized evaluation that (i) measures the linearity between known entity attributes and their embeddings via canonical correlation analysis, and (ii) evaluates additive generalization by reconstructing embeddings for unseen attribute combinations and checking reconstruction metrics such as L2 loss, cosine similarity, and retrieval accuracy. These metrics also capture failure cases where linear composition breaks down. Sentences, knowledge graphs, and word embeddings are evaluated and tracked the compositionality across all layers and training stages. Stronger compositional signals are observed in later training stages across data modalities, and in deeper layers of the transformer-based model before a decline at the top layer. Code is available at https://github.com/Zhijin-Guo1/quantifying-compositionality.
format Preprint
id arxiv_https___arxiv_org_abs_2509_19332
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Quantifying Compositionality of Classic and State-of-the-Art Embeddings
Guo, Zhijin
Xue, Chenhao
Xu, Zhaozhen
Bo, Hongbo
Ye, Yuxuan
Pierrehumbert, Janet B.
Lewis, Martha
Computation and Language
Artificial Intelligence
For language models to generalize correctly to novel expressions, it is critical that they exploit access compositional meanings when this is justified. Even if we don't know what a "pelp" is, we can use our knowledge of numbers to understand that "ten pelps" makes more pelps than "two pelps". Static word embeddings such as Word2vec made strong, indeed excessive, claims about compositionality. The SOTA generative, transformer models and graph models, however, go too far in the other direction by providing no real limits on shifts in meaning due to context. To quantify the additive compositionality, we formalize a two-step, generalized evaluation that (i) measures the linearity between known entity attributes and their embeddings via canonical correlation analysis, and (ii) evaluates additive generalization by reconstructing embeddings for unseen attribute combinations and checking reconstruction metrics such as L2 loss, cosine similarity, and retrieval accuracy. These metrics also capture failure cases where linear composition breaks down. Sentences, knowledge graphs, and word embeddings are evaluated and tracked the compositionality across all layers and training stages. Stronger compositional signals are observed in later training stages across data modalities, and in deeper layers of the transformer-based model before a decline at the top layer. Code is available at https://github.com/Zhijin-Guo1/quantifying-compositionality.
title Quantifying Compositionality of Classic and State-of-the-Art Embeddings
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2509.19332