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

使用Shapley头值的语言模型语言基础分析

Linguistically Grounded Analysis of Language Models using Shapley Head Values

Aalborg University(奥尔堡大学)

Marcell Fekete, Johannes Bjerva

AI总结:

本文利用Shapley头值探测语言模型,在BLiMP数据集上分析BERT和RoBERTa处理形态句法现象的方式,发现相关关注头聚类,支持语言模型学习语言理论子网络的假设。

摘要:

理解语言知识如何在语言模型中被编码,对于提高其泛化能力至关重要。本文通过利用一种近期提出的通过Shapley头值(SHVs)探测语言模型的方法,研究形态句法现象的处理。我们使用英语BLiMP数据集,在两种广泛使用的模型BERT和RoBERTa上测试我们的方法,并比较诸如照应一致性和填充词-空位依赖等语言结构的处理方式。通过定量剪枝和定性聚类分析,我们证明了处理相关语言现象的关注头会聚集在一起。我们的结果显示,基于SHV的归因揭示了两种模型中的不同模式,为语言模型如何组织和处理语言信息提供了见解。这些发现支持了语言模型学习与语言理论对应的子网络的假设,对跨语言模型分析和自然语言处理(NLP)中的可解释性具有潜在意义。

英文摘要:

Understanding how linguistic knowledge is encoded in language models is crucial for improving their generalisation capabilities. In this paper, we investigate the processing of morphosyntactic phenomena, by leveraging a recently proposed method for probing language models via Shapley Head Values (SHVs). Using the English language BLiMP dataset, we test our approach on two widely used models, BERT and RoBERTa, and compare how linguistic constructions such as anaphor agreement and filler-gap dependencies are handled. Through quantitative pruning and qualitative clustering analysis, we demonstrate that attention heads responsible for processing related linguistic phenomena cluster together. Our results show that SHV-based attributions reveal distinct patterns across both models, providing insights into how language models organize and process linguistic information. These findings support the hypothesis that language models learn subnetworks corresponding to linguistic theory, with potential implications for cross-linguistic model analysis and interpretability in Natural Language Processing (NLP).

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

↑