arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.03156cs.LGcs.AIcs.CLcs.CY
收藏

提示-反事实解释用于生成式AI系统行为

Prompt-Counterfactual Explanations for Generative AI System Behavior

University of Antwerp(安特卫普大学);NYU Stern School of Business(纽约大学斯特恩商学院)

Sofie Goethals, Foster Provost, João Sedoc

AI总结:

本文提出了一种生成式AI系统的提示-反事实解释方法,用于分析和解释提示对输出特征的影响,以提升模型的可解释性和可控性。

摘要:

随着生成式AI系统被集成到现实世界应用中,组织越来越需要能够理解和解释其行为的能力。特别是决策者需要了解是什么导致生成式AI系统表现出特定的输出特征。在这一总体主题中,本文探讨了一个关键问题:输入——提示——中有什么特性导致基于LLM的生成式AI系统产生具有特定特征的输出,例如毒性、负面情绪或政治偏见。为了探讨这个问题,我们借鉴了可解释AI文献中的一种常见技术:反事实解释。我们解释了为什么传统的反事实解释不能直接应用于生成式AI系统,因为生成式AI系统的工作方式有若干差异。然后我们提出了一种灵活的框架,该框架适应了非确定性的生成式AI系统,在下游分类器可以揭示其输出关键特征的情况下。基于此框架,我们介绍了一种生成提示-反事实解释(PCEs)的算法。最后,我们通过三个案例研究展示了生成式AI系统的反事实解释的生成,研究了不同的输出特征(即政治倾向、毒性、情绪)。案例研究进一步表明,PCEs可以简化提示工程以抑制不良输出特征,并可以增强红队行动以发现额外的提示,以引发不良输出。最终,这项工作为生成式AI的提示导向可解释性奠定了基础:一种能力,随着这些模型被委托进行更高风险的任务并受到新兴监管要求的透明和问责制,这种能力将变得不可或缺。

英文摘要:

As generative AI systems become integrated into real-world applications, organizations increasingly need to be able to understand and interpret their behavior. In particular, decision-makers need to understand what causes generative AI systems to exhibit specific output characteristics. Within this general topic, this paper examines a key question: what is it about the input -- the prompt -- that causes an LLM-based generative AI system to produce output that exhibits specific characteristics, such as toxicity, negative sentiment, or political bias. To examine this question, we adapt a common technique from the Explainable AI literature: counterfactual explanations. We explain why traditional counterfactual explanations cannot be applied directly to generative AI systems, due to several differences in how generative AI systems function. We then propose a flexible framework that adapts counterfactual explanations to non-deterministic, generative AI systems in scenarios where downstream classifiers can reveal key characteristics of their outputs. Based on this framework, we introduce an algorithm for generating prompt-counterfactual explanations (PCEs). Finally, we demonstrate the production of counterfactual explanations for generative AI systems with three case studies, examining different output characteristics (viz., political leaning, toxicity, and sentiment). The case studies further show that PCEs can streamline prompt engineering to suppress undesirable output characteristics and can enhance red-teaming efforts to uncover additional prompts that elicit undesirable outputs. Ultimately, this work lays a foundation for prompt-focused interpretability in generative AI: a capability that will become indispensable as these models are entrusted with higher-stakes tasks and subject to emerging regulatory requirements for transparency and accountability.

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

↑