arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.12841cs.CLcs.LG
收藏

基准测试与理解大语言模型的组合关系推理能力

Benchmarking and Understanding Compositional Relational Reasoning of LLMs

ColorfulClouds Tech(彩星云科技)

Ruikang Ni, Da Xiao, Qingye Meng, Xiangyu Li, Shihui Zheng, Hongliang Liang

AI总结:

本文提出广义联想记忆(GAR)基准,评估并揭示大语言模型在组合关系推理上的缺陷,并通过归因修补发现关键注意力头及其真/假抽象表征,为理解CRR机制提供新视角。

摘要:

组合关系推理(CRR)是人类智能的标志,但我们缺乏对现有Transformer大语言模型(LLMs)能否以及如何解决CRR任务的清晰理解。为了系统性地探索LLMs的CRR能力,我们首先提出了一个新的合成基准,称为广义联想记忆(GAR),通过在统一框架中整合和泛化机制可解释性(MI)研究中几个任务的本质。评估表明,GAR对现有LLMs来说足够具有挑战性,揭示了它们在CRR方面的根本缺陷。同时,它对于系统的MI研究来说足够简单。然后,为了理解LLMs如何解决GAR任务,我们使用归因修补来发现Vicuna-33B在不同任务中复用的核心电路和一组关键的注意力头。干预实验表明,这些头的正确功能显著影响任务性能。特别是,我们识别出两类头,它们的激活分别代表GAR任务中真和假的抽象概念。它们在各种模型和任务中对CRR起着基础性作用。数据集和代码可在https://github.com/Caiyun-AI/GAR获取。

英文摘要:

Compositional relational reasoning (CRR) is a hallmark of human intelligence, but we lack a clear understanding of whether and how existing transformer large language models (LLMs) can solve CRR tasks. To enable systematic exploration of the CRR capability of LLMs, we first propose a new synthetic benchmark called Generalized Associative Recall (GAR) by integrating and generalizing the essence of several tasks in mechanistic interpretability (MI) study in a unified framework. Evaluation shows that GAR is challenging enough for existing LLMs, revealing their fundamental deficiency in CRR. Meanwhile, it is easy enough for systematic MI study. Then, to understand how LLMs solve GAR tasks, we use attribution patching to discover the core circuits reused by Vicuna-33B across different tasks and a set of vital attention heads. Intervention experiments show that the correct functioning of these heads significantly impacts task performance. Especially, we identify two classes of heads whose activations represent the abstract notion of true and false in GAR tasks respectively. They play a fundamental role in CRR across various models and tasks. The dataset and code are available at https://github.com/Caiyun-AI/GAR.

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

↑