<!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>Should All Semantic Web Reasoners Include a Neural Network?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Jef Heflin</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yifan Zhang</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Lehigh University, Computer Science and Engineering</institution>
          ,
          <addr-line>113 Research Dr., Bethlehem, PA, 18015</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>This position poster makes the case that deep neural nets can be incorporated into traditional symbolic reasoners to enable reasoning at Web scale. This will maintain the correctness guarantees of the reasoner while ofering eficiency by exploring fruitful paths first. We suggest a first-level decomposition of the problem into representation, learning mechanism, and control strategy and describe some preliminary results.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;scalable reasoning</kwd>
        <kwd>neurosymbolic</kwd>
        <kwd>knowledge base</kwd>
        <kwd>deep learning</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Since the early days of Semantic Web research, one of the core questions has been how to
perform inference at Web scale. For example, the Scalable Semantic Web Knowledge Base
Systems workshop has been held 13 times since 2005. In recent years, deep learning has been
used to find solutions to problems that were previously unsolvable. This position poster asks
whether deep learning could be a vital component in research into scalable reasoning.</p>
      <p>Neural networks are capable of quickly making predictions from large data, are robust to
noise (such as exceptions and contradictions) and can capture knowledge that is dificult to
describe formally. However, it is dificult to explain how the trained model came to its conclusion,
requires very careful curation of the training set to avoid biases, and the predictions can be very
wrong when encountering the long-tail of inputs seldom seen during training.</p>
      <p>
        Due to the opaqueness and unpredictability on out-of-distribution data, we do not suggest
that all reasoning be performed by a deep neural net. To the contrary, we propose to build
traditional symbolic systems that use machine learning models in the decision-making process.
Generally, all machine reasoning is a search for a proof, and at each step, the system has many
options to choose from. In classical reasoning systems, there is often nothing to distinguish
the options, so the choice amounts to a random guess. If the guess turns out to be wrong, and
leads to a dead-end, the reasoner will back up and try a diferent choice. Deep learning can
be used to train a meta-reasoner that will use knowledge about the question at hand and the
structure of the axioms, in order to make more informed choices. In essence, the meta-reasoner
will function as “intuition,” guiding the reasoner to a solution with fewer false starts. Since
the reasoner takes discrete steps, each of which has a justification, the result is reliable and
explainable. Admittedly, this is not a new idea. However, we have two reasons to believe that
success is possible where previous approaches have failed: first, our proposal for a new way
to represent logical statements in vectors that capture their logical semantics has shown early
promise [
        <xref ref-type="bibr" rid="ref1 ref2">1, 2</xref>
        ]. Second, new deep learning architectures are pushing the boundaries of what
problems can be solved by neural networks.
      </p>
      <p>
        There are two key research areas that are relevant to this topic: neurosymbolic AI and learning
for automated theorem provers. Neurosymbolic AI seeks “to integrate neural network-based
methods with symbolic knowledge-based approaches” [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. This can include a broad range of
topics from generating embeddings of knowledge graphs to training a neural network to predict
whether one logical statement entails another.
      </p>
      <p>
        In the field of automated theorem proving, there has been various work on proof guidance.
Wang et al. [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] proposed to use Graph Convolutional Networks to identify which mathematical
statements were relevant to a given conjecture. Jakubův and Urban’s ENIGMA is a
learningbased method to train a classification model to identify “ useful and un-useful” clauses for proof
search [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Crouse et al. combine various embedding strategies, including from ENIGMA,
with a deep reinforcement learning approach to proof search [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. More recently, Google has
combined large language models and symbolic reasoners to enable automated proving of several
Olympiad-level geometry problems [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Challenges</title>
      <p>We propose to augment a traditional symbolic reasoner with a learned meta-reasoning
component. In order to train the meta-reasoner, there are three main problems that must be addressed
: representation, learning mechanism and control strategy. Representation is the determination
of how to express symbolic information in a form that can be input to a neural architecture
since such architectures require inputs to be vectors of numbers. There are many possible
choices, and the ability of the choice to capture the semantics of the input can have significant
impact on neural reasoning. The learning mechanism is the approach by which we train the
model(s) used by the reasoner to help guide decisions for future queries. It considers the type of
learning, the architecture of the neural model, and for supervised learning, how the training
data is produced. Control strategy determines how the knowledge is utilized. In particular, the
control strategy dictates which choices the algorithm will make, and when these choices will be
made.Let us consider each of these challenges in turn.</p>
      <sec id="sec-2-1">
        <title>2.1. Representation</title>
        <p>Crucial to the problem of creating an intuitive symbolic reasoner is the choice of good
representations for the logical statements. There are many ways to translate a sequence of symbols
into a vector of numbers, but not all of them are useful. The objective is to find a representation
that places logically similar statements close in vector space; thus similar statements will have
similar outcomes.</p>
        <p>
          We have had initial success by training an embedding using triplet loss to place atoms that
unify closer together [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]. Representations for more complex statements can be composed from
the embeddings of their constituent atoms. For example, to create the representation of a Horn
Logic rule, you can sum the embeddings of the atoms in the body, and concatenate that with
the embeddings of the head. Such a representation matches our objective well: if two atoms
diferent only by a variable renaming, their representations should be close; if two rules difer
only by the order of their body, their representations will be identical.
        </p>
        <p>Designing a representation for a fundamental unit like an atom is appealing. This could
become the building block for representations of more complex statements, much in the same
way that Word2Vec is used as an initial representation for words by some Large Language
Models. Several strategies might be used to create the more complex representations: such as
long short-term memory networks, graph convolutional networks, or transformers.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Learning Mechanism</title>
        <p>After the representation question has been solved, the next question is how to train the intuitive
component. The first choice is between supervised learning and reinforcement learning. For
early explorations, supervised learning has the advantage that one can more consistently
compare diferent alternatives, but does require the collection of suitable training data. In
general, training data can be produced by using traditional reasoning algorithms to answer a
suite of queries. There are diferent types of functions that we can try to predict: e.g., given
a choice, how many steps will be required to reach a solution vs. what is the likelihood that
a solution will be found? Diferent reasoning algorithms will require diferent choices. For
example, in backward-chaining, at each step the algorithm has to choose which subgoal to
attempt next, and then which rule to apply to that subgoal. In the presence of cycles, a poor
choice can lead to needless search or even infinite loops. We can train one or more scoring models
to rank the choices. We can produce the training data automatically by running traditional
reasoners (with randomized choices) on random queries. We have had initial success by using
the scoring model to choose the hardest goal first, and then try to prove it using the most
promising rule first.</p>
        <p>Alternatively, reinforcement learning (RL) provides a strong framework that can replace
supervised learning, especially when feedback (rewards or penalties) guides decisions. In RL,
the reasoner acts as an agent making decisions step-by-step, such as choosing sub-goals or
rules. Unlike supervised learning, RL doesn’t need pre-labeled data; the agent learns through
attempts to answer queries, getting feedback on whether a solution is found and how eficiently.
Each decision is treated as an action, with rewards based on minimizing steps or avoiding loops.
Over time, the RL agent refines its strategy to maximize overall rewards.</p>
      </sec>
      <sec id="sec-2-3">
        <title>2.3. Control Strategy</title>
        <p>The final piece is the control strategy: how will the trained intuitive component impact the
reasoning process? The specific options will depend on the reasoning algorithm, but in all cases
we can imagine a spectrum of strategies, At one extreme, the valid options are determined
by the reasoner and the meta-reasoner merely ranks these choices. At the other extreme, the
meta-reasoner determines both the available options and the order in which to evaluate them.
When the design approaches this extreme, we go from intuition that merely makes traditional
reasoners more eficient to intuition that enables new capabilities such as making intuitive leaps
and selectively ignoring contradictory information.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Preliminary Results</title>
      <p>We conducted a preliminary study using the Lehigh University Benchmark (LUBM), designed
to evaluate the performance of semantic web databases in simulated universities, to assess our
approach. In 62% of queries, our proposed system reduced the search space by several orders
of magnitude compared to a traditional backward-chaining reasoner. Depending on query
complexity, it found an answer by exploring between 5x to 60x fewer nodes.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion References</title>
      <p>If the three core problems can be solved, then this approach could become an essential component
to any scalable knowledge base system. Future work includes extending the approach to
description logics and tableau-based reasoning, finding eficient ways to encode statements in
knowledge bases that have billions of constants, how to learn models that are still useful as the
knowledge base evolves, and how best to avoid outliers.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>A.</given-names>
            <surname>Arnold</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Heflin</surname>
          </string-name>
          ,
          <article-title>Learning a more eficient backward-chaining reasoner</article-title>
          ,
          <source>in: Tenth Annual Conference on Advances in Cognitive Systems (ACS-2022), Cognitive Systems Foundation</source>
          , Arlington,
          <string-name>
            <surname>VA</surname>
          </string-name>
          ,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Y</given-names>
            <surname>.-B. Jia</surname>
          </string-name>
          , G. Johnson,
          <string-name>
            <given-names>A.</given-names>
            <surname>Arnold</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Heflin</surname>
          </string-name>
          ,
          <article-title>An evaluation of strategies to train more eficient backward-chaining reasoners</article-title>
          ,
          <source>in: Proceedings of the 12th Knowledge Capture Conference</source>
          <year>2023</year>
          ,
          <year>2023</year>
          , pp.
          <fpage>206</fpage>
          -
          <lpage>213</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A.</given-names>
            <surname>Sheth</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Roy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Gaur</surname>
          </string-name>
          ,
          <string-name>
            <surname>Neurosymbolic</surname>
            <given-names>AI</given-names>
          </string-name>
          - why, what, and how,
          <source>arXiv preprint arXiv:2305.00813</source>
          (
          <year>2023</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Tang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Deng</surname>
          </string-name>
          ,
          <article-title>Premise selection for theorem proving by deep graph embedding</article-title>
          ,
          <source>in: Proc. of the 31st Int'l Conf. on Neural Information Processing Systems</source>
          , NIPS'17, Curran Associates Inc.,
          <string-name>
            <surname>Red</surname>
            <given-names>Hook</given-names>
          </string-name>
          ,
          <string-name>
            <surname>NY</surname>
          </string-name>
          , USA,
          <year>2017</year>
          , p.
          <fpage>2783</fpage>
          -
          <lpage>2793</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>J.</given-names>
            <surname>Jakubův</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Urban</surname>
          </string-name>
          , Enigma:
          <article-title>Eficient learning-based inference guiding machine</article-title>
          , in: H.
          <string-name>
            <surname>Geuvers</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>England</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          <string-name>
            <surname>Hasan</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          <string-name>
            <surname>Rabe</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          Teschke (Eds.),
          <source>Intelligent Computer Mathematics</source>
          , Springer International Publishing, Cham,
          <year>2017</year>
          , pp.
          <fpage>292</fpage>
          -
          <lpage>302</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>Crouse</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.</given-names>
            <surname>Abdelaziz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Makni</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Whitehead</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Cornelio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Kapanipathi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Srinivas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Thost</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Witbrock</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Fokoue</surname>
          </string-name>
          ,
          <article-title>A Deep Reinforcement Learning Approach to First-Order Logic Theorem Proving</article-title>
          ,
          <source>35th AAAI Conf. on Artificial Intelligence</source>
          ,
          <string-name>
            <surname>AAAI</surname>
          </string-name>
          <year>2021</year>
          7
          <article-title>(</article-title>
          <year>2021</year>
          )
          <fpage>6279</fpage>
          -
          <lpage>6287</lpage>
          . arXiv:
          <year>1911</year>
          .
          <year>02065</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>T.</given-names>
            <surname>Trinh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Le</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Thng</surname>
          </string-name>
          ,
          <article-title>Solving olympiad geometry without human demonstrations</article-title>
          ,
          <source>Nature</source>
          <volume>625</volume>
          (
          <year>2024</year>
          )
          <fpage>476</fpage>
          -
          <lpage>482</lpage>
          . doi:
          <volume>10</volume>
          .1038/s41586-023-06747-5.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>