arXiv:2509.19332cs.CLcs.AI2025-09EMNLP被引 1

量化经典与前沿嵌入模型的组合性,揭示其对新表达泛化的潜力。

Quantifying Compositionality of Classic and State-of-the-Art Embeddings

  • 用典型相关分析和重构误差评估嵌入的线性组合能力
  • 发现深层Transformer模型在训练后期组合性最强,顶层反而下降
  • 适用于研究语言模型泛化机制的学者与工程师

为使语言模型能正确泛化到新表达,必须在合理时利用组合语义。即使不知道'pelp'为何物,我们仍可通过数字知识理解'十pelps'比'两pelps'多。静态词嵌入如Word2vec对组合性有过度主张;而当前最先进的生成式Transformer与图模型则走向反面,缺乏对语境引发语义变化的约束。本文提出两步通用评估方法:(i) 通过典型相关分析测量已知实体属性与其嵌入间的线性关系;(ii) 通过重构未见属性组合的嵌入,检验L2损失、余弦相似度与检索准确率等指标。这些指标亦可捕捉线性组合失效的案例。在句子、知识图谱与词嵌入上进行评估,追踪各层及训练阶段的组合性表现。结果显示,在不同数据模态中,模型于后期训练阶段组合性增强,深层Transformer模型中组合信号较强,但顶层出现衰减。代码开源:https://github.com/Zhijin-Guo1/quantifying-compositionality。

原文摘要 · Abstract (English)

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.

嵌入模型组合性语言模型评估方法

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。