<!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>On Datasets for Evaluating Architectures for Learning to Reason</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Why New Datasets?</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>The Problem</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>Naveen Sundar Govindarajulu</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>ONR Copyright held by the author(s). In A. Martin, K. Hinkelmann, A. Gerber</institution>
          ,
          <addr-line>D. Lenat, F. van Harmelen, P. Clark (Eds.)</addr-line>
          ,
          <institution>Proceedings of the AAAI 2019 Spring Symposium on Combining Machine Learning with Knowledge Engineering (AAAI-MAKE 2019). Stanford University</institution>
          ,
          <addr-line>Palo Alto, California</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>The deduction theorem</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>In our poster, we will introduce new datasets in propositional logic and first-order logic that can be used for learning to reason, and present some initial results on systems that use this data. Existing datasets that can be used for learning to reason are either too complex or do not show much variation in the samples. For example, the Mizar repository (Naumowicz and Kornilowicz 2009) has more than 50; 000 reasoning problems (theorems in a first-order logic) and have been used in Area 1, but these problems are too complex to be useful in bootstraping a learning system from scratch. On the other hand, simpler toy datasets such as the deduction task in bAbI (Weston et al. 2015) do not show that much variation. For example, figures 1a and 1b show answers and full proofs to two different questions in the bAbI dataset represented in the Slate proof assistant system (Bringsjord et al. 2008). Both the proofs can be obtained by applying the resolution inference rule twice. Moreover, the proofs are structurally similar and can be generated by switching constant symbols in a first-order proof. In fact, the entire dataset in the bAbI deduction task follows this one single proof pattern. Ideally, we want a dataset that has problems of varying levels of complexity. We present an abstract version of the problem we seek to solve. Assume that we have a formal logic F hL; I; ?i, where L is the language of the formal logic, I is the inference system and ? 2 L. Any set of formulae in the language L can be consistent, 6`I ?, or inconsistent `I ?. Any reasoning problem ` can be posed as a consistency problem + : `I ? if certain conditions C1; C2 are satisfied by I (Boolos, Burgess, and Jeffrey 2003).</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>There is a growing research interest in incorporating
learning in reasoning systems. Such efforts fall largely into two
different areas that we term Area I and Area II. We give
a quick overview of what a reasoning system does before
describing these two areas.</p>
      <p>In general, a reasoning system can be modeled as a search
through some space. This search usually relies on a number
of hand-written heuristics. Theorem provers make this quite
explicit, as one can specify these heuristics as an end-user.
For instance, in first-order resolution theorem provers, the
goal is to find a sequence of resolution operations using an
initial set of clauses C that results in an empty clause. At
any point in the search, the prover has to choose a set of
clauses from an overall set of clauses it has derived.
Theorem provers use heuristics such as the size of a clause,
the complexity of a clause, age of a clause etc. to choose
a clause.</p>
      <p>
        Efforts in Area I, such as
        <xref ref-type="bibr" rid="ref3">(Kaliszyk, Chollet, and Szegedy
2017)</xref>
        , revolve around selecting or computing an appropriate
set of heuristics using some form of learning while not
tampering with the rest of the search process. Efforts in Area
II aim to learn a function from scratch that does the entire
search. While there has been quite significant progress in
Area I, there has been very little progress in Area II. We feel
that one of the main reasons for this state of affairs, is that
there is no standard dataset that can be leveraged for Area II.
Datasets for Area I are built up with learning heuristics as a
goal and are not ideal for Area II systems.
      </p>
      <p>In our poster, we will discuss new datasets in
propositional logic and first-order logic that can be used for learning
to reason and present some initial results based on this data.
`
C2 The law of excluded middle. fg `
+
)</p>
      <p>`
_ : .</p>
      <p>! .</p>
      <p>
        In fact, resolution-based theorem provers such as
Vampire
        <xref ref-type="bibr" rid="ref4">(Kova´cs and Voronkov 2013)</xref>
        function in this manner
by searching for a proof of ? from + : in order to prove
` . Therefore, reasoning in logics with C can be reduced
to consistency checking.
      </p>
      <p>We pose the learning problem as a standard
classification task. Let con( ) 2 f0; 1g denote whether is
consistent con( ) = 1 or not con( ) = 0. Given a training
data Dtrain of sentences and their consistency information,
(a) bAbI 1 Emily is a cat. Cats are afraid of wolves. What is emily
afraid of?
(b) bAbI 2 Winona is a sheep. Sheep are afraid of mice. What
is winona afraidof?
fh 1; con( i)i j1 i n g, the goal is to learn a function
that approximates con and is evaluated on a test set Dtest.</p>
    </sec>
    <sec id="sec-2">
      <title>Preview: Data and Data Generation</title>
      <p>We look at two different formal logics: propositional
calculus and first-order logic. We randomly generate
sentences and their consistency labels. The generation process
is slightly different for the two different logics.</p>
      <p>Propositional Logic
For propositional logic, we generate formula in conjunctive
normal form. Each formula is the form of a disjunction
l1 : : : li : : : ln. Each literal l is an atom P or its negation P .
We generate a radom set of formulae by randomly
generating u clauses c1; c2; : : : ; cu where each clause has v
random literals drawn from a set of w atomic propositions. For
each such random set of sentences, we run a theorem prover
to check whether the sentence is consistent or not. Using
this method, we have three distinct datasets for propositional
logic with u; v; w = 3, u; v; w = 4 and u; v; w = 5.</p>
    </sec>
    <sec id="sec-3">
      <title>First-order Logic</title>
      <p>First-order Logic Due to the expressivity of first-order
logic, na¨ıve random generation of formulae can quickly lead
to very difficult to solve problems or degenerate problems
that do not have real-world analogs but are also difficult to
solve. For instance, biconditionals such as , where
$</p>
      <p>has two or more nested quantifiers, can cause some
stateof-the-art theorem provers into running for an unbounded
amount of time. To address this, we use sorted first-order
logic with a given set of relation, function, and constant
symbols, along with certain complexity constraints. The sorts
prevent us from generating nonsensical formulae. Given a
sorted signature , we generate a certain number of unique
formulae and apply first-order natural deduction inference
rules till we have a proof of a certain complexity. One such
problem and a corresponding proof in an imaginary
mechanical domain is given below. See Figure 2.</p>
      <p>Sample FOL Problem
1. If gear x is connected to
gear y and gear y is
connected to gear z, then
gear x is connected to
gear z.
2. If gear x and gear y are
connected, and gear x is
broken, gear y is broken
too.
3. Gear 1 is connected to</p>
      <p>gear 2.
4. Gear 2 is connected to
gear 3.
5. Gear 3 is enclosed by</p>
      <p>box 1.
6. All boxes are
con</p>
      <p>nected.
7. Lever 1 either fixes or</p>
      <p>breaks all gears.
8. Lever 1 breaks gear 1.
9. If x encloses y and y is
broken, x is broken.</p>
      <p>Question: Is box 20 broken? Answer: Yes</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <string-name>
            <surname>Boolos</surname>
            ,
            <given-names>G. S.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Burgess</surname>
            ,
            <given-names>J. P.</given-names>
          </string-name>
          ; and Jeffrey,
          <string-name>
            <surname>R. C.</surname>
          </string-name>
          <year>2003</year>
          .
          <article-title>Computability and Logic (Fifth Edition)</article-title>
          . Cambridge, UK: Cambridge University Press.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <surname>Bringsjord</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ; Taylor, J.;
          <string-name>
            <surname>Shilliday</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Clark</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ; and
          <string-name>
            <surname>Arkoudas</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          <year>2008</year>
          .
          <article-title>Slate: An Argument-Centered Intelligent Assistant to Human Reasoners</article-title>
          . In
          <string-name>
            <surname>Grasso</surname>
          </string-name>
          , F.;
          <string-name>
            <surname>Green</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Kibble</surname>
          </string-name>
          , R.; and
          <string-name>
            <surname>Reed</surname>
          </string-name>
          , C., eds.,
          <source>Proceedings of the 8th International Workshop on Computational Models of Natural Argument (CMNA 8)</source>
          ,
          <fpage>1</fpage>
          -
          <lpage>10</lpage>
          . Patras, Greece: University of Patras.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <surname>Kaliszyk</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Chollet</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ; and
          <string-name>
            <surname>Szegedy</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <year>2017</year>
          .
          <article-title>Holstep: A Machine Learning Dataset for Higher-order Logic Theorem Proving</article-title>
          .
          <source>arXiv preprint arXiv:1703</source>
          .
          <fpage>00426</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          Kova´cs, L., and
          <string-name>
            <surname>Voronkov</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <year>2013</year>
          .
          <article-title>First-order theorem proving and vampire</article-title>
          . In International Conference on Computer Aided Verification,
          <fpage>1</fpage>
          -
          <lpage>35</lpage>
          . Springer.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <surname>Naumowicz</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Kornilowicz</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <year>2009</year>
          .
          <article-title>A Brief Overview of Mizar</article-title>
          . In Berghofer, S.; Nipkow,
          <string-name>
            <given-names>T.</given-names>
            ;
            <surname>Urban</surname>
          </string-name>
          ,
          <string-name>
            <surname>C.</surname>
          </string-name>
          ; and Wenzel, M., eds.,
          <source>Theorem Proving in Higher Order Logics</source>
          , volume
          <volume>5674</volume>
          of Lecture Notes in Computer Science (LNCS). Berlin: Springer.
          <fpage>67</fpage>
          -
          <lpage>72</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <surname>Weston</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Bordes</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Chopra</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ;
          <string-name>
            <surname>Rush</surname>
          </string-name>
          , A. M.; van Merrie¨nboer, B.;
          <string-name>
            <surname>Joulin</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ; and Mikolov,
          <string-name>
            <surname>T.</surname>
          </string-name>
          <year>2015</year>
          .
          <article-title>Towards ai-complete question answering: A set of prerequisite toy tasks</article-title>
          .
          <source>arXiv preprint arXiv:1502</source>
          .
          <fpage>05698</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>