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

基于向量嵌入维度分析的语言特征解耦

Disentangling Linguistic Features with Dimension-Wise Analysis of Vector Embeddings

Massachusetts Institute of Technology(麻省理工学院)

Saniya Karwa, Navpreet Singh

AI总结:

本文提出基于LDSP-10数据集和EDI分数的框架,通过维度分析揭示BERT嵌入中编码不同语言属性的具体维度,发现否定等属性编码稳健而同义关系模式复杂,为提升模型可解释性提供指导。

摘要:

理解神经嵌入的内部工作机制,尤其是在BERT等模型中,仍然是一个挑战,因为其具有高维且不透明的特性。本文提出了一个框架,用于揭示向量嵌入中编码不同语言属性(LPs)的具体维度。我们引入了语言区分句对(LDSP-10)数据集,该数据集隔离了十个关键语言特征,如同义关系、否定、时态和数量。利用该数据集,我们采用多种方法分析BERT嵌入,包括Wilcoxon符号秩检验、互信息和递归特征消除,以识别对每个语言属性最具影响力的维度。我们引入了一个新的度量指标——嵌入维度影响(EDI)分数,用于量化每个嵌入维度与语言属性的相关性。我们的研究结果表明,某些属性(如否定和极性)被稳健地编码在特定维度中,而其他属性(如同义关系)则表现出更复杂的模式。本研究为嵌入的可解释性提供了见解,可指导开发更透明和优化的语言模型,并对模型偏差缓解和人工智能系统的负责任部署具有重要意义。

英文摘要:

Understanding the inner workings of neural embeddings, particularly in models such as BERT, remains a challenge because of their high-dimensional and opaque nature. This paper proposes a framework for uncovering the specific dimensions of vector embeddings that encode distinct linguistic properties (LPs). We introduce the Linguistically Distinct Sentence Pairs (LDSP-10) dataset, which isolates ten key linguistic features such as synonymy, negation, tense, and quantity. Using this dataset, we analyze BERT embeddings with various methods, including the Wilcoxon signed-rank test, mutual information, and recursive feature elimination, to identify the most influential dimensions for each LP. We introduce a new metric, the Embedding Dimension Impact (EDI) score, which quantifies the relevance of each embedding dimension to a LP. Our findings show that certain properties, such as negation and polarity, are robustly encoded in specific dimensions, while others, like synonymy, exhibit more complex patterns. This study provides insights into the interpretability of embeddings, which can guide the development of more transparent and optimized language models, with implications for model bias mitigation and the responsible deployment of AI systems.

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

↑