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

基于上下文长度探测的黑盒语言模型解释

Black-box language model explanation by context length probing

LIRMM(蒙彼利埃计算机科学、机器人学与微电子实验室);CNRS(法国国家科学研究中心);Inria(法国国家信息与自动化研究所);Université de Montpellier(蒙彼利埃大学)

Ondřej Cífka, Antoine Liutkus

AI总结:

本文提出上下文长度探测方法,通过跟踪模型预测随上下文长度变化来为不同上下文分配重要性分数,以黑盒方式解释因果语言模型,并展示了其在分析长距离依赖方面的潜力。

摘要:

大语言模型的日益广泛采用凸显了提高其可解释性的必要性。我们提出上下文长度探测(context length probing),这是一种针对因果语言模型的新型解释技术,其基础是跟踪模型预测随可用上下文长度变化的函数关系,并允许为不同上下文分配差异化的重要性分数。该技术是模型无关的,除计算词元级概率外不依赖对模型内部结构的访问。我们将上下文长度探测应用于大型预训练语言模型,并提供了一些初步分析和见解,包括研究长距离依赖关系的潜力。该方法的源代码和交互式演示均已公开可用。

英文摘要:

The increasingly widespread adoption of large language models has highlighted the need for improving their explainability. We present context length probing, a novel explanation technique for causal language models, based on tracking the predictions of a model as a function of the length of available context, and allowing to assign differential importance scores to different contexts. The technique is model-agnostic and does not rely on access to model internals beyond computing token-level probabilities. We apply context length probing to large pre-trained language models and offer some initial analyses and insights, including the potential for studying long-range dependencies. The source code and an interactive demo of the method are available.

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

↑