arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.22532cs.LG
收藏

语言模型中的关系线性性质:一项实证研究

Relational Linear Properties in Language Models: An Empirical Investigation

University of Copenhagen(哥本哈根大学);University of Trento(特伦托大学);University of Bologna(博洛尼亚大学);University of Pisa(比萨大学)

Giovanni Valer, Luigi Gresele, Marco Bronzini, Emanuele Marconato

AI总结:

本文提出基于KL散度的探针方法,实证检验语言模型中关系线性假设(即固定关系下对象解嵌入可由主体嵌入线性映射预测),发现其随模型、层和关系表述变化。

摘要:

线性性质在语言模型的表示中普遍存在;然而,实验性地测试它们仍然是一项具有挑战性的任务。本文聚焦于关系线性:即对于固定关系(例如“演奏”),对象的解嵌入(例如“小号”)可以通过线性映射从其主体(例如“迈尔斯·戴维斯”)的嵌入预测。我们提出了一种实验方法,用于测试Marconato等人(2025)提出的关系线性公式。具体而言,我们引入了一种基于KL散度的探针方法来评估这一性质,并考察其在不同层和不同表述的关系查询中的变化。该方法也比先前工作更高效;例如,它避免了Hernandez等人(2024)在线性关系嵌入中使用的粗略雅可比近似。我们在四个数据集上的发现表明,关系线性在不同模型间存在差异,展现出与先前关于模型表示中语言信息的观察一致的逐层模式,并且受关系表述方式变化的影响不同。

英文摘要:

Linear properties are ubiquitous in the representations of language models; however, testing them experimentally remains a challenging task. This work focuses on relational linearity: the hypothesis that, for a fixed relation (e.g., "plays"), the unembedding of an object (e.g., "trumpet") can be predicted from the embedding of its subject (e.g.,"Miles Davis") by a linear map. We present an experimental method to test the formulation of relational linearity by Marconato et al. (2025). Specifically, we introduce a probing method, based on Kullback-Leibler divergence, to evaluate this property and examine its variation across layers and paraphrased relational queries. It is also more efficient than previous work; for example, it avoids the crude Jacobian approximations used in Linear Relational Embeddings by Hernandez et al. (2024). Our findings across four datasets show that relational linearity varies across models, exhibits layer-wise patterns consistent with prior observations about linguistic information in model representations, and is differently affected by changes in how the relation is phrased.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑