ExplainabilityTransparencyBiascs.LG
Prompt-Counterfactual Explanations for Generative AI System Behavior
Sofie Goethals, Foster Provost, João Sedoc
January 6, 2026
arXiv.org
Key Takeaways
-
Understanding AI behavior requires new explanation methods: Traditional explainability techniques from AI cannot be directly applied to generative AI systems like large language models (LLMs) because these systems work differently—they produce variable outputs rather than consistent predictions. The paper introduces "prompt-counterfactual explanations" (PCEs) as a new framework specifically designed to explain what aspects of user inputs (prompts) cause generative AI to produce problematic outputs like toxicity, bias, or negative sentiment.
-
Prompt wording directly influences harmful outputs: The research demonstrates through case studies that specific characteristics of how users phrase their prompts significantly affect whether AI systems generate toxic content, exhibit political bias, or produce negatively-toned responses. This finding suggests that organizations can potentially reduce harmful outputs by understanding and modifying the prompt characteristics that trigger them.
-
PCEs can improve prompt engineering practices: The paper shows that prompt-counterfactual explanations can help streamline "prompt engineering"—the practice of carefully crafting inputs to get desired AI outputs. By identifying which prompt elements cause undesirable characteristics, organizations can more systematically design better prompts to suppress problematic AI behavior.
-
Explainability is critical for real-world AI deployment: As generative AI systems are increasingly used in actual applications affecting real people, decision-makers need practical tools to understand why these systems behave as they do. This research addresses a concrete gap in responsible AI by providing a method to trace problematic outputs back to their causes in the input.