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

JoPA:通过联合提示归因解释大型语言模型的生成

JoPA:Explaining Large Language Model's Generation via Joint Prompt Attribution

Pennsylvania State University(宾夕法尼亚州立大学)

Yurui Chang, Bochuan Cao, Yujia Wang, Jinghui Chen, Lu Lin

AI总结:

本文提出基于联合提示归因的反事实解释框架JoPA,通过组合优化和概率算法搜索因果输入组合,揭示输入提示如何协同影响LLM的完整生成,并验证了其忠实性与效率。

摘要:

大型语言模型(LLMs)在复杂文本生成任务中表现出色。然而,输入提示对生成内容的贡献对人类而言仍然不明确,这凸显了理解输入与输出对之间因果关系的必要性。现有的提供特定提示解释的工作通常将模型输出局限于分类或下一个词预测。少数旨在解释整个语言生成的初步尝试通常独立处理输入提示文本,忽略了它们对后续生成的组合效应。在本研究中,我们引入了一个基于联合提示归因的反事实解释框架JoPA,旨在解释少数提示文本如何协同影响LLM的完整生成。具体而言,我们将用于生成解释的提示归因任务表述为一个组合优化问题,并引入一种概率算法在离散空间中搜索因果输入组合。我们定义并利用多个指标来评估生成的解释,证明了我们框架的忠实性和效率。

英文摘要:

Large Language Models (LLMs) have demonstrated impressive performances in complex text generation tasks. However, the contribution of the input prompt to the generated content still remains obscure to humans, underscoring the necessity of understanding the causality between input and output pairs. Existing works for providing prompt-specific explanation often confine model output to be classification or next-word prediction. Few initial attempts aiming to explain the entire language generation often treat input prompt texts independently, ignoring their combinatorial effects on the follow-up generation. In this study, we introduce a counterfactual explanation framework based on Joint Prompt Attribution, JoPA, which aims to explain how a few prompt texts collaboratively influences the LLM's complete generation. Particularly, we formulate the task of prompt attribution for generation interpretation as a combinatorial optimization problem, and introduce a probabilistic algorithm to search for the casual input combination in the discrete space. We define and utilize multiple metrics to evaluate the produced explanations, demonstrating both the faithfulness and efficiency of our framework.

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

↑