<!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>Conceptual Edits as Counterfactual Explanations</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Giorgos Filandrianos</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Konstantinos Thomas</string-name>
          <email>konstantinos.thomas@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Edmund Dervakos</string-name>
          <email>eddiedervakos@islab.ntua.gr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Giorgos Stamou</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>AILS lab, School of Electrical and Computer Engineering, National Technical University of Athens</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>In A. Martin, K. Hinkelmann</institution>
          ,
          <addr-line>H.-G. Fill, A. Gerber, D. Lenat, R. Stolle, F. van Harmelen (Eds.)</addr-line>
          ,
          <institution>Proceedings of the AAAI 2022 Spring Symposium on Machine Learning and Knowledge Engineering for Hybrid Intelligence (AAAI-MAKE 2022), Stanford University</institution>
          ,
          <addr-line>Palo Alto, California</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>We propose a framework for generating counterfactual explanations of black-box classifiers, which answer the question “What has to change for this to be classified as X instead of Y?” in terms of given domain knowledge. Specifically, we identify minimal and meaningful “concept edits” which, when applied, change the prediction of a black-box classifier to a desired class. Furthermore, by accumulating multiple counterfactual explanations from interesting regions of a dataset, we propose a method to estimate a "global" counterfactual explanation for that region and a desired target class. We implement algorithms and show results from preliminary experiments employing CLEVR-Hans3 and COCO as datasets. The resulting explanations were useful, and even managed to unintendedly reveal a bias in the classifier's training set, which was unknown to us.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Counterfactual Explanations</kwd>
        <kwd>XAI</kwd>
        <kwd>Knowledge Graphs</kwd>
        <kwd>Description Logics</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        have a whole spectrum of plausible combinations as answers. The algorithm’s goal is to find
the one requiring the least amount of change, customized for that particular situation, while
also being feasible and actionable in the real world. A key element of counterfactuals is their
reliance on notions of distance and similarity [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. In our approach, we propose employing a
measure of conceptual distance of data samples combined with the amount of change at the
output of a black-box classifier as a criterion for getting counterfactual explanations.
      </p>
      <p>
        There are many approaches to counterfactual explanations in recent literature. Poyiadzi et al.
[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] define counterfactual explanations as “feasible paths” in the data, which respect the data
distribution and satisfy feasibility and actionability constraints. We take inspiration from this
work and attempt to incorporate the constraints in our approach. Goyal et al.[
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] propose a
method for detecting which regions in an image should be changed, by “opening” the black
box and utilizing the features extracted in the first layers of a deep neural network. They
approach the problem as a “minimum edit” problem which is close to the way we approach
the problem, with some important diferences being: we do not require access to the model’s
weights, the explanations we provide have the form of concept edits instead of pixel edits, and
our approach is suited for any domain besides images. Another method for the visual domain
proposed by Zhao et al. [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], uses a text-to-image generative adversarial network to generate
counterfactual visual explanations. A similarity of this approach with ours is that they utilize
external knowledge and don’t solely rely on the given features and classes for a model. For
numeric tabular data, Gomez et al. [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] propose a heuristic method for detecting the minimal
set of changes required for the prediction of a classifier to change, and provide a visualization
tool for end-users. This approach is similar to ours in the sense that they compute a minimal set
of changes, however instead of being applied on continuous numerical features, ours is applied
on concepts that are independent of the features which the classifier accepts at its input. For
further reading, we refer to literature surveys on counterfactual explanations [
        <xref ref-type="bibr" rid="ref11 ref12">11, 12</xref>
        ].
      </p>
      <p>
        The majority of AI today is data-driven, sub-symbolic machine learning. Models tend to be
convoluted, algebraic matrices that are dificult for humans to interpret. Knowledge graphs
[
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], on the other hand, provide symbolic, background knowledge in a machine-readable and
human-understandable format. Knowledge representation techniques seem like a promising
complement to machine learning for providing meaningful explanations [
        <xref ref-type="bibr" rid="ref14 ref15">14, 15</xref>
        ]. For instance
Silva et al. [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] utilize knowledge graphs such as WordNet [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] in a composite approach for
text entailment. They simultaneously outperform the state-of-the-art while explaining their
predictions, thanks to the external knowledge. Liartis et al. [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ] and Dervakos et al. [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ] provide
explanations for black-box classifiers, by attempting to mimic the classifier’s behaviour with
semantic query answering over external knowledge. Daniels et al. [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ] propose exploiting the
WordNet hierarchy to perform scene classification from images with neural networks in an
explainable fashion. Alirezaie et al. [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ] utilize external ontological knowledge to explain the
errors of a satellite image classifier. For further reading on knowledge graphs as a tool for
explainability, we refer to the recent survey by Tiddi et al. [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ]. Following this line of work, our
approach to counterfactual explanations makes use of external knowledge graphs, in the form
of concept hierarchies. Specifically, our contributions can be summarized as follows:
• We introduce a theoretical framework for representing and computing counterfactual
explanations with respect to concepts that characterize data samples and are linked with
external knowledge, in the form of concept hierarchies.
• We propose using a conceptual edit distance which is adaptable by the assignment of
costs via user input, in order to satisfy any real-world constraints. This edit distance is
based on the concept hierarchy, and is closely related to other semantic distance/similarity
measures which have been proposed over the years [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ]
• We accumulate multiple counterfactual explanations, in order to generate a “global”
explanation for a specific class (which we call generalized counterfactual explanations).
      </p>
      <p>To our knowledge, we are the first to explore global counterfactual explanations.
• We propose and implement algorithms for generating explanations in this context, and
show results from preliminary experiments.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Background</title>
      <p>
        For describing concepts and the relationships between them we use the notation from description
logics [
        <xref ref-type="bibr" rid="ref24">24</xref>
        ]. Specifically, in this work we utilize data annotations which use a vocabulary linked
to concept hierarchies, in the form of taxonomies. We choose the formalism of description logics
because in the future we plan to expand our framework to work with more expressive knowledge
besides taxonomies of concepts. Given a set of concept names CN, each of which represents an
atomic concept, a concept C is defined as: C := A|⊤|⊥, where A ∈ CN, ⊤ is the universal concept
and ⊥ is the bottom concept. For defining relationships between concepts we use a TBox  ,
which is a set of terminological axioms of the form: A ⊑ B, where A and B are atomic concepts,
and ⊑ denotes inclusion. Inclusion is transitive, meaning: ( ⊑  and  ⊑ ) ⇒  ⊑ .
Such a TBox may be represented as a directed graph  = (, ), where there is a 1− 1 matching
between vertices of the graph and concepts:  ↔ CN ∪ {⊤}, and there is an edge from vertex
1 which matches to concept A1 to vertex 2 which matches to concept A2 if A1 ⊑ A2 ∈  .
Furthermore, we consider any concept which appears only on the right of inclusion axioms in
the given TBox, is connected with an incoming edge from the node corresponding to ⊤. We will
refer to this graph as the TBox graph. When we ignore the direction of edges in the TBox graph,
we will refer to it as an undirected TBox graph. Throughout this paper we allow the assignment
of positive weights to edges of an undirected TBox graph. Finally, we view black box classifiers
 as functions  :  → [
        <xref ref-type="bibr" rid="ref1">0, 1</xref>
        ], where  is the classifier’s domain, i.e. what it expects at its
input (ex. images, text, vectors), and  is the number of classes. With abuse of notation, when
an element  is classified in class , we write  () = , while the output of the classifier for
class  is written as  ()(∈ [
        <xref ref-type="bibr" rid="ref1">0, 1</xref>
        ]).
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Interpreting Black-Box Classifiers with Terminology Based</title>
    </sec>
    <sec id="sec-4">
      <title>Counterfactual Explanations</title>
      <p>
        An overview of our framework is shown in Figure 1. In order to generate explanations for a
black-box classifier, we need a terminology in terms of which we express the explanations, in
addition to a set of testing items for the classifier. Specifically, we need a dataset, where for each
sample we require: a) features which can be fed to the classifier, and b) a semantic description of
the sample in the form of a set of concepts, in terms of which we will provide the explanations.
In the general case, this set of concepts is linked to external knowledge, in the form of a TBox.
Definition 1 (Explanation Dataset). Let  :  → [
        <xref ref-type="bibr" rid="ref1">0, 1</xref>
        ] be a classifier. Given the domain 
of the classifier to be explained, and a set of atomic concepts CN, an explanation dataset for 
is a set of tuples {(, )}, where  ∈  and  ⊆ CN
For instance, in an explanation dataset for image classifiers, the first element ( ) of a tuple
represents an image, while the second element () might be a set of concepts that describe
objects in the image. In Section 5 we experiment on image classification explanation datasets
CLEVR-Hans3 [
        <xref ref-type="bibr" rid="ref25">25</xref>
        ] and COCO [
        <xref ref-type="bibr" rid="ref26">26</xref>
        ]. In another example, the first element of a tuple might be
raw text, which is fed to a black-box natural language model, while the second element might
be a set of concepts from external knowledge such as WordNet [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] or ConceptNet[
        <xref ref-type="bibr" rid="ref27">27</xref>
        ] , or
even domain-specific knowledge such as SNOMED-CT [ 28] for the medical domain, leading to
a dataset similar to the one used in [29].
      </p>
      <p>Given an explanation dataset, we can answer the question “What has to change in order to be
classified as X instead of Y? ” in terms of concepts (), instead of features (). In many cases,
this leads to more intuitive explanations, especially in cases in which  is sub-symbolic raw
data (pixels, audio signals, etc), and  is linked to useful knowledge. More specifically, the
explanations which we generate will have the form of edits on a set of concepts, where the cost
of each edit is determined by the distance between concepts in the TBox graph.
Definition 2 (Concept Distance). Let CN be a set of atomic concepts,  be a TBox for CN, and
 be the corresponding undirected TBox graph. The distance from concept A to concept B, where
A, B ∈ CN ∪ {⊤} is defined as the length of the shortest path on  from the vertex A to the
vertex B, where A, B are the vertices corresponding to atomic concepts A, B. We write  (A, B)
to denote concept distance.</p>
      <p>For example if we were given the TBox {Cat ⊑ Mammal, Dog ⊑ Mammal, Ant ⊑
Insect, Mammal ⊑ Animal, Insect ⊑ Animal}, then the concept distance from Cat to Dog would
be 2, with the path on  being Cat → Mammal → Dog. The concept distance from Cat to Ant
would be 4 with the shortest path being Cat → Mammal → Animal → Insect → Ant. Finally,
the concept distance from Cat to ⊤ would be 3 with the path Cat → Mammal → Animal → ⊤.</p>
      <p>We will use the notion of concept distance for assigning cost to edit operations on sets of
concepts. These edit operations will end up being part of the counterfactual explantions.
Definition 3 (Concept Set Edit). Let CN be a set of atomic concept names,  be a TBox for CN,
and  ⊆ CN be a set of concepts. A concept set edit on  is any of:
• Replacement of concept A ∈  with concept B ̸∈ . We write A→B() to denote
replacement of A from  with B.
• Deletion of concept A ∈  from . We write A→⊤() to denote deletion of A from .
• Insertion of concept B ̸∈  into . We write ⊤→B() to denote insertion of B into 
The cost of a concept set edit → is defined as the concept distance from  to :  (, ),
where ,  ∈ CN ∪ {⊤}. The resulting set of concepts →() is called a transformation of .</p>
      <p>As mentioned in Section 2, we allow for the assignment of positive weights to the undirected
TBox graph. This is done to allow for the incorporation of additional constraints to better
reflect the actionability and feasibility of changes in the real world. In this work, we do not
systematically do this, as we consider it to be given. For example for a given application, it
might be useful to make the deletion of an Animal concept (Animal→⊤) more costly than the
replacement of a Cat concept with a Mammal concept (Cat→Mammal), so we would appropriately
tweak the edge weights of the undirected TBox graph.</p>
      <p>As is apparent from the notation →, we treat the deletion of concept A from a set as if
being equivalent to its replacement with the universal concept ⊤, while the insertion of concept
B is treated as if replacing a ⊤ concept with B. This entails that inserting or deleting a concept
is more costly the further away it is from the ⊤ vertex in the TBox graph, which is a measure
of how specific the concept is. Continuing the previous example, given a set , then inserting
a Cat concept into the set would have a cost of  (⊤, Cat) = 3, while inserting an Animal
concept into the set would have a cost of  (⊤, Animal) = 1. Using the concept set edit, we
can define a concept set edit distance between sets of concepts, as the minimum cost of a set of
concept set edits which when applied to the first set of concepts, transform it into the second.
Definition 4 (Concept Set Edit Distance). Let CN be a set of concept names,  be a TBox on
CN and , ℬ be sets of concepts , ℬ ⊆ CN. The concept set edit distance from  to ℬ is
defined as the minimum cost of a set of concept edits which transform  into ℬ.</p>
      <p>Intuitively, the concept set edit distance represents the minimum cost of converting every
concept present in the first set, into every concept present in the second. For example, given
two sets of concepts  = {Cat, Insect} and ℬ = {Animal}, and the TBox from the previous
example, then their concept set edit distance will be  (, ℬ) = min{[ (Cat, Animal) +
 (Insect, ⊤)], [ (Cat, ⊤) +  (Insect, Animal)]} = min {(2 + 2), (3 + 1)} = 4.</p>
      <p>In the context of our framework, the concept set edit distance is used to measure how
conceptually similar two elements of an explanation dataset are and is one of the two key
components for generating counterfactual explanations. The second component involves the
black-box classifier which we want to explain. Specifically, we want counterfactual explanations
to represent small conceptual changes (small concept set edit distance) which lead to large
changes in the output of the classifier. For this reason, we define the significance of transforming
an element of an explanation dataset into another.</p>
      <p>Definition 5 (Significance of Transformation). Let  be a classifier,  be a TBox and  =
(, ),  = (, ) be two elements of an explanation dataset for  . The significance of
transforming  into  is defined as:  (, ) = | ()−  ()|
 (,)</p>
      <p>
        Significance of transformations is the measure we use to determine what constitutes a good
counterfactual explanation. The local explanations will have the form of a sequence of samples
of the explanation dataset (similarly to the approach by Poyiadzi et al. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]), but they will be
accompanied by sets of concept set edits, which show what has to change conceptually in the
data sample for the classification to change. In practice, we construct a directed graph where
there is a node for each sample in the explanation dataset, and edges between pairs of nodes
1
,  have a cost of  (,) and as a label the set of edits corresponding to the conceptual distance
 . We then compute the shortest path from the given sample to any sample in the desired
class, as described in Section 4.
      </p>
      <p>Definition 6 (Local Counterfactual Explanation). Let  = {, } be an explanation
dataset for a classifier  , and  = (, ) be a directed graph, where there is a 1-1
correspondence between elements of  and the set of vertices  . The set of edges  contains an edge of
weight 1/ (, ) for every ordered pair of elements ,  ∈ . Each edge (, ) also has as a label
a sets of concept set edits which optimally transform  into . A counterfactual explanation
from element  to a class  is a path from the node corresponding to  to any element  for which
 ( ) = . Counterfactual explanations corresponding to a shortest path from  to any  are
called optimal counterfactual explanations.</p>
      <p>The shorter the distance of a path corresponding to a local counterfactual explanation, the
better the explanation is considered since short distances represent significant transformations.</p>
      <p>Finally, besides acquiring a local explanation on how a single sample should be changed for it
to be classified in a specific class, we are also concerned with more general explanations which
give us an overview of which type of edits are more likely to lead towards being predicted
as a specific class, given a generalization of the initial sample. For example, a counterfactual
explanation for a PhD student who is also a musician and was declined a loan might not
be informative enough. This extension to global explanations would be able to answer the
question “What do musicians usually change to have their loan accepted” and “What do PhD
students usually change to have their loan accepted”, which combined with its local explanation
might be useful for the user to better understand why the black-box is making these decisions.
Definition 7 (Region of Explanation Dataset). Let CN be a set of concept names,  be a
set of concepts  ⊆ CN, and  = {, } be an explanation dataset. A region of  with
description  is the subset  ⊆  of the explanation dataset for which: (, ) ∈  ⇐⇒
∀1 ∈ , ∃2 ∈  : 2 ⊑ 1</p>
      <p>A region of an explanation dataset is a subset of it which satisfies specific constraints, it is
essentially a query. For example given a region description  = {Animal}, then the region 
will contain any samples (, ) of the explanation dataset which in their semantic description
 contain any concept  which is included in Animal according to the TBox. Generalized
counterfactual explanations will then be statistical measures on all optimal local counterfactual
explanations from elements of a region. Specifically, they will measure how often a concept is
introduced (either via replacement or insertion) and subtract how often they are removed.
Definition 8 (Generalized Counterfactual Explanation). Let  be a region of an
explanation dataset, and  be the multi set containing the labels of optimal local counterfactual
explanations from each element of  to the desired class. Given a set of concepts  ⊆ CN, a
generalized counterfactual explanation is an assignment of importance to every concept C ∈ .
, where the importance of a concept C is defined as: |{→C∈ }|−|{ C→∈ }| , where  ∈ CN
||</p>
      <p>For example consider an explanation dataset for a classifier which determines if an image
depicts a bedroom or a veterinarian’s ofice . A region of this explanation dataset with a description of
{Animal} might contain three elements: (1, {Cat, Dog}), (2, {Insect}), (3, {Human, Sofa}).
Let the first image be classified as veterinarian’s ofice , while the other two are classified
as bedroom. The optimal local counterfactual explanations from each element to the class
veterinarians ofice might have labels: 1 = ∅ (since 1 is already classified in the desired
class), 2 = {⊤→Human, Insect→Cat} and 3 = {Human→Cat, Sofa→⊤}. Then the
multiset  containing the labels of all optimal counterfactual explanations will be  =
{⊤→Human, Insect→Cat, Human→Cat, Sofa→⊤}. Then, a generalized counterfactual explanation
for this region would be: a) Cat with importance 23 = 23 − 1 .0N,be)gIantsievcetiamnpdoSrotafancweitinhdimicaptoerstatnhcaet
− 13 = 0 − 13 , and c) Human with importance 0 = 13 − 3
the concept is usually removed, while positive importance that it is introduced.</p>
    </sec>
    <sec id="sec-5">
      <title>4. Computing Counterfactual Explanations</title>
      <p>For generating the proposed counterfactual explanations in practice, we need a classifier  , an
explanation dataset , and a TBox  . There are three steps to computing explanations. The
ifrst step is to create the graph mentioned in Definition 6, the second step is to find appropriate
paths in this graph, and the third step (only for generalized counterfactual explanations) is to
accumulate these paths and compute importance (from Definition 8). We show an outline of
how we create the graph in Algorithm 1. For computing the concept distance between two
concepts we find the shortest path on the undirected TBox graph using Dijkstra’s algorithm with
a complexity of (|CN| + | | log |CN|). For computing Concept Set Edit Distance (Definition
4) from set of concepts  to set of concepts ℬ, we first remove common elements from both
sets, then we create a bipartite graph in (|||ℬ|), where each element of  is connected
with an edge to all elements of ℬ with a weight for each edge corresponding to the concept
distance, and then we compute the minimum weight full matching of the bipartite graph by
using an implementation of Karp’s algorithm[30] for the problem with a time complexity of
(|||ℬ| log |ℬ|). Thus, to create the graph with Algorithm 1, the total time required will
end up being (( +  log )42 log ), where  = |CN|,  is the maximum cardinality of
a set of concepts,  is the size of the explanation dataset and  is the size of the TBox. The
creation of this graph is only done once per explanation dataset and TBox. To then compute
local counterfactual explanations (Definition 6), we use Dijkstra’s algorithm to find the shortest
path, on the already constructed graph (including edge costs and labels) 1.</p>
    </sec>
    <sec id="sec-6">
      <title>5. Experiments</title>
      <p>
        The experimental objective we found was most in tune with counterfactual explanations was to
test a classifier for biases. For example, if we trained a classifier on a set of images that included
a "grey cube" in all the images of a specific class, would our counterfactual explanation result in
an "add a grey cube" answer when asked how should we alter an image for it to belong in that
class? This is precisely what we did with the CLEVR-Hans3 [
        <xref ref-type="bibr" rid="ref25">25</xref>
        ] dataset. Due to the control
it provides on the generated images, and their accompanying description, it was the logical
ifrst step. Indeed, we found that our counterfactual algorithm was consistently able to detect
these biases. Once this more technical task was accomplished, we sought to experiment on a
more intuitive task. The advantage of such a task would be that it simulates a more real-world
problem than 3D colored objects but, as with many real-world problems, it does not have an
impartially correct bias. For example, what defines a bedroom as being a bedroom, and what
makes a kitchen, a kitchen, in the eyes of the classifier? According to our counterfactual model,
for instance, the classifier seems to think that a "bed" and a "refrigerator" are the defining factors
of the above classes.
      </p>
      <sec id="sec-6-1">
        <title>5.1. CLEVR-Hans3</title>
        <p>
          The goal when experimenting with this dataset was twofold. First, we observe some image
sequences representing local counterfactuals (ignoring the edit labels), to compare the results
with results generated by the implementation provided for FACE [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ]. Second, we want to see if
the generalized counterfactuals can easily detect the (known) bias of the classifier.
        </p>
        <sec id="sec-6-1-1">
          <title>1Code is available at: https://github.com/geofila/Conceptual-Edits-as-Counterfactual-Explanations</title>
          <p>end
Algorithm 1: Explanation Graph Construction</p>
          <p>Data: A classifier  , an explanation dataset , an undirected TBox Graph 
Result: Explanation Graph 
//the explanation graph will have a node for each element in the explanation dataset
Initialize Directed Graph  = ( = ,  = ∅);
foreach (, ) ∈  do
foreach (, ) ∈  ∖ {(, )} do</p>
          <p>Initialize Graph  = ( =  ∪ ,  = ∅);
foreach  ∈  do
foreach  ∈  do
//Compute concept distance using TBox graph
 (, ) = |ShortestPath( , , )|
//Add an edge to  with weight 
 =  ∪ {(, ,  )}
end
//Compute minimum weight full matching of the bipartite graph 
{(, )},  = MinFullMatch( )
//Concept Set Edit Distance
 (, ) = 
//Compute inverse significance</p>
          <p>1  (,)
 (,) = | ()−  ()|
//Add an edge to the explanation graph  with weight 1 and as a label the edits
corresponding to the minimum weight full match</p>
          <p>1
 =  ∪ {(, ,  (,) , {→ })}
end
end
return G
5.1.1. Setting
CLEVR-Hans3 is a dataset of images of sets of 3D geometric shapes which are split into
three classes. For each image, information is provided regarding the objects which are
present concerning their shape (Sphere, Cube, Cylinder), their size (Large, Small), their
material (Metallic, Rubber) and their color (Blue, Yellow, Brown, Grey, Green, Purple, Cyan, Red).
The three classes contain images that depict: a) a Large Cube and a Large Cylinder, b) a Small
Metal Cube and a Small Sphere, and c) a Large Blue Sphere and a Small Yellow Sphere.
Furthermore, the first two classes are confounded in the training set, with an intentionally added bias.
For the first class, in the training set, the Large Cube is always Grey, while in the test set the
color of the Large Cube is random. For the second class, the material of the Small Sphere is
Metal in the training set, while in the test set the material of the Small Sphere is random. This
means that we expect classifiers trained on the training set to be biased towards the confounding
factor. As a classifier we trained a resnet34 [ 31] model which achieved 99% accuracy on the
validation set (which is confounded), while for the test set the per-class F1 scores were class 0:
0.27, class 1: 0.54, class 2: 0.92. As expected the performance is poor for the confounded classes.</p>
          <p>
            We created two explanation datasets, one from the training set (in order to be compared with
FACE which is intended to be run on the training set), and one from the test set in order to
attempt to detect the biases acquired in training. As a set of concept names CN, we defined a
concept for every combination of shape, size, material, and color (including the absence of any
of the above), leading to |CN| = 4 × 3 × 3 × 9 = 324. As a TBox, we added an inclusion axiom
from each concept in CN to any other concept with the same description where one element is
missing. For example GrayCube ⊑ Gray and GrayCube ⊑ Cube. This way we assigned sets of
concepts to each element in the dataset, based on the descriptions provided by the creators of
the dataset in the corresponding json files.
5.1.2. Local Counterfactuals
In Figure 2 we show local counterfactual explanations generated for three randomly selected
images (first column) which were classified in class 1 (Small Metal Cube, Small Sphere - where
the Small Sphere is always Metal only in the train set) with the target class being class 0
(Large Cube, Large Cylinder, where the Large Cube is always Grey only in the train set), at
ifrst using the FACE algorithm [
            <xref ref-type="bibr" rid="ref7">7</xref>
            ] (second column) and then using our proposed algorithm
(third column). A first observation is that neither of the results is very intuitive, and we argue
that the form of the explanations (sequence of samples from the training set) is the reason. A
second observation is that our approach tends to keep the number of objects present in an
image constant, which makes sense due to the cost of adding and deleting concepts instead
of replacing them, while FACE which relies on the distribution of the dataset and operates on
pixels, having no knowledge of the objects depicted, tends to transition to images which contain
many objects. A final observation is that in both methodologies the color of the Large Cube in
the target image is always Grey, which is expected since this experiment ran on the training set.
5.1.3. Generalized Counterfactuals
In Figures 3,4 we show two generalized counterfactual explanations. The first (fig.3) shows the
importance of concepts for the region of the explanation dataset constructed from the test set of
CLEVR-Hans3 which classified in class 1, with the target class being class 0, while the second
(fig. 4) shows the importance of concepts for the same region, with the target class being class
2. As mentioned in section 3, negative importance indicates that a concept tends to be removed
for the given region and target class, while positive importance indicates that it tends to be
inserted.
          </p>
          <p>
            A first observation is that the bias of the classifier is immediately detected for the confounded
class 0. As mentioned previously, the confounding factor for class 0 is that the Large Cube
is always Grey in the train set. This is apparent from the first three bars of the plot on the
left, where the most important insertions seem to be the concepts: (Gray, GrayLargeCube,
GrayLarge). The reason for which GrayLargeCube has a larger importance than GrayLarge is
because, for some local counterfactuals, GrayLarge objects (which are not necessarily Cube)
might be removed, thus lowering the importance of this concept. Class 2 on the other hand
(Large Blue Sphere, Small Yellow Sphere) is not confounded, and the classifier is not expected
to be biased (test F1 score of 0.92). The most important removals seem to be: combinations of
Cube, Small, Metal - which makes sense since the source region contains images classified in
class 1 (Small Metal Cube, Small Sphere, where the Small Sphere is always Metal in the train
set). The most important insertions seem to be: Blue, Yellow, Sphere, and combinations of Blue,
Large, Sphere which coincides with the definition of the class.
5.2. COCO
As a second experiment, we decided to explore some more intuitive examples and thus decided
to take advantage of the COCO dataset [
            <xref ref-type="bibr" rid="ref26">26</xref>
            ], which contains real-world images, annotated with
objects, which we can automatically link to external knowledge such as WordNet.
5.2.1. Setting
Examining COCO’s labels in the process of determining a class transformation that will utilize
them, we concluded that the two classes that should be used are "Restaurant" related and
"Bedroom" related images. Specifically, for the restaurant-related class we gathered all images
from COCO that contained the concepts: 1. {dining table, person, pizza} (1000+ images) 2.
{dining table, person, wine glass} (1200+ images). For the bedroom-related class we gathered all
images that contained the label combinations of: 1. {bed, person} (1300+ images) 2. {bed, book}
(800+ images) 3. {bed, teddy bear} (300+ images). On top of that, we wanted to make sure that
we included some images that might be puzzling for the classifier. Those images were the ones
including COCO label combinations of: 1. {bed, fork} (10 images) 2. {bed, spoon} (20 images)
3. {bed, wine glass} (20 images) 4. {bed, pizza} (10 images) 5. {dining table, bed} (170 images).
For each image in COCO, a description of the objects present in that image is provided. To
create the explanation dataset, we automatically linked these object descriptions with WordNet
synsets by using the NLTK python package2. We used WordNet synsets as the set of concept
names CN, and the hyponym-hypernym hierarchy as a TBox. We then acquired the image
          </p>
        </sec>
        <sec id="sec-6-1-2">
          <title>2https://www.nltk.org/howto/wordnet.html</title>
          <p>classifier pre-trained on the PLACES dataset [ 32], provided by the creators of the dataset 3, for
scene classification, and made predictions on the aforementioned subset of COCO. This is the
black-box classifier for which we provide explanations.
5.2.2. Local Counterfactuals
In the first row of Figure 5 we show a local counterfactual explanation for an image classified as
a “Bedroom” to the target class “Playhouse”, which requires only one Concept Edit (⊤→Child).</p>
          <p>This example is interesting because “Playhouse” is an erroneous prediction (the ground truth
for the second image should be “Bedroom”), thus immediately we detect a potential bias of
the classifier, that if a Child is added to an image of a “Bedroom” it might be classified as a
“Playhouse”. Similarly, in the second row of Figure 5 we show a local counterfactual explanation
for an image which is classified as “Bedroom” to the target class “Veterinarian’s Ofice”, and
the resulting target image is an erroneous prediction. The resulting edit is simply to add a Cat.
Finally, in Figure 6 we show a counterfactual explanation, where the path on the graph has two
steps. The source image is classified as a “Bedroom” and the target class is “Computer Room”.
This shows a smooth transition from the source image to the target class, by first adding a
person (there are already two laptops in the source image), and then adding two more people
and two more laptops.
5.2.3. Generalized Counterfactuals
In Figures 7,8 we see two examples of generalized counterfactual explanations on the COCO
dataset. As before, each bar’s numeric value shows the importance of the insertion (positive) or
removal (negative) of that specific concept, in the process of transforming from a source region
of an explanation dataset, to a target class.</p>
          <p>Without revealing the source region and the target class for each figure, we can try to work
out what those are, just by looking at the most frequent additions and removals. On the first
(fig.7), which is the more trivial of the two, we see that the most common removals from the
source images were concepts relevant to {furniture, bed, animal, carnivore, dog}, while the most
common additions were the concepts {home appliance, refrigerator, white goods, consumer
goods}. From this, we can assume that the source region was likely bedroom images (with a
bias towards pets) and the target class was probably a kitchen. The true classes were, indeed,
"bedroom" and "kitchen". On the second (fig.8), we see that most frequent removals revolved
around {instrumentality, artifact, electronic, furniture, telecommunications, TV, broadcasting,
kitchen} and the most common additions around {carnivore, animal, mammal, feline, cat, dog}.
Knowing that we are dealing with a classifier of rooms and places, we’d probably guess a
kitchen for the source and a location with domestic animals for the target. The actual classes
were "bedroom" targeting "veterinarian", which raises an interesting question: why did we
see "kitchen" instead of "bed" in the bedroom class? The answer is that no beds were actually
removed, since veterinarian ofice images tend to include beds. On the other hand, our dataset
contains a number of studio-apartment bedroom images which had part of the kitchen appearing
in the photo - kitchens that are mostly missing from a vet’s ofice and had to be removed. Another
thing to note is that those examples were not cherry-picked. During our experiments we could,
most of the time, estimate the source region and target class by looking at the edit frequencies.
Notably, the most confusing results were when we tested the "computer room" target and found
out that the generalized counterfactual explanation was very often adding people, but never
laptops or computers. After investigating what seemed like a bug, we realized that most images
from our dataset which were classified as a "computer room" had no computers in them, but
people working in lab-appearing rooms.</p>
        </sec>
      </sec>
      <sec id="sec-6-2">
        <title>5.3. Discussion</title>
        <p>In our experiments we got interesting results, where both local and generalized counterfactual
explanations seem to be informative, understandable and usable. In the CLEVR-Hans3 case
(sec.5.1) we were able to detect the foreknown biases of the classifier, while in the COCO case
(sec.5.2) we even detected unknown biases (for example the depiction of people was more
important than that of laptops for the class “computer room”), and further insight into the
classifier, which we had not thought about (for example that the classifier expects veterinarian’s
ofices to depict beds among other objects). By comparing with the FACE algorithm (sec.5.1.2),
we got a hint of the merits of considering explanations using high-level external terminology
instead of low-level features, since even without stating the concept edits corresponding to
counterfactual paths, we found the resulting images more intuitive and easy to compare with
the source images.</p>
        <p>An apparent drawback of the proposed framework, for it to be used in practice, is its reliance
on the existence of semantically annotated data (i.e. an explanation dataset). Such datasets do
exist for various domains, but they are not abundant. We have identified two ways of mitigating
this drawback, which will be explored further in future work. The first is to semantically
annotate data automatically by employing information extraction methods, such as object
detection or scene-graph generation for images, or other methods which automatically link
entities to knowledge (for instance from text to encyclopedic knowledge [33]). The second
way of mitigating this drawback, which is more suited for decision-critical domains such as
medicine, is to invest resources for the manual annotation and curation of explanation datasets.
We believe that having data manually characterized by domain experts could improve user
awareness and trust of the generated explanations.</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>6. Conclusion</title>
      <p>
        We have introduced a novel framework for representing and computing counterfactual
explanations and have shown some preliminary results. There are many directions which we
plan to explore in future work. First of all we plan to expand this framework further into
Description Logics, to include roles and individuals, allow for more complex axioms in the TBox,
and to explore how this efects the resulting explanations, both theoretically and practically.
Furthermore, we plan to expand our evaluation framework to include datasets from multiple
domains and applications, focusing on those where explainability is imperative, such as medical
applications. We aim to experiment providing explanations for text, audio and tabular data.
Ideally, the evaluation framework will include human evaluators in the future. Finally, we aim
to study the properties of explanation datasets, as they are defined in our framework, and as
they have been approached in other works [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ],[
        <xref ref-type="bibr" rid="ref19">19</xref>
        ]. We will explore the efects of the size of an
explanation dataset, by for example using the full COCO dataset. We will also experiment with
using the same explanation dataset, linked to a diferent TBox (for example ConceptNet instead
of WordNet), which will require us to also experiment with diferent notions of “conceptual” or
“semantic” distance.
knowledge, in: AAAI, AAAI Press, 2017, pp. 4444–4451.
[28] M. Q. Stearns, C. Price, K. A. Spackman, A. Y. Wang, SNOMED clinical terms: overview of
the development process and project status, in: AMIA, AMIA, 2001.
[29] E. Dervakos, G. Filandrianos, K. Thomas, A. Mandalios, C. Zerva, G. Stamou, Semantic
enrichment of pretrained embedding output for unsupervised IR, in: AAAI Spring
Symposium: Combining Machine Learning with Knowledge Engineering, volume 2846 of CEUR
Workshop Proceedings, CEUR-WS.org, 2021.
[30] R. M. Karp, An algorithm to solve the m× n assignment problem in expected time o (mn
log n), Networks 10 (1980) 143–152.
[31] K. He, X. Zhang, S. Ren, J. Sun, Deep residual learning for image recognition, in: CVPR,
      </p>
      <p>IEEE Computer Society, 2016, pp. 770–778.
[32] B. Zhou, À. Lapedriza, A. Khosla, A. Oliva, A. Torralba, Places: A 10 million image database
for scene recognition, IEEE Trans. Pattern Anal. Mach. Intell. 40 (2018) 1452–1464.
[33] R. Mihalcea, A. Csomai, Wikify! linking documents to encyclopedic knowledge, in:
Proceedings of the sixteenth ACM conference on Conference on information and knowledge
management, 2007, pp. 233–242.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>R.</given-names>
            <surname>Guidotti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Monreale</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Ruggieri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Turini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Giannotti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Pedreschi</surname>
          </string-name>
          ,
          <article-title>A survey of methods for explaining black box models</article-title>
          ,
          <source>ACM Comput. Surv</source>
          .
          <volume>51</volume>
          (
          <year>2019</year>
          )
          <volume>93</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>93</lpage>
          :
          <fpage>42</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>A. B.</given-names>
            <surname>Arrieta</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N. D.</given-names>
            <surname>Rodríguez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. D.</given-names>
            <surname>Ser</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Bennetot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Tabik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Barbado</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>García</surname>
          </string-name>
          , S. GilLopez, D. Molina,
          <string-name>
            <given-names>R.</given-names>
            <surname>Benjamins</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Chatila</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Herrera</surname>
          </string-name>
          ,
          <article-title>Explainable artificial intelligence (XAI): concepts, taxonomies, opportunities and challenges toward responsible AI, Inf</article-title>
          .
          <source>Fusion</source>
          <volume>58</volume>
          (
          <year>2020</year>
          )
          <fpage>82</fpage>
          -
          <lpage>115</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A.</given-names>
            <surname>Adadi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Berrada</surname>
          </string-name>
          ,
          <article-title>Peeking inside the black-box: A survey on explainable artificial intelligence (XAI)</article-title>
          ,
          <source>IEEE Access 6</source>
          (
          <year>2018</year>
          )
          <fpage>52138</fpage>
          -
          <lpage>52160</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>B.</given-names>
            <surname>Goodman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. R.</given-names>
            <surname>Flaxman</surname>
          </string-name>
          ,
          <article-title>European union regulations on algorithmic decision-making and a "right to explanation"</article-title>
          ,
          <source>AI Mag</source>
          .
          <volume>38</volume>
          (
          <year>2017</year>
          )
          <fpage>50</fpage>
          -
          <lpage>57</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>S.</given-names>
            <surname>Wachter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. D.</given-names>
            <surname>Mittelstadt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Russell</surname>
          </string-name>
          ,
          <article-title>Counterfactual explanations without opening the black box: Automated decisions and the GDPR</article-title>
          ,
          <source>CoRR abs/1711</source>
          .00399 (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>D.</given-names>
            <surname>Lewis</surname>
          </string-name>
          , Counterfactuals, John Wiley &amp; Sons,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>R.</given-names>
            <surname>Poyiadzi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Sokol</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Santos-Rodríguez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T. D.</given-names>
            <surname>Bie</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. A.</given-names>
            <surname>Flach</surname>
          </string-name>
          ,
          <article-title>FACE: feasible and actionable counterfactual explanations</article-title>
          , in: AIES, ACM,
          <year>2020</year>
          , pp.
          <fpage>344</fpage>
          -
          <lpage>350</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Goyal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Ernst</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Batra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Parikh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <article-title>Counterfactual visual explanations</article-title>
          , in: ICML, volume
          <volume>97</volume>
          <source>of Proceedings of Machine Learning Research, PMLR</source>
          ,
          <year>2019</year>
          , pp.
          <fpage>2376</fpage>
          -
          <lpage>2384</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>W.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Oyama</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Kurihara</surname>
          </string-name>
          ,
          <article-title>Generating natural counterfactual visual explanations, in: IJCAI, ijcai</article-title>
          .org,
          <year>2020</year>
          , pp.
          <fpage>5204</fpage>
          -
          <lpage>5205</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>O.</given-names>
            <surname>Gomez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Holter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Yuan</surname>
          </string-name>
          , E. Bertini,
          <article-title>Vice: visual counterfactual explanations for machine learning models</article-title>
          ,
          <source>in: IUI, ACM</source>
          ,
          <year>2020</year>
          , pp.
          <fpage>531</fpage>
          -
          <lpage>535</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>S.</given-names>
            <surname>Verma</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. P.</given-names>
            <surname>Dickerson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Hines</surname>
          </string-name>
          ,
          <article-title>Counterfactual explanations for machine learning: A review</article-title>
          , CoRR abs/
          <year>2010</year>
          .10596 (
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>I.</given-names>
            <surname>Stepin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Alonso</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Catalá</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="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>A.</given-names>
            <surname>Hogan</surname>
          </string-name>
          , E. Blomqvist,
          <string-name>
            <given-names>M.</given-names>
            <surname>Cochez</surname>
          </string-name>
          , C. d'Amato, G. de Melo,
          <string-name>
            <given-names>C.</given-names>
            <surname>Gutiérrez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. E. L.</given-names>
            <surname>Gayo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Kirrane</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Neumaier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Polleres</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Navigli</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. N.</given-names>
            <surname>Ngomo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. M.</given-names>
            <surname>Rashid</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Rula</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Schmelzeisen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. F.</given-names>
            <surname>Sequeda</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Staab</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Zimmermann</surname>
          </string-name>
          ,
          <article-title>Knowledge graphs</article-title>
          , CoRR abs/
          <year>2003</year>
          .02320 (
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>F.</given-names>
            <surname>Lecue</surname>
          </string-name>
          ,
          <article-title>On the role of knowledge graphs in explainable ai</article-title>
          ,
          <source>Semantic Web</source>
          <volume>11</volume>
          (
          <year>2019</year>
          )
          <fpage>1</fpage>
          -
          <lpage>11</lpage>
          . doi:
          <volume>10</volume>
          .3233/SW-190374.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>G.</given-names>
            <surname>Futia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Vetrò</surname>
          </string-name>
          ,
          <article-title>On the integration of knowledge graphs into deep learning models for a more comprehensible ai-three challenges for future research</article-title>
          ,
          <source>Information</source>
          <volume>11</volume>
          (
          <year>2020</year>
          )
          <fpage>122</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>V. S.</given-names>
            <surname>Silva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Freitas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Handschuh</surname>
          </string-name>
          ,
          <article-title>Exploring knowledge graphs in an interpretable composite approach for text entailment</article-title>
          ,
          <source>in: Proceedings of the AAAI Conference on Artificial Intelligence</source>
          , volume
          <volume>33</volume>
          ,
          <year>2019</year>
          , pp.
          <fpage>7023</fpage>
          -
          <lpage>7030</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>G. A.</given-names>
            <surname>Miller</surname>
          </string-name>
          ,
          <article-title>Wordnet: A lexical database for english</article-title>
          ,
          <source>Commun. ACM</source>
          <volume>38</volume>
          (
          <year>1995</year>
          )
          <fpage>39</fpage>
          -
          <lpage>41</lpage>
          . URL: https://doi.org/10.1145/219717.219748. doi:
          <volume>10</volume>
          .1145/219717.219748.
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>J.</given-names>
            <surname>Liartis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Dervakos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Menis-Mastromichalakis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Chortaras</surname>
          </string-name>
          , G. Stamou,
          <article-title>Semantic queries explaining opaque machine learning classifiers</article-title>
          ,
          <source>in: DAO-XAI</source>
          , volume
          <volume>2998</volume>
          <source>of CEUR Workshop Proceedings, CEUR-WS.org</source>
          ,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>E.</given-names>
            <surname>Dervakos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Menis-Mastromichalakis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Chortaras</surname>
          </string-name>
          , G. Stamou,
          <article-title>Computing rule-based explanations of machine learning classifiers using knowledge graphs</article-title>
          ,
          <source>arXiv preprint arXiv:2202.03971</source>
          (
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>Z. A.</given-names>
            <surname>Daniels</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. D.</given-names>
            <surname>Frank</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. J.</given-names>
            <surname>Menart</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Raymer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Hitzler</surname>
          </string-name>
          ,
          <article-title>A framework for explainable deep neural models using external knowledge graphs</article-title>
          ,
          <source>in: Artificial Intelligence and Machine Learning for Multi-Domain Operations Applications II</source>
          , volume
          <volume>11413</volume>
          ,
          <string-name>
            <surname>International</surname>
            <given-names>Society</given-names>
          </string-name>
          <source>for Optics and Photonics</source>
          ,
          <year>2020</year>
          , p.
          <fpage>114131C</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>M.</given-names>
            <surname>Alirezaie</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Längkvist</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Sioutis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Loutfi</surname>
          </string-name>
          ,
          <article-title>A symbolic approach for explaining errors in image classification tasks</article-title>
          ,
          <source>in: Working Papers and Documents of the IJCAI-ECAI-2018 Workshop on</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>I.</given-names>
            <surname>Tiddi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Schlobach</surname>
          </string-name>
          ,
          <article-title>Knowledge graphs as tools for explainable machine learning: a survey</article-title>
          ,
          <source>Artificial Intelligence</source>
          (
          <year>2021</year>
          )
          <fpage>103627</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>A. A.</given-names>
            <surname>Sánchez-Ruiz-Granados</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Ontañón</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. A.</given-names>
            <surname>González-Calero</surname>
          </string-name>
          , E. Plaza,
          <article-title>Refinementbased similarity measure over DL conjunctive queries</article-title>
          ,
          <source>in: ICCBR</source>
          , volume
          <volume>7969</volume>
          of Lecture Notes in Computer Science, Springer,
          <year>2013</year>
          , pp.
          <fpage>270</fpage>
          -
          <lpage>284</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [24]
          <string-name>
            <given-names>F.</given-names>
            <surname>Baader</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. L.</given-names>
            <surname>McGuinness</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Nardi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. F.</given-names>
            <surname>Patel-Schneider</surname>
          </string-name>
          (Eds.),
          <source>The Description Logic Handbook: Theory</source>
          , Implementation, and
          <string-name>
            <surname>Applications</surname>
          </string-name>
          , Cambridge University Press,
          <year>2003</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [25]
          <string-name>
            <given-names>W.</given-names>
            <surname>Stammer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Schramowski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Kersting</surname>
          </string-name>
          ,
          <article-title>Right for the right concept: Revising neurosymbolic concepts by interacting with their explanations</article-title>
          , in: CVPR, Computer Vision Foundation / IEEE,
          <year>2021</year>
          , pp.
          <fpage>3619</fpage>
          -
          <lpage>3629</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          [26]
          <string-name>
            <given-names>T.</given-names>
            <surname>Lin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Maire</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. J.</given-names>
            <surname>Belongie</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Hays</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Perona</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Ramanan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Dollár</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. L.</given-names>
            <surname>Zitnick</surname>
          </string-name>
          ,
          <string-name>
            <surname>Microsoft</surname>
            <given-names>COCO</given-names>
          </string-name>
          :
          <article-title>common objects in context</article-title>
          ,
          <source>in: ECCV (5)</source>
          , volume
          <volume>8693</volume>
          of Lecture Notes in Computer Science, Springer,
          <year>2014</year>
          , pp.
          <fpage>740</fpage>
          -
          <lpage>755</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          [27]
          <string-name>
            <given-names>R.</given-names>
            <surname>Speer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Chin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Havasi</surname>
          </string-name>
          ,
          <article-title>Conceptnet 5.5: An open multilingual graph of general</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>