<!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>Deep Symbolic Learning: Discovering Symbols and Rules from Perceptions⋆</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Alessandro Daniele</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tommaso Campari</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sagar Malhotra</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>Luciano Serafini</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Fondazione Bruno Kessler (FBK)</institution>
          ,
          <addr-line>Trento</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Research Unit of Machine Learning, TU Wien</institution>
          ,
          <addr-line>Vienna</addr-line>
          ,
          <country country="AT">Austria</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Neuro-Symbolic (NeSy) integration combines symbolic reasoning with Neural Networks (NNs) for tasks requiring both perception and reasoning. Most NeSy systems rely on continuous relaxation of logical knowledge, and they assume the symbolic rules to be given. We propose Deep Symbolic Learning (DSL) [1], a NeSy system that simultaneously learns the perception and symbolic functions while being trained only on their composition. The key idea is to adapt reinforcement learning policies to the NeSy context: given the NN predictions t with ∑︀  = 1, we use the greedy policy  (t) =  to select a single discrete symbol, and the function  (t) =  to select the corresponding value in t, interpreted as a truth value under a fuzzy logic semantics. When performing multiple discrete choices within the model, each truth value is sent to an aggregation operator, which returns the truth value of the final output.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        In Fig. 1, DSL architecture for the MNIST-Addition task [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] is provided. Two NNs, 1 and 2,
are used to classify the images, and the softmax function  converts their predictions into fuzzy
truth values t1 and t2. The greedy policy function  , takes in t1 and t2, and returns discrete
symbolic predictions (8 and 0, resp.). Their corresponding fuzzy truth values (*1 = 0.5 and
*2 = 0.6 resp.) are given by the  operator  . These symbols (8 and 0) are then passed
to the symbolic function, which is represented as a lookup table G, returning the final output.
The confidence in the final output is given by the confidence in the predicted symbols being
simultaneously correct, using the Gödel semantics of conjunction, i.e., t* = (t*1, t*2). In
Fig. 1, the NNs predict symbols 8 and 0, while the function defined by G corresponds to the
sum. As a consequence, the final output of DSL is 8 (8 + 0 = 8). The framework considers the
correctness of the final output, producing a label  = 1 if the prediction is correct and  = 0
otherwise. Such a label is given as supervision for t* . In the example, the prediction is wrong
since the first digit has been classified as 8 instead of 3. Since the  function admits only
one non-zero partial derivative (corresponding to the minimum value), the back-propagation
changes the weights of a single network (1 in Fig. 1). If the prediction is wrong, the efect of
this change is to reduce the truth value of the currently selected symbol (8), increasing the
chances of choosing a diferent symbol in the next iteration. Finally, DSL can also learn the
table G from the data by applying  and  to a learnable tensor W.
      </p>
      <p>
        In Tab. 1 we report the accuracy on the MNIST MultiDigitSum (MDS). For further
experiments/analysis, see [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        NAP [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]
DPL [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]
DStL[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]
DSL
      </p>
      <p>Acknowledgements TC and LS acknowledge the support of the PNRR project FAIR - Future
AI Research (PE00000013), under the NRRP MUR program funded by the NextGenerationEU.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.</given-names>
            <surname>Daniele</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Campari</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Malhotra</surname>
          </string-name>
          , L. Serafini,
          <article-title>Deep symbolic learning: Discovering symbols and rules from perceptions</article-title>
          ,
          <source>arXiv preprint arXiv:2208.11561 (Accepted at IJCAI2023)</source>
          (
          <year>2023</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>R.</given-names>
            <surname>Manhaeve</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Dumancic</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kimmig</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Demeester</surname>
          </string-name>
          , L. De Raedt,
          <article-title>Deepproblog: Neural probabilistic logic programming</article-title>
          ,
          <source>NIPS</source>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Ishay</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Lee</surname>
          </string-name>
          , Neurasp:
          <article-title>Embracing neural networks into answer set programming</article-title>
          ,
          <source>in: IJCAI</source>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>T.</given-names>
            <surname>Winters</surname>
          </string-name>
          , G. Marra,
          <string-name>
            <given-names>R.</given-names>
            <surname>Manhaeve</surname>
          </string-name>
          , L. De Raedt,
          <article-title>Deepstochlog: Neural stochastic logic programming</article-title>
          ,
          <source>in: AAAI</source>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>