<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Modeling Contrastiveness in Argumentation</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>AnneMarie Borg</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Floris Bex</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Information and Computing Sciences, Utrecht University</institution>
          ,
          <addr-line>Utrecht</addr-line>
          ,
          <country country="NL">The Netherlands</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Tilburg Institute for Law, Technology, and Society, Tilburg University</institution>
          ,
          <addr-line>Tilburg</addr-line>
          ,
          <country country="NL">The Netherlands</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Modeling contrastive explanations for the use in artificial intelligence (AI) applications is an important research branch within the field of explainable AI (XAI). However, most of the existing contrastive XAI approaches are not based on the findings in the literature from the social sciences on contrastiveness in human reasoning and human explanations. In this work we collect the various types of contrastiveness proposed in the literature and model these with formal argumentation. The result is a variety of argumentation-based methods for contrastive explanations, based on the available literature and applicable in a wide variety of AI-applications.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Explainable Articfiial Intelligence (XAI) is an important and fast growing research area,
contributing to closing the gap between AI-application and its human user. To this end it is essential
that XAI approaches incorporate findings from the humanities and social sciences on how
humans request, generate, interpret and evaluate explanations (e.g., research on explanations
from philosophy [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] or law [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], see [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] for an extensive survey).
      </p>
      <p>
        Argumentation plays an important role in XAI, because it is central to all human
reasoning [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] including explanation [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ]. In addition to existing argumentation-based systems being
inherently interpretable (cf. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]), argumentation has also been used to explain the output of
other less interpretable AI models such as machine learning classification models (e.g., [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]),
deep reinforcement learning models [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] and probabilistic Bayesian Networks [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] (see [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] for a
recent overview). Such explanations in terms of arguments can come in many forms, taking into
account the above-mentioned literature from the humanities and social sciences. For example,
argument-based explanations can be minimal [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], in the form of a dialogue [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], or include
only necessary and suficient reasons [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ].
      </p>
      <p>
        One aspect of everyday explanations that has so far received relatively little attention in the
literature on argumentative explanations is that of contrastiveness: when asking why  ? we
often expect the explanation to answer why  rather than ? Contrastive explanations can be
used to compare a surprising outcome with the expected outcome [
        <xref ref-type="bibr" rid="ref1 ref15 ref16">1, 15, 16</xref>
        ]. Additionally, by
using contrastiveness, explanations can be interactively customized and personalized [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ], and
become easier to derive and cognitively less demanding [
        <xref ref-type="bibr" rid="ref1 ref18">1, 18</xref>
        ].
      </p>
      <p>
        There are a lot of studies on contrastive explanations in XAI, but very few of these base their
explanation definitions on the theoretical foundations from the humanities and social sciences
literature on contrastiveness in human reasoning and human explanation [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ]. In this work
we study the concept of contrastiveness as can be found in the literature on explanations and
formalize our findings in terms of formal argumentation. After a brief introduction to formal
argumentation, we discuss the various types of contrastiveness as proposed in the literature as
well as the requirements placed on them [
        <xref ref-type="bibr" rid="ref1 ref16 ref18 ref19 ref20">1, 19, 16, 18, 20, 21</xref>
        ]. We then show how these types
of contrastiveness can be modeled in abstract argumentation [22] (Section 3.2). Due to space
restrictions we only study contrastiveness for the (non-)acceptance of arguments in abstract
argumentation. However, the proposed explanations could be applied to a structured setting
(e.g., one of those in [23]) in a similar way as was done in [24].
      </p>
      <p>With this paper we start a discussion on contrastiveness for argumentative XAI. We provide
the basis for this discussion by giving a literature overview and showing how notions from the
literature can be implemented in abstract argumentation.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Preliminaries: argumentation and explanation</title>
      <sec id="sec-2-1">
        <title>2.1. Abstract Argumentation</title>
        <p>An abstract argumentation framework (AF) [22] is a pair ℱ = ⟨Args, Att⟩, where Args is a set
of arguments and Att ⊆ Args × Args is an attack relation on these arguments. An AF can be
viewed as a directed graph, see Figure 1 for an example, in which the nodes represent arguments
and the arrow represent attacks between arguments.</p>
        <p />
        <p>Given an argumentation framework ℱ , Dung-style semantics [22] can be applied to it, to
determine what combinations of arguments (called extensions) can collectively be accepted.1
Definition 1. Let ℱ = ⟨Args, Att⟩ be an AF, S ⊆ Args be a set of arguments and let  ∈ Args.</p>
        <sec id="sec-2-1-1">
          <title>Then: S attacks  if there is an ′ ∈ S such that (′, ) ∈ Att; S defends  if S attacks</title>
          <p>every attacker of ; S is conflict-free if there are no 1, 2 ∈ S such that (1, 2) ∈ Att; S is
admissible if it is conflict-free and it defends all of its elements.</p>
          <p>An admissible extension that contains all the arguments that it defends is a complete extension
(Cmp). The grounded extension (Grd) is the minimal (w.r.t. ⊆ ) complete extension and a preferred
extension (Prf) is a maximal (w.r.t. ⊆ ) complete extension.</p>
          <p>We denote by Sem(ℱ ) the set of all extensions of ℱ under the semantics Sem ∈ {Grd,
Cmp, Prf}. Based on the semantics, an argument can be accepted and/or not accepted.
1Other semantics can be found in, e.g., [25]. We do not discuss these, since the specific semantics is not relevant
for our discussion.</p>
          <p>Definition 2. Let ℱ = ⟨Args, Att⟩ be an AF, Sem ∈ {Grd, Cmp, Prf} a semantics and let
 ∈ Args be an argument. Then:  is accepted if there is some ℰ ∈ Sem(ℱ ) such that  ∈ ℰ ;
and  is not accepted (or non-accepted) if there is some ℰ ∈ Sem(ℱ ) such that  ∈/ ℰ .</p>
          <p>Note that, since the grounded extension is unique, if Sem = Grd, an argument is either
accepted or not accepted. For the other semantics an argument can be accepted, not accepted or
both (i.e., there might be extensions with the argument and extensions without the argument).
Example 1. In ℱ 1 from Figure 1 the grounded extension is empty: Grd(ℱ 1) = {∅} and
there are four preferred extensions Prf(ℱ 1) = {ℰ1, ℰ2, ℰ3, ℰ4} where ℰ1 = {, , , , },
ℰ2 = {, , , ,  }, ℰ3 = {, , , , } and ℰ4 = {, , , ,  }. It follows that all
arguments of ℱ 1 are both accepted and non-accepted for Sem ∈ {Cmp, Prf}.</p>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Explanations in Argumentation</title>
        <p>We now recall the main definitions for the explanation framework from [ 24], in which basic
explanations for both the acceptance and non-acceptance of some argument  under various
semantics were defined. We will apply a general notation for acceptance and non-acceptance
explanations, without any restrictions:
Notation 1. Let ℱ = ⟨Args, Att⟩ be an AF,  ∈ Args, Sem ∈ {Grd, Cmp, Prf} be a semantics
and ℰ ∈ Sem(ℱ ) an extension. Then:
• SemAcc(, ℰ ) denotes an acceptance explanation for  in the specific extension ℰ ; and
• SemNotAcc(, ℰ ) denotes a non-acceptance explanation for  in the specific extension ℰ .</p>
        <p>
          By using this general notation, other argumentative explanation methods can be used as well,
e.g., [
          <xref ref-type="bibr" rid="ref12">12, 26, 27, 28</xref>
          ]. Note that these explanations difer slightly from those introduced in [ 24],
in that they also require an extension ℰ in addition to an argument  – the reason for this will
become apparent in Section 3.2. Because explanations in abstract argumentation are defined in
terms of attack and defense between arguments, we also need the following definition.
Definition 3. Given ℱ = ⟨Args, Att⟩, we say that  ∈ Args directly defends  if there is some
 such that (, ) ∈ Att and (, ) ∈ Att, and  indirectly defends  if  defends  and 
defends . Similarly,  directly attacks  ∈ Args if (, ) ∈ Att,  indirectly attacks  if 
attacks some  ∈ Args and  defends . We will often say that  defends [resp. attacks]  when
 directly or indirectly defends [resp. attacks] .
        </p>
        <p>Now we can define basic explanations for (non-)accepted arguments as follows.
Definition 4. Let ℱ = ⟨Args, Att⟩ be an AF and let Sem ∈ {Grd, Cmp, Prf}. First, let  ∈</p>
        <sec id="sec-2-2-1">
          <title>Args be accepted and let ℰ ∈ Sem(ℱ ) such that  ∈ ℰ , then:</title>
        </sec>
        <sec id="sec-2-2-2">
          <title>Now, let  ∈ Args be non-accepted and let ℰ ∈ Sem(ℱ ) such that  ∈/ ℰ , then:</title>
          <p>SemAcc(, ℰ ) = Dacc(, ℰ ).</p>
          <p>SemNotAcc(, ℰ ) = Dnacc(, ℰ ).</p>
          <p>The explanations use a generic function D that returns a set of arguments as an explanation
given a (non-)accepted argument and an extension. This function allows us to vary which
attacking or defending arguments are in an explanation for an acceptance explanation (Dacc) or
a non-acceptance explanation (Dnacc). The two common instantiations of Dacc and Dnacc that
we will use throughout this paper are as follows.2
• Defending(, ℰ ) = { ∈ ℰ |  (in)directly defends };
• NoDefAgainst(, ℰ ) = { ∈ ℰ |  attacks  and ℰ does not attack }.</p>
          <p>When Dacc = Defending, an acceptance explanation for argument  in ℰ is the set of arguments
from ℰ that defends  against all its attackers, and for Dnacc = NoDefAgainst, a non-acceptance
explanation for argument  ∈/ ℰ is the set of attackers of  against which ℰ provides no defence.</p>
        </sec>
        <sec id="sec-2-2-3">
          <title>Example 2. Recall that for ℱ 1 we have the preferred extensions ℰ1, ℰ2, ℰ3 and ℰ4, then:</title>
          <p>• PrfAcc(, ℰ1) = {, , , }, PrfAcc(, ℰ2) = {, }, PrfAcc(, ℰ3) = {, } and</p>
          <p>PrfAcc(, ℰ4) = {, , ,  };
• PrfNotAcc(, ℰ4) = {, , , ,  } and PrfNotAcc(, ℰ1) = {, , , },</p>
          <p>PrfNotAcc(, ℰ2) = {, }, PrfNotAcc(, ℰ3) = {, }.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Contrastiveness in argumentation</title>
      <p>
        The explanations in Section 2.2 are simple, non-contrastive explanations, answers to a Why
(not) P? explanation-seeking question, where  is understood as the (non-)acceptance of an
argument. In its most basic form a contrastive explanation-seeking question is then of the form
Why  rather than ?, where  is called the fact and  is called the foil [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. However, there is
no agreement on exactly what is or constitutes a contrastive explanation [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ]. Like Rudin [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ],
we assume that more than one definition is possible, and below we will discuss the diferent
ideas on contrastiveness and how they can be interpreted for argumentative explanations.
      </p>
      <p>
        The specific contrastive question may vary. First, there is the negation question, where the
fact is compared with the situation in which it does not occur: Why  rather than not- ? [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ].
Second, it is possible to compare the properties of a certain object, resulting in questions like:
Why  rather than the default value for  ? [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] or Why does object  have property  , rather
than property ? [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]. Finally, diferent objects can be compared as well: Why  rather than
? [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] and Why does object  have property  , while object  has property ? [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ].
      </p>
      <p>
        I. Considering explanations in abstract argumentation, the fact  concerns the
(non-)acceptance of an argument, which is also the only property of the argument (i.e., whether it
is accepted or not). Thus, both negation-type and property-type questions are captured
by comparing why an argument is accepted as opposed to not accepted. Object-type
questions then compare diferent arguments (objects) to each other.
2Other instantiations of D are, e.g., DirDefending and DirAttacking, which take only the direct defenders or
attackers of , see [
        <xref ref-type="bibr" rid="ref14">14, 24</xref>
        ].
      </p>
      <p>
        The idea of contrastiveness usually assumes that fact and foil are incompatible [
        <xref ref-type="bibr" rid="ref18 ref20">18, 20</xref>
        ].
Even for a seemingly compatible fact and foil, what we are really interested in is some sort of
(hypothetical) contrast. Take, for example, the question ‘Why does John have disease  and
Harry does not?’ In this case, it would be perfectly possible for Harry to also have disease , so
fact and foil are not inherently incompatible. However, as Ylikoski [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ] notes, we are not really
interested in Harry (why he does not have ), but rather treat him as a surrogate for John, for
whom we want to know why he has  while someone similar to him (Harry) does not.
      </p>
      <p>II. We will assume that fact and foil are not always compatible. This means that fact and foil
are not always part of the same extensions, i.e., there is at least one extension in which
fact or foil is accepted and the other is not. This can be further restricted by, e.g., requiring
that fact and foil are never part of the same extension (i.e., always incompatible).</p>
      <p>
        Note that it is assumed that fact and foil should be similar or closely related. For example,
they should have common presuppositions or a common cause, or share similar causal histories
[
        <xref ref-type="bibr" rid="ref1 ref18 ref20">1, 18, 20</xref>
        ]. For example, it makes little sense to ask ‘Why does John have disease  while my
cat does not?’. We assume that John and Harry are related in that they are comparable persons
(age, gender, background, etc.) who share a similar history, i.e., the same (type of) events that
have caused John to contract disease  could have also afected Harry.
      </p>
      <p>III. We will assume that fact and foil are relevant for each other, which means that they are
at least connected via the attack relation.</p>
      <p>
        Sokol and Flach [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] diferentiate between Why  despite ? and a Why  given ?. The
despite-question requires an explanation that is not conditioned on , that is, the explanation
for the fact  does not take into account the explanation for the foil . The given-question
requests an explanation in which the explanation for fact  is conditioned on the explanation
for foil : what do the explanations for fact and foil have in common? Take, for example, the
question ‘Why did John get a loan and Harry did not?’. A despite-explanation would then be
‘because John has an income of more than 100k’ (John’s income is not directly relevant for
Harry), and a given-explanation would be ‘because John was first and only one person can get
a loan’ (John being first is directly relevant for Harry).
      </p>
      <p>IV. For a given-question, the explanation of the fact is conditioned on the foil (the explanation
contains the part of the explanations that are the same for both fact and foil). For a
despitequestion, the explanation of the fact is not conditioned on the foil (the explanation contains
the part of the explanation for the fact without the foil).</p>
      <p>
        The final important diference made in the literature is the one between alternative and actual
foils, which is made explicit in [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]. On the alternative side there are two incompatible and
alternative outcomes of the same process, one the fact and one the foil. On the actual side
there are two actual (possibly compatible) outcomes, fact and foil, from two actual and diferent
processes. From these two types of contrasts, two questions are formulated and modeled in [29].
The alternative question asks Why  rather than ?, where fact  occurred and foil  did not,
while the actual question asks Why  but ?, where  occurred in the current situation and 
occurred in some other situation.
      </p>
      <p>V. We will consider both types of foils. To this end we will take a fixed argumentation
framework (i.e., for now we do not allow for dynamic settings) and take extensions within
that framework to represent diferent situations. The alternative question is then modeled
given a specific extension (i.e., within an extension), while the actual question is modeled
between extensions.</p>
      <sec id="sec-3-1">
        <title>3.1. Relevance and Compatibility</title>
        <p>In view of considerations II. and III. above we introduce the notions of compatibility and
relevance. Compatibility concerns the mutual acceptance of arguments in the same extensions.
Definition 5. Let ℱ = ⟨Args, Att⟩ be an AF and ,  ∈ Args be two arguments. Then, for</p>
        <sec id="sec-3-1-1">
          <title>Sem ∈ {Cmp, Grd, Prf}:  and  are compatible w.r.t. Sem if for some ℰ ∈ Sem(ℱ ) it holds</title>
          <p>that ,  ∈ ℰ ;  and  are incompatible w.r.t. Sem if there is no ℰ ∈ Sem(ℱ ) such that
,  ∈ ℰ ; and  and  are not always compatible w.r.t. Sem if there is some ℰ ∈ Sem(ℱ )
such that  ∈ ℰ and  ∈/ ℰ .</p>
        </sec>
        <sec id="sec-3-1-2">
          <title>The above can be generalized to sets of arguments. Given two sets of arguments S1, S2 ⊆ Args:</title>
        </sec>
        <sec id="sec-3-1-3">
          <title>S1 and S2 are compatible w.r.t. Sem if for each pair (, ) ∈ S1× S2, there is some ℰ ∈ Sem(ℱ )</title>
          <p>such that ,  ∈ ℰ ; S1 and S2 are incompatible w.r.t. Sem if there is no ℰ ∈ Sem(ℱ ) such
that S1 ∩ ℰ ̸= ∅ and S2 ∩ ℰ ̸= ∅; S1 and S2 are not always compatible w.r.t. Sem if there is some
ℰ ∈ Sem(ℱ ) such that S1 ∩ ℰ ̸= ∅ and S2 ∩ ℰ = ∅.</p>
          <p>Arguments or sets of arguments are compatible if these can be part of the same extension,
incompatible if there is no extension that contains both arguments or arguments from both
sets and not always compatible if there is an extension that only contains one argument or
arguments from one set and not the other. Given II. we will assume that fact and foil are not
always compatible. Given III. we will assume that fact and foil are relevant for each other:
Definition 6. Let ℱ = ⟨Args, Att⟩ be an AF and ,  ∈ Args be two arguments. Then  is
relevant for  if:  (in)directly attacks or defends ; or there is some  ∈ Args such that  is
relevant for both  and . We say that  is conflict-relevant for  if it (in)directly attacks 
and  is defending-relevant for  if it (in)directly defends .</p>
          <p>Arguments are relevant for each other when they are connected by the attack relation, or if
there is an argument that is connected by the attack relation to both of the considered arguments.</p>
        </sec>
        <sec id="sec-3-1-4">
          <title>Example 3. For the argumentation framework ℱ 1 we have that  and  are relevant for</title>
          <p>and  but not for each other. Also, for Sem = Prf,  and  are compatible (there is the
extension {, , , ,  }), but not always (there is the extension {, , , , }) and although
 is compatible with  (there is the extension {, , , ,  }),  is not compatible with .</p>
        </sec>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Contrastive Explanations</title>
        <p>We can now formalize the notions of contrastiveness discussed earlier. Recall that we consider
(I.) negation-type and object-type questions; (II.), (III.) relevant, but not always compatible fact
and foil; (IV.) given- and despite-questions; and (V.) alternative (within an extension) and actual
Note 1. An argument cannot be part of an extension and, at the same time, not be part of that
extension. Given II. (not always compatible) and the fact that within explanations look at just
one extension, a contrastive explanation for within will always be an object-type explanation (i.e.,
between two diferent arguments).</p>
        <p>We start with the contrastive explanation for despite and within: Why  despite  in the
current situation? To ensure a form of contrast, since the fact is accepted, the foil is non-accepted
if it is defending-relevant for the fact and the foil is accepted if it is conflict-relevant for the fact.
We do not limit the foil to be a single argument, rather, we define the explanations between one
argument (the fact) and a set of arguments (the foil).</p>
        <sec id="sec-3-2-1">
          <title>Expl ∈ {Acc, NotAcc} determine the type of explanation and let ℰ ∈ Sem(ℱ ), then:</title>
          <p>Definition 7.</p>
          <p>Given ℱ = ⟨Args, Att⟩,  ∈ Args, S ⊆</p>
          <p>Args and Sem ∈ {Grd, Cmp, Prf}. Let
SemCont((, ℰ ), (S, ℰ )) = SemAcc(, ℰ ) ∖</p>
          <p>SemContN((, ℰ ), (S, ℰ )) = SemNotAcc(, ℰ ) ∖</p>
          <p>The explanation contains the reasons for the acceptance of the fact that are not part of the
acceptance (if Expl = Acc) or non-acceptance (if Expl = NotAcc) explanation of the foil and
similarly for a non-accepted fact.</p>
        </sec>
        <sec id="sec-3-2-2">
          <title>Example 4. In the running example with ℱ 1, there are three preferred extensions in which</title>
          <p>is accepted and one in which it is not accepted. Now, when  is accepted it has to be defended
against , which  can do. However,  might still be accepted without  (i.e., in ℰ3).</p>
          <p>PrfContN((, ℰ2), ({}, ℰ2)) = {, }.</p>
          <p>with the non-acceptance of the foil): PrfCont((, ℰ3), ({}, ℰ3)) = {, }.
• Why  despite not-? Recall that PrfAcc(, ℰ3) = {, } and that PrfNotAcc(, ℰ3) =
{,  }. We therefore have, for Expl = NotAcc (i.e., comparing the acceptance of the fact
• Why not- despite not-? This question is very similar to the above one, where we will
comparing two non-accepted arguments: PrfContN((, ℰ3), ({}, ℰ3)) = {, }.
now apply PrfNotAcc(, ℰ3) = {, }. We then have, again for Expl = NotAcc now
• Why not- despite not-?</p>
          <p>The explanation for the non-acceptance of  was:
PrfNotAcc(, ℰ2) =
{, }. Similarly to the item above, with Expl = NotAcc:
︃(
∈S
︃(
)︃</p>
          <p>)︃
⋃︁ SemExpl(, ℰ ) .</p>
          <p>∈S
︃(
∈S
︃(
)︃</p>
          <p>)︃
in the current situation? Similar to the case of despite and within contrasts, independent of
whether the fact is accepted or non-accepted, the foil can be accepted or non-accepted. However,
for accepted [resp. non-accepted] fact, if the foil is conflict-relevant for the fact it should be
non-accepted [resp. accepted] and if it is defending-relevant for the fact it should be accepted
[resp. non-accepted], this to ensure a contrast between fact and foil.</p>
        </sec>
        <sec id="sec-3-2-3">
          <title>Expl ∈ {Acc, NotAcc} determine the type of explanation and let ℰ ∈ Sem(ℱ ), then:</title>
          <p>Definition 8.</p>
          <p>Args and Sem ∈ {Grd, Cmp, Prf}. Let
SemCont((, ℰ ), (S, ℰ )) = SemAcc(, ℰ ) ∩
⋃︁ SemExpl(, ℰ )</p>
          <p>SemContN((, ℰ ), (S, ℰ )) = SemNotAcc(, ℰ ) ∩</p>
          <p>While in Definition 7 the explanation contained the reasons for the fact without the reasons
for the foil, now the intersection of the explanations for fact and foil are taken. This follows
since the question assumes that the foil is given and should be part of the explanation.</p>
        </sec>
        <sec id="sec-3-2-4">
          <title>Example 5. For the running example with ℱ 1:</title>
          <p>• Why  given not-? Since there are several non-acceptance explanations for , we have
that PrfCont((, ℰ2), ({}, ℰ2)) = {, } and PrfCont((, ℰ3), ({}, ℰ3)) = {, }.
• Why  given not-?</p>
          <p>Recall that there is only one extension with .</p>
          <p>Therefore:</p>
          <p>PrfCont((, ℰ4), ({}, ℰ4)) = {,  }.</p>
          <p>For the fact-foil pairs from Example 4, where the foil is now accepted:</p>
          <p>PrfContN((, ℰ2), ({}, ℰ2)) = {}.</p>
          <p>PrfContN((, ℰ3), ({}, ℰ3)) = {}.</p>
          <p>above item, now based on PrfAcc(, ℰ3)
• Why  given ? or Why not- given ? From the acceptance explanation for 
(i.e., PrfAcc(, ℰ2) = {}), for Expl = Acc: PrfCont((, ℰ2), ({}, ℰ2)) = {} and
• Why not- given ?</p>
          <p>The explanation is very similar as the explanations in the
=
{}.</p>
          <p>Then, for Expl
=</p>
          <p>Acc:</p>
          <p>We now turn to the comparison between extensions. These difer from the contrastive
explanations within an extension, in that we do not take the diference or intersection with (a
set of) explanations for a foil from the same extension, but rather with the second extension as
containing the foil. In other words, we compare the actual situation (extension) of the fact with
the actual situation (extension) of the foil.
and  are accepted as well.</p>
          <p>Example 6. Suppose we want to compare the acceptance of  in one extension with the acceptance
of  in another. For example: PrfAcc(, ℰ4) = {, , ,  } and PrfAcc(, ℰ2) = {, }.
Taking  as the specific foil does not change the explanation, since the explanations do not intersect.
If we instead look at ℰ2 as a whole (recall ℰ2 = {, , , ,  }) we can take the diference and
obtain the explanation {,  }:  is accepted in ℰ4 despite  being accepted in ℰ2, since in ℰ4</p>
          <p>We start with the contrastive explanation for despite: Why  despite  in another situation?
Fact and foil can both be (non-)accepted, since we compare diferent extensions.
Definition 9. Given ℱ = ⟨Args, Att⟩,  ∈ Args, S ⊆ Args and Sem ∈ {Cmp, Prf}. Let</p>
        </sec>
        <sec id="sec-3-2-5">
          <title>Expl ∈ {Acc, NotAcc} determine the type of explanation and let ℰ , ℰ ′ ∈ Sem(ℱ ), where ℰ ̸= ℰ ′. Moreover, SemExpl(, ℰ ′) is an explanation according to Notation 1 for all  ∈ S. Then:</title>
          <p>SemCont((, ℰ ), (S, ℰ ′)) = SemAcc(, ℰ ) ∖ ℰ ′</p>
          <p>SemContN((, ℰ ), (S, ℰ ′)) = SemNotAcc(, ℰ ) ∖ ℰ ′.</p>
          <p>These explanations present the diference of the explanation for the fact in one extension
and the extension of the foil. It is assumed that the foil argument(s) are (non-)accepted in the
extension ℰ ′ and that proper explanations exist. This is necessary to represent the fact-foil
construction of contrastive explanations.</p>
          <p>Because fact and foil are now in diferent extensions, we can also ask negation-type questions,
where the acceptance of an argument is compared with its non-acceptance.
Example 7. For the running example with ℱ 1, suppose that we are interested in the extensions
ℰ2 and ℰ4 for Sem = Prf. We start by comparing the acceptance and non-acceptance of  for
these settings:
• Why  in ℰ4 despite not- in ℰ2? Then, for Expl = NotAcc: PrfCont((, ℰ4),
({}, ℰ2)) = {,  }.
• Why not- in ℰ2 despite  in ℰ4? This results, for Expl = NotAcc, in: PrfContN((, ℰ2),
({}, ℰ4)) = {, }.</p>
          <p>We can also compare the arguments from , ,  and :
• Why  in ℰ2 despite  in ℰ4? For Expl = Acc: PrfCont((, ℰ2), ({}, ℰ4)) = {, }.
• Why  in ℰ4 despite  in ℰ2? The explanation is similar to the explanation above, for</p>
          <p>Expl = Acc: PrfCont((, ℰ4), ({}, ℰ2)) = {,  }.
• Why  in ℰ2 despite not- in ℰ3? For Expl = NotAcc: PrfCont((, ℰ2), ({}, ℰ3)) =
{, }.
• Why not- in ℰ4 despite  in ℰ2? For Expl = Acc: PrfContN((, ℰ4), ({}, ℰ2)) =
{, ,  }.</p>
          <p>Note 2. With these explanation it becomes apparent that the choice of the right foil is essential
when formulating the explanation. While the above explanations make sense when an argument
is compared with its negation (see the first part of Example 7), this might be less so when two
arguments are compared. This has to be accounted for when choosing the formalization, extensions,
fact and foil. For example (last two bullets in Example 7), why  in ℰ2 despite not- in ℰ3 might
not be an informative explanation, while why not- in ℰ4 despite  in ℰ2 might be informative,
since  is a reason for the non-acceptance of  in ℰ4 but they are both accepted in ℰ2. What
conditions are placed on the foil depends on the applications and situation at hand and is left for
future work.</p>
          <p>Finally, we consider the contrastive explanation for given and between: Why  given  in
another situation?. Again, rather than taking the intersection with a set of explanations, we
take the intersection with the second extension, to ensure a comparison between the fact and
its extension with the situation of the foil.</p>
          <p>Definition 10. Given ℱ = ⟨Args, Att⟩,  ∈ Args, S ⊆ Args and Sem ∈ {Cmp, Prf}. Let</p>
        </sec>
        <sec id="sec-3-2-6">
          <title>Expl ∈ {Acc, NotAcc} determine the type of explanation and let ℰ , ℰ ′ ∈ Sem(ℱ ), where ℰ ̸= ℰ ′. Moreover, SemExpl(, ℰ ′) is an explanation according to Notation 1 for all  ∈ S. Then:</title>
          <p>SemCont((, ℰ ), (S, ℰ ′)) = SemAcc(, ℰ ) ∩ ℰ ′</p>
          <p>SemContN((, ℰ ), (S, ℰ ′)) = SemNotAcc(, ℰ ) ∩ ℰ ′.</p>
          <p>In words, these explanations contain the common reasons for the fact in one extension
and the arguments in another extension. The other extension is such that it provides proper
explanations for the argument(s) in the foil.</p>
          <p>Example 8. We are again interested in comparing ℰ2 and ℰ4. However, rather than taking the
diference between the two, we will now take the intersection.</p>
          <p>• Why  in ℰ4 given not- in ℰ2? The acceptance of  in ℰ4 has several reasons (i.e., 
has to be defended against the attack from both  and ), by specifying the extension with
which the explanation has to be compared, we can select the specific reasons. In particular,
for Expl = NotAcc: PrfCont((, ℰ4), ({}, ℰ2)) = {,  }.
• Why  in ℰ2 given  in ℰ4? We take the intersection of the explanations for  and  in
their respective extensions, where Expl = Acc: PrfCont((, ℰ2), ({}, ℰ4)) = ∅.</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion</title>
      <p>
        We have proposed a variety of contrastive explanations in the context of abstract argumentation,
based on the existing humanities and social sciences literature on contrastiveness. Contrastive
explanations have been studied extensively in the XAI literature [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ] and some argumentative
formalizations have been proposed (see, e.g., [30, 31, 32]). What is new, and diferent, about this
paper, is that we start from the literature on contrastiveness and propose several ways in which
one might turn (argumentative) explanations contrastive. To the best of our knowledge, this
is the first work in which the variety of notions on contrastiveness have been formalized in
one setting, for use in XAI. It is therefore a starting point for a discussion on contrastiveness in
(argumentative) XAI.
      </p>
      <p>With this study we pave the way for other researchers to work with contrastive explanations
based on specific notions in the literature. By avoiding restrictions on the (non-)acceptance
explanations (recall Notation 1), researchers outside the argumentation community can benefit
from this work as well.</p>
      <p>Now that we have general notions of contrastiveness, we and other researcher working on
contrastive explanations can study when to apply which definition and how to apply them
outside abstract argumentation. Moreover, we have now restricted our study to arguments, we
can extend this to consider extensions, (dynamic) argumentation frameworks or elements of
arguments in the structured setting.
(1994) 35–53.
[21] K. Sokol, P. Flach, Counterfactual explanations of machine learning predictions:
Opportunities and challenges for AI safety, in: 2019 AAAI Workshop on Artificial Intelligence
Safety (SafeAI’19), volume 2301, CEUR Workshop Proceedings, 2019.
[22] P. M. Dung, On the acceptability of arguments and its fundamental role in nonmonotonic
reasoning, logic programming and n-person games, Artificial Intelligence 77 (1995) 321–
357.
[23] P. Besnard, A. García, A. Hunter, S. Modgil, H. Prakken, G. Simari, F. Toni, Introduction to
structured argumentation, Argument &amp; Computation 5 (2014) 1–4.
[24] A. Borg, F. Bex, A basic framework for explanations in argumentation, IEEE Intelligent</p>
      <p>Systems 36 (2021) 25–35.
[25] P. Baroni, M. Caminada, M. Giacomin, Abstract argumentation frameworks and their
semantics, in: P. Baroni, D. Gabay, M. Giacomin, L. van der Torre (Eds.), Handbook of
Formal Argumentation, College Publications, 2018, pp. 159–236.
[26] X. Fan, F. Toni, On explanations for non-acceptable arguments, in: E. Black, S. Modgil,</p>
      <p>N. Oren (Eds.), Proceedings of TAFA’15, LNCS 9524, Springer, 2015, pp. 112–127.
[27] Z. Saribatur, J. Wallner, S. Woltran, Explaining non-acceptability in abstract argumentation,
in: Proceedings of the 24th European Conference on Artificial Intelligence (ECAI’20),
volume 325 of Frontiers in Artificial Intelligence and Applications , IOS Press, 2020, pp. 881–
888.
[28] M. Ulbricht, J. P. Wallner, Strong explanations in abstract argumentation, in: Proceedings
of the 35th AAAI Conference on Artificial Intelligence (AAAI’21), volume 35, 2021, pp.
6496–6504.
[29] T. Miller, Contrastive explanation: a structural-model approach, The Knowledge
Engineering Review 36 (2021) e14.
[30] L. Amgoud, Explaining black-box classification models with arguments, in: Proceedings
of ICTAI’21, IEEE, 2021, pp. 791–795.
[31] P. Besnard, S. Doutre, T. Duchatelle, M.-C. Lagasquie-Schiex, Question-Based Explainability
in Abstract Argumentation, Research Report IRIT/RR–2022–01–FR, IRIT : Institut de
Recherche en Informatique de Toulouse, France, 2022. URL: https://ut3-toulouseinp.hal.
science/hal-03647896.
[32] A. Borg, F. Bex, Contrastive explanations for argumentation-based conclusions, in:
Proceedings of AAMAS’22, 2022, pp. 1551–1553.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>P.</given-names>
            <surname>Lipton</surname>
          </string-name>
          , Contrastive explanation,
          <source>Royal Institute of Philosophy Supplement</source>
          <volume>27</volume>
          (
          <year>1990</year>
          )
          <fpage>247</fpage>
          -
          <lpage>266</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>K.</given-names>
            <surname>Atkinson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Bench-Capon</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Bollegala</surname>
          </string-name>
          ,
          <article-title>Explanation in AI and law: Past, present and future</article-title>
          ,
          <source>Artificial Intelligence</source>
          <volume>289</volume>
          (
          <year>2020</year>
          )
          <fpage>103387</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>T.</given-names>
            <surname>Miller</surname>
          </string-name>
          ,
          <article-title>Explanation in artificial intelligence: Insights from the social sciences</article-title>
          ,
          <source>Artificial Intelligence</source>
          <volume>267</volume>
          (
          <year>2019</year>
          )
          <fpage>1</fpage>
          -
          <lpage>38</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>H.</given-names>
            <surname>Mercier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Sperber</surname>
          </string-name>
          ,
          <article-title>Why do humans reason? Arguments for an argumentative theory</article-title>
          ,
          <source>Behavioral and Brain Sciences</source>
          <volume>34</volume>
          (
          <year>2011</year>
          )
          <fpage>57</fpage>
          -
          <lpage>74</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>C.</given-names>
            <surname>Antaki</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Leudar</surname>
          </string-name>
          ,
          <article-title>Explaining in conversation: Towards an argument model</article-title>
          ,
          <source>European Journal of Social Psychology</source>
          <volume>22</volume>
          (
          <year>1992</year>
          )
          <fpage>181</fpage>
          -
          <lpage>194</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>F.</given-names>
            <surname>Bex</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Walton</surname>
          </string-name>
          ,
          <article-title>Combining explanation and argumentation in dialogue</article-title>
          ,
          <source>Argument &amp; Computation</source>
          <volume>7</volume>
          (
          <year>2016</year>
          )
          <fpage>55</fpage>
          -
          <lpage>68</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>C.</given-names>
            <surname>Rudin</surname>
          </string-name>
          ,
          <article-title>Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead</article-title>
          ,
          <source>Nature Machine Intelligence</source>
          <volume>1</volume>
          (
          <year>2019</year>
          )
          <fpage>206</fpage>
          -
          <lpage>215</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>H.</given-names>
            <surname>Prakken</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Ratsma</surname>
          </string-name>
          ,
          <article-title>A top-level model of case-based argumentation for explanation: formalisation and experiments</article-title>
          ,
          <source>Argument &amp; Computation</source>
          (
          <year>2021</year>
          )
          <fpage>1</fpage>
          -
          <lpage>36</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>D.</given-names>
            <surname>Kazhdan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Shams</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Liò</surname>
          </string-name>
          ,
          <article-title>Marleme: A multi-agent reinforcement learning model extraction library</article-title>
          , in: 2020
          <source>International Joint Conference on Neural Networks (IJCNN)</source>
          , IEEE,
          <year>2020</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>8</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>S.</given-names>
            <surname>Timmer</surname>
          </string-name>
          , J.-J. Meyer, H. Prakken,
          <string-name>
            <given-names>S.</given-names>
            <surname>Renooij</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Verheij</surname>
          </string-name>
          ,
          <article-title>A two-phase method for extracting explanatory arguments from bayesian networks</article-title>
          ,
          <source>International Journal of Approximate Reasoning</source>
          <volume>80</volume>
          (
          <year>2017</year>
          )
          <fpage>475</fpage>
          -
          <lpage>494</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>K.</given-names>
            <surname>Čyras</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Rago</surname>
          </string-name>
          , E. Albini,
          <string-name>
            <given-names>P.</given-names>
            <surname>Baroni</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Toni</surname>
          </string-name>
          ,
          <string-name>
            <surname>Argumentative</surname>
            <given-names>XAI</given-names>
          </string-name>
          :
          <article-title>A survey</article-title>
          , in: Z.
          <string-name>
            <surname>Zhou</surname>
          </string-name>
          (Ed.),
          <source>Proceedings of IJCAI'21, ijcai.org</source>
          ,
          <year>2021</year>
          , pp.
          <fpage>4392</fpage>
          -
          <lpage>4399</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>X.</given-names>
            <surname>Fan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Toni</surname>
          </string-name>
          ,
          <article-title>On computing explanations in argumentation</article-title>
          , in: B.
          <string-name>
            <surname>Bonet</surname>
          </string-name>
          , S. Koenig (Eds.),
          <source>Proceedings of AAAI'15</source>
          , AAAI Press,
          <year>2015</year>
          , pp.
          <fpage>1496</fpage>
          -
          <lpage>1502</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>A.</given-names>
            <surname>Arioua</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Croitoru</surname>
          </string-name>
          ,
          <article-title>Formalizing explanatory dialogues</article-title>
          , in: C.
          <string-name>
            <surname>Beierle</surname>
            ,
            <given-names>A</given-names>
          </string-name>
          . Dekhtyar (Eds.),
          <source>Scalable Uncertainty Management</source>
          , Springer,
          <year>2015</year>
          , pp.
          <fpage>282</fpage>
          -
          <lpage>297</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>A.</given-names>
            <surname>Borg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Bex</surname>
          </string-name>
          ,
          <article-title>Necessary and suficient explanations for argumentation-based conclusions</article-title>
          ,
          <source>in: Proceedings of ECSQARU'21</source>
          , Springer,
          <year>2021</year>
          , pp.
          <fpage>45</fpage>
          -
          <lpage>58</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>J. Van Bouwel</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          <string-name>
            <surname>Weber</surname>
          </string-name>
          , Remote causes, bad explanations?,
          <source>Journal for the Theory of Social Behaviour</source>
          <volume>32</volume>
          (
          <year>2002</year>
          )
          <fpage>437</fpage>
          -
          <lpage>449</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>D.</given-names>
            <surname>Hilton</surname>
          </string-name>
          ,
          <article-title>Conversational processes and causal explanation</article-title>
          ,
          <source>Psychological Bulletin</source>
          <volume>107</volume>
          (
          <year>1990</year>
          )
          <fpage>65</fpage>
          -
          <lpage>81</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>K.</given-names>
            <surname>Sokol</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Flach</surname>
          </string-name>
          ,
          <article-title>One explanation does not fit all: The promise of interactive explanations for machine learning transparency</article-title>
          ,
          <source>Künstliche Intelligenz</source>
          <volume>34</volume>
          (
          <year>2020</year>
          )
          <fpage>235</fpage>
          -
          <lpage>250</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>P.</given-names>
            <surname>Ylikoski</surname>
          </string-name>
          ,
          <article-title>The idea of contrastive explanandum</article-title>
          , in: J.
          <string-name>
            <surname>Persson</surname>
          </string-name>
          , P. Ylikoski (Eds.),
          <source>Rethinking Explanation</source>
          , Springer,
          <year>2007</year>
          , pp.
          <fpage>27</fpage>
          -
          <lpage>42</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>I.</given-names>
            <surname>Stepin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Alonso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Catala</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Pereira-Fariña</surname>
          </string-name>
          ,
          <article-title>A survey of contrastive and counterfactual explanation generation methods for explainable artificial intelligence</article-title>
          ,
          <source>IEEE Access 9</source>
          (
          <year>2021</year>
          )
          <fpage>11974</fpage>
          -
          <lpage>12001</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>E.</given-names>
            <surname>Barnes</surname>
          </string-name>
          ,
          <string-name>
            <surname>Why P rather than</surname>
            <given-names>Q</given-names>
          </string-name>
          ?
          <article-title>The curiosities of fact and foil</article-title>
          ,
          <source>Philosophical Studies 73</source>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>