<!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>Deriving Local Internal Logic for Black Box Models</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Eliana Pastor Supervised by Elena Baralis</string-name>
          <email>elena.baralisg@polito.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Politecnico di Torino</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2018</year>
      </pub-date>
      <fpage>24</fpage>
      <lpage>27</lpage>
      <abstract>
        <p>Despite the widespread use, machine learning methods produce black box models. It is hard to understand how features in uence the model prediction. We propose a novel explanation method that explains the predictions of any classi er by analyzing the prediction change obtained by omitting relevant subsets of attribute values. The local internal logic is captured by learning a local model in the neighborhood of the prediction to explain. The explanations provided by our method are e ective in detecting associations among attributes and class label.</p>
      </abstract>
      <kwd-group>
        <kwd>Interpretability Prediction Explanation Local model</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Machine learning algorithms are widely applied in every aspect of our society.
Their growing popularity and their widespread use have made it increasingly
important to understand why a classi cation model take a particular decision. The
call for more explainable predictions comes also for institution. The European
Union approved the GDPR, a regulation for ensuring personal data protection.
It states that individuals have the right to receive \meaningful information about
the logic involved" in case of automated decision-making. For some authors, this
requirement legally mandates a \right to explanation" [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>We propose a novel model-agnostic explanation method that explains the
predictions made on single instances by any classi er. The explanation highlights
the internal logic of the model in a neighborhood of the prediction. It is based on
the knowledge of the local behavior of the model, captured by an interpretable
local model.
Many algorithms have been proposed for improving the interpretability of
already existing classi cation models. Model-dependent solutions are proposed for
handling only speci c models. Model-agnostic solutions instead treat the
machine learning model as a black box. Our research is focused on these approaches
for their general applicability and the advantages derived from it. These methods
in fact are applicable to any classi cation methods without making any
assumption on their internal logic. Thus, the comparison among di erent techniques in
terms of model interpretability is possible.</p>
      <p>
        While some approaches try to explain the original model globally, others
propose a general method for explaining individual predictions, i.e. why particular
decisions are made. Ribeiro et al. [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] introduce a model-agnostic method for
explaining individual prediction by learning an interpretable and linear model in
the locality of the prediction to be explained. However, the linear approximation
may not be faithful if the model is highly non-linear even in the locality of the
prediction [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. The locality is captured by randomly perturbed samples around
the instance. Thus, non-existing con gurations of attribute values can also be
generated. Hence, the local model cannot be considered fully trustworthy.
      </p>
      <p>
        Several works study how a prediction changes if parts of the input
components are omitted. Lemaire et al. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and Robnik-Sikonja and Kononenko [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]
consider how each attribute value is relevant for the prediction for tabular data,
by omitting one attribute value at a time. Strumbelj et al. study also the omission
of more attribute values together, thus also addressing the attribute interaction
[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The information of how attributes interact with the others is summarized
in one single contribution for each attribute value. Hence, the information of
interaction relevance is lost. Moreover, they compute the omission e ect for the
power set of the attributes. Hence, the method is a ected by an exponential time
complexity. We propose a novel solution that highlight not only the in uence of
each attribute value for a particular prediction but also of relevant attribute
interactions. Moreover, we overcome the problem of exponential time complexity
exploiting local properties of the original model to be explained.
3
      </p>
    </sec>
    <sec id="sec-2">
      <title>Method</title>
      <p>We propose a novel method applicable to explain individual predictions of any
classi cation method. Given the particular prediction that we want to explain,
we omit one or more attribute values at a time and we measure how the
prediction changes. The relevance of the change is estimated as a di erence of
prediction probabilities with respect to a particular target class. The greater is this
di erence, the more the omitted attribute values are relevant for the prediction.</p>
      <p>With respect to existing approaches, we are interested in understanding not
only how each single attribute value is signi cant for the prediction but also
how it interacts with the others. An attribute value can determine the
prediction alone or only if it is in conjunction with others. In the latter case, we need to
omit more attributes at the time for observing how the prediction changes.
Omitting sets of attribute values allows also to deal with the disjunction case. The
disjunction condition occurs when more than one con gurations of attributes
values determines the prediction. We can observe a change of the prediction
probability only if we considered the omission of the attribute values together.
a=1
b=1
c=2
d=3
e=1
f=2
a, b
a, b, e
a=1
b=1
c=2
d=3
e=1
f=2
Deriving Local Internal Logic for Black Box Models</p>
      <p>The feature values that in conjunction or disjunction are relevant for a
prediction are highlighted by a local interpretable model. The local model is an
associative classi er learned in the neighborhood of the prediction that we want
to explain. The local rules, being understandable, provide preliminary insights
of why a decision is made by the considered model. Each rule is in AND form.
Thus, it gives the information of what attributes together determine the
prediction. Moreover, a prediction may be determined by more rules. We can deal
with the disjunction condition considering jointly the omission of the subsets
highlighted by the local rules. Only the relevant attribute subsets provided by
the local model are considered, instead of the complete power set of all attribute
combinations. Hence, our approach overcomes the exponential time complexity.
4</p>
      <p>Preliminary Results
dataset=monks-1 model=ANN
p(class=1jx)=0.999 true class=1
dataset=monks-1 model=NB
p(class=1jx)=1 true class=1
0 0.1 0.2 0.3 0.4 0.5 0 0.1 0.2 0.3 0.4 0.5
4 - target class=1 4 - target class=1</p>
      <p>(a) (b)
Fig. 1: Explanation of (a) the neural network and (b) the Naive Bayes prediction
of a particular instance of the monks-1 data set.</p>
      <p>
        In this section, preliminary outcomes of our novel explanation method are
presented. The Monk1 data set is an arti cial data set composed by 6 discrete
attributes a,b,c,d,e,f and the class label can take value 1 or 0 [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Being arti cial,
the relation between the attributes and the class value is known. The class is 1 if
a=b or if e=1, 0 otherwise. We train a MLP ANN using the Monk1 data set. Let
x = (a=1, b=1, c=2, d=3, e=1, f=2) be the instance that we want to explain. We
know that the \true class" is 1 because e=1 and a=b. The ANN correctly predicts
the class label as 1. To estimate the relevant subsets of feature values, we train
the associative classi er in the locality of instance x. The local model returns the
following association rules: fe = 1g ! class = 1, fa = 1, b = 1g ! class = 1.
Hence, if e=1 the instance is assigned to the class 1 or if a and b are both equal
to 1. These relations should indeed determine the class. Thus, the local behavior
captures the true explanation. Once that the relevant subsets are determined, the
prediction di erences are computed. The estimation is made for each attribute
value, for the relevant subset fa=1,b=1g and for the OR of the relevant rules,
thus for fa=1,b=1,e=1g. The results are shown in Figure 1a. The terms e=1,
a=1 and b=1 have alone a positive importance in the determination of the class.
It is interesting to notice that fa=1,b=1g together have not a great prediction
di erence but it is comparable to the ones when they are considered alone. If a
and b are removed together, the class label does not change. The prediction is in
fact still 1 because of e=1. Same considerations can be made for e=1. Removing
the rules in OR, the prediction probability drastically changes. Only if considered
together, we can observe and quantify how these attributes interact.
      </p>
      <p>If we explain the prediction for the same instance, made by another model,
we may obtain a di erent result. The explanation should capture how the model
behaves in the locality of the instance. Di erent models work di erently. This
di erence may be on the predicted class label, but also on the feature values that
drive the prediction. Consider the explanation of the same instance x and still
built with respect to class 1, but classi ed by the Naive Bayes classi er (NB).
The local model returns a single relevant rule: fe = 1g ! class = 1.
The results are shown in Figure 1b. The NB classi er assigns correctly the
instance x to class 1, but only because e=1. The local model and the explanation
highlight that the Naive Bayes classi er has not learned the association that if
a=b then class=1. Because of its assumption of independence between features,
it is not able to learn the importance that a and b have together. Hence, the local
model and the explanation in this case successfully re ect the model behavior.
5</p>
    </sec>
    <sec id="sec-3">
      <title>Conclusions and Future Work</title>
      <p>Preliminary tests show that our technique is able to capture the diverse internal
logic of classi cation techniques. Di erently than existing approaches, the
importance of relevant subsets of feature values to the prediction is computed. Thus,
our method provides to end users the information of what attributes together
determine the prediction and the quanti cation of their in uence.</p>
      <p>As future work we plan to (i ) formalize our approach proposing formal de
nitions of the prediction change estimation, (ii ) evaluate the e ect of the
neighborhood in the local rules and the resulting explanations and (iii) apply the
proposed method to real-world data sets, validating explanations through the
assistance of domain experts.</p>
      <p>Acknowledgements This work is partially funded by SmartData@PoliTO.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Dheeru</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Karra</given-names>
            <surname>Taniskidou</surname>
          </string-name>
          ,
          <string-name>
            <surname>E.:</surname>
          </string-name>
          <article-title>UCI machine learning repository (</article-title>
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Goodman</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Flaxman</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>European union regulations on algorithmic decisionmaking and a \right to explanation"</article-title>
          .
          <source>arXiv preprint arXiv:1606.08813</source>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Lemaire</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Feraud</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Voisine</surname>
          </string-name>
          , N.:
          <article-title>Contact personalization using a score understanding method</article-title>
          .
          <source>In: 2008 IEEE Int. Joint Conf. on Neural Networks</source>
          . pp.
          <volume>649</volume>
          {
          <fpage>654</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Ribeiro</surname>
            ,
            <given-names>M.T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Singh</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Guestrin</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          : \
          <string-name>
            <surname>Why Should I Trust You</surname>
          </string-name>
          <article-title>?": Explaining the Predictions of Any Classi er</article-title>
          .
          <source>In: Proc. of the 22Nd ACM SIGKDD Int. Conf. on KDD</source>
          . pp.
          <volume>1135</volume>
          {
          <fpage>1144</fpage>
          . KDD '16,
          <string-name>
            <surname>ACM</surname>
          </string-name>
          , New York, NY, USA (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Robnik-Sikonja</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          , Kononenko, I.:
          <article-title>Explaining classi cations for individual instances</article-title>
          .
          <source>IEEE Trans. Knowl. Data Eng</source>
          .
          <volume>20</volume>
          (
          <issue>5</issue>
          ),
          <volume>589</volume>
          {
          <fpage>600</fpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Strumbelj</surname>
            , E., Kononenko, I.,
            <given-names>Robnik</given-names>
          </string-name>
          <string-name>
            <surname>Sikonja</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Explaining instance classi cations with interactions of subsets of feature values</article-title>
          .
          <source>DKE</source>
          <volume>68</volume>
          (
          <issue>10</issue>
          ) (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>