Abstract
Machine learning explainability aims to make the decision-making process of black-box models more transparent by finding the most important input features for a given prediction task. Recent works have proposed composing explanations from semantic concepts that are inherently interpretable to the user of a model. However, these methods generally ignore the communicative context of explanation—the ability of the user to understand the prediction of the model from the explanation. In this work, we address this gap with listener-adaptive explanations. We propose an iterative procedure grounded in principles of pragmatic reasoning and the rational speech act to generate explanations that maximize communicative utility, and we evaluate our method on classification of lung X-rays. Our procedure only needs access to pairwise preferences between candidate explanations, relevant in real-world scenarios where a listener model may not be available.
Introduction
Traditional Explainable AI (XAI) methods often adopt a "one-size-fits-all" approach, identifying features or concepts important to a model's prediction without considering the recipient's background. This oversight ignores the pragmatics of communication. For instance, a radiologist and a patient require different levels of technical detail to understand the same lung X-ray diagnosis. An explanation is only truly effective if the listener can correctly infer the model's prediction from it. We introduce a framework for listener-adaptive explanations that tailors interpretations to specific users by framing explainability as a cooperative signaling game.
Methodology
Our framework is grounded in the Rational Speech Act (RSA), which treats communication as a probabilistic inference problem.
The Signaling Game
We model the interaction as a cooperative game between a Speaker (the explainer) and a Listener (the user). The Speaker observes an image and the model's prediction, then selects an explanation from a predefined vocabulary. The Listener, seeing only the explanation, must guess the model's prediction. The Speaker's objective is to maximize a reward balancing fidelity (truthfulness to the image) and utility (helpfulness to the specific listener).
Optimization via DPO
To optimize the Speaker, we utilize Direct Preference Optimization (DPO). This iterative procedure ranks candidate explanations based on the RSA objective to update the Speaker, while simultaneously updating the Listener to better interpret the Speaker’s evolving "language." This preference-based approach allows the system to learn from human-like feedback without requiring a perfect mathematical model of human cognition.
Evaluation
We evaluated our method using the CheXpert dataset, focusing on the prediction of "Lung Opacity." To simulate different listener types, we mapped 12 technical clinical findings to 20 laymen descriptions based on expert radiologist input. This allowed us to distinguish between "Doctor" listeners, who prefer technical terminology, and "Patient" listeners, who require more accessible language.
Results and Discussion
Our results demonstrate that pragmatic adaptation significantly improves interpretability:
- Accuracy Gains: Listeners trained jointly with the adaptive speaker achieved 98.75% accuracy in guessing the model's prediction, compared to 84.62% for literal listeners.
- Vocabulary Alignment: The model successfully restricted its vocabulary based on the listener's prior knowledge. It used lay terms for "Patient" simulations and clinical terms for "Doctor" simulations.
- Pragmatic Signaling: The Speaker learned to select the specific subset of claims that best reduced the Listener's uncertainty, proving that explanations need not be exhaustive to be effective.
Conclusion and Future Work
This work highlights the importance of communicative context in XAI. While currently limited by computational complexity and a discrete vocabulary, future research will explore free-form text generation and universal explainers capable of adapting to multiple stakeholders simultaneously.
Summary updated