<!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>Using MetaProbLog and ConArg to compute Probabilistic Argumentation Frameworks</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Stefano Bistarelli</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Theofrastos Mantadelis</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Francesco Santini</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Carlo Taticchi</string-name>
          <email>carlo.taticchi@gssi.it</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Mathematics and Computer Science University of Perugia</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Gran Sasso Science Institute L'Aquila</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In Probabilistic Abstract Argumentation, arguments and attacks (nodes and edges) in a graph instance are associated with a probability value. These probabilities can be interpreted in different ways: for instance, in the constellation approaches, the probabilities introduce uncertainty in the topology of the graph. In this paper we use MetaProbLog, a ProbLog framework where facts in a logic program are annotated by probabilities; the purpose is to compute the probability of possible worlds of arguments. The tool is integrated in the web interface of ConArg, a constraint-programming based tool aimed to solve different problems in Abstract Argumentation.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>INTRODUCTION</title>
      <p>
        Argumentation is a method of humanity to discuss and solve myriad different situations
where points of views may conflict. In AI, Abstract Argumentation [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] aims to
provide a model abstracting from the underlying logic and inference process. In this field,
defining semantics amounts to specifying a declarative or procedural method to derive
a set of argument subsets (i.e., extensions) from an Abstract Argumentation Framework
(AAF) [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], which is simply defined by a set of arguments and an attack relationship.
      </p>
      <p>
        Knowledge representation with the use of probabilistic information has been used
in many areas of Computer Science, and it is a powerful medium to represent
knowledge. For this reason, many researchers have extended AAFs by adding probabilistic
information. These very prominent extensions of AAFs have been categorized in two
big groups by Hunter [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]: the epistemic and the constellation approaches.
      </p>
      <p>
        The epistemic approaches, such as those presented in [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] describe probabilistic
AAFs where the uncertainty does not alter the structure of the AAFs. This type of
AAFs use the probability assignments to quantify the existing uncertainty of arguments
in AAFs and not to introduce new uncertainty.
      </p>
      <p>
        The constellation approaches, such as those presented in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] introduce probabilistic
values that are associated with the elements in an AAF; in such a way, the uncertainty
related to the structure of the AAF can be represented. The constellation approaches
generate a set of AAFs with a probabilistic distribution and as such they define a
probabilistic distribution over the extensions of those AAFs. Fazzinga et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] discuss the
complexity for computing different semantics in PrAAFs.
      </p>
    </sec>
    <sec id="sec-2">
      <title>BACKGROUND</title>
      <p>
        An abstract argumentation framework [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] (AAF) is a tuple AAF = (Args; Atts)
where Args is a set of arguments and Atts a set of attacks among arguments of the
form of a binary relation Atts Args Args. For a; b 2 Args, we use a ! b as a
shorthand to indicate (a; b) 2 Atts and we say that argument a attacks argument b.
      </p>
      <p>A set of arguments S Args is said to be conflict-free iff @a; b 2 S where a ! b.
An argument a 2 Args is acceptable with respect to set S Args if no argument
attacks a or if 8b 2 Args that b ! a then 9c 2 S where c ! b.</p>
      <p>
        Dung [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] further gives semantics to AAF by the use of extensions over subsets of
arguments. Dung first defines the admissible semantics. A set S Args is admissible
iff S is conflict free and each a 2 S is acceptable with respect to S. Over time several
semantics have been discussed such as complete, preferred, grounded, stable, etc.
      </p>
      <p>
        Hunter [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], categorizes probabilistic abstract argumentation frameworks (PrAAFs)
in two different categories: the constellation and the epistemic PrAAFs. For this paper
we will focus on the constellation approaches and we base our work in the definition
of PrAAFs by [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. A constellation approach to PrAAFs defines probabilities over the
structure of the AAF graph. One can assign probabilities to either the arguments or/and
attacks of the AAF. We refer to arguments/attacks with assigned probabilities less than
1 as probabilistic arguments/attacks. For this work we restrict PrAAFs to have
probabilities attached only in attacks. In [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] is shown that PrAAFs with probabilities only
to attacks can represent any general PrAAF as defined by [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. A probabilistic attack
a ! b exists in an AAF with probability P (a ! b). These probabilistic attacks
correspond to random variables, which are assumed to be mutually independent. As such, a
PrAAF defines a probability distribution over a set of AAFs.
      </p>
      <p>PAtts(!)
Definition 1. Formally, a PrAAF is a tuple P rAAF = (Args; Atts; PAtts) where
Args, Atts define an AAF, PAtts is a set of probabilities for each !2 Atts with 0 &lt;
1.</p>
      <p>Finally, stating an attack has probability 0 is redundant. A probabilistic attack with 0
probability is not part of any AAF that the constellation represents and is omitted.</p>
      <p>A PrAAF defines a probability distribution for all the possible non-probabilistic
AAFs it contains. Each single possible set of probabilistic attacks of the PrAAF is
called a possible world. The possible worlds of a PrAAF are exponential in the number
of probabilistic attacks (2N where N the number of probabilistic attacks).</p>
      <sec id="sec-2-1">
        <title>Definition 2 (Probability of Possible World). The probability of a possible world</title>
        <p>equals to the product of the probability of each probabilistic attack that is in the
possible world with the product of one minus the probability of each probabilistic attack that
is excluded from the possible world.</p>
        <p>Pworld =</p>
        <p>Y
ei2AAFworld</p>
        <p>P (ei)</p>
        <p>Y
ej2=AAFworld
(1</p>
        <p>P (ej ))</p>
        <p>The usual AAF semantics are slightly modified in PrAAFs. For example, in PrAAFs
the inquisitor is not asking if a set Q is admissible in PrAAF P ; but what is the
probability that set Q is admissible in PrAAF P , meaning with what probability exists an
AAF where Q is admissible. Similarly, for different semantics than admissible such as
complete, preferable, etc.</p>
        <p>
          In this work [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] we only focus on enumerate inference. Our system computes the
probability of a user given set Q3 being within the admissible or conflict free semantics
under the enumerate inference. We leave for future work the computation of arguments
being credulously or skeptically admissible or conflict free.
        </p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3 Implementation</title>
      <p>
        We use MetaProbLog [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]4, a framework based on ProbLog [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] probabilistic logic
programming language. ProbLog extends Prolog programs by annotating facts with
probabilities. In that way it defines a probability distribution over all Prolog programs.
ProbLog follows the distribution semantics presented by Sato [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]. MetaProbLog
extents ProbLog with high order calls. We use MetaProbLog to model the constellation
approach, and we integrate its use through the web interface of ConArg5 [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. As far
as we know, what we present in this paper is the first application of this kind which
is openly available to the scientific community. Other attempts which are not available
online include [
        <xref ref-type="bibr" rid="ref10 ref6">10, 6</xref>
        ].
      </p>
      <p>
        MetaProbLog provides several different efficient probabilistic inference methods
such as: (i) exact inference based on Reduced Ordered Binary Decision Diagrams
(ROBDDs) and dynamic programming [
        <xref ref-type="bibr" rid="ref12 ref8">12, 8</xref>
        ]; (ii) program (AAF) sampling with
memoization [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]; (iii) any-time inference using an iterative deepening algorithm [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ].
      </p>
      <p>The web interface exposes two forms of probabilistic inference: exact and AAF
sampling. The exact inference computes the exact probability; the AAF sampling
inference is an approximation method. In most cases the exact inference is able to compute
the result faster than most approximation methods, such as the AAF sampling
inference. But exist cases where exact inference is intractable and a user is forced to use an
approximation method, for those cases we provide the AAF sampling inference.</p>
      <p>
        The program sampling inference is based on the use of Monte Carlo methods, that
is, to use the ProbLog program to generate large numbers of random subprograms6
and to use those to estimate the probability. The implementation of this approach for
MetaProbLog, is similar with the one described at [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], and takes advantage of the
independence of probabilistic facts to generate samples lazily while proving the query, that
is, sampling and searching for proofs which are interleaved.
      </p>
      <p>We integrated MetaProbLog with the web interface7 of ConArg (Figure 1) in order
to directly take input from the interface and return the probability of queries of PrAAFs.
The user can select “probabilistic” from the ConArg web interface panel in order to start
working with PrAAFs, three main tasks can be performed with the aid of the tool: first
of all, a framework whose attacks are endowed with a probabilistic value can be given
3 There exist an exponential number of sets Q to the number of arguments that have 0 &lt;</p>
      <p>Psem(a 2 Q) &lt; 1. For that reason we do not enumerate all.
4 MetaProbLog is available at: www.dcc.fc.up.pt/metaproblog
5 http://www.dmi.unipg.it/conarg/.
6 We note that, each sampled ProbLog program corresponds to sampling an AAF.
7 http://www.dmi.unipg.it/conarg/
as input and visualized directly in the interface; then the left menu can be used to query
for extensions w.r.t. a given semantics; finally the results of the query are shown both
as text and visually on the represented graph. We detail each of these tasks separately.</p>
      <p>Representation. A visual representation is helpful to study and understand
properties of AAFs or to look for counterexamples. The input PrAAF is entered by drawing on
the interface or by typing it in the text box of the right panel (Figure 1.3), with the
following syntax: arg(a) defines an argument a, and att(a,b):-0.6 denotes that an
attack from a to b exists with probability 0:6. The visual and the textual representations
are consistent with each other so that a change in one will modify the other accordingly.</p>
      <p>Queries. Due to the probabilistic nature of PrAAFs, looking for an extension w.r.t.
a semantics means investigating the probability that a set of arguments belongs to that
semantics. Once the tool has received the PrAAF in input, it is possible to test a subset
of arguments in order to obtain the probability with which it is in a certain semantics.
All the settings for the query can be configured in a panel of the left menu (Figure 1.4).
The “Select semantics” options list allows to choose between the conflict free and the
admissible semantics, while the arguments can be listed in the “Node/Extension” text
field. Moreover, we can specify which type of probabilistic inference has to be used for
computing the solution: either “exact” or with “AAF sampling”.</p>
      <p>Output. The output can be read on the right panel of the web interface (Figure 1.5).
For instance, the string Set [b,c] is admissible by 0.308 is the output
for the query given in the paragraph above as an example, and expresses the fact that
the subset fb; cg of the PrAAF is admissible with a probability of 0:308.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusion</title>
      <p>
        In this paper we presented the integration of constellation PrAAFs into the web
interface of ConArg [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. For the probabilistic inference we used MetaProbLog [
        <xref ref-type="bibr" rid="ref13 ref14">13, 14</xref>
        ]. In
the constellation approaches, uncertainty in the topology of the graph (probabilities on
arguments and attacks) is used to make probabilistic assessments on the acceptance of
arguments. As far as we know, this is the first tool based on the constellation approach
that is openly offered to the scientific community through a web interface. The goal of
this work is to further enrich ConArg and to provide to the scientific community a wider
set of problems that can be solved. As future work we plan to also extent the ConArg
library [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] to support probabilistic inference.
      </p>
      <sec id="sec-4-1">
        <title>Acknowledgements</title>
        <p>This work has been supported by: “ComPAArg” (Ricerca di base 2016–2018), “Argumentation
360” (Ricerca di Base 2017–2019) and “RACRA” (Ricerca di base 2018–2020).</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Bistarelli</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mantadelis</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Santini</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Taticchi</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Probabilistic Argumentation Frameworks with MetaProbLog and ConArg</article-title>
          .
          <source>In: International Conference on Tools with Artificial Intelligence</source>
          ,
          <source>(ICTAI)</source>
          . pp.
          <fpage>675</fpage>
          -
          <lpage>679</lpage>
          (
          <year>2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Bistarelli</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rossi</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Santini</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>A conarg-based library for abstract argumentation</article-title>
          .
          <source>In: International Conference on Tools with Artificial Intelligence</source>
          ,
          <source>(ICTAI)</source>
          . pp.
          <fpage>374</fpage>
          -
          <lpage>381</lpage>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Bistarelli</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Santini</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Modeling and solving afs with a constraint-based tool: Conarg</article-title>
          . In: Theorie and Applications of Formal Argumentation,
          <source>(TAFA)</source>
          . pp.
          <fpage>99</fpage>
          -
          <lpage>116</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Dung</surname>
            ,
            <given-names>P.M.</given-names>
          </string-name>
          :
          <article-title>On the acceptability of arguments and its fundamental role in nonmonotonic reasoning, logic programming and n-person games</article-title>
          .
          <source>Artificial Intel</source>
          .
          <volume>77</volume>
          (
          <issue>2</issue>
          ),
          <fpage>321</fpage>
          -
          <lpage>358</lpage>
          (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Fazzinga</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Flesca</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parisi</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>On the complexity of probabilistic abstract argumentation</article-title>
          .
          <source>In: International Joint Conference on Artificial Intelligence</source>
          . pp.
          <fpage>898</fpage>
          -
          <lpage>904</lpage>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6. duy Hung, N.:
          <article-title>Probabilistic argumentation for decision making: A toolbox and applications</article-title>
          .
          <source>Journal of Intelligent Informatics and Smart Technology</source>
          (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Hunter</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Some foundations for probabilistic abstract argumentation</article-title>
          .
          <source>In: Computational Models of Argument</source>
          ,
          <source>(COMMA)</source>
          . pp.
          <fpage>117</fpage>
          -
          <lpage>128</lpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Kimmig</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Demoen</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Raedt</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Santos Costa</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rocha</surname>
          </string-name>
          , R.:
          <article-title>On the implementation of the probabilistic logic programming language ProbLog</article-title>
          .
          <source>Theory and Practice of Logic Programming (TPLP) 11</source>
          (
          <issue>2-3</issue>
          ),
          <fpage>235</fpage>
          -
          <lpage>262</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Kimmig</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gutmann</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Santos Costa</surname>
          </string-name>
          , V.:
          <article-title>Trading memory for answers: Towards tabling problog</article-title>
          .
          <source>In: International Workshop on Statistical Relational Learning</source>
          ,
          <source>(SRL)</source>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Li</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Oren</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Norman</surname>
          </string-name>
          , T.J.:
          <article-title>Probabilistic argumentation frameworks</article-title>
          .
          <source>In: Theorie and Applications of Formal Argumentation</source>
          ,
          <source>(TAFA)</source>
          . pp.
          <fpage>1</fpage>
          -
          <lpage>16</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Mantadelis</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bistarelli</surname>
            ,
            <given-names>S.:</given-names>
          </string-name>
          <article-title>A Preliminary Report on Probabilistic Attack Normal Form for Constellation Semantics</article-title>
          . ArXiv e-prints (
          <year>Sep 2018</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Mantadelis</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Janssens</surname>
          </string-name>
          , G.:
          <article-title>Dedicated tabling for a probabilistic setting</article-title>
          .
          <source>In: International Conference on Logic Programming</source>
          ,
          <source>ICLP. Leibniz International Proceedings in Informatics, (LIPIcs)</source>
          , vol.
          <volume>7</volume>
          , pp.
          <fpage>124</fpage>
          -
          <lpage>133</lpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Mantadelis</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Janssens</surname>
          </string-name>
          , G.:
          <article-title>Nesting probabilistic inference</article-title>
          .
          <source>In: International Colloquium on Implementation of Constraint LOgic Programming Systems (CICLOPS)</source>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Mantadelis</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rocha</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          :
          <article-title>Using iterative deepening for probabilistic logic inference</article-title>
          .
          <source>In: Practical Aspects of Declarative Languages, (PADL)</source>
          . pp.
          <fpage>198</fpage>
          -
          <lpage>213</lpage>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Sato</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>A statistical learning method for logic programs with distribution semantics</article-title>
          .
          <source>In: International Conference on Logic Programming</source>
          ,
          <source>(ICLP)</source>
          . pp.
          <fpage>715</fpage>
          -
          <lpage>729</lpage>
          (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Thimm</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>A probabilistic semantics for abstract argumentation</article-title>
          .
          <source>In: European Conference on Artificial Intelligence</source>
          ,
          <source>(ECAI)</source>
          . pp.
          <fpage>750</fpage>
          -
          <lpage>755</lpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>