arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.06441cs.CLcs.AI
收藏

通过任务空间实现语言模型的可解释性

Interpretability of Language Models via Task Spaces

University Pompeu Fabra(庞培法布拉大学);University of Amsterdam(阿姆斯特丹大学);Osnabrück University(奥斯纳布吕克大学);Meta

Lucas Weber, Jaap Jumelet, Elia Bruni, Dieuwke Hupkes

AI总结:

本文提出通过构建语言任务空间,并利用相似性探测和基于梯度微分的微调方法,揭示语言模型在不同语言现象间的学习信号交互,发现更大模型能更好利用共享结构进行泛化,且泛化模式在训练中保持稳定。

摘要:

解释语言模型(LMs)的通常方式是测试它们在不同基准上的表现,并据此推断其内部过程。在本文中,我们提出一种替代方法,重点关注语言模型处理的质量,尤其关注其语言能力。为此,我们构建了“语言任务空间”——即语言模型语言概念化的表示——以揭示语言模型在不同语言现象之间建立的连接。任务空间基于不同语言现象的学习信号之间的交互,我们通过一种称为“相似性探测”的方法来评估这些交互。为了解耦语言现象的学习信号,我们进一步引入了一种称为“基于梯度微分的微调”(FTGD)的方法。我们将这些方法应用于三种不同规模的语言模型,发现更大的模型能更好地泛化到语言任务的总体概念,从而更好地利用其共享结构。此外,语言处理的分布性随着预训练的进行而增强,表现为相关语言任务之间参数共享的增加。整体泛化模式在训练过程中基本保持稳定,并未出现明显的阶段性变化,这可能解释了针对语言模型的课程学习策略缺乏成功的原因。

英文摘要:

The usual way to interpret language models (LMs) is to test their performance on different benchmarks and subsequently infer their internal processes. In this paper, we present an alternative approach, concentrating on the quality of LM processing, with a focus on their language abilities. To this end, we construct 'linguistic task spaces' -- representations of an LM's language conceptualisation -- that shed light on the connections LMs draw between language phenomena. Task spaces are based on the interactions of the learning signals from different linguistic phenomena, which we assess via a method we call 'similarity probing'. To disentangle the learning signals of linguistic phenomena, we further introduce a method called 'fine-tuning via gradient differentials' (FTGD). We apply our methods to language models of three different scales and find that larger models generalise better to overarching general concepts for linguistic tasks, making better use of their shared structure. Further, the distributedness of linguistic processing increases with pre-training through increased parameter sharing between related linguistic tasks. The overall generalisation patterns are mostly stable throughout training and not marked by incisive stages, potentially explaining the lack of successful curriculum strategies for LMs.

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

↑