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

语言模型作为任务特定知识库:一种可解释性分析

LMs as Task-Specific Knowledge Bases: An Interpretability Analysis

Blavatnik School of Computer Science and AI, Tel Aviv University(特拉维夫大学布拉瓦特尼克计算机科学与人工智能学院);Google Research(谷歌研究院)

Amit Elhelo, Amir Globerson, Mor Geva

AI总结:

通过行为和机制分析,发现语言模型以任务特定方式编码知识,不同任务对同一事实的查询结果不一致,且参数定位实验揭示了不同任务涉及不同参数子集。

摘要:

语言模型(LMs)捕获了大量适用于各种任务的事实知识,这促使人们将其参数视为知识库。知识库的一个重要属性是,对同一事实的不同查询会返回一致的结果,并依赖于单一的事实来源。我们通过行为和机制分析来研究LMs是否满足这一属性。我们的结果表明,它们以任务特定的方式编码知识。在行为上,在一个任务上获取的事实往往在训练过程中无法在其他任务上共同出现。参数定位实验提供了一种机制解释,揭示了同一事实在不同任务中涉及不同的参数子集。最后,我们展示了思维链推理的部分有效性来自于调动超出评估任务相关的任务特定参数。我们的发现表明,模型知道什么以及如何被询问在参数空间中是交织在一起的,这削弱了“知识库”的类比,并对LMs中事实知识的可靠性和可控性产生影响。

英文摘要:

Language models (LMs) capture large amounts of factual knowledge applicable to a wide range of tasks, motivating the view of their parameters as a knowledge base. An important property of knowledge bases is that different queries for the same fact return consistent results, drawing on a single source of truth. We investigate whether LMs satisfy this property through behavioral and mechanistic analyses. Our results suggest that they encode knowledge in a task-specific manner. Behaviorally, facts acquired on one task frequently fail to co-emerge on others during training. Parameter localization experiments suggest a mechanistic explanation, revealing distinct parameter subsets underlying different tasks for the same fact. Finally, we show that chain-of-thought reasoning draws part of its effectiveness from engaging task-specific parameters beyond those tied to the evaluation task. Our findings suggest that what the model knows and how it is asked are intertwined in parameter space, undermining the "knowledge base" analogy and carrying implications for the reliability and controllability of factual knowledge in LMs.

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

↑