Contrastive Explanations in Quantitative Bipolar Argumentation Frameworks
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Contrastive Explanations in Quantitative Bipolar Argumentation Frameworks Xiang Yin1 , Nico Potyka2 , Antonio Rago3 , Francesca Toni1 1
Imperial College London, UK 2 Cardiff University, UK 3 King’s College London, UK {x.yin20, f.toni}@imperial.ac.uk, potykan@cardiff.ac.uk, antonio.rago@kcl.ac.uk
arXiv:2609.02399v1 [cs.AI] 2 Sep 2026
Abstract Argumentation frameworks are useful tools for representing and reasoning with information in a variety of settings, e.g. in supplementing AI models as they perform classification tasks, with a notable benefit of providing additional explainability. In this paper, we introduce contrastive explanations for Quantitative Bipolar Argumentation Frameworks (QBAFs), one such formalism. Unlike most existing explanations for QBAFs, which explain the reasoning outcome of a single argument of interest (i.e. a topic argument), contrastive explanations explain the difference between two topic arguments. We introduce a general form of contrastive attribution functions (CAFs) and establish a set of general properties they should satisfy. We introduce CAFs based on removal, gradients and Shapley values, and study their properties. Finally, to illustrate contrastive explanations, we demonstrate their usefulness in healthcare and bias identification settings.
1
Introduction
Argumentation frameworks have recently emerged as useful tools for representing and reasoning with information in a range of settings, particularly those where explainability may otherwise be lacking, e.g. in image classification (Ayoobi, Potyka, and Toni 2025; Kori, Rago, and Toni 2025), recommendation (Rago et al. 2021, 2025) and claim verification (Freedman et al. 2025; Zhu et al. 2025). Quantitative Bipolar Argumentation Frameworks (QBAFs) (Baroni et al. 2015) are one such formal model for reasoning with conflicting and supporting information. A QBAF consists of a set of arguments, attack and support relations among them, and a base score function assigning each argument a prior strength. To evaluate a QBAF, a gradual semantics (e.g., (Rago et al. 2016)) is applied to update the base scores by aggregating the influence of attackers and supporters, resulting in a final strength for each argument. QBAFs are well suited to model decision-support tasks (e.g., (Cocarascu, Rago, and Toni 2019; Rago et al. 2021)): the final strengths can serve as decision scores, while the explicit attack and support structure provides a transparent account of the reasoning process (e.g. (Cocarascu, Rago, and Toni 2019)). Figure 1 shows a toy QBAF for an animal classification problem. The possible classes (zebra, horse, tiger), and the relevant features (stripes, herbivore) are represented as arguments. Support and attack relations indicate whether a feature supports or attacks a class. All arguments are assigned
Figure 1: An example QBAF for an animal classification task. Squares represent arguments; green and red edges indicate support and attack relations, respectively. The contrastive explanation for zebra over horse is stripes, whereas that for zebra over tiger is being a herbivore.
a neutral base score of 0.5, and the DF-QuAD semantics (Rago et al. 2016) is applied to compute the strengths of the class arguments. Here, zebra is predicted as it has the highest strength of 0.875, while horse and tiger both have strength 0.5. Given this prediction, a user may ask: why zebra? A possible explanation is that the animal has stripes and is herbivorous. However, research in philosophy, psychology, and social science shows that explanations are contrastive: when people ask a “Why P ?” question, they often implicitly ask “why P rather than Q?”, where P is a fact while Q is some contrast case (Lipton 1990; Hilton 1990; Van Bouwel and Weber 2002; Ylikoski 2007; Chin-Parker and Cantelon 2017; Miller 2019, 2021). In our example, if the question is why the prediction is zebra rather than horse, the contrastive explanation should highlight stripes, since both zebra and horse are herbivorous. In contrast, if the question is why the prediction is zebra rather than tiger, the contrastive explanation should highlight herbivore, since this feature distinguishes zebra from tiger (in this example), whereas stripes does not. Thus, contrastive explanations aim to identify the discriminative reasons (referred to as difference conditions in (Lipton 1990))
that distinguish P from a contrast case Q, rather than listing all explanatory reasons. This makes contrastive explanations simpler, more feasible, and cognitively less demanding (Miller 2021). However, existing explanation methods for QBAFs, such as attribution explanations (Yin, Potyka, and Toni 2023) and counterfactual explanations (Yin, Potyka, and Toni 2024a), mainly focus on explaining the strength of a single argument of interest (topic argument). In other words, they answer “why P ” but overlook the contrast question “why P rather than Q”, and thus fail to capture the “why not Q” aspect. This motivates the central research question of this paper: Given two topic arguments in a QBAF, how can we explain the difference between their strengths? To address this question, we introduce attribution-based contrastive explanations for QBAFs. Our key idea is to assign attribution scores to all non-topic arguments with respect to the strength gap between two topic arguments. Attribution scores are well suited to this purpose because they provide an intuitive quantitative measure of each argument’s influence on the contrast. By comparing these scores, we can identify arguments that discriminate between the two topic arguments without manually inspecting all reasoning paths. For example, when explaining why zebra rather than horse, stripes should receive a larger attribution score than herbivore, as the latter supports both classes. The contributions of this paper are as follows: • We introduce contrastive explanations and desirable properties that they should satisfy (Sections 3, 4); • We study three concrete contrastive explanation methods and their properties (Sections 5, 6, 7); • We illustrate the use of contrastive explanations in healthcare (Section 8) and bias detection (Section 9).
2
Preliminaries
We recall the definition of QBAFs (Baroni et al. 2015). Definition 1 (QBAF). A QBAF is a quadruple Q = ⟨A, R− , R+ , τ ⟩ where A is a finite set of arguments; R− , R+ ⊆ A × A are attack and support relations such that R− ∩ R+ = ∅; τ : A → [0, 1] is a base score function. In the remainder, unless specified otherwise, we will assume a QBAF Q = ⟨A, R− , R+ , τ ⟩ as given. At several places, we will consider QBAF restrictions (Kampik et al. 2024) induced by subsets of arguments. Definition 2 (QBAF Restriction). Given a subset of arguments A′ ⊆ A, the QBAF restriction of Q to A′ is Q↓A′ = ⟨A′ , R− ∩ (A′ × A′ ), R+ ∩ (A′ × A′ ), τ ∩ (A′ × [0, 1])⟩. We use gradual semantics to assign a dialectical strength to each argument in a QBAF. Examples of gradual semantics include DF-QuAD (Rago et al. 2016), Restricted Eulerbased semantics (REB) (Amgoud and Ben-Naim 2018), and Quadratic Energy semantics (QE) (Potyka 2018). Definition 3 (Gradual Semantics). A gradual semantics is a function σ : A → [0, 1] ∪ {⊥}. We call σ(α) the strength of α and say that it is undefined iff σ(α) = ⊥.
All gradual semantics that we are aware of are instances of the class of modular semantics (Mossakowski and Neuhaus 2018) and we will make use of some of their properties later. Roughly speaking, modular semantics compute strength values by an update process that starts from the base scores, and repeatedly updates the strengths of arguments based on the strengths of their attackers and supporters. The update function of modular semantics can be decomposed into an aggregation function that aggregates the strengths of attackers and supporters, and an influence function that uses the aggregate to adapt the base score. An undefined strength value (σ(α) = ⊥) may arise in some cyclic QBAFs when the update process fails to converge (Mossakowski and Neuhaus 2018). However, in all known cases, the convergence problems can be solved by continuizing the semantics (Potyka 2019; Potyka and Booth 2024b). In the following, we will focus on QBAFs for which all strength values are defined. To explain the strength of a topic argument α ∈ A, attribution functions (AFs) ϕα : A \ {α} → R quantify the influence of arguments on α (Kampik et al. 2024). In general, a larger magnitude of ϕα (β) indicates a stronger influence, while its sign indicates whether the influence is positive or negative. Removal-based AFs measure by how much the strength of α changes when β is removed from Q. Definition 4 (Removal-based AF). For any α, β ∈ A and α ̸= β, let A′ = A \ {β}, the removal-based attribution from β to α is ϕR α (β) = σQ (α) − σQ↓ ′ (α). A
Gradient-based AFs measure the sensitivity of α with respect to small changes in the base score of β. Definition 5 (Gradient-based AF). For all α, β ∈ A, α ̸= β, and ϵ ∈ [−τ (β), 0) ∪ (0, 1 − τ (β)], let Qϵ = ⟨A, R− , R+ , τϵ ⟩, where τϵ (β) = τ (β)+ϵ and τϵ (γ) = τ (γ) for all γ ∈ A \ {β}. The gradient-based attribution from β σQϵ (α)−σQ (α) to α is defined as ϕG . α (β) = limϵ→0 ϵ Shapley-based AFs measure the average contribution of β to the strength of α when adding β to a subgraph of Q. Definition 6 (Shapley-based AF). For α, β ∈ A and α ̸= β, the Shapley-based attribution from β to α is defined as X ϕSα (β) = w(B) · cβ (B), B⊆Aα \{β} α |−|B|−1)! where Aα = A \ {α}, w(B) = |B|!·(|A|A and α |! cβ (B) = σQ↓B∪{α,β} (α) − σQ↓B∪{α} (α).
3
Contrastive Explanations
To explain the strength difference between two topic arguments α and β, we introduce contrastive attribution functions (CAFs), which quantify the influence of arguments on their relative strength. Notation 1. For any α, β ∈ A, we write α ⪰ β to denote the contrast α is stronger than β. Definition 7 (Contrastive Attribution Function (CAF)). A CAF for α, β ∈ A is a function Φα⪰β : A \ {α, β} → R.
Intuitively, a positive influence Φα⪰β (γ) > 0 means that γ contributes more favourably to α than to β. This may occur when γ supports α more strongly than β, attacks α less strongly than β, or supports α while attacking β. Conversely, a negative influence means that γ contributes more favourably to β relative to α. If Φα⪰β (γ) = 0, γ contributes equally to α and β and we call the influence neutral. To narrow down the choice of a CAF, we suggest some desirable properties that a CAF should satisfy.
4
Desirable Properties of CAFs
To begin with, if an argument positively affects α ⪰ β, then it should negatively affect β ⪰ α by the same amount. Property 1 (Antisymmetry). For any α, β ∈ A and γ ∈ A \ {α, β}, Φα⪰β (γ) = −Φβ⪰α (γ). Proposition 1. If Φ satisfies antisymmetry,then Φα⪰α (γ)=0. If an attribution function ϕ is well suited to measure the influence of arguments in a domain, we may want that a CAF is calibrated w.r.t. ϕ in the following sense. Property 2 (ϕ-Calibration). Let ϕ be an attribution function. For any α, β ∈ A and γ ∈ A \ {α, β}, if ϕα (γ) = a and ϕβ (γ) = 0, then Φα⪰β (γ) = a. Let us note that antisymmetry implies that a symmetrical calibration property holds for the second argument. Proposition 2 (Inverse ϕ-Calibration). If Φ satisfies antisymmetry and ϕ-Calibration, then ϕα (γ) = 0 and ϕβ (γ) = b implies Φα⪰β (γ) = −b. If the influence of γ on both α and β is equal according to a reference attribution function ϕ, then the influence of γ on α ⪰ β should be 0. Property 3 (ϕ-Neutrality). Let ϕ be an attribution function. For any α, β ∈ A and γ ∈ A \ {α, β} if ϕα (γ) = ϕβ (γ), then Φα⪰β (γ) = 0. Similarly, if γ influences α stronger than β according to a reference attribution function ϕ, then the influence of γ on α ⪰ β should be positive. Property 4 (ϕ-Monotonicity). Let ϕ be an attribution function. For any α, β ∈ A and γ ∈ A \ {α, β}, if ϕα (γ) > ϕβ (γ), then Φα⪰β (γ) > 0. Antisymmetry guarantees again a symmetric behaviour for the case that γ influences α less than β. Proposition 3. If Φ satisfies antisymmetry and ϕMonotonicity, then ϕα (γ) < ϕβ (γ) implies Φα⪰β (γ) < 0.
5
Derived CAFs
Since attribution functions measure the influence of arguments on an individual argument, one natural idea to define CAFs is to combine the individual attribution values by a binary function. Definition 8 (Derived CAFs). A CAF Φα⪰β is called derived from an attribution function ϕ if there is a function f : R2 → R such that for any γ ∈ A \ {α, β}, Φα⪰β (γ) = f (ϕα (γ), ϕβ (γ)).
As we show next, the properties from the previous section can be satisfied by inducing a CAF from a reference attribution function using subtraction. Proposition 4. If Φα⪰β is derived from an attribution function ϕ using subtraction, then Φα⪰β satisfies Antisymmetry, ϕ-Calibration, ϕ-Neutrality and ϕ-Monotonicity. While subtraction-derived CAFs satisfy all previously proposed properties, there could still be other functions that lead to the same properties. We can characterise subtractionderived measures by adding the following additivity property. Property 5 (Additivity). For any α, β, η ∈ A and any γ ∈ A \ {α, β, η}, Φα⪰β (γ) = Φα⪰η (γ) + Φη⪰β (γ). Proposition 5. If Φα⪰β is derived using subtraction, then Φα⪰β satisfies additivity. Additivity can be used to fully characterise subtractionderived CAFs for all plausible attribution functions. By plausible we mean the following: all gradual semantics that we are aware of belong to the class of modular semantics and all modular semantics satisfy the independence property which states that arguments can only affect each other if there is a directed path between them (Potyka and Booth 2024a). Consequently, when adding a new argument to a graph without connecting it to any other arguments, the attribution value of this argument should be 0 for all other arguments. Definition 9 (Plausibility). An attribution function ϕ is called plausible if for each QBAF Q and the QBAF Q′ resulting from Q by adding a single argument η (and no edges), it holds that (1) the attribution values of all arguments from Q are equal in both Q and Q′ , and (2) ϕα (η) = 0 for all arguments α from Q. All AFs introduced previously are plausible. G S Proposition 6. ϕR α , ϕα and ϕα are plausible AFs under all modular semantics. We have the following characterisation of subtractionderived measures. Proposition 7. If Φ is a CAF derived from a plausible attribution function ϕ, and Φ satisfies antisymmetry, ϕcalibration and additivity, then, under all modular gradual semantics, Φ is equal to the CAF derived from ϕ using subtraction. Note that, based on the choice of ϕ, the derived CAF will be calibrated differently, and so CAFs derived from different attribution functions will usually lead to different CAFs. In the following proposition, we present compact formulas for CAFs derived from our previously introduced AFs. G S Proposition 8. The CAFs ΦR α⪰β , Φα⪰β , Φα⪰β derived from the removal-based, gradient-based and Shapley-based AFs using subtraction are defined as follows: ΦR α⪰β (γ) = σQ (α) − σQ (β) − σQ↓A′ (α) − σQ↓A′ (β) . σQ′ (α) − σQ′ (β) − σQ (α) − σQ (β) ΦG (γ) = lim . α⪰β ϵ→0 ϵ X ΦSα⪰β (γ) = w(B) · (cγ→α (B) − cγ→β (B)) B⊆A\{α,β,γ}
+ w(B ∪ {β}) · (cγ→α (B ∪ {β}) − cγ→β (B ∪ {α})) ,
Algorithm 1: Dynamic Programming CAF Computation Input: A QBAF Q, CAF Φα⪰β , set of topic arguments {t1 , . . . , tT }, query argument γ. Output: Map M such that M [i, j] = Φti ⪰tj (γ) for all 1 ≤ i < j ≤ T. 1: Initialise empty map M 2: for i = 1 to T − 1 do 3: M [i, i + 1] ← Φti ⪰ti+1 (γ) 4: for i = 1 to T − 2 do 5: for j = i + 2 to T do 6: M [i, j] = M [i, j − 1] + M [j − 1, j]. 7: return M
where cγ→x (X) = σQ↓X∪{x,γ} (x) − σQ↓X∪{x} (x).
6
Computing Subtraction-Derived CAFs
In applications, our topic arguments often correspond to alternatives that we can choose from. For example, Figure 2 in Section 8 shows a medical decision QBAF where we can choose one of three different treatments (antiviral, antibiotic or bronchodilator). Now consider a problem with T topic arguments t1 , . . . , tT . When computing the impact of an argument on all preferences ti ⪰ tj naively, we require T · (T − 1) = O(T 2 ) CAF calls. In applications like healthcare, where we may have dozens of different diagnoses or treatments, this can be too expensive. We can exploit properties of subtraction-derived CAFs to reduce the number of CAF calls significantly. To begin with, note that anti-symmetry allows us to compute Φti ⪰tj (γ) from Φtj ⪰ti (γ). Hence, it suffices to consider only preferences ti ⪰ tj with i < j. While this reduces the number of computations to T ·(T2−1) = O(T 2 ), it remains quadratic asymptotically. Additivity allows us to design a dynamic programming algorithm that requires only a linear number of CAF calls. Proposition 9. If Φα⪰β satisfies additivity, Algorithm 1 computes Φti ⪰tj (γ) for all 1 ≤ i < j ≤ T with O(T ) Φα⪰β calls. If Φα⪰β can be computed in time O(C), the overall time complexity of the algorithm is O(T · C + T 2 ).
7
σQ↓ ′ (β); A 2. If Φα⪰β (γ) > 0, then σQ (α) − σQ (β) > σQ↓ ′ (α) − A σQ↓ ′ (β). A
Proposition 10. ΦR α⪰β (γ) satisfies Counterfactuality, while S ΦG (γ) and Φ α⪰β α⪰β (γ) can violate Counterfactuality. Local faithfulness constrains the influence of an argument on the strength gap between two topic arguments when perturbing its base score. An argument with positive (negative) influence will locally increase (decrease) the strength gap between two topic arguments when its base score is slightly increased. Property 7 (Local Faithfulness). Φα⪰β (γ) satisfies Local Faithfulness wrt. σ iff, for any γ ∈ A \ {α, β}, there exists δ > 0 such that, for all e ∈ [τ (γ)−δ, τ (γ)+δ]∩[0, 1], letting Q′ = ⟨A, R− , R+ , τ ′ ⟩ be the QBAF such that τ ′ (γ) = e and τ ′ (η) = τ (η) for all η ∈ A \ {γ}. the following statements hold: 1. If Φα⪰β (γ) < 0, then σQ (α)−σQ (β) ≤ σQ′ (α)−σQ′ (β) whenever e < τ (γ), and σQ (α)−σQ (β) ≥ σQ′ (α)−σQ′ (β) whenever e > τ (γ); 2. If Φα⪰β (γ) > 0, then σQ (α)−σQ (β) ≥ σQ′ (α)−σQ′ (β) whenever e < τ (γ), and σQ (α)−σQ (β) ≤ σQ′ (α)−σQ′ (β) whenever e > τ (γ). Proposition 11. ΦG α⪰β (γ) satisfies Local Faithfulness, while R S Φα⪰β (γ) and Φα⪰β (γ) can violate Local Faithfulness. Cross-topic-adjusted Efficiency states that the overall contrastive effect should be fully explained by two components: the aggregate attribution of the non-topic arguments and a correction capturing the imbalance between the attributions of the two topic arguments to each other. The sum of these components should correspond to the difference between the final-strength gap and the base-score gap of the two topic arguments. When the cross-topic attributions are equal, the correction vanishes and the property reduces to standard Efficiency (Shapley 1951). Property 8 (Cross-topic-adjusted Efficiency). Φα⪰βP (γ) satisfies Cross-topic-adjusted Efficiency iff ϕα (β) − ϕβ (α) = γ∈A\{α,β}Φα⪰β (γ) + σQ (α) − σQ (β) − τ (α) − τ (β) . Proposition 12. ΦSα⪰β (γ) satisfies Cross-topic-adjusted EfG ficiency, while ΦR α⪰β (γ) and Φα⪰β (γ) can violate it.
Method-Specific Properties
We regard the properties introduced in Section 4 as desirable for all CAFs and they are indeed satisfied by all previously introduced CAFs. To distinguish our CAFs axiomatically, we introduce some additional properties inspired by (Kampik et al. 2024) to separate them. Counterfactuality captures the intuition that removing an argument with positive (negative) attribution should decrease (increase) the strength difference between the topic arguments. Property 6 (Counterfactuality). Φα⪰β (γ) satisfies Counterfactuality iff, for any γ ∈ A \ {α, β}, letting A′ = A \ {γ}, the following statements hold: 1. If Φα⪰β (γ) < 0, then σQ (α) − σQ (β) < σQ↓ ′ (α) − A
Discussion While we do not regard Counterfactuality, Local Faithfulness and Cross-topic-adjusted Efficiency as essential, we showed that they allow us to distinguish our CAFs and can therefore guide the choice of the CAF in practice. Intuitively, the removal-based CAF measures how the strength difference changes when an argument is removed and is therefore appropriate when a counterfactual interpretation of attribution values is desirable. The gradient-based CAF captures the local sensitivity of the strength difference to changes in arguments’ base scores, and can be used when we are interested in the robustness to small changes. Finally, the Shapley-based CAF measures an argument’s average marginal contribution and is preferable when the differ-
Treatment Layer
Antiviral Therapy
Antibiotic Therapy
Bronchodilator Therapy
Diagnosis Layer
Viral Pneumonia
Bacterial Pneumonia
Asthma
Symptom Layer
High Fever
Cough
Elevated White Blood Cell Count
Positive PCR Test
Wheezing
Figure 2: A QBAF for treatment recommendation in healthcare (taken from (Yin et al. 2026a)). Blue nodes denote arguments and green/red edges, resp., support/attack relations. ence should be fully explained by the attribution values and the cross-topic component.
8
CAFs for Healthcare
We now present an illustrative example of CAFs in a healthcare setting. Figure 2 (taken from (Yin et al. 2026a)) shows how a QBAF can support practitioners in selecting suitable treatments for a patient based on observed symptoms 1 . This QBAF consists of three layers. The bottom layer represents observable symptoms (e.g., cough, wheezing). The intermediate layer represents possible diagnoses (e.g., viral/bacterial pneumonia). The top layer represents possible treatments (e.g., antiviral/antibiotic therapy). These layers are connected hierarchically via attack and support relations, which capture relationships between symptoms, diagnoses, and treatments. For example, wheezing is commonly associated with asthma (support). Asthma can be treated by bronchodilator therapy (support) but not by antiviral therapy (attack). Treatment arguments are connected by mutual attacks because they correspond to competing treatment choices. Base scores can reflect prior information such as the severity of observed symptoms, the plausibility of diagnoses based on a patient’s medical history, or the suitability of candidate treatments. For instance, a higher body temperature may induce a higher base score for the high fever argument. In this example, we assign a base score of 0.5 to all arguments. After specifying the QBAF structure and base scores, we compute the strengths of arguments under QE semantics (Potyka 2018), following the setting of (Yin et al. 2026a). Since the symptom arguments have neither attackers nor supporters, their strengths remain equal to their base scores, namely 0.5. The strengths of the diagnosis arguments are 0.75 for viral pneumonia, 0.6 for bacterial pneumonia, and 0.4 for asthma. The strengths of the treatment arguments are 0.3564 for antiviral therapy, 0.2368 for antibiotic therapy, and 0.1479 for bronchodilator therapy. Thus, antiviral therapy is selected as the most suitable treatment, as it has the highest strength among the candidate treatments. The strength ranking identifies the recommended treatment, but does not explain which symptoms are responsible for this choice. For example, a patient may ask why antiviral 1
This is a simplified, non-clinically validated example.
therapy is recommended instead of antibiotic therapy. This is a contrastive question and we can use Shapley-based CAFs to compute an answer. We present gradient-based explanations in Section B of the Supplementary Material. Contrastive Explanations. Figure 3(a) shows the Shapley-based contrastive explanations for our example. We first analyse the attributions for the five symptom arguments. Among them, Positive PCR Test (abbreviated as PCR) has the largest positive influence on the contrast of the selected treatment (antiviral therapy) over the alternative (antibiotic therapy). The transparent QBAF structure allows us to visualise this influence through paths connecting PCR to the two treatment arguments. Through viral pneumonia, PCR supports a diagnosis that supports antiviral therapy and attacks antibiotic therapy. Thus, these paths both strengthen the selected treatment and weaken the alternative. Furthermore, through bacterial pneumonia, PCR attacks a diagnosis that supports antibiotic therapy and attacks antiviral therapy. The paths through Asthma are less discriminative for this contrast, since weakening Asthma benefits both treatments. We next analyse the influence of arguments in the diagnosis layer. Viral and bacterial pneumonia have the strongest positive and negative influence on the contrast, respectively. This is intuitive because viral pneumonia directly supports the selected treatment and attacks the alternative; whereas bacterial pneumonia directly attacks the selected treatment and supports the alternative. Individual Explanations. To clarify what we gain by using CAFs, we compare them to individual AFs. This comparison highlights several notable differences. First, an argument that has equal or similar influences on two individual treatments may become much less influential in the contrastive explanation. For example, asthma has a negative influence on both antiviral therapy and antibiotic therapy in the individual explanations. However, in the contrastive explanation, its attribution score is close to 0. This indicates that although asthma negatively influences the selected treatment, it is not a distinguishing argument in favour of antiviral therapy over antibiotic therapy because it also negatively influences the alternative in a symmetric manner. Second, an argument that is not very influential on the selected treatment in the individual explanation may become influential in the contrastive explanation. For instance, elevated WBC count has little influence on antiviral therapy, but it has the largest negative attribution score in the contrastive explanation due to its strong positive influence on antibiotic therapy. Property Illustration. We illustrate cross-topic-adjusted efficiency, a key property uniquely guaranteed by Shapleybased CAFs. For the contrastive explanation in Figure 3(a), the final strength difference between antiviral and antibiotic therapy arguments is 0.3564 − 0.2368 = 0.1196, while the base score difference is 0.5 − 0.5 = 0. The non-topic contrastive attributions sum to 0.1123, while the cross-topic component is −0.0705 − (−0.0779) = 0.0074. Using unrounded values, their adjusted sum is 0.1196, as required. For the individual explanations, the attribution scores sum to −0.1436 for antiviral therapy in Figure 3(b) and −0.2632
Figure 3: Shapley-based contrastive and individual explanations for treatment selection. Green bars indicate positive influence, while red bars indicate negative influence. for antibiotic therapy in Figure 3(c). These sums match the changes from the empty coalition to the full player set: 0.5 − 0.1436 = 0.3564 and 0.5 − 0.2632 = 0.2368.
9
CAFs for Bias Detection
In this section, we demonstrate how contrastive explanations can help uncover biases in classification tasks (Jacovi et al. 2021). We use gradient-based CAFs to detect bias in multilayer perceptrons (MLPs), as analysing local sensitivity through gradient-based methods is a natural and widely used approach to explaining differentiable neural networks (e.g., Integrated Gradients (Sundararajan, Taly, and Yan 2017)). In addition, gradient-based CAFs are computationally efficient, as they avoid the combinatorial calculations required by Shapley-based CAFs. Dataset Selection and Preprocessing. We use the COMPAS dataset (ProPublica 2016; Angwin et al. 2016), which is widely used in algorithmic fairness research. The dataset contains defendants’ demographic and criminalhistory information and provides assessments of their recidivism risk. After data cleaning and restricting the dataset to African-American and Caucasian individuals, 5, 278 instances remain. Each instance is represented by eight input features: age, counts of juvenile felonies, misdemeanours, and other offences, number of prior offences, current charge degree, sex, and race. The score_text field is used as the classification label and defines three risk categories: Low, Medium, and High. To train a classifier with a known bias, we modify the labels before splitting the dataset. Specifically, we randomly relabel 70% of the African-American instances in the Low category as Medium, and around 70% of those in the Medium category as High, while leaving the labels of all Caucasian instances unchanged. This controlled modification enables the classifier to learn a race-related bias. Classifier Architecture and Training. We train an MLP with one hidden layer containing 16 neurons on the modified
dataset. The training/validation/test split was 64/16/20 %. The trained classifier achieves an accuracy of 64.58% on the test set. This is very low, but since we are only interested in explaining what a classifier learnt, it does not affect our experiments. Explanations. We select an African-American instance from the test set that is correctly classified as Medium. When its race is changed to Caucasian while all other input features are held fixed, the MLP’s prediction changes from Medium to Low. Following the correspondence established in (Potyka 2021), we represent the MLP as a QBAF in which neurons are represented as arguments and weighted neural connections as support or attack relations . In particular, the eight input neurons correspond to eight input arguments, while the three output neurons correspond to the output arguments Low, Medium, and High. We then apply gradient-based AAEs to quantify the attribution of each input argument to the strength of the output argument Medium. As shown in Figure 4(a), the gradient-based attribution from the input argument race to the output argument Medium is only −0.0175, the smallest in absolute magnitude among the eight input arguments. In contrast, when explaining why the prediction is Medium rather than Low, the contrastive gradient-based attribution of race is 0.2764 and becomes the largest among all input arguments, as shown in Figure 4(b). This indicates that race substantially increases the model’s preference for Medium over Low, although this race-related bias is not prominent in the individual AAEs. Thus, in this example, contrastive explanations reveal the controlled race-related bias in the MLP’s prediction. To investigate whether this observation extends beyond our illustrative instance, we analysed 141 instances that are correctly classified as Medium in the test set, but whose predictions change to Low when race alone is changed from African-American to Caucasian. For each instance, the eight input arguments are ranked according to the absolute values of their gradient-based attributions. The mean
Figure 4: Gradient-based individual and contrastive AAEs for a defendant classified as Medium risk. The race argument is the least prominent in the individual explanation but becomes the most prominent when explaining why the defendant is classified as Medium rather than Low risk.
importance rank of the race argument improves from 5.16 under the individual AAE to 2.62 under the contrastive AAE (with mean absolute attributions of 0.1424 and 0.4478, respectively). Note that a rank closer to 1 indicates a larger absolute attribution and hence greater importance. Hence, contrastive CAFs make the influence of the race argument more prominent than AFs.
10
Related Work
Our work is related to (Kampik, Čyras, and Alarcón 2024), which considers a QBAF Q and its updated version Q′ , where the update may involve adding arguments, support/attack relations, or changing base scores of arguments. For any two topic arguments α and β in both Q and Q′ , a strength inconsistency occurs when the relative ordering of their strengths is not preserved after the update (e.g., σQ (α) > σQ (β) but σQ′ (α) < σQ′ (β)). They define three types of argument-setbased explanations: sufficient explanations, whose changes alone can cause the inconsistency; counterfactual explanations, which are sufficient explanations whose reversal restores strength consistency; and necessary explanations, which intersect all sufficient explanations and therefore capture sets of changes that cannot all be avoided. In contrast, our work focuses on explaining the relative strength difference between two topic arguments within a single QBAF, rather than explaining strength inconsistency induced by an update from one QBAF to another.
(Kampik et al. 2026) consider a QBAF with multiple topic arguments and studies how to obtain a different, often desirable, ordering over their strengths by modifying the base scores of arguments in the QBAF. This is different from our work in that we focus on explaining the strength difference between two topic arguments, rather than obtaining a different strength ordering. Our work is related to a growing line of research on explaining the strength of an individual topic argument α ∈ A in QBAFs and their edge-weighted variants. Existing methods can be broadly divided into attribution-based and counterfactual approaches. Attribution-based methods aim to explain σQ (α) by measuring the influence of other arguments on α (Delobelle and Villata 2019; Čyras, Kampik, and Weng 2022; Kampik et al. 2024; Yin, Potyka, and Toni 2023; Anaissy et al. 2025; Naudot et al. 2026), or the influence of relations on α (Amgoud, Ben-Naim, and Vesic 2017; Yin, Potyka, and Toni 2024b). By contrast, counterfactual explanations study how a desired strength value for α can be obtained, for instance by modifying argument base scores (Yin, Potyka, and Toni 2024a) or, in edge-weighted QBAFs, by modifying edge weights (Yin et al. 2026b). These works focus on explaining a single topic argument, whereas we focus on explaining the difference between two topic arguments.
11
Conclusions
We introduced contrastive explanations for QBAFs to explain differences in the strengths of two topic arguments. As we saw, anti-symmetric CAFs that are calibrated with respect to an AF can be derived from the AF via subtraction. Furthermore, we showed that if a CAF satisfies anti-symmetry, additivity and is calibrated with respect to a plausible AF, it must be equivalent to the CAF derived from the AF via subtraction. Additivity also allowed us to design a dynamic programming algorithm that requires only a linear number of CAF calls when computing attribution values for all combinations of topic arguments. We considered three instanstiations based on removal, gradients and Shapley values and separated them by their distinctive properties. A case study in healthcare illustrates the practical applicability of our approach, and experiments demonstrate that contrastive explanations can help uncover bias in classifiers. As future work, we plan to extend our approach to explain rankings among topic arguments. We also intend to conduct user studies to assess whether contrastive explanations improve users’ understanding of the mechanisms underlying QBAFs. Finally, we aim to explore further application domains in which contrastive explanations may be beneficial, e.g. in product recommendation (Rago et al. 2025) where contrastive explanations seem like a natural fit.
References Amgoud, L.; and Ben-Naim, J. 2018. Evaluation of arguments in weighted bipolar graphs. International Journal of Approximate Reasoning, 99: 39–55. Amgoud, L.; Ben-Naim, J.; and Vesic, S. 2017. Measuring the intensity of attacks in argumentation graphs with shap-
ley value. In International Joint Conference on Artificial Intelligence (IJCAI), 63–69. Anaissy, C. A.; Delobelle, J.; Vesic, S.; and Yun, B. 2025. Impact measures for gradual argumentation semantics. Angwin, J.; Larson, J.; Mattu, S.; and Kirchner, L. 2016. Machine Bias: There’s Software Used Across the Country to Predict Future Criminals. And It’s Biased Against Blacks. ProPublica. Accessed: 2025-05-06. Ayoobi, H.; Potyka, N.; and Toni, F. 2025. ProtoArgNet: Interpretable Image Classification with Super-Prototypes and Argumentation. In AAAI Conference on Artificial Intelligence (AAAI), 1791–1799. Baroni, P.; Romano, M.; Toni, F.; Aurisicchio, M.; and Bertanza, G. 2015. Automatic evaluation of design alternatives with quantitative argumentation. Argument & Computation, 6: 24–49. Chin-Parker, S.; and Cantelon, J. 2017. Contrastive constraints guide explanation-based category learning. Cognitive science, 41(6): 1645–1655. Cocarascu, O.; Rago, A.; and Toni, F. 2019. Extracting dialogical explanations for review aggregations with argumentative dialogical agents. In 18th International Conference on Autonomous Agents and MultiAgent Systems (AAMAS). Čyras, K.; Kampik, T.; and Weng, Q. 2022. Dispute Trees as Explanations in Quantitative (Bipolar) Argumentation. In ArgXAI 2022, 1st International Workshop on Argumentation for eXplainable AI, Cardiff, Wales, September 12, 2022, volume 3209. Delobelle, J.; and Villata, S. 2019. Interpretability of gradual semantics in abstract argumentation. In European Conference on Symbolic and Quantitative Approaches with Uncertainty, 27–38. Springer. Freedman, G.; Dejl, A.; Gorur, D.; Yin, X.; Rago, A.; and Toni, F. 2025. Argumentative Large Language Models for Explainable and Contestable Claim Verification. In Walsh, T.; Shah, J.; and Kolter, Z., eds., AAAI Conference on Artificial Intelligence (AAAI), 14930–14939. AAAI Press. Hilton, D. J. 1990. Conversational processes and causal explanation. Psychological Bulletin, 107(1): 65. Jacovi, A.; Swayamdipta, S.; Ravfogel, S.; Elazar, Y.; Choi, Y.; and Goldberg, Y. 2021. Contrastive explanations for model interpretability. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, 1597–1611. Kampik, T.; Čyras, K.; and Alarcón, J. R. 2024. Change in quantitative bipolar argumentation: Sufficient, necessary, and counterfactual explanations. International Journal of Approximate Reasoning, 164: 109066. Kampik, T.; Potyka, N.; Yin, X.; Čyras, K.; and Toni, F. 2024. Contribution functions for quantitative bipolar argumentation graphs: A principle-based analysis. International Journal of Approximate Reasoning, 173: 109255. Kampik, T.; Yin, X.; Potyka, N.; and Toni, F. 2026. Strength change explanations in quantitative argumentation. Kori, A.; Rago, A.; and Toni, F. 2025. Free Argumentative Exchanges for Explaining Image Classifiers. In Das,
S.; Nowé, A.; and Vorobeychik, Y., eds., International Conference on Autonomous Agents and Multiagent Systems (AAMAS), 1172–1180. International Foundation for Autonomous Agents and Multiagent Systems / ACM. Lipton, P. 1990. Contrastive explanation. Royal Institute of Philosophy Supplements, 27: 247–266. Miller, T. 2019. Explanation in artificial intelligence: Insights from the social sciences. Artificial intelligence, 267: 1–38. Miller, T. 2021. Contrastive explanation: A structural-model approach. The Knowledge Engineering Review, 36: e14. Mossakowski, T.; and Neuhaus, F. 2018. Modular Semantics and Characteristics for Bipolar Weighted Argumentation Graphs. CoRR, abs/1807.06685. Naudot, F.; Brännström, A.; Torra, V.; and Kampik, T. 2026. Set contribution functions for quantitative bipolar argumentation and their principles. International Journal of Approximate Reasoning, 194: 109673. Potyka, N. 2018. Continuous Dynamical Systems for Weighted Bipolar Argumentation. In 16th International Conference on Principles of Knowledge Representation and Reasoning (KR). Potyka, N. 2019. Extending Modular Semantics for Bipolar Weighted Argumentation. In Elkind, E.; Veloso, M.; Agmon, N.; and Taylor, M. E., eds., International Conference on Autonomous Agents and MultiAgent Systems (AAMAS), 1722– 1730. International Foundation for Autonomous Agents and Multiagent Systems. Potyka, N. 2021. Interpreting neural networks as quantitative argumentation frameworks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, 6463–6470. Potyka, N.; and Booth, R. 2024a. Balancing OpenMindedness and Conservativeness in Quantitative Bipolar Argumentation (and How to Prove Semantical from Functional Properties). In Marquis, P.; Ortiz, M.; and Pagnucco, M., eds., International Conference on Principles of Knowledge Representation and Reasoning (KR). Potyka, N.; and Booth, R. 2024b. An Empirical Study of Quantitative Bipolar Argumentation Frameworks for Truth Discovery. In Reed, C.; Thimm, M.; and Rienstra, T., eds., Computational Models of Argument (COMMA), volume 388 of Frontiers in Artificial Intelligence and Applications, 205– 216. IOS Press. ProPublica. 2016. COMPAS Recidivism Racial Bias Dataset. https://www.kaggle.com/datasets/danofer/ compass. Accessed: 2025-05-06. Rago, A.; Cocarascu, O.; Bechlivanidis, C.; Lagnado, D. A.; and Toni, F. 2021. Argumentative explanations for interactive recommendations. Artif. Intell., 296: 103506. Rago, A.; Cocarascu, O.; Oksanen, J.; and Toni, F. 2025. Argumentative review aggregation and dialogical explanations. Artif. Intell., 340: 104291. Rago, A.; Toni, F.; Aurisicchio, M.; and Baroni, P. 2016. Discontinuity-free decision support with quantitative argumentation debates. In 15th International Conference on the Principles of Knowledge Representation and Reasoning (KR).
Shapley, L. S. 1951. Notes on the N-person Game. Sundararajan, M.; Taly, A.; and Yan, Q. 2017. Axiomatic attribution for deep networks. In International conference on machine learning, 3319–3328. PMLR. Van Bouwel, J.; and Weber, E. 2002. Remote causes, bad explanations? Journal for the Theory of Social Behaviour, 32(4). Yin, X.; Miller, T.; Potyka, N.; Rago, A.; and Toni, F. 2026a. Towards an Argumentative Foundation for Evaluative AI. In Workshop on Explainable Artificial Intelligence (XAI) at IJCAI (To appear). Yin, X.; Potyka, N.; Rago, A.; Kampik, T.; and Toni, F. 2026b. Contestability in Edge-Weighted Quantitative Bipolar Argumentation Frameworks. In Proceedings of the 23rd International Conference on Principles of Knowledge Representation and Reasoning, 676–687. Yin, X.; Potyka, N.; and Toni, F. 2023. Argument Attribution Explanations in Quantitative Bipolar Argumentation Frameworks. In ECAI 2023, 2898–2905. IOS Press. Yin, X.; Potyka, N.; and Toni, F. 2024a. CE-QArg: Counterfactual Explanations for Quantitative Bipolar Argumentation Frameworks. In Proceedings of the International Conference on Principles of Knowledge Representation and Reasoning, volume 21, 697–707. Yin, X.; Potyka, N.; and Toni, F. 2024b. Explaining arguments’ strength: unveiling the role of attacks and supports. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, 3622–3630. Ylikoski, P. 2007. The idea of contrastive explanandum. In Rethinking explanation, 27–42. Springer. Zhu, Y.; Potyka, N.; Hernández, D.; He, Y.; Ding, Z.; Xiong, B.; Zhou, D.; Kharlamov, E.; and Staab, S. 2025. ArgRAG: Explainable Retrieval Augmented Generation using Quantitative Bipolar Argumentation. In International Conference on Neurosymbolic Learning and Reasoning (NeSy), volume 284 of Proceedings of Machine Learning Research, 697– 718. PMLR.
Supplementary Material for “Contrastive Explanations in Quantitative Bipolar Argumentation Frameworks” A
Proofs
Property 1 (Antisymmetry). For any α, β ∈ A and γ ∈ A \ {α, β}, Φα⪰β (γ) = −Φβ⪰α (γ). Proposition 1. If Φ satisfies antisymmetry,then Φα⪰α (γ)=0. Proof. Antisymmetry implies Φα⪰α (γ) = −Φα⪰α (γ), so 2Φα⪰α (γ) = 0. Hence, Φα⪰α (γ) = 0. Property 2 (ϕ-Calibration). Let ϕ be an attribution function. For any α, β ∈ A and γ ∈ A \ {α, β}, if ϕα (γ) = a and ϕβ (γ) = 0, then Φα⪰β (γ) = a. Proposition 2 (Inverse ϕ-Calibration). If Φ satisfies antisymmetry and ϕ-Calibration, then ϕα (γ) = 0 and ϕβ (γ) = b implies Φα⪰β (γ) = −b. Proof. We have Φα⪰β (γ) = −Φβ⪰α (γ) = −b, where we used antisymmetry for the first equality and ϕ-Calibration with the assumption ϕβ (γ) = b and ϕα (γ) = 0 for the second equality. Property 3 (ϕ-Neutrality). Let ϕ be an attribution function. For any α, β ∈ A and γ ∈ A \ {α, β} if ϕα (γ) = ϕβ (γ), then Φα⪰β (γ) = 0. Property 4 (ϕ-Monotonicity). Let ϕ be an attribution function. For any α, β ∈ A and γ ∈ A \ {α, β}, if ϕα (γ) > ϕβ (γ), then Φα⪰β (γ) > 0. Proposition 3. If Φ satisfies antisymmetry and ϕ-Monotonicity, then ϕα (γ) < ϕβ (γ) implies Φα⪰β (γ) < 0. Proof. We have Φα⪰β (γ) = −Φβ⪰α (γ). ϕ-Monotonicity and the assumption ϕα (γ) < ϕβ (γ) implies Φβ⪰α (γ) > 0, thus Φα⪰β (γ) < 0. Proposition 4. If Φα⪰β is derived from an attribution function ϕ using subtraction, then Φα⪰β satisfies Antisymmetry, ϕCalibration, ϕ-Neutrality and ϕ-Monotonicity. Proof. Antisymmetry: If Φα⪰β is derived using subtraction, then Φα⪰β (γ) = ϕα (γ) − ϕβ (γ) = −(ϕβ (γ) − ϕα (γ)) = −Φβ⪰α (γ). ϕ-Calibration: If ϕα (γ) = a and ϕβ (γ) = 0, then Φα⪰β (γ) = ϕα (γ) − ϕβ (γ) = a − 0 = a. ϕ-Neutrality: If ϕα (γ) = ϕβ (γ), then Φα⪰β (γ) = ϕα (γ) − ϕβ (γ) = 0. ϕ-Monotonicity: If ϕα (γ) > ϕβ (γ), then Φα⪰β (γ) = ϕα (γ) − ϕβ (γ) > 0. Property 5 (Additivity). For any α, β, η ∈ A and any γ ∈ A \ {α, β, η}, Φα⪰β (γ) = Φα⪰η (γ) + Φη⪰β (γ). Proposition 5. If Φα⪰β is derived using subtraction, then Φα⪰β satisfies additivity. Proof. If Φα⪰β is derived using subtraction, then Φα⪰η (γ) + Φη⪰β (γ) = ϕα (γ) − ϕη (γ) + ϕη (γ) − ϕβ (γ) = ϕα (γ) − ϕβ (γ) = Φα⪰β (γ). G S Proposition 6. ϕR α , ϕα and ϕα are plausible AFs under all modular semantics.
Proof. As shown in (Potyka and Booth 2024a), Theorem 20, all modular semantics satisfy the independence property. Hence, when adding a single argument η without connecting it to any other arguments, the strength values of existing arguments remain G S unchanged. This implies immediately that the second condition holds for ϕR α , ϕα and ϕα and that the first condition holds for R G R G ϕα and ϕα because the strength values in the differences in the definitionP of ϕα and ϕα remain unchanged. For ϕSα , satisfaction of the first condition is not obvious because the sum B⊆Aα \{β} w(B)·cβ (B) will now range over a large number of subsets with different weights. Note that we can partition the subsets for the extended graph into those containing η and those that do not contain η and note that their number is equal (we have |{B | B ⊆ Aα \ {β}}| = |{B ∪ {η} | B ⊆ Aα \ {β}}|). By independence, we have cβ (B) = cβ (B ∪ {η}). Hence, the Shapley value for the extended graph is X X X w′ (B) · cβ (B) = w′ (B) · cβ (B) + w′ (B ∪ {η}) · cβ (B ∪ {η}) B⊆Aα ∪{η}\{β}
B⊆Aα \{β}
=
X B⊆Aα \{β}
B⊆Aα \{β} ′
′
(w (B) + w (B ∪ {η})) · cβ (B),
α |−|X|)! where w′ (X) = |X|!·(|A . We have (|Aα |+1)!
|B|! · (|Aα | − |B|)! (|B| + 1)! · (|Aα | − |B| − 1)! + (|Aα | + 1)! (|Aα | + 1)! |B|! · (|Aα | − |B| − 1)! · ((|Aα | − |B|) + (|B| + 1)) = (|Aα | + 1)! |B|! · (|Aα | − |B| − 1)! = |Aα |! = w(B).
w′ (B) + w′ (B ∪ {η}) =
Hence,
′ B⊆Aα ∪{η}\{β} w (B) · cβ (B) =
P
S B⊆Aα \{β} w(B) · cβ (B) = ϕα (β), which completes the proof.
P
Proposition 7. If Φ is a CAF derived from a plausible attribution function ϕ, and Φ satisfies antisymmetry, ϕ-calibration and additivity, then, under all modular gradual semantics, Φ is equal to the CAF derived from ϕ using subtraction. Proof. Consider an arbitrary QBAF Q evaluated under a modular gradual semantics, and the QBAF Q′ resulting from Q by adding an isolated argument η. For clarity, Condition (2) of Plausibility is intended symmetrically: in Q′ , both ϕα (η) = 0 and ϕη (α) = 0 hold for every argument α from Q. First note that modularity of the gradual semantics implies that it satisfies independence (Potyka and Booth 2024a). Hence, adding η will not change the strength values of arguments in Q and by plausibility of ϕ, the attribution values under ϕ will remain unchanged and ϕα (η) = ϕη (α) = 0 for all arguments α from Q. To distinguish CAF values under Q and Q′ , we write Φ and Φ′ , respectively. For all arguments α, β, γ from Q, we have Φα⪰β (γ) = f (ϕα (γ), ϕβ (γ)) = Φ′α⪰β (γ) = Φ′α⪰η (γ) + Φ′η⪰β (γ) = ϕα (γ) − ϕβ (γ), where we used the definition of derived CAFs and plausibility for the first and second equality, additivity for the third, and antisymmetry, ϕ-calibration and Proposition 2 for the fourth (since ϕη (γ) = 0, ϕ-calibration implies Φ′α⪰η (γ) = ϕα (γ), and Proposition 2 implies Φ′η⪰β (γ) = −ϕβ (γ)). G S Proposition 8. The CAFs ΦR α⪰β , Φα⪰β , Φα⪰β derived from the removal-based, gradient-based and Shapley-based AFs using subtraction are defined as follows: ΦR α⪰β (γ) = σQ (α) − σQ (β) − σQ↓A′ (α) − σQ↓A′ (β) . σQ′ (α) − σQ′ (β) − σQ (α) − σQ (β) G Φα⪰β (γ) = lim . ϵ→0 ϵ X ΦSα⪰β (γ) = w(B) · (cγ→α (B) − cγ→β (B)) + w(B ∪ {β}) · (cγ→α (B ∪ {β}) − cγ→β (B ∪ {α})) , B⊆A\{α,β,γ}
where cγ→x (X) = σQ↓X∪{x,γ} (x) − σQ↓X∪{x} (x). Proof. 1. ΦR α⪰β (γ) = σQ (α) − σQ (β) − σQ↓A′ (α) − σQ↓A′ (β) = σQ (α) − σQ↓A′ (α) − σQ (β) − σQ↓A′ (β) = R ϕR α (γ) − ϕβ (γ). 2. Here, Q′ denotes the perturbed QBAF Qϵ defined in Definition 5. σ
′ (α)−σ
′ (β)
− σQ (α)−σQ (β)
Q Q = limϵ→0 ΦG α⪰β (γ) = limϵ→0 ϵ where the second equality follows from linearity of limits. 3. We have
ΦSα⪰β (γ) = ϕSα (γ) − ϕSβ (γ) X = w(B) · cγ→α (B) − B⊆A\{α,γ}
=
X
X
σQ′ (α)−σQ (α) σ ′ (β)−σ (β) G − limϵ→0 Q ϵ Q = ϕG α (γ) − ϕβ (γ), ϵ
w(B) · cγ→β (B)
B⊆A\{β,γ}
w(B) · cγ→α (B) + w(B ∪ {β}) · cγ→α (B ∪ {β})
B⊆A\{α,β,γ}
−
X
w(B) · cγ→β (B) + w(B ∪ {α}) · cγ→β (B ∪ {α})
B⊆A\{α,β,γ}
=
X
w(B) · (cγ→α (B) − cγ→β (B)) + w(B ∪ {β}) · (cγ→α (B ∪ {β}) − cγ→β (B ∪ {α})) ,
B⊆A\{α,β,γ}
where, for the last equality, we used the fact that the value of w(X) depends only on the size of X and therefore w(B ∪ {β}) = w(B ∪ {α}).
Proposition 9. If Φα⪰β satisfies additivity, Algorithm 1 computes Φti ⪰tj (γ) for all 1 ≤ i < j ≤ T with O(T ) Φα⪰β -calls. If Φα⪰β can be computed in time O(C), the overall time complexity of the algorithm is O(T · C + T 2 ). Proof. For the number of CAF calls, note that the algorithm uses T − 1 = O(T ) Φα⪰β -calls in the for-loop from line 2 to 4 and at no other place. To see that all values are computed correctly, think of the values as organised in a T × T matrix. In lines 2 to 4, we initialise the super diagonal. We have to assure that the matrix values are correctly initialised in lines 5 to 9. We let M [i, j] = M [i, j − 1] + M [j − 1, j]. Hence, if M [i, j − 1] = Φti ⪰tj−1 (γ) and M [j − 1, j] = Φtj−1 ⪰tj (γ), Additivity implies that M [i, j] = Φti ⪰tj (γ) as desired. M [j − 1, j] = Φtj−1 ⪰tj (γ) follows immediately from lines 2 to 4, hence it remains to check that M [i, j − 1] = Φti ⪰tj−1 (γ). For every 1 ≤ i ≤ T − 2, we prove by induction on j that M [i, j] = Φti ⪰tj (γ). For the induction base j = i + 2, the entries M [i, i + 1] and M [i + 1, i + 2] are correctly initialised in lines 2 to 4. Hence, by Additivity, M [i, i + 2] = M [i, i + 1] + M [i + 1, i + 2] = Φti ⪰ti+2 (γ). For the induction step, assume that the claim holds for all i + 2 ≤ j ≤ N , where N < T . Then, for j = N + 1, we compute M [i, N + 1] = M [i, N ] + M [N, N + 1]. We already established that M [N, N + 1] is correctly initialised in lines 2 to 4, and the induction assumption implies that M [i, N ] is computed correctly. Hence, Additivity implies that M [i, N + 1] is computed correctly, which completes the correctness proof. For the time complexity, lines 2 to 4 run in time O(T · C). In lines 5 to 9, we fill T − 2 entries for the first row, T − 3 for the PT −2 −1) second and so on. Hence, overall, we have to fill k=1 k = (T −2)·(T entries. Each entry requires one addition, hence the 2 2 overall number of operations is O(T ). Property 6 (Counterfactuality). Φα⪰β (γ) satisfies Counterfactuality iff, for any γ ∈ A \ {α, β}, letting A′ = A \ {γ}, the following statements hold: 1. If Φα⪰β (γ) < 0, then σQ (α) − σQ (β) < σQ↓ ′ (α) − σQ↓ ′ (β); A A 2. If Φα⪰β (γ) > 0, then σQ (α) − σQ (β) > σQ↓ ′ (α) − σQ↓ ′ (β). A
A
G S Proposition 10. ΦR α⪰β (γ) satisfies Counterfactuality, while Φα⪰β (γ) and Φα⪰β (γ) can violate Counterfactuality. σQ (α) − σQ (β) − σQ↓ ′ (α) − σQ↓ ′ (β) < 0, that is, σQ (α) − σQ (β) < Proof. If ΦR α⪰β (γ) < 0, then A A σQ↓ ′ (α) − σQ↓ ′ (β) . The case where ΦR α⪰β (γ) > 0 follows analogously. A
A
To show that the gradient- and Shapley-based CAFs may violate Counterfactuality, consider the QBAF Q = ⟨A, R− , R+ , τ ⟩, where A = {α, β, γ, η}, R+ = {(η, α)}, R− = {(γ, η), (γ, β), (η, β), (β, α)}, and τ (x) = 1/2 for every x ∈ A. Under DF-QuAD semantics, we obtain σQ (α) = 17/32 and σQ (β) = 3/16. Therefore, σQ (α) − σQ (β) = 11/32. Let A′ = A\{γ}. After removing γ, we obtain σQ↓ ′ (α) = 5/8 and σQ↓ ′ (β) = 1/4. Hence, σQ↓ ′ (α)−σQ↓ ′ (β) = 3/8. A A A A S S A direct calculation gives ΦG α⪰β (γ) = 1/8 > 0. For the Shapley-based CAF, we obtain ϕα (γ) = −1/32 and ϕβ (γ) = −5/32. Therefore, ΦSα⪰β (γ) = ϕSα (γ) − ϕSβ (γ) = 1/8 > 0. However, 11/32 < 3/8. Thus, both attribution scores are positive even S though removing γ increases, rather than decreases, the strength difference between α and β. Therefore, ΦG α⪰β and Φα⪰β may violate Counterfactuality. Property 7 (Local Faithfulness). Φα⪰β (γ) satisfies Local Faithfulness wrt. σ iff, for any γ ∈ A \ {α, β}, there exists δ > 0 such that, for all e ∈ [τ (γ) − δ, τ (γ) + δ] ∩ [0, 1], letting Q′ = ⟨A, R− , R+ , τ ′ ⟩ be the QBAF such that τ ′ (γ) = e and τ ′ (η) = τ (η) for all η ∈ A \ {γ}. the following statements hold: 1. If Φα⪰β (γ) < 0, then σQ (α) − σQ (β) ≤ σQ′ (α) − σQ′ (β) whenever e < τ (γ), and σQ (α) − σQ (β) ≥ σQ′ (α) − σQ′ (β) whenever e > τ (γ); 2. If Φα⪰β (γ) > 0, then σQ (α) − σQ (β) ≥ σQ′ (α) − σQ′ (β) whenever e < τ (γ), and σQ (α) − σQ (β) ≤ σQ′ (α) − σQ′ (β) whenever e > τ (γ). R S Proposition 11. ΦG α⪰β (γ) satisfies Local Faithfulness, while Φα⪰β (γ) and Φα⪰β (γ) can violate Local Faithfulness. σQ′ (α)−σQ′ (β) − σQ (α)−σQ (β) < 0, then there exists δ > 0 such that for any Proof. If ΦG (γ) = lim ϵ→0 α⪰β ϵ σQ′ (α)−σQ′ (β) − σQ (α)−σQ (β) σQ′ (α)−σQ′ (β) − σQ (α)−σQ (β) 0 < |ϵ| < δ, we have = < 0. If e < τ (γ), then ϵ e−τ (γ) σQ (α) − σQ (β) ≤ σQ′ (α) − σQ′ (β). The remaining three cases follow analogously.
To show that the removal- and Shapley-based CAFs may violate Local Faithfulness, consider the QBAF Q = ⟨A, R− , R+ , τ ⟩, where A = {α, β, γ, η}, R+ = {(γ, η)}, R− = {(γ, α), (γ, β), (η, β), (β, α)}, and τ (x) = 1/2 for every x ∈ A. Under DFQuAD semantics, we obtain σQ (α) = 15/64 and σQ (β) = 1/16, and hence σQ (α) − σQ (β) = 11/64. Let A′ = A \ {γ}. After removing γ, we obtain σQ↓ ′ (α) = 3/8 and σQ↓ ′ (β) = 1/4. Therefore, ΦR α⪰β (γ) = 11/64 − A A (3/8 − 1/4) = 3/64 > 0.
However, a direct calculation gives ΦG α⪰β (γ) = −5/32 < 0. Hence, for every sufficiently small increase e > τ (γ), the strength difference between α and β decreases. This contradicts Local Faithfulness for the positive removal-based attribution ΦR α⪰β (γ) > 0. For the Shapley-based CAF, we obtain ϕSα (γ) = −35/192 and ϕSβ (γ) = −7/32. Hence, ΦSα⪰β (γ) = ϕSα (γ) − ϕSβ (γ) = 7/192 > 0. Since the strength difference decreases for arbitrarily small increases in the base score of γ, this positive attribution S also violates Local Faithfulness. Therefore, ΦR α⪰β and Φα⪰β may violate Local Faithfulness. Property 8 (Cross-topic-adjusted Efficiency). Φα⪰β (γ) satisfies Cross-topic-adjusted Efficiency iff ϕα (β) − ϕβ (α) = σQ (α) − σQ (β) − τ (α) − τ (β) .
P
γ∈A\{α,β} Φα⪰β (γ) +
G Proposition 12. ΦSα⪰β (γ) satisfies Cross-topic-adjusted Efficiency, while ΦR α⪰β (γ) and Φα⪰β (γ) can violate it.
Proof. Since the Shapley-based CAF is derived using subtraction, we have ΦSα⪰β (γ) = ϕSα (γ)−ϕSβ (γ) for every γ ∈ A\{α, β}. P P P Therefore, γ∈A\{α,β} ΦSα⪰β (γ) + ϕSα (β) − ϕSβ (α) = γ∈A\{α} ϕSα (γ) − γ∈A\{β} ϕSβ (γ). By the Efficiency property of individual Shapley attributions, established in (Kampik this is equal to σQ (α) − τ (α) − σQ (β) − τ (β) , which et al. 2024), is equivalent to σQ (α) − σQ (β) − τ (α) − τ (β) . Hence, ΦSα⪰β satisfies Cross-topic-adjusted Efficiency. To show that the removal- and gradient-based CAFs may violate Cross-topic-adjusted Efficiency, consider the QBAF Q = ⟨A, R− , R+ , τ ⟩, where A = {α, β, γ, η}, R− = ∅, R+ = {(γ, α), (η, α)}, and τ (x) = 1/2 for every x ∈ A. Under DF-QuAD semantics, σQ (α) = 7/8 and σQ (β) = 1/2. Hence, the difference between the final-strength gap and the base-score gap is 3/8. R For the removal-based CAF, ϕR α (γ) = ϕα (η) = 1/8, while all corresponding attributions to β and both cross-topic attributions are 0. Therefore, the left-hand side of Cross-topic-adjusted Efficiency is 1/8 + 1/8 = 1/4, which is different from 3/8. G For the gradient-based CAF, ϕG α (γ) = ϕα (η) = 1/4, while all corresponding attributions to β and both cross-topic attributions are 0. Therefore, the left-hand side of Cross-topic-adjusted Efficiency is 1/4 + 1/4 = 1/2, which is also different from 3/8. G Hence, ΦR α⪰β and Φα⪰β may violate Cross-topic-adjusted Efficiency.
B
Additional Contrastive Explanations in Section 8
Figure 5: Gradient-based contrastive and individual explanations for treatment selection. Green bars indicate positive influence, while red bars indicate negative influence.
C
Computing Environment
All experiments were conducted locally on a personal laptop running Microsoft Windows 11 Home, equipped with an Intel Core Ultra 5 225H CPU (14 cores) and 32 GB of RAM. All computations were performed on the CPU. The software environment consisted of Python 3.11.9, PyTorch 2.13.0, NumPy 2.4.4, pandas 3.0.3, scikit-learn 1.9.0, and Matplotlib 3.10.8.
Related documents
- Contrastive Explanations in Quantitative Bipolar Argumentation Frameworks#924282
- Contrastive Explanations in Quantitative Bipolar Argumentation Frameworks#920051
- Truth-value judgments#721822
- Embedding Models for Stance-Aware Argument Retrieval#792301
- Embedding Models for Stance-Aware Argument Retrieval#788301
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive