TL;DR
When asking why an AI made a choice, humans rarely want a list of every single factor; instead, we ask, "Why option A rather than option B?" This paper introduces a formal mathematical framework for contrastive explanations in Quantitative Bipolar Argumentation Frameworks (QBAFs), offering efficient algorithms to isolate the exact discriminative features that drive one decision over another.
What Problem Does This Paper Address?
Quantitative Bipolar Argumentation Frameworks (QBAFs) are powerful tools used to make AI models transparent. They represent information as a network of arguments that can either support or attack one another, computing a final "strength" score for each option.
While existing explainable AI (XAI) methods for QBAFs can tell you why a single option is strong (absolute attribution), they fail to answer contrastive questions. For example, if an AI classifies an animal as a zebra instead of a horse, telling a user that "it is a herbivore" is a poor explanation—both animals are herbivores. A good explanation must be contrastive, highlighting the difference conditions (like "stripes").
This paper tackles the challenge of formally defining and efficiently computing these contrastive explanations within QBAFs.
Methods
The authors introduce Contrastive Attribution Functions (CAFs), which quantify how much a non-topic argument influences the strength gap between two competing topic arguments.
Key methodological contributions include:
- Axiomatic Foundations: The authors establish core properties that any valid CAF should satisfy, such as Antisymmetry (explaining A vs. B must be the exact negative of B vs. A) and Monotonicity.
- Subtraction-Based Derivation: They prove that well-behaved CAFs can be elegantly derived by simply subtracting individual attribution scores ($\phi_\alpha - \phi_\beta$).
- Three Concrete Formulations: They adapt three standard attribution methods into contrastive variants:
- Removal-based: Measures how the strength gap changes if an argument is deleted entirely.
- Gradient-based: Measures local sensitivity to tiny changes in an argument's base score.
- Shapley-based: Measures the average marginal contribution of an argument across all possible subgraphs.
- Dynamic Programming Optimization: Naively comparing $T$ different choices requires a quadratic $O(T^2)$ number of calculations. By proving an Additivity property, the authors design a dynamic programming algorithm that scales linearly ($O(T)$), making contrastive explanations computationally viable for complex applications.
Datasets
The framework was evaluated using two distinct setups:
- A Synthetic Healthcare QBAF: A multi-layered framework mapping symptoms to diagnoses and treatment recommendations (Antiviral vs. Antibiotic vs. Bronchodilator therapy).
- The COMPAS Dataset: A real-world dataset containing demographic and criminal history data used to predict recidivism risk. To test bias detection, the authors intentionally injected a 70% race-related bias into the training labels and trained a Multilayer Perceptron (MLP), which they then mapped directly into a QBAF structure for auditing.
Key Insights and Ideas
- The Dilution of Common Features: Standard feature attribution often ranks shared traits highly because they are important to the winning class in isolation. Contrastive explanations successfully neutralize these commonalities, filtering out the noise to show only what actually differentiates the choices.
- Unmasking Hidden Algorithmic Bias: Standard individual feature attributions can easily hide systemic biases if the absolute impact of a biased feature on a single score appears small. Contrastive attribution amplifies these hidden variables, making it an exceptionally strong tool for fairness and bias auditing.
- No One-Size-Fits-All CAF: The authors prove that each of their three proposed CAFs uniquely satisfies a specific desirable property: Counterfactuality (Removal), Local Faithfulness (Gradient), and Cross-topic-adjusted Efficiency (Shapley). Practitioners must choose their CAF based on whether they prioritize counterfactual reasoning, local robustness, or strict efficiency.
Key Results
Healthcare Case Study
In the treatment recommendation task, individual explanations showed that the symptom asthma negatively impacted both antiviral and antibiotic therapies. However, the contrastive explanation correctly assigned asthma an attribution score close to 0, recognizing that it was not a distinguishing factor between the two treatments.
Bias Detection on COMPAS
When auditing the biased MLP model, standard individual gradient attribution ranked the feature race as the least important factor (-0.0175) in predicting a "Medium" risk score. However, when asking the contrastive question—why "Medium" rather than "Low" risk—the contrastive gradient attribution for race skyrocketed to 0.2764, becoming the most prominent feature driving the decision. Across 141 biased test instances, the importance rank of race jumped from an average of 5.16 in individual explanations to 2.62 in contrastive ones.
Limitations and Future Work
While the paper provides a robust foundation for pairwise contrastive explanations, it is currently limited to comparing just two options at a time. The authors note that future work should extend this approach to explain full rankings across multiple arguments simultaneously. Additionally, the authors highlight the need for future user studies to empirically verify whether these mathematical formulations truly align with human mental models and improve user trust in practice.
Summary updated