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

语言模型能否解释自身的分类行为?

Can Language Models Explain Their Own Classification Behavior?

University of Oxford(牛津大学)

Dane Sherburn, Bilal Chughtai, Owain Evans

AI总结:

该研究构建了ArticulateRules少样本规则分类数据集,探究大语言模型能否对自身分类行为给出可信解释,发现不同模型阐明准确率差异大,GPT-3即便微调仍难以阐明多数规则。

摘要:

大语言模型(LLMs)在大量任务上表现出色,但解释其性能背后的过程是一项挑战。本文研究LLMs能否对自身的内部过程给出可信的高层解释。为探究这一点,我们引入了一个数据集ArticulateRules(规则阐明数据集),它包含由简单规则生成的少样本基于文本的分类任务。每条规则都对应一段简单的自然语言解释。我们测试了那些已学会熟练对输入进行分类(包括分布内和分布外场景)的模型,能否阐明与自身分类行为匹配的自由形式自然语言解释。我们的数据集可用于上下文学习评估和微调评估。我们对一系列LLMs进行了评估,结果表明不同模型的阐明准确率差异很大,其中从GPT-3到GPT-4的提升尤为显著。随后我们研究了能否通过多种方法提升GPT-3的阐明准确率。在我们的测试中,即便在正确解释上进行了额外微调,GPT-3仍完全无法阐明10条规则中的7条。我们发布了ArticulateRules数据集,可用于测试通过上下文学习或微调训练的LLMs的自我解释能力。

英文摘要:

Large language models (LLMs) perform well at a myriad of tasks, but explaining the processes behind this performance is a challenge. This paper investigates whether LLMs can give faithful high-level explanations of their own internal processes. To explore this, we introduce a dataset, ArticulateRules, of few-shot text-based classification tasks generated by simple rules. Each rule is associated with a simple natural-language explanation. We test whether models that have learned to classify inputs competently (both in- and out-of-distribution) are able to articulate freeform natural language explanations that match their classification behavior. Our dataset can be used for both in-context and finetuning evaluations. We evaluate a range of LLMs, demonstrating that articulation accuracy varies considerably between models, with a particularly sharp increase from GPT-3 to GPT-4. We then investigate whether we can improve GPT-3's articulation accuracy through a range of methods. GPT-3 completely fails to articulate 7/10 rules in our test, even after additional finetuning on correct explanations. We release our dataset, ArticulateRules, which can be used to test self-explanation for LLMs trained either in-context or by finetuning.

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

↑