TokenSHAP:基于蒙特卡洛Shapley值估计的大语言模型解释
TokenSHAP: Interpreting Large Language Models with Monte Carlo Shapley Value Estimation
AI总结:
TokenSHAP利用蒙特卡洛Shapley值估计,为LLM输入中的标记提供可解释的重要性度量,提升模型透明度与提示工程。
摘要:
随着大语言模型(LLMs)在关键应用中日益普及,对可解释人工智能的需求不断增长。我们提出了TokenSHAP,一种通过归因输入提示中单个标记或子字符串重要性的新颖的大语言模型解释方法。该方法将合作博弈论中的Shapley值适配到自然语言处理领域,为理解输入的各个部分如何影响模型响应提供了严格的框架。TokenSHAP利用蒙特卡洛采样以提高计算效率,提供可解释的、定量的标记重要性度量。我们在多样化的提示和LLM架构上展示了其有效性,在与人类判断的一致性、对模型行为的忠实度以及一致性方面,均显示出相对于现有基线的持续改进。我们的方法能够捕捉标记之间细微的交互,为LLM行为提供了宝贵的见解,增强了模型透明度,改进了提示工程,并有助于开发更可靠的人工智能系统。TokenSHAP向着负责任AI部署所需的可解释性迈出了重要一步,为构建更透明、可问责和可信赖的人工智能系统这一更广泛目标做出了贡献。
英文摘要:
As large language models (LLMs) become increasingly prevalent in critical applications, the need for interpretable AI has grown. We introduce TokenSHAP, a novel method for interpreting LLMs by attributing importance to individual tokens or substrings within input prompts. This approach adapts Shapley values from cooperative game theory to natural language processing, offering a rigorous framework for understanding how different parts of an input contribute to a model's response. TokenSHAP leverages Monte Carlo sampling for computational efficiency, providing interpretable, quantitative measures of token importance. We demonstrate its efficacy across diverse prompts and LLM architectures, showing consistent improvements over existing baselines in alignment with human judgments, faithfulness to model behavior, and consistency. Our method's ability to capture nuanced interactions between tokens provides valuable insights into LLM behavior, enhancing model transparency, improving prompt engineering, and aiding in the development of more reliable AI systems. TokenSHAP represents a significant step towards the necessary interpretability for responsible AI deployment, contributing to the broader goal of creating more transparent, accountable, and trustworthy AI systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。