Introduction
Most current explainable AI (XAI) methods follow a "one-size-fits-all" approach, identifying important features like pixels or words without considering the communicative context. However, effective human communication is inherently adaptive. For instance, a medical diagnosis requires technical clinical markers when explained to a doctor, but layman's terms when explained to a patient. This paper introduces PragmatiXs, a framework that treats machine learning explanations as a "communication game" between an AI speaker and a human listener. By leveraging Direct Preference Optimization (DPO), the researchers trained models to generate concept-based explanations tailored to help a specific listener correctly infer a model's prediction.
Methodology: The PragmatiXs Framework
The authors ground their work in the Rational Speech Act (RSA) framework, which models language as a pragmatic choice of utterances that maximize utility for a listener. To implement this in machine learning, they developed an iterative training procedure:
- The Speaker-Listener Game: A "Speaker" model generates human-interpretable concepts (e.g., "yellow belly") to explain an image. A "Listener" model then attempts to guess the original model's prediction based solely on those concepts.
- Direct Preference Optimization (DPO): Instead of complex reinforcement learning, the framework uses DPO to learn from pairwise preferences (e.g., "Explanation A was more helpful to the listener than Explanation B").
- Iterative Refinement: The Speaker and Listener are updated sequentially, allowing the Speaker to become more helpful and the Listener to better interpret the Speaker’s specific style.
Crucially, this approach does not require the listener model to be differentiable, paving the way for training directly on feedback from real human users.
Experimental Evaluation
The researchers evaluated PragmatiXs across three distinct domains:
- CUB-200-2011: A bird species dataset with human-annotated attributes.
- ImageNet-300: A subset of object recognition data using semantic labels.
- CheXpert: A chest X-ray dataset where technical findings were mapped to layman-friendly descriptions to test "doctor vs. patient" adaptation.
Key Results
The results demonstrate that pragmatic explanations significantly outperform standard "literal" ones:
- Listener Accuracy: On the CheXpert dataset, the listener's ability to guess the model's prediction improved from 85.9% with literal explanations to 99.15% with pragmatic ones.
- Adaptation: The model successfully learned to switch vocabularies. When paired with a "patient" listener, the speaker shifted from technical terms like "cardiomegaly" to "larger heart."
- Human User Study: In a study with 40 participants identifying bird species, those receiving adapted pragmatic explanations achieved ~55% accuracy, significantly higher than those receiving standard literal explanations.
Insights and Discussion
A core insight of this work is that utility often outweighs literal truth. While a literal explainer might list every true fact, a pragmatic explainer selects the most informative ones—skipping shared features to highlight unique discriminators. Furthermore, the study demonstrates that DPO is a powerful tool for interpretability, allowing for optimization of "communicative success" without a perfect mathematical model of the human mind.
However, limitations remain. The iterative training process is computationally expensive and currently relies on predefined concept lists. Future work may explore free-form text explanations, though this introduces risks of "hallucinations" where the AI might invent facts to be more persuasive. Additionally, moving toward systems that can detect a user's expertise level dynamically remains a key frontier for adaptive XAI.
Summary updated