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

语言模型中层次概念的线性表示

Linear Representations of Hierarchical Concepts in Language Models

Tohoku University(东北大学);RIKEN(理化学研究所);NINJAL(国立国語研究所);Langsmith Inc.(Langsmith公司);MBZUAI(穆罕默德·本·扎耶德人工智能大学)

Masaki Sakata, Benjamin Heinzerling, Takumi Ito, Sho Yokoi, Kentaro Inui

AI总结:

研究语言模型内部表示中层次关系的编码方式,通过训练特定层次和语义领域的线性变换,发现层次关系可线性恢复,且在低维子空间中呈现领域特异性。

摘要:

我们探讨了层次关系(如日本⊂东亚⊂亚洲)在语言模型内部表示中的编码方式。基于线性关系概念,我们训练了针对每个层次深度和语义领域的线性变换,并通过比较这些变换来表征层次关系的差异。超越以往对LM中层次几何的研究,我们的分析涵盖了多令牌实体和跨层表示。在多个领域中学习这些变换,并评估领域内泛化到未见数据和跨领域迁移。实验表明,领域内层次关系可从模型表示中线性恢复。我们分析了层次信息在表示空间中的编码方式,发现其在相对低维子空间中编码,并且该子空间具有领域特异性。我们的主要结果是这些领域特定子空间中层次表示高度相似。总体而言,我们发现所有实验模型均以高度可解释的线性表示形式编码概念层次。

英文摘要:

We investigate how and to what extent hierarchical relations (e.g., Japan $\subset$ Eastern Asia $\subset$ Asia) are encoded in the internal representations of language models. Building on Linear Relational Concepts, we train linear transformations specific to each hierarchical depth and semantic domain, and characterize representational differences associated with hierarchical relations by comparing these transformations. Going beyond prior work on the representational geometry of hierarchies in LMs, our analysis covers multi-token entities and cross-layer representations. Across multiple domains we learn such transformations and evaluate in-domain generalization to unseen data and cross-domain transfer. Experiments show that, within a domain, hierarchical relations can be linearly recovered from model representations. We then analyze how hierarchical information is encoded in representation space. We find that it is encoded in a relatively low-dimensional subspace and that this subspace tends to be domain-specific. Our main result is that hierarchy representation is highly similar across these domain-specific subspaces. Overall, we find that all models considered in our experiments encode concept hierarchies in the form of highly interpretable linear representations.

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

↑