<!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>Language: An Empirical Study on Out-of-Distribution Generalisation</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Qiming Bao</string-name>
          <email>qbao775@aucklanduni.ac.nz</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alex Yuxuan Peng</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Tim Hartill</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Neset Tan</string-name>
          <email>ntan607@aucklanduni.ac.nz</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Zhenyun Deng</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Michael Witbrock</string-name>
          <email>m.witbrock@auckland.ac.nz</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jiamou Liu</string-name>
          <email>jiamou.liu@auckland.ac.nz</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>LIU AI Lab, School of Computer Science, The University of Auckland</institution>
          ,
          <addr-line>Auckland</addr-line>
          ,
          <country country="NZ">New Zealand</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Strong AI Lab, School of Computer Science, The University of Auckland</institution>
          ,
          <addr-line>Auckland</addr-line>
          ,
          <country country="NZ">New Zealand</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <abstract>
        <p>Combining deep learning with symbolic logic reasoning aims to capitalize on the success of both fields and is drawing increasing attention. Inspired by DeepLogic, an end-to-end model trained to perform inference on logic programs, we introduce IMA-GloVe-GA, an iterative neural inference network for multi-step reasoning expressed in natural language. In our model, reasoning is performed using an iterative memory neural network based on RNN with a gate attention mechanism. We evaluate IMA-GloVe-GA on three datasets: PARARULES, CONCEPTRULES V1 and CONCEPTRULES V2. Experimental results show DeepLogic with gate attention can achieve higher test accuracy than DeepLogic and other RNN baseline models. Our model achieves better out-of-distribution generalisation than RoBERTa-Large when the rules have been shufled. Furthermore, to address the issue of unbalanced distribution of reasoning depths in the current multi-step reasoning datasets, we develop PARARULE-Plus, a large dataset with more examples that require deeper reasoning steps. Experimental results show that the addition of PARARULEPlus can increase the model's performance on examples requiring deeper reasoning depths. The source code and data are available at https://github.com/Strong-AI-Lab/Multi-Step-Deductive-Reasoning-Over-</p>
      </abstract>
      <kwd-group>
        <kwd>Generalisation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Natural-Language.</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction</title>
      <p>Symbolic reasoning and deep learning remain two cornerstones in AI with profound yet
divergent consequences. Indeed, symbolic approaches, equipped with various logic languages
for knowledge representation and inference, have been the dominant paradigm in problem
solving and reasoning. Deep learning approaches, through superior ability to capture rich
semantic features from complex signals, triumph in tasks that usually require more intuitive and
automatic judgements. A growing interest in AI amounts to harnessing the power from both
schools, while mitigating each other’s weaknesses. First, symbolic reasoning were suitable only
when the task at hand, along with all contextual knowledge, can be encoded by rigorous and
structured logic expressions, which is itself a formidable obstacle. Then, deep learning relies
on neural networks which have not demonstrated the ability to perform iterative, multi-step
reasoning, which has a gap in making them suitable tools for reasoning. Towards a trainable
reasoner that is able to perform complex real-world reasoning tasks, it is important to (1)
facilitate end-to-end reasoning by enabling multi-step reasoning and (2) bypass logic-based
knowledge representation and make inferences directly from natural language inputs. The
goal of this paper is to explore possibilities around these two objectives. We now present the
research background in detail.</p>
      <p>
        Logic programs: Reasoning with logic programs is one of the key questions in AI. Here a
knowledge base consists of a number of rules, i.e., (universally quantified) implications where
the antecedent is a conjunction of literals and the consequent is an atom, and observed facts,
i.e., ground atoms. The task would specify a question which is another ground atom and asks if
the question logically follows from the knowledge base. Table 1 illustrates several archetypal
examples of reasoning tasks in logic programs (as in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]). The rules, facts, and questions are
expressed in predicate logic where variables are capitalised (such as ,  ) and constants are in
small case (such as ,  ). The three columns show logic programs of diferent reasoning depths.
For example, the first column contains rule “ (, ) :- (, ) ”, fact “(, ) ”, and two questions
(starting with ?) at the bottom rows. Semantically, the rule expresses that (, ) holds whenever
(, ) holds for any constants  and  . From (, ) , a simple unification followed by a 1-step
forward chaining inference derives (, ) , which answers the first question positively [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. On
the other hand, the second column contains rules “(, ) :- (, ) ” “( ,  ) :- ( ,  ) ”, and
fact “(, ) ”. It takes two forward chaining steps to establish “(, ) ” and thus has depth 2.
      </p>
      <p>
        DeepLogic: The ability to conduct iterated inference for multi-step reasoning tasks such
as the ones above is viewed as an unchallenged strength of rule-based inference algorithms.
Yet recent advancements in deep learning techniques have challenged this view. DeepLogic,
introduced in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], is an RNN-based neural network for solving reasoning tasks of logic programs.
The model encodes logic programs at the character level and is trained on 12 diferent types of
logic programs, without explicitly applying any symbolic inference algorithm. Through a series
of experiments, DeepLogic has demonstrated abilities to handle tasks that require multi-step
reasoning (up to a certain small depth).
      </p>
      <p>
        Reasoning in natural language: The abilities demonstrated by DeepLogic has given hope
for similar neural networks to perform more general reasoning tasks. In particular, neural
network’s key strengths involve the ability to extract rich syntactical and semantic feature from
free-flowing texts, expressed in natural language. Indeed, PARARULES, introduced in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], is
a multi-step reasoning dataset expressed in natural language1. Each sample in PARARULES
resembles a logic program in the style of Table 1, except that the knowledge base (rules and
facts) and questions are expressed in natural language (See Figure 2). We thus aim to explore
end-to-end neural-based multi-step reasoners over natural language using PARARULES as a
testing platform, while addressing three issues:
      </p>
      <p>
        (1) Existing models, including DeepLogic and other RNN-based baseline models, have room for
improvement in terms of their reasoning abilities over natural language. The vanilla GRU/LSTM
model might not handle well the multi-step reasoning tasks over logic programs from [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and
natural language from Table 4. DeepLogic shows that with the help of GRU and dot-product
attention, the model can learn to reason over logic programs from [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and natural language
from Table 4. However, DeepLogic does not show the best performance on Table 4. Dynamic
memory network with gate attention has shown remarkable performance on the bAbI deductive
reasoning task [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Our first contribution is to introduce IMA-GloVe-GA, an iterative neural
inference network that combined DeepLogic with gate attention, for multi-step reasoning tasks.
Our model achieves the best test accuracy among the RNN-based models on the PARARULES
dataset. The test accuracy of our model is on average 7.8 percentage points higher than that of
DeepLogic (from Table 4. IMA-GloVe-GA is our model, and IMA-GloVe is from DeepLogic).
      </p>
      <p>
        (2) Out-of-distribution (OOD) generalisation means the test set has a distribution that is
unknown or diferent from the distribution of the training set. In multi-step reasoning tasks,
OOD generalisation means that (1) the model is able to reason for cases that have a depth
greater than the depths of the instances it was trained on, and (2) the model is able to handle
samples with shufled rules from the training instances. Shufling here means permuting the
rules in the knowledge base. Being able to handle OOD is a crucial indicator of a model’s
reasoning capabilities. In [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], pretrained RoBERTa-Large [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] achieves good performance on the
PARARULES dataset (See Table 4). However, it is unclear whether the model indeed performs
multi-step reasoning to the extend that it handles OOD test examples. Through a series of
experiments, we show that RoBERTa-Large overfits and fails to generalise on examples with
shufled rules. This demonstrates that RoBERTa-Large over-utilises the ordering of rules. On
the other hand, our IMA-GloVe-GA outperforms RoBERTa-Large and DeepLogic, when the
models are trained on a dataset with fewer examples and unshufled rules and are tested on a
larger dataset with more relations and entities and shufled rules (See Table 5).
      </p>
      <p>
        (3) CONCEPTRULES V1 and V2 [
        <xref ref-type="bibr" rid="ref6 ref7">6, 7</xref>
        ] are natural-language-based multi-step reasoning
datasets. Similar to PARARULES, the CONCEPTRULES datasets also contain samples that
require deep reasoning steps (depth up to 3), and thus are suitable alternatives when evaluating
models’ abilities for multi-step reasoning. A common issue with all three existing datasets
(PARARULES, CONCEPTRULES V1 &amp; V2), however, lies in their unbalanced distributions over
reasoning depths. They have much fewer examples that require deep reasoning (depth ≥ 2)
than examples that require shallow reasoning (See Table 2). To address the issue of depth
imbalance, we develop a large dataset on multi-step reasoning over natural language called
PARARULE-Plus that has a balanced distribution over diferent reasoning depths. The test
accuracy on deeper depths and extra out-of-distribution examples is greatly improved when we
1https://allenai.org/data/ruletaker
add PARARULE-Plus in the training process (Table 7 and 8). The experiment result also verifies
the necessity of our dataset.
      </p>
    </sec>
    <sec id="sec-3">
      <title>2. Related Work</title>
      <p>
        Systems that integrate deep learning techniques with symbolic reasoning are called
neurosymbolic systems [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. Many such neural reasoning models can be viewed as logical program
interpreters. Neural-symbolic machines (NSM) [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] and neural program interpreters (NPI) [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]
are such examples. NSM describes a framework that consists of a seq-to-seq neural programmer,
a Lisp interpreter to execute the program, and iterative maximum likelihood to train the model;
NPI presents an RNN to learn and represent logic programs. NPI is designed for compositional
programs, including addition, sorting, and canonicalising 3D models. Reinforcement learning
has also been applied to learn Prolog-like algorithms [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. Distributed representations of
predicates and constants for traditional symbolic reasoning engines can be learned by neural
theorem provers [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. In our method, end-to-end neural networks learn representations at word
level and learn to reason with natural language.
      </p>
      <p>
        Several reasoning datasets have been introduced for natural language-based reasoning tasks
which can be used to evaluate and compare neural models’ reasoning capabilities. Roughly
speaking, the datasets can be categorised as “shallow reasoning” and “deep reasoning” tasks.
The first category includes Task 15 in the bAbI dataset v1.0 [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], conditional probes in [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ],
and “multi-hop” reasoning dataset HotpotQA [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]. In these datasets, the reasoning instances
usually do not go beyond 2-steps. A typical example in the bAbI dataset would be “Mouse is
afraid of cats. Alice is a mouse. What is Alice afraid of? A: cats.” and a typical example in the
conditional probes of [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] is “If A has visited B, then C has visited D. A visited B. Has C visited
D? A: Yes.” The main diference of HotpotQA with the other two is that the rules in HotpotQA
are embedded in sentences. In HotpotQA, a sentence contains both factual information and
rule information. Figure 1 shows a 2-hop example from HotpotQA dataset.
      </p>
      <p>
        The second category contains instances where the reasoning depth may go beyond 2. These
datasets are PARARULES [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], CONCEPTRULES V1 [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] and CONCEPTRULES V2 [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. Examples
in PARARULES may require reasoning depth as deep as 5, while CONCEPTRULES V1 and V2
require depths as deep as 3. PARARULES difers from the three above in the following senses:
First, solving the problems in bAbI Task 15 requires implicit rules. For example, “Alice goes to
the park. Peter goes to the restaurant. Where is Alice? A: park” requires the rule “A moves to B
→ A at B”. Contrary to the bAbI tasks, PARARULES requires reasoning with explicit rules that
is more akin to logic programming. Contrary to the HotpotQA dataset, in PARARULES, the
facts and rules are separate. One of the main issues of PARARULES, CONCEPTRULES V1 and
CONCEPTRULES V2 is the unbalanced distribution over reasoning depths. The datasets have
more examples of shallow reasoning (Depth&lt;2) than that of deep reasoning (Depth ≥ 2).
      </p>
      <p>
        Other work uses Transformer-based pretrained language models to perform tasks that require
multi-step reasoning over natural language. One such work is [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] which demonstrated that
the pretrained language models (RoBERTa [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], and BERT [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]) can be used to solve natural
language-based reasoning tasks. However, it is unknown whether these pretrained language
models would perform better than neural networks specifically designed for these tasks. One
of our goals is to compare them against models based on iterative memory mechanism which
have been shown to perform well on multi-step reasoning tasks over logic programs.
(Paragraph A:) LeBron James won the 2015-2016 NBA Championship.
(Paragraph B:) LeBron James is a basketball player for Cleveland Cavaliers.
(Question:) Which team did the players who won the 2015-2016 NBA Championship
play for? (Answer:) Cleveland Cavaliers.
      </p>
    </sec>
    <sec id="sec-4">
      <title>3. Problem Definition</title>
      <p>
        We consider multi-step deductive reasoning over natural language. Each sample is a triple
(, ,   ) where  contains natural language implications (rules) and
observations (facts) resembling a knowledge base in logic programs,  is a natural
language sentence expressing an atomic fact, and   ∈ { true, false} tells whether 
naturally follows from  . In this regard, (, ,   ) is a natural-language
counterpart to a logic program. Figure 2 illustrates several examples in the PARARULES dataset
[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. The rules are expressed in phrases such as “If A, then B” and “All A are B”, and facts are
represented using propositions such as “A is happy” and “B is funny”.
      </p>
      <p>Multi-step reasoning requires multiple reasoning steps to answer a question. We define the
reasoning depths (or steps) as the number of rules required to answer a question. For example,
from “Bob is smart.”, it takes only one rule “All smart people are talented.” to answer “Bob is
talented?”. This example is therefore considered as depth-1 reasoning. PARARULES has seven
sub-datasets, each is named by the greatest depth of reasoning required to deduce which related
facts support its question: depths  = 1 ,  = 2 ,  = 3 ,  ≤ 3 ,  ≤ 3 + NatLang,  ≤ 5 ,  ≤ 5 +
NatLang, respectively. Here, NatLang means the extra out-of-distribution examples, containing
about 2,000 examples. These examples include questions of diferent depths. They were created
by paraphrasing examples using crowdsourcing. Crowdworkers rewrite part of the synthetic
dataset using phrases such as “often”, “rather resembles”, and “a bit”. For instance, sentences
like “Charlie is green, but often kind” and “Harry seems to be round” are more natural to a
human reader.</p>
      <p>(Input Facts:) Anne is rough. Anne is blue.
(Input Rules:) Rule 1: Cold people are rough.</p>
      <p>Rule 2: Rough people are young.</p>
      <p>Rule 3: If Anne is green then Anne is blue.</p>
      <p>Rule 4: If someone is rough and nice then they are green.</p>
      <p>Rule 5: If someone is rough and furry then they are blue.</p>
      <p>Rule 6: All young people are cold.</p>
      <p>Q1: Anne is cold. True/False? [Answer: T]
Q2: Anne is not young. True/False? [Answer: F]</p>
      <p>Q3: Anne is not green. True/False? [Answer: T]</p>
      <p>
        While PARARULES separates fact and rule explicitly, CONCEPTRULES V1 and V2 [
        <xref ref-type="bibr" rid="ref6 ref7">6, 7</xref>
        ]
put fact and rule together. Each of CONCEPTRULES V1 and V2 has a simplified and a full
version. Both CONCEPTRULES V2 (simplified) and CONCEPTRULES V2 (full) include negation
as failure (NAF) and derivable cases. Derivable means answers can be derived from context
and question. Negation as failure means if we cannot find facts or rules to derive the answer,
we assume it is false. The diferent versions of CONCEPTULES are summarised in Table 3.
In CONCEPTRULES V2 (full), the rulesets are randomly shufled and random textual noise
is added. Both CONCEPTRULES V1 and V2 contain examples with reasoning depths from
0 to 3. CONCEPTRULES V1 does not label the reasoning depth for each example, while
CONCEPTRULES V2 contains the labels.
      </p>
    </sec>
    <sec id="sec-5">
      <title>4. Method</title>
      <p>
        This section describes a word-level RNN-based iterative neural network. The general idea of
the model is borrowed from DeepLogic. DeepLogic is an end-to-end iterative memory attention
network trained on symbolic logic programs. For details about DeepLogic, we refer the reader
to the original paper [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The main diferences in the work presented here are that we adapt the
DeepLogic model to learning logic expressed in natural language, and the model operates at the
word-level instead of character-level. The main architecture of the iteration framework is the
same as DeepLogic (shown in Figure 3).
respectively.
      </p>
      <p>
        Word-level embedding. The input representation layer of the network takes a sequence
of words concatenated from two sentences  0 , … ,    and  0 , … ,    for context and question
ℎ = GRU (GloVe [I∶∶ + I∶∶ ] , ℎ−1 )
The context I and the question I at time step  are embedded by GloVe[I∶∶ + I∶∶ ], the GloVe
[
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] word vector representation. GloVe is a set of large-scale pretrained word vectors. We
use GloVe instead of the character-level embedding in DeepLogic. In DeepLogic, the logic
C ∈ ℝ××
programs are expressed by symbols using English letters and other characters. However, the
logic programs in our settings are expressed in natural language. Representing the programs
using word embeddings can better capture the semantic information of natural language. From
the other perspective, GloVe uses ratios of co-occurrence probabilities to enlarge or narrow the
relationship between words of diferent or similar meanings [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ]. At the same time, Word2Vec
uses a local n-gram window to extract information. Furthermore, GloVe achieves better results
faster than the other word-level embeddings like Word2Vec on word analogy task [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ]. The
dimension of the GloVe embedding we used is 1 × 100. The dimension of a sentence embedding
concatenated with 5 words is 5 × 100. The sentence embedding is processed by the gated
recurrent unit (GRU) [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. Hidden state at time  is denoted as ℎ . The context vector is
, where  is the number of rules,  is the number of words in the rules and  is the
dimension of the embedding.
      </p>
      <p>Iteration. Each iteration step computes the new state based on the current state and rules.
In our model, gate attention is trained to decide how much of the state information will be
reserved from the current state and the previous state. The process is iterated for  steps ( is
pre-determined). The initial state is denoted as  0 =  , where  is the question vector and  ∈ ℝ  .
The  -th rule is denoted as   .  and  are the learnable weight matrices.  is the bias vector.
(1)
(2)
(3)
   = [ ; ;   ; (

 −   )
2</p>
      <p>;   ⊙   ]
 
 =  (</p>
      <p>(    +  ) + )</p>
      <p>At time step  , we compute a feature vector    using the current state   ∈ ℝ , question vector
 and a rule   . In (2), [; ]is a concatenation operator. We use a feed-forward network to compute
the attention vector  
 , instead of the sigmoid function.</p>
      <p>ℎ
 = GRU (C , ℎ</p>
      <p>(−1) )

 +1 = ∑  

ℎ



(4)
(5)
as word embeddings, and then attentions are computed to pick up related rules. Gate attention is used to compute
the weighted sum of the Unifier GRU outputs. Then the weighted sum updates the state for the next iteration.
the final attention vector</p>
      <p>(3), where  is a sigmoid function. For experimental comparison,
softmax is used for our IMA-GloVe-GA and another baseline model IMASM-GloVe to compute
We use another recurrent neural network to process the context embedding C . The initial
hidden state ℎ</p>
      <p>0 =   , where   is the current state. For each rule, the new hidden state ℎ is
computed by (4). In the end, the new state  +1 is computed as a weighted sum of the final
hidden states in (5). The Unifier GRU learns the unification between pronouns (variables) and
nouns (constants).</p>
      <p>Gate attention.</p>
      <p>
        Dynamic memory network+ [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ] achieved 100% test accuracy by using gate
attention on the bAbI deductive reasoning task (Task-15). However, Task-15 is not multi-step
deductive reasoning as considered in our experiment. Dynamic memory network with gate
attention was shown to perform better than the one with the traditional GRU on bAbI tasks
[
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]. Although gate attention can perform well on Task-15, it is worth exploring applying an
iterative neural network with gate attention to multi-step deductive reasoning. This inspired us
to integrate gate attention with DeepLogic which is an iterative neural inference network for
multi-step reasoning. We use gate attention to replace dot-product attention, and then update
the GRU utilizing the output of gate attention. Gate attention can be seen as one of variety
solution from gate mechanism and attention. There are two main existing work related to gate
attention. The first one is gate mechanism. The gate mechanism (forget gate in LSTM [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ]) is
designed to address the issue of forgetting in long and short term memory for recurrent neural
network. The other one is gate mechanism and attention that DeepLogic shows that with the
help of GRU and dot-product attention, the model’s performance on the multi-step reasoning
tasks can improve a lot from pure GRU without adding dot-product attention. However, in
DeepLogic, the dot-product attention is added above on GRU. For each iteration, the attention
is used to compute a new state based on the embeddings of the context and question with
the previous time stamp state, while the gate in GRU is not specifically trained to keep the
attention is used to update the internal state for GRU as in (7).
useful information with multi-step reasoning. Then we want to use the gate attention to update
the gate with attention-enhanced information from context and question in order to improve
multi-step reasoning. By replacing the attention vector (4) with gate attention   (6), the gate
  =
      </p>
      <p>exp ( (    +  ) +  )
∑

=1 exp ( (    +  ) +  )
ℎ =   ∘ ℎ̃  + (1 −   ) ∘ ℎ−1
(6)
(7)</p>
    </sec>
    <sec id="sec-6">
      <title>5. The Datasets</title>
      <p>
        To investigate whether end-to-end neural networks designed for symbolic logic reasoning can
be adapted to do multi-step deductive reasoning in natural language, we evaluated the models
on PARARULES [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], CONCEPTRULES V1 [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], and CONCEPTRULES V2 [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] datasets that require
various depths of reasoning. The main diference between the existing datasets used to evaluate
DeepLogic and the multi-step natural language reasoning datasets is that the former are based
on logic programs like the examples in Table 1, each predicate is represented by a string of
symbols and characters. However, natural language is much more diverse and expressive.
Both PARARULES and CONCEPTRULES are synthetically generated datasets. PARARULES
also includes examples with sentences paraphrased by humans. These examples are more
diverse in language and more challenging for the model. Furthermore, to address the issue
of depth imbalance in the current multi-step reasoning datasets, we develop a new dataset
called PARARULE-Plus, a large multi-step reasoning dataset over natural language. The dataset
includes examples of four reasoning depths, from 2 to 5. There are around 100,000 samples for
each depth and nearly 400,000 samples in total. The detailed information about PARARULE-Plus
can be found in Table 2 and Appendix.
      </p>
    </sec>
    <sec id="sec-7">
      <title>6. Experiments</title>
      <p>
        We experiment with three variants of DeepLogic. The iterative memory attention (IMA) model
is adopted from DeepLogic. IMASM is similar to IMA, except that IMASM uses softmax rather
than sigmoid when computing attention scores. We also test three baseline models from the
bAbI leaderboard: Long short-term memory (LSTM) [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ] (The baseline method on bAbI dataset),
dynamic memory networks (DMN) [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ] (100% test accuracy on bAbI), and memory attention
control networks (MAC) [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ] (A classical method using memory network). We use GloVe [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] as
the word vector representation for the baseline methods, including IMA-GloVe, IMASM-GloVe,
MAC-GloVe, DMN-GloVe, and LSTM-GloVe. Our IMA-GloVe-GA uses gate attention instead of
the dot-product attention in the IMA-GloVe model.
      </p>
      <p>
        We train the models on PARARULES, incorporating all reasoning depths (Depth=0, Depth=1,
Depth= 2, Depth=3, Depth=5) and the examples paraphrased by humans (NatLang). We set the
random seed to 0. We train the models using the Adam [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ] optimiser for 30 epochs. After each
epoch, the data is reshufled, and the rules in the context are reshufled for each mini-batch.
The batch size is 32. The maximum iteration depth is set to 4. The initial learning rate for
Adam2 is 1e-02. The latent dimension  for GRU is set to 64. The loss function is binary
cross entropy because the task is a binary classification problem. The evaluation measure is
accuracy. It is computed as accuracy =  correct/ total, where  correct is the number of correctly
classified examples and  total is the total number of examples. We evaluate the Transformer
2Keras Optimizers, https://keras.io/api/optimizers/
baseline model (RoBERTa-Large) from FAIRSEQ [
        <xref ref-type="bibr" rid="ref24">24</xref>
        ] that was included the original paper that
introduced PARARULES [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. We follow the oficial script 3 to fine-tune the model, we use the
same hyperparameter in [
        <xref ref-type="bibr" rid="ref24">24</xref>
        ] to fine-tune RoBERTa-Large on PARARULES. We use the initial
learning rate of 1e-05, and we use 16 as the batch size. We conduct all experiments using the
NVIDIA 460.84 Linux Driver. The CPU version is Intel(R) Xeon(R) Gold 5218 CPU @ 2.30GHz
and 16 cores. The CUDA version is 11.2 and a Quadro RTX 8000 with 48 GB GPU memory is
used for our experiments.
      </p>
      <p>
        Experimental Results: Table 4 shows the results of the RNN-based models on test sets
that require diferent reasoning steps. Unless otherwise stated models are trained on the entire
training set with all reasoning depths. The first horizontal row denotes test sets with specific
reasoning depth(s), and the second horizontal row denotes the number of test samples. We find
that our IMA-GloVe-GA and RoBERTa-Large achieve the 2nd and 1st best results. These two
models also achieve the 2nd and 1st best results in the test set with additional human-rewritten
examples (+NatLang), showing a better generalisation performance and robustness. We find that
by adding gate attention the test accuracy improved over IMA-GloVe in all cases. The results
support that gate attention can be more efective than dot-product attention on examples that
require multi-step reasoning. IMA-GloVe and IMASM-GloVe obtained better performance than
the other RNN-based baseline models. We speculate that the dot-product attention enhances
the learning and representation between context and question. In addition, the vanilla LSTM
fails to converge in all those cases. We get similar results as reported in DeepLogic [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] that the
vanilla GRU/LSTM failed on the multi-step reasoning over logic programs. A possible reason
is that the vanilla LSTM is more sensitive to hyperparameter tuning. It is harder to train to
converge than the other models.
      </p>
      <p>The results shown in Table 4 compare the performances of the IMA models based on the GloVe
word embeddings and the pretrained RoBERTa model on the same test sets of diferent reasoning
depths. We find that by adding gate attention the test accuracy improved over IMA-GloVe in all
cases. The results support that gate attention can be more efective than dot-product attention
on examples that require multi-step reasoning. We also find that the pretrained RoBERTa model
achieves better results in all of the cases. A possible reason is that our model is trained from
scratch without any large-scale pretraining. However, our model can perform better than the
other baselines without any pretraining.</p>
      <p>Table 5 shows the results on CONCEPTRULES V1 (simplified) and CONCEPTRULES V1 (full).
The second column is the training set CONCEPTRULES V1 (simplified or full). The last two
columns show test accuracy on CONCEPTRULES V1 (simplified or full) test set. For example,
in the first row, we train IMA-GloVe on the simplified version of the training sets, and then
test on diferent test sets. We find that IMA-GloVe-GA (with gate attention) performs better
than IMA-GloVe in all cases. In contrast, the pretrained RoBERTa model only achieves high
performance in the simplified test set when it is trained on the simplified training set. It indicates
that the pretrained RoBERTa overfits CONCEPTRULES V1 (simplified) since the rules are not
shufled. Most likely it learns spurious relations in the training data and fails to generalise on
test examples with shufled rules.</p>
      <p>Table 6 shows results on CONCEPTRULES V2. We select the four models used in Table 5, and
3FAIRSEQ, https://github.com/pytorch/fairseq
respectively select data of diferent depths in CONCEPTRULES V2 (full) as the training data. For
example, Mod3 represents a model trained on examples with depth of 3. Mod0123 represents a
model trained on examples with depth of 3 and less. Each row of the table represents a test
set of a specific reasoning depth. We find that the IMA-based model achieves better results in
almost all cases. The pretrained RoBERTa model does not outperform the IMA-based models in
all cases. We find that when the model is only trained on examples with reasoning step of 1,
the test accuracy dropped as we increase the reasoning steps in the test set. However, the drop
in performance is not as great as we expected for the IMA-based models. This shows that the
IMA-based models generalise better on out-of-distribution test examples. A possible reason why
models achieve higher test accuracies on CONCEPTRULES V2 (full) is that CONCEPTRULES
V2 has much more training data compared to PARARULES, from Table 2.</p>
      <p>Table 7 shows the results of fine-tuning RoBERTa-Large on datasets with diferent reasoning
depths and testing on test sets of various reasoning depths. Depth≤2 means the model is trained
on the dataset with depths no larger than 2. Depth≤3+NatLang represents the model that is
trained on the dataset with depths no larger than 3 and extra examples paraphrase by humans.
The models trained on the datasets with shallow depths have lower test accuracies on test sets
that require deeper reasoning depths. We find that adding training examples that require deeper
reasoning steps for Mod0123 improves the results on the test sets with deeper reasoning steps
(e.g. Mod0123Nat vs. Mod0123, and Mod012345 vs. Mod0123). Additionally, we find that adding
the examples paraphrased by humans improves the performance on test examples with deep
reasoning steps and human-paraphrased test examples.</p>
      <p>Table 8 shows the results of fine-tuning RoBERTa-Large on the datasets found in Table 7
and our PARARULE-Plus. The addition of PARARULE-Plus during the fine-tuning improves
the performance on the examples that require more reasoning steps. The yellow background
shows the improvement over the test accuracy reported in Table 7, and the bracket contains
the magnitude of the improvement. The bold numbers indicate the highest test accuracy on
corresponding test sets. The results support that our PARARULE-Plus addresses the depth
imbalance issue of the current datasets and the addition of it during training improves the
model’s generalisation on the examples that require deeper reasoning steps.</p>
    </sec>
    <sec id="sec-8">
      <title>7. Conclusion</title>
      <p>We provide insights into an RNN-based iterative memory model that incorporates gate attention
on multi-step reasoning over natural language. Instead of using the original GRU and
dotproduct attention, we integrate gate attention to update hidden states. The experiment results
show the model with gate attention achieves generally better performance than the original
RNNbased iterative-memory model with dot-product attention and other RNN-based models. The
performance of our model is comparable or better than the much larger and pretrained
RoBERTaLarge in some scenarios. Furthermore, our model shows better out-of-distribution generalisation
performance than the pretained RoBERTa. To address the issue of depth-imbalance in the
existing datasets on multi-step reasoning over natural language, we develop a large-scale
multi-step reasoning dataset called PARARULE-Plus, with more examples of deep reasoning
depths than previous datasets. We find that the performance of the models in our experiments
improves when we add PARARULE-Plus in the training, especially on examples that require
deeper reasoning depths and extra out-of-distribution examples.</p>
    </sec>
    <sec id="sec-9">
      <title>8. Appendix</title>
      <p>Following the closed-world assumption, we use the entities from the PARARULES which
includes mainly PEOPLE and ANIMALS. We also consider negation, so there are 4 diferent
scenarios in each depth for each category: PEOPLE with negation in the rules, PEOPLE without
negation in the rules, ANIMALS with negation in the rules and ANIMALS without negation in
the rules. All of the questions can be derived from the contexts and rules. If a question cannot
be matched directly from the context, then it can be derived using rules. For the ANIMALS,
we consider 14 diferent animal entities (“the bald eagle”, “the tiger”, “the bear”, “the lion”, “the
wolf”, “the crocodile”, “the dinosaur”, “the snake”, “the leopard”, “the cat”, “the dog”, “the mouse”,
“the rabbit”, “the squirrel”), 7 diferent animals relationships (“is”, “likes”, “chases”, “needs”,
“visits”, “attacks”, “sees”), and 28 diferent animals attributes (“big”, “strong”, “awful”, “fierce”,
“heavy”, “horrible”, “powerful”, “angry”, “furry”, “small”, “cute”, “lovely”, “beautiful”, “funny”,
“dull”, “rough”, “lazy”, “slow”, “sleepy”, “boring”, “tired”, “reckless”, “kind”, “quiet”, “round”,
“nice”, “smart”, “clever”). For the PEOPLE, we consider 9 diferent entities (“Anne”, “Alan”, “Bob”,
“Charlie”, “Dave”, “Erin”, “Harry”, “Gary”, “Fiona”), 1 relationship (“is”) and 20 people attributes
(“wealthy”, “smart”, “nice”, “quiet”, “kind”, “poor”, “dull”, “rough”, “bad”, “sad”, “short”, “thin”,
“small”, “little”, “big”, “strong”, “high”, “old”, “young”, and “huge”).</p>
      <p>
        Require: Type of dataset: animal/people, add negation rule or not: Yes/No,
reasoning depth  ∈ 2, 3, 4, 5 , animal name list = [’the bald eagle’, ’the tiger’, ’the bear’,
’the lion’, ’the wolf’, ’the crocodile’, ’the dinosaur’, ’the snake’, ’the leopard’, ’the cat’,
’the dog’, ’the mouse’, ’the rabbit’, ’the squirrel’],
people name list = [’Anne’, ’Alan’, ’Bob’, ’Charlie’, ’Dave’, ’Erin’, ’Harry’, ’Gary’, ’Fiona’],
animal relation list = [’is’, ’is not’, ’likes’, ’chases’, ’needs’, ’visits’, ’attacks’, ’sees’],
people relation list = [’is’, ’is not’], animal attribute list = [’kind’, ’quiet’, ’round’, ’nice’,
’smart’, ’dull’, ’rough’, ’lazy’, ’slow’, ’sleepy’, ’furry’, ’small’, ’cute’, ’lovely’, ’beautiful’,
’big’, ’strong’, ’awful’, ’fierce’, ’heavy’], people attribute list = [’big’, ’strong’, ’high’,
’huge’, ’short’, ’thin’, ’small’, ’little’, ’wealthy’, ’smart’, ’nice’, ’quiet’, ’kind’, ’poor’, ’dull’,
’rough’, ’bad’, ’sad’, ’old’, ’young’] total_list = []
for reasoning depth  in 2,3,4,5 do
item_list = randomly select 4 animals/people name from animal/people name list
for index in  (0, ( _)) do
item, item_1, item_2, item_3 = item_list[0], item_list[1, item_list[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], item_list[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]
random shufle animal/people relation list
if add negation rules == ”No” then
context, question, label = load the template and fill item, item_1, item_2, item_3
to the subject or object in the template, and we select one of the elements from
the animal/people relation list as the verb. For some facts, we add an item,
item_1, item_2, item_3 as the subject, and one of the elements from the animal/
people attribute list as the object to generate a dataset that only includes the
depth =  , which means all questions have the same number of rules to derive
the answer.
else
context, question, label = load the template, the template is similar to the above,
but add a negation(not) in any rule to generate a dataset which only includes the
depth = 
end if
total_list = total_list.append(context, question, label, depth =  )
end for
end for
return total_list
      </p>
      <p>Algorithm 1: PARARULE-Plus data generation
0.901
0.847
0.873
0.862
0.852
0.888 (+0.032)
0.593 (+0.014)
0.963 (+0.010)
0.881
0.839
0.826
0.832
0.934 (+0.001)
0.649 (+0.055)</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>N.</given-names>
            <surname>Cingillioglu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Russo</surname>
          </string-name>
          , Deeplogic:
          <article-title>Towards end-to-end diferentiable logical reasoning</article-title>
          ,
          <source>in: AAAI-MAKE</source>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>S.</given-names>
            <surname>Russell</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Norvig</surname>
          </string-name>
          , E. Davis,
          <article-title>Artificial intelligence: A modern approach (3rd (global) ed</article-title>
          .),
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>P.</given-names>
            <surname>Clark</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Tafjord</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Richardson</surname>
          </string-name>
          ,
          <article-title>Transformers as soft reasoners over language</article-title>
          ,
          <source>in: IJCAI</source>
          ,
          <year>2020</year>
          , pp.
          <fpage>3882</fpage>
          -
          <lpage>3890</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>J.</given-names>
            <surname>Weston</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Bordes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Chopra</surname>
          </string-name>
          , T. Mikolov,
          <article-title>Towards ai-complete question answering: A set of prerequisite toy tasks</article-title>
          ,
          <source>in: ICLR</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ott</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Goyal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Du</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Joshi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Levy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lewis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Zettlemoyer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Stoyanov</surname>
          </string-name>
          ,
          <article-title>Roberta: A robustly optimized bert pretraining approach</article-title>
          , arXiv preprint arXiv:
          <year>1907</year>
          .
          <volume>11692</volume>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>T.</given-names>
            <surname>Hartill</surname>
          </string-name>
          , Conceptrules V1 dataset, https://bit.ly/3uVemXG,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>T.</given-names>
            <surname>Hartill</surname>
          </string-name>
          , Conceptrules V2 dataset, https://bit.ly/3PApIIB,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>A. S. d.</given-names>
            <surname>Garcez</surname>
          </string-name>
          ,
          <string-name>
            <surname>K. B. Broda</surname>
            ,
            <given-names>D. M.</given-names>
          </string-name>
          <string-name>
            <surname>Gabbay</surname>
          </string-name>
          ,
          <source>Neural-symbolic learning systems: foundations and applications</source>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>C.</given-names>
            <surname>Liang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Berant</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Le</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. D.</given-names>
            <surname>Forbus</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Lao</surname>
          </string-name>
          ,
          <article-title>Neural symbolic machines: Learning semantic parsers on Freebase with weak supervision</article-title>
          ,
          <source>in: ACL</source>
          ,
          <year>2017</year>
          , pp.
          <fpage>23</fpage>
          -
          <lpage>33</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>S.</given-names>
            <surname>Reed</surname>
          </string-name>
          , N. De Freitas,
          <string-name>
            <surname>Neural</surname>
          </string-name>
          programmer-interpreters,
          <source>arXiv preprint arXiv:1511.06279</source>
          (
          <year>2015</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Jiang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Luo</surname>
          </string-name>
          ,
          <article-title>Neural logic reinforcement learning</article-title>
          ,
          <source>in: ICML, PMLR</source>
          ,
          <year>2019</year>
          , pp.
          <fpage>3110</fpage>
          -
          <lpage>3119</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>T.</given-names>
            <surname>Rocktäschel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Riedel</surname>
          </string-name>
          ,
          <article-title>End-to-end diferentiable proving</article-title>
          ,
          <source>in: NIPS</source>
          ,
          <year>2017</year>
          , pp.
          <fpage>3788</fpage>
          -
          <lpage>3800</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>K.</given-names>
            <surname>Richardson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Hu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. S.</given-names>
            <surname>Moss</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Sabharwal</surname>
          </string-name>
          ,
          <article-title>Probing natural language inference models through semantic fragments</article-title>
          .,
          <source>in: AAAI</source>
          ,
          <year>2020</year>
          , pp.
          <fpage>8713</fpage>
          -
          <lpage>8721</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Qi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bengio</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W. W.</given-names>
            <surname>Cohen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Salakhutdinov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. D.</given-names>
            <surname>Manning</surname>
          </string-name>
          ,
          <article-title>Hotpotqa: A dataset for diverse, explainable multi-hop question answering</article-title>
          , arXiv preprint arXiv:
          <year>1809</year>
          .
          <volume>09600</volume>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>J.</given-names>
            <surname>Devlin</surname>
          </string-name>
          , M.-
          <string-name>
            <given-names>W.</given-names>
            <surname>Chang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Toutanova</surname>
          </string-name>
          , BERT:
          <article-title>Pre-training of deep bidirectional transformers for language understanding</article-title>
          ,
          <source>in: NAACL-HLT</source>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>J.</given-names>
            <surname>Pennington</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Socher</surname>
          </string-name>
          , C. Manning, GloVe:
          <article-title>Global vectors for word representation</article-title>
          , in: EMNLP, Doha, Qatar,
          <year>2014</year>
          , pp.
          <fpage>1532</fpage>
          -
          <lpage>1543</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>K.</given-names>
            <surname>Cho</surname>
          </string-name>
          ,
          <string-name>
            <surname>B. van Merriënboer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Bahdanau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bengio</surname>
          </string-name>
          ,
          <article-title>On the properties of neural machine translation: Encoder-decoder approaches</article-title>
          ,
          <source>in: SSST-8</source>
          ,
          <year>2014</year>
          , pp.
          <fpage>103</fpage>
          -
          <lpage>111</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>C.</given-names>
            <surname>Xiong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Merity</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Socher</surname>
          </string-name>
          ,
          <article-title>Dynamic memory networks for visual and textual question answering</article-title>
          , in: ICML, PMLR,
          <year>2016</year>
          , pp.
          <fpage>2397</fpage>
          -
          <lpage>2406</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>F. A.</given-names>
            <surname>Gers</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Schmidhuber</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Cummins</surname>
          </string-name>
          ,
          <article-title>Learning to forget: Continual prediction with lstm</article-title>
          ,
          <source>Neural computation 12</source>
          (
          <year>2000</year>
          )
          <fpage>2451</fpage>
          -
          <lpage>2471</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>S.</given-names>
            <surname>Hochreiter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Schmidhuber</surname>
          </string-name>
          ,
          <article-title>Long short-term memory</article-title>
          ,
          <source>Neural computation 9</source>
          (
          <year>1997</year>
          )
          <fpage>1735</fpage>
          -
          <lpage>1780</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>A.</given-names>
            <surname>Kumar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Irsoy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Ondruska</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Iyyer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Bradbury</surname>
          </string-name>
          ,
          <string-name>
            <given-names>I.</given-names>
            <surname>Gulrajani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Zhong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Paulus</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Socher</surname>
          </string-name>
          ,
          <article-title>Ask me anything: Dynamic memory networks for natural language processing</article-title>
          , in: ICML, volume
          <volume>48</volume>
          ,
          <year>2016</year>
          , pp.
          <fpage>1378</fpage>
          -
          <lpage>1387</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>D. A.</given-names>
            <surname>Hudson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. D.</given-names>
            <surname>Manning</surname>
          </string-name>
          ,
          <article-title>Compositional attention networks for machine reasoning</article-title>
          ,
          <source>in: ICLR</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>D. P.</given-names>
            <surname>Kingma</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Ba</surname>
          </string-name>
          ,
          <article-title>Adam: A method for stochastic optimization</article-title>
          ,
          <source>in: ICLR</source>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [24]
          <string-name>
            <given-names>M.</given-names>
            <surname>Ott</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Edunov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Baevski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Fan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Gross</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Ng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Grangier</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          <article-title>Auli, fairseq: A fast, extensible toolkit for sequence modeling</article-title>
          ,
          <source>in: NAACL-HLT</source>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>