arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.09863cs.AIcs.CLcs.LGq-bio.NC
收藏

用语言模型以自然语言解释黑盒文本模块

Explaining black box text modules in natural language with language models

Microsoft Research(微软研究院);University of California, Berkeley(加州大学伯克利分校);The University of Texas at Austin(德克萨斯大学奥斯汀分校)

Chandan Singh, Aliyah R. Hsu, Richard Antonello, Shailee Jain, Alexander G. Huth, Bin Yu, Jianfeng Gao

AI总结:

提出SASC方法,自动为黑盒文本模块生成自然语言解释及可靠性评分,并在合成模块、BERT内部及fMRI体素反应上验证其有效性。

摘要:

大型语言模型(LLMs)在越来越多的任务上展现出了卓越的预测性能。然而,它们的快速普及和日益增强的不透明性,催生了对可解释性的迫切需求。在此,我们探讨是否能够自动获得黑盒文本模块的自然语言解释。一个“文本模块”是任何将文本映射为标量连续值的函数,例如LLM内部的子模块或大脑区域的拟合模型。“黑盒”表示我们只能访问模块的输入和输出。我们引入了Summarize and Score(SASC)方法,该方法接收一个文本模块,并返回该模块选择性的自然语言解释以及该解释可靠性的评分。我们在三种情境下研究SASC。首先,我们在合成模块上评估SASC,发现它经常能恢复真实解释。其次,我们使用SASC来解释预训练的BERT模型中的模块,从而能够检查模型的内部结构。最后,我们展示SASC能够为单个fMRI体素对语言刺激的反应生成解释,这对细粒度脑映射具有潜在应用价值。所有用于使用SASC和复现结果的代码均已在Github上公开。

英文摘要:

Large language models (LLMs) have demonstrated remarkable prediction performance for a growing array of tasks. However, their rapid proliferation and increasing opaqueness have created a growing need for interpretability. Here, we ask whether we can automatically obtain natural language explanations for black box text modules. A "text module" is any function that maps text to a scalar continuous value, such as a submodule within an LLM or a fitted model of a brain region. "Black box" indicates that we only have access to the module's inputs/outputs. We introduce Summarize and Score (SASC), a method that takes in a text module and returns a natural language explanation of the module's selectivity along with a score for how reliable the explanation is. We study SASC in 3 contexts. First, we evaluate SASC on synthetic modules and find that it often recovers ground truth explanations. Second, we use SASC to explain modules found within a pre-trained BERT model, enabling inspection of the model's internals. Finally, we show that SASC can generate explanations for the response of individual fMRI voxels to language stimuli, with potential applications to fine-grained brain mapping. All code for using SASC and reproducing results is made available on Github.

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

↑