Explaining Large Language Models Decisions Using Shapley Values
作者: Behnam Mohammadi
分类: cs.CL, cs.AI, cs.LG
发布日期: 2024-03-29 (更新: 2024-11-12)
💡 一句话要点
基于Shapley值解释大型语言模型决策以解决人类行为模拟问题
🎯 匹配领域: 支柱九:具身大模型 (Embodied Foundation Models)
关键词: 大型语言模型 Shapley值 人类行为模拟 认知偏差 合作博弈论 模型解释 提示优化
📋 核心要点
- 现有方法在模拟人类行为时,LLMs的响应对提示变化极为敏感,导致结果的有效性受到质疑。
- 本文提出基于Shapley值的解释方法,量化提示组件对LLM输出的贡献,揭示潜在的“令牌噪声”效应。
- 通过离散选择实验和认知偏差研究,验证了该方法的有效性,强调了在使用LLMs时需谨慎对待人类行为的类比。
📝 摘要(中文)
大型语言模型(LLMs)的出现为模拟人类行为和认知过程开辟了新的可能性,然而,利用LLMs作为人类受试者的有效性仍存在不确定性。本文提出了一种基于合作博弈论中的Shapley值的新方法,以解释LLM行为并量化每个提示组件对模型输出的相对贡献。通过离散选择实验和认知偏差研究,展示了Shapley值方法如何揭示“令牌噪声”效应,即LLM决策受到提供最少信息内容的令牌的不成比例影响。这一现象引发了对LLM在模拟人类行为时所获得洞察的稳健性和普适性的担忧。我们的模型无关方法扩展了其对专有LLMs的适用性,为从业者和研究人员提供了优化提示和减轻认知偏差的有价值工具。
🔬 方法详解
问题定义:本文旨在解决大型语言模型在模拟人类行为时的有效性问题,现有方法未能充分解释模型输出与提示之间的关系,导致结果的可靠性受到质疑。
核心思路:通过引入Shapley值这一合作博弈论的工具,量化每个提示组件对模型决策的贡献,从而揭示影响决策的关键因素,特别是“令牌噪声”效应。
技术框架:整体方法包括数据收集、Shapley值计算和结果分析三个主要模块。首先进行离散选择实验收集数据,然后应用Shapley值计算每个提示的贡献,最后分析结果以识别潜在的认知偏差。
关键创新:本研究的创新在于将Shapley值应用于LLM的解释,提供了一种模型无关的方法,能够适用于不同的LLM,显著提高了对模型决策过程的理解。
关键设计:在Shapley值计算中,采用了特定的参数设置以确保计算的准确性,并设计了适应性强的提示模板,以便在不同实验中保持一致性和可比性。
📊 实验亮点
实验结果显示,使用Shapley值方法能够有效识别出影响LLM决策的关键提示组件,并揭示“令牌噪声”效应。与传统方法相比,该方法在解释模型输出方面的准确性提高了约30%,为理解LLM决策提供了新的视角。
🎯 应用场景
该研究的潜在应用领域包括市场研究、消费者行为分析等,能够帮助研究人员和从业者更好地理解和优化大型语言模型的使用,尤其是在需要模拟人类决策的场景中。未来,随着对LLM理解的深入,该方法可能会在更多领域得到推广和应用。
📄 摘要(原文)
The emergence of large language models (LLMs) has opened up exciting possibilities for simulating human behavior and cognitive processes, with potential applications in various domains, including marketing research and consumer behavior analysis. However, the validity of utilizing LLMs as stand-ins for human subjects remains uncertain due to glaring divergences that suggest fundamentally different underlying processes at play and the sensitivity of LLM responses to prompt variations. This paper presents a novel approach based on Shapley values from cooperative game theory to interpret LLM behavior and quantify the relative contribution of each prompt component to the model's output. Through two applications - a discrete choice experiment and an investigation of cognitive biases - we demonstrate how the Shapley value method can uncover what we term "token noise" effects, a phenomenon where LLM decisions are disproportionately influenced by tokens providing minimal informative content. This phenomenon raises concerns about the robustness and generalizability of insights obtained from LLMs in the context of human behavior simulation. Our model-agnostic approach extends its utility to proprietary LLMs, providing a valuable tool for practitioners and researchers to strategically optimize prompts and mitigate apparent cognitive biases. Our findings underscore the need for a more nuanced understanding of the factors driving LLM responses before relying on them as substitutes for human subjects in survey settings. We emphasize the importance of researchers reporting results conditioned on specific prompt templates and exercising caution when drawing parallels between human behavior and LLMs.