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

特征交互揭示语言模型中的语言结构

Feature Interactions Reveal Linguistic Structure in Language Models

Institute for Logic, Language and Computation(逻辑、语言与计算研究所);University of Amsterdam(阿姆斯特丹大学)

Jaap Jumelet, Willem Zuidema

AI总结:

本文研究特征交互归因方法,通过灰盒方法论在形式语言任务上训练模型,发现特定方法能揭示语法规则,并扩展至语言模型以洞察其语言结构。

摘要:

我们在事后可解释性的特征归因方法背景下研究特征交互。在可解释性研究中,深入理解特征交互日益被认为是一项重要挑战,因为交互特征对神经网络的成功至关重要。特征交互使模型能够为其输入构建层次化表示,并可能为研究语言模型中的语言结构提供理想的起点。然而,揭示这些交互所起的确切作用也很困难,并且已经提出了多种多样的交互归因方法。在本文中,我们关注的问题是这些方法中哪一种最忠实地反映目标模型的内部运作。我们提出了一种灰盒方法论,在该方法论中,我们使用概率上下文无关文法(PCFG)将模型训练到在形式语言分类任务上达到完美表现。我们表明,在特定配置下,某些方法确实能够揭示模型习得的语法规则。基于这些发现,我们将评估扩展到对语言模型的案例研究,为这些模型已习得的语言结构提供了新的见解。

英文摘要:

We study feature interactions in the context of feature attribution methods for post-hoc interpretability. In interpretability research, getting to grips with feature interactions is increasingly recognised as an important challenge, because interacting features are key to the success of neural networks. Feature interactions allow a model to build up hierarchical representations for its input, and might provide an ideal starting point for the investigation into linguistic structure in language models. However, uncovering the exact role that these interactions play is also difficult, and a diverse range of interaction attribution methods has been proposed. In this paper, we focus on the question which of these methods most faithfully reflects the inner workings of the target models. We work out a grey box methodology, in which we train models to perfection on a formal language classification task, using PCFGs. We show that under specific configurations, some methods are indeed able to uncover the grammatical rules acquired by a model. Based on these findings we extend our evaluation to a case study on language models, providing novel insights into the linguistic structure that these models have acquired.

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

↑