arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.20124cs.LG
收藏

概率签名:连接语言模型中的数据语义与嵌入结构

Probability Signature: Bridging Data Semantics and Embedding Structure in Language Models

Institute of Natural Sciences, MOE-LSC, Shanghai Jiao Tong University(上海交通大学自然科学研究院);School of Mathematical Sciences, Shanghai Jiao Tong University(上海交通大学数学科学学院)

Junjie Yao, Zhi-Qin John Xu

AI总结:

本研究提出概率签名以解释语言模型嵌入结构的形成机制,通过实验和理论分析证明其与嵌入结构高度一致,揭示了数据分布如何引导语义结构的生成。

摘要:

语言模型的嵌入空间被广泛认为能够捕捉语义关系;例如,数字的嵌入常常表现出与其自然序列相对应的有序结构。然而,驱动此类结构形成的机制仍鲜为人知。在本工作中,我们通过数据分布来解读嵌入结构。我们提出了一组概率签名,用以反映词元之间的语义关系。通过在线性模型和前馈网络上进行的复合加法任务实验,结合梯度流动力学的理论分析,我们揭示了这些概率签名对嵌入结构的显著影响。我们进一步将分析推广到大型语言模型(LLMs),通过在Pile语料库的子集上训练Qwen2.5架构来实现。我们的结果表明,概率签名与嵌入结构高度一致,尤其是在捕捉嵌入之间的强成对相似性方面。我们的工作揭示了数据分布如何引导嵌入结构形成的机制,为嵌入组织与语义模式之间的关系建立了新的理解。

英文摘要:

The embedding space of language models is widely believed to capture the semantic relationships; for instance, embeddings of digits often exhibit an ordered structure that corresponds to their natural sequence. However, the mechanisms driving the formation of such structures remain poorly understood. In this work, we interpret the embedding structures via the data distribution. We propose a set of probability signatures that reflect the semantic relationships among tokens. Through experiments on the composite addition tasks using the linear model and feedforward network, combined with theoretical analysis of gradient flow dynamics, we reveal that these probability signatures significantly influence the embedding structures. We further generalize our analysis to large language models (LLMs) by training the Qwen2.5 architecture on the subsets of the Pile corpus. Our results show that the probability signatures are faithfully aligned with the embedding structures, particularly in capturing strong pairwise similarities among embeddings. Our work uncovers the mechanism of how data distribution guides the formation of embedding structures, establishing a novel understanding of the relationship between embedding organization and semantic patterns.

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

↑