<!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>Markov Logic Networks</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Patrick Betz</string-name>
          <email>patrick@informatik.uni-mannheim.de</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Mathias Niepert</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pasquale Minervini</string-name>
          <email>p.minervini@ucl.ac.uk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Heiner Stuckenschmidt</string-name>
          <email>heiner@informatik.uni-mannheim.de</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>NEC Laboratories Europe</string-name>
        </contrib>
        <contrib contrib-type="editor">
          <string-name>Machine Learning, Reasoning, Markov Logic, Discrete-continuous learning,</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>UCL Centre for Artificial Intelligence, University College London</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Mannheim</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2021</year>
      </pub-date>
      <abstract>
        <p>We integrate Markov Logic networks with deep learning architectures operating on high-dimensional and noisy feature inputs. Instead of relaxing the discrete components into smooth functions, we propose an approach that allows us to backpropagate through standard statistical relational learning components using perturbation-based diferentiation. The resulting hybrid models are shown to outperform models solely relying on deep learning based function fitting. We find that using noise perturbations is required to allow the proposed hybrid models to robustly learn from the training data.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Connectionist models in artificial intelligence (AI) have achieved tremendous success in the last
decade. Shortcomings in regard to explainability and the lack of reasoning abilities, however,
raise concerns about robustness and generalizability [
        <xref ref-type="bibr" rid="ref1 ref2">1, 2</xref>
        ]. Neural-symbolic integration [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] seeks
to overcome these issues by bridging the gap between deep learning and classical logic-based
approaches with the ultimate goal of combining the best of both worlds.
      </p>
      <p>
        Markov Logic Networks (MLNs) [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] have been applied to numerous tasks such as sentiment
analysis [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], activity recognition [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], ontologies and the semantic web [
        <xref ref-type="bibr" rid="ref7 ref8">7, 8</xref>
        ]. However, their
impact is still lacking in NLP and related areas due to the success of end-to-end learning and
powerful language models such as long short-term memory networks [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] and self-attention based
models [
        <xref ref-type="bibr" rid="ref10 ref11">10, 11</xref>
        ]. In this work, we explore the integration of MLNs in end-to-end machine learning
by utilizing recent advances in methods for backpropagating through discrete probability
distributions [
        <xref ref-type="bibr" rid="ref12 ref13">12, 13</xref>
        ]. We focus on settings where inputs are high-dimensional and noisy but
logical rules can be utilized to predict dataset specific outcomes. By connecting the discrete
inference mechanism of MLNs with continuous learning we hope to enrich their possible
application scenarios.
      </p>
      <p>
        In particular, we demonstrate that the perceptron rule [
        <xref ref-type="bibr" rid="ref14 ref15">14, 15</xref>
        ], which was developed over a
decade ago, may serve as the conceptual entry point for a hybrid model which is solely based on
a neural backbone, a maximum a posteriori (M A P ) solver, and an implementation of the backward
pass for the MLN. We further show that more general model classes can be achieved by utilizing
perturbation-based implicit diferentiation [
        <xref ref-type="bibr" rid="ref13 ref16">13, 16</xref>
        ]. We then investigate how diferent gradient
formulations [
        <xref ref-type="bibr" rid="ref12 ref13 ref15">12, 13, 15</xref>
        ] for this simplistic neural-symbolic model behave in the context of
datasets based on text inputs which are governed by a set of global regularities. We present
experimental results of the hybrid model on a schema dataset constructed for Description Logic
reasoning and on the CLUTRR benchmark suite [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. We find that using noise-perturbations is
necessary to achieve proper training behavior within the scope of our experiments which also
provides new evidence in regard to recent methods of backpropagating through combinatorial
optimization problems [
        <xref ref-type="bibr" rid="ref12 ref13">12, 13</xref>
        ].
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>
        Multiple directions exist in the literature of integrating classical logic into deep learning.
Semantic based regularization augments neural training objectives with constraints based on first-order
programs [
        <xref ref-type="bibr" rid="ref18 ref19 ref20 ref21">18, 19, 20, 21</xref>
        ]. In general, these approaches adapt the learning process of neural
models and no explicit reasoning is performed when models are applied to unseen data.
      </p>
      <p>
        Diferentiable interpreters , on the other hand, combine learning and reasoning by using
fuzzylogic, i.e., relaxing the discreteness of the logic side. In Logic Tensor Networks [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ], constants
are represented as tensors and predicates are parameterized functions which take the constants
and output soft truth values. While [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ] provides a diferentiable formulation of forward
chaining, Neural Theorem Provers [
        <xref ref-type="bibr" rid="ref24">24</xref>
        ] relax the backward chaining algorithm in the Datalog
subset of Prolog. Further works extend them towards better scalability [
        <xref ref-type="bibr" rid="ref25 ref26">25, 26</xref>
        ] and query
adaptive rule learning [
        <xref ref-type="bibr" rid="ref27">27</xref>
        ]. In TensorLog [
        <xref ref-type="bibr" rid="ref28">28</xref>
        ], a deductive database syntax is proposed which
allows for eficient inference performed by using message passing compiled into a diferentiable
function. Relational neural machines [
        <xref ref-type="bibr" rid="ref29">29</xref>
        ] unify the neural and the logic side by defining general
exponential family distributions assigned with potentials for the two components. Inference is
performed by using fuzzy-logic and gradients are based on average formula satisfaction, hence,
requiring to modify and track internals of the logical side. The aforementioned works focus on
advanced procedures of making the inference process diferentiable while the goal of our work
is to explore if the implementation of one backward pass sufices to guarantee learning when
reasoning over continuous inputs is required.
      </p>
      <p>
        In Neural Markov Logic Networks [
        <xref ref-type="bibr" rid="ref30">30</xref>
        ], first-order logic rules are replaced with neural
networks and inference is performed using Gibbs sampling on the resulting exponential distribution.
The focus of our work is diferent as for our joint model the MLN is not modified and the model
operates on continuous inputs when a set of first-order rules is provided whereas in [
        <xref ref-type="bibr" rid="ref30">30</xref>
        ] the
input is structured data (knowledge graphs). Similar to our work, logic and neural components
operate independently in DeepProbLog [
        <xref ref-type="bibr" rid="ref31">31</xref>
        ] where aProbLog [
        <xref ref-type="bibr" rid="ref32">32</xref>
        ] is used as the underlying
logic formalism. The type of inference in DeepProbLog is query-based whereas in our approach
interpretation-based inference is utilized by obtaining the M A P state of the MLN which allows to
predict many atoms simultaneously as we will describe in Section 5.
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Markov Logic Networks</title>
      <p>
        MLNs [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] combine undirected probabilistic graphical models, parameterized as log-linear models,
with function free first-order logic. We briefly review the concepts required throughout the
remaining sections. Let  ∶= (
      </p>
      <p>1, ...,    ) be an atom. In particular,  1, ...,    is a collection of
terms where a term is either a constant or a variable and  is a predicate of arity   ∈ ℕ+.
When terms are variables, they are universally quantified. An atom containing only constants
is a ground atom. A clause or rule is the disjunction of atoms or negated atoms, for instance,
  ∶=  1 ∨  2 ∨ ... ∨   . When every atom in   is a ground atom, we term this one possible

grounding of the clause. Note that a clause can have length one, i.e., it may consist of only one
atom.</p>
      <p>A MLN is a collection of tuples (  ,   ) with  ∈ {1, ..., }
where   is a clause and   is a
real-valued number, the weight or confidence of the clause. Let  = {
constants. The MLN forms a ground MLN by a) assigning a binary node   in the graphical
model to every possible ground atom that can be formed given  and all predicates occurring
in the set of clauses of the MLN, and b) by adding a binary feature for every possible grounding
of every clause. The binary feature is weighted with the underlying weight of the clause and it
is one if the associated grounding is true and it is zero otherwise. Moreover, the set of clauses
can be extended with hard clauses, i.e., clauses with a weight of infinity enforcing that every
possible grounding of these clauses must hold true. The ground MLN defines the probability
1, ...,  | | } be a set of
mass over worlds: 1
( z; w) =</p>
      <p>exp { ∑     (z)}.

1

Where z ∈ {0, 1} is a possible world,   (z) is the number of true groundings of   in z, and 
normalizes the distribution. Note that for clauses of length one, which are termed weighted
ground atoms,   is either zero or one. The M A P state is defined as the world with the highest
probability and we assume access to a M A P solver is provided throughout the following sections.</p>
      <p>Learning the weight parameters specified in equation (1) can be performed by gradient-based
optimization when defining the loss criterion ( w) to be the negative log likelihood of a given
dataset. Taking the derivative of the negative logarithm of (1), we obtain

 
= −
 log ( z; w)
 
=  z∼()
[  (z)] −   (z).</p>
      <p>
        The expectation in equation (2) requires summation over all possible worlds; therefore, the
perceptron rule approximates it by using the counts in the M A P state [
        <xref ref-type="bibr" rid="ref14 ref15">14, 15</xref>
        ] which is much
easier to obtain in the most cases (e.g., [33]).
      </p>
    </sec>
    <sec id="sec-4">
      <title>4. Backpropagating through Markov Logic</title>
      <p>Instead of promoting a novel neural-symbolic model, the goal of this work is to combine already
existing components and investigate how far we can get with a hybrid pipeline that simply relies
1Hard clauses define an additional collection of constraints which is omitted for brevity.
(1)
(2)
on the implementation of one backward pass. We focus on model behavior when intersecting
neural and symbolic components and therefore restrict the setting to uncertain clauses of length
one, hence, weighted ground atoms, and hard clauses.</p>
      <p>Let us assume that we are given a MLN with of a set of hard clauses { ̃ }=1 and a collection of


clauses {(  ,   )}=1 representing uncertain ground atoms {  }=1 . We assume continuous input
features x are available and provide information about the atoms of the MLN. As the MLN
exclusively deals with symbolic inputs and weights, we use a neural module as an intermediate
between the input and the MLN. We do not pose any restriction on the structure of x but we
require the neural module to be queryable in regard to the uncertain atoms, given x. Therefore,
the neural module defines a parameterized function,  , with parameters  , which takes x as input
and outputs a real valued score for some or all of the uncertain ground atoms, e.g.,  ( x;  ) ∈ ℝ .</p>
      <p>The goal is to infer the correct truth values of the ground atoms {  }=1 or a subset thereof.
Please note, inference in form of interpretations, i.e., the M A P state of an MLN, can be
advantageous already for moderate sizes of  as query-based inference would require to transform
every ground atom into a query and infer its truth value separately, given the clauses.</p>
      <sec id="sec-4-1">
        <title>4.1. Hybrid Model</title>
        <p>Equation (1) defines a probability distribution in the exponential family with natural parameter
w. We model the natural parameter with the neural module, hence, we consider the following
probabilistic model</p>
        <p>z ∼ ( z; w) w =  ( x;  ),
where ( z; w) is the distribution according to equation (1). In the forward pass, the neural
module processes the input and computes atom confidences which serve as input for the MLN.
We seek to learn the parameters of the neural module in this hybrid pipeline, i.e., we seek 
for a loss criterion (  ). If we now assume (  ) is the negative log-likelihood as in Section 3, we
can base the backward pass of the hybrid model on the perceptron rule. By using the chain rule
and equation (2) with the perceptron approximation, we obtain 2

 
=
 w  
  w ≈ [M A P (w) − z]
  w
 
.</p>
        <p>In equation (4),  w is simply the gradient of the neural network,  . Diferentiating through the
MLN is achieved by approximating the gradients of the negative log-likelihood 
which is the expression of interest throughout the next sections. In the realm of automatic
 w ≈ M A P (w) −z,
(3)
 
(4)
diferentiation, it sufices to implement
the logical component.</p>
        <p>w
 without making further conceptual modifications to
2Note that in the perceptron rule the expectation in equation (2) is substituted with the MAP state and ( z) directly
corresponds to z as the count of a weighted atom in the data is either 0 or 1.</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Perturbation-based Implicit Diferentiation</title>
        <p>
          While in the previous section we are restricted to a likelihood criterion directly applied to the
MLN output, perturbation-based implicit diferentiation [
          <xref ref-type="bibr" rid="ref16">16</xref>
          ] allows for more general models and
arbitrary loss functions (  ). In particular, we utilize implicit maximum likelihood estimation
(IMLE) [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ] which minimizes the KL-divergence between the model distribution of the discrete
component, in our case the MLN, and a target distribution whose parameters depend on the
weights w and the downstream gradient of the loss function  . Our gradient expression of
interest is then calculated by using a noise perturbation scheme based on Gumbel perturbations.
 z
For any loss criterion  , we compute the gradients as

 z
 z
(5)
(6)
(7)
(8)

 w
where  ∈ ℕ + and each   is a vector of ...
proposed in [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ] and sample the elements of   from
        </p>
        <p>Gumbel samples. We use the sampling scheme


 =1
[ ∑{G a m m a (1/, /)} −
log() ],
where  is a temperature parameter,  ∈ ℕ +, and  controls how many entries of z must be true.
As there is no such restriction in the context of our experiments, we treat  as a hyperparameter.
By using IMLE, we can extend the model in (3) to cases where the perceptron rule is not
applicable or does not provide enough gradient signal. For the extended model, we have
gradients 
 w</p>
        <p>y = g(z;  ) z ∼ p(z, w) w = f(x;  ),
with y representing any observable output pattern and  a parameterized function. After
defining any loss criterion on</p>
        <p>
          y, equation (7) may represent a general computational graph
with the MLN embedded as a node, receiving upstream gradients  and sending downstream
by using equation (5). A special case of equation (5) is also proposed in [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]:

 w

1
≈ [M A P (w) − M A P (w − 

 z
)]
It can be shown that, for large values of  , equation (8) approximates the perception rule when
the Hamming distance is chosen as the loss criterion [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ] .
        </p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Experiments</title>
      <p>
        We evaluate the gradient formulations presented in the previous sections in two scenarios. In
particular, we construct a dataset in the context of description logic based schema reasoning
and we use the CLUTRR benchmark suite [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. Both datasets are comprised of textual input
instances which describe a symbolic world represented by atoms. The challenging part is that
the dataset instances are separated into explicit and implicit atoms where the explicit atoms can
be derived from the textual input but the implicit atoms must be derived by reasoning over the
explicit atoms. Although inference times are an important factor in these settings, backward
times roughly double in comparison to neural-only baselines when training the hybrid model,
i.e., inducing the MLN does not produce a bottleneck within the scope of our experiments.3
      </p>
      <p>One finding of our experiments is that using gradients of equation (4) and (8) does not
lead to well behaved training dynamics, i.e., the loss value does not decrease when training
under various hyperparemter settings. This is in contrast to using equation (5) on which the
experimental results in the following sections are based. We conjecture that noise perturbations
are beneficial and we discuss this further in Section 5.4.</p>
      <sec id="sec-5-1">
        <title>5.1. General Architecture</title>
        <p>
          For function  in equation (3), we use the base BERT architecture [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] pre-trained for next
sentence prediction and masked language modelling and we make the word embeddings
constants throughout the experiments.4 For obtaining atom confidences, we employ the standard
procedures used in the context of question answering with transformers. In particular, the text
input is preceded by a [cls] token and the query is appended to the input following a [sep] token.
The query may represent an individual target atom (schema) or refers to two target entities
(CLUTRR). The embedding of the [cls] token is fed into a fully connected layer for predicting a
score (schema) or a vector of scores (CLUTRR). For the neural-only baseline, we directly use
these scores for the final prediction.
        </p>
        <p>The confidence score or vector obtained by the fully connected layer defines the atom weights
for the MLN as proposed in equation (3). Instead of using the raw confidences, we found
applying a leaky-ReLu [37] layer is beneficial in the context of our experiments. The hybrid
model is then trained end-to-end using stochastic optimization and the gradient formulations
proposed in Section 4 while using absolute error on the MLN output. We use the same random
seed for all the experiments and in regard to equation (5) we set  to one and  = 10 . In regard
to the loss criterion as specified in Section 4.2 we use absolute error. Detailed architecture
descriptions, training details, and hyperparameter specifications are presented in Appendix B.</p>
      </sec>
      <sec id="sec-5-2">
        <title>5.2. Schema Dataset</title>
        <p>
          Description Logic. We construct a NLP dataset based on schema reasoning in the description
logic  + + [38, 39]. The basic building blocks of the syntax are concepts and roles. A schema,
also termed Tbox, consists of axioms expressing knowledge about the concepts and roles. For
instance, the axiom  ⊑  states that every individual belonging to concept  also belongs to
concept  . The combination with MLNs is well studied and therefore we only focus on the
relevant parts for this work and refer to [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] for a detailed discussion.
        </p>
        <p>In general, schema axioms are associated with a confidence score and they are mapped
towards weighted MLN atoms, i.e., clauses with length one. Furthermore, the MLN is equipped
with a set of hard clauses, termed the completion rules [39]. Given a collection of weighted
atoms and the completion rules, the reasoning task performed by the MLN is to output the most
3For all the experiments we use RockIt [34] under the fast cutting plane inference algorithm [35] as the MAP
solver.</p>
        <p>4We use the implementation provided by the Huggingface transformer library [36].
probable classified Tbox. A classified Tbox contains all axioms that must hold true. We show
the mapping of axioms to atoms in Table 1 in the appendix.</p>
        <p>Dataset construction. The schema dataset is based on textualizing the atoms contained in
the schemas, as shown in Table 1 in the appendix. The dataset consists of multiple instances
where each defines a textualized schema containing on average 20 atoms and four predicate
types. Every instance is generated as follows: We first sample a set of concepts and roles given
a vocabulary of words. Subsequently, we sample a set of axioms between the concepts and
roles where the corresponding MLN atoms define the set of explicit atoms. We then derive the
implicit atoms by classifying the schema, i.e., deriving all atoms that follow from the explicit
atoms. We additionally sample a set of negative atoms. Finally, we textualize the explicit atoms
receiving the textual input for the models. The following example demonstrates one dataset
instance with the respective inputs and required outputs if the input schema only contained
two atoms.</p>
        <p>Simplified dataset example . For the Tbox {(sub(minister, politician)); (sub(politician, person)},
the classified Tbox additionally contains the implicit atom sub(minister, person) derived by the
hard clause (, ) ∧ (, ) → (, ) . The explicit atoms are transformed into the text
input “Minister subset politician. Politician subset person”. For this simplified example, a model
would take the text as input and is required to predict the truth values of the explicit atoms, the
implicit atom, and a set of randomly selected false atoms with same cardinality, for instance,
{sub(person, politician); sub(politician, minister)}. In the hybrid architectures, the neural module
calculates the atom confidences which are passed to the MLN. The M A P state of the MLN defines
the final output prediction.</p>
        <p>Setting. We generate training, validation, and testing splits according to the above procedure.
We define the reasoning degree as the proportion of implicit and explicit atoms in the dataset.
We generate an additional dataset (Train middle) in which we augment the data with instances
exclusively containing explicit atoms to investigate if the amount of reasoning in the dataset
afects the overall performance. The training datasets contain 20000 atoms and the test and
valid splits contain 4000 atoms. During training and at test time, a model receives the
textualized explicit atoms as input and has to classify the explicit, implicit and sampled negative atoms.
Results. Table 5.2 depicts results on the test sets for the schema dataset after training for
5 epochs and using early stopping based on the performance on the validation set. Train
middle and Train high denotes training on a dataset with a reasoning degree of 15% and 37%,
respectively. The test sets have a reasoning degree of 15% and 38%, respectively. We calculate
results for the implicit and explicit atoms separately and due to the unbalance of positives and
negatives we report F1 scores. The neural baseline achieves reasonable results, however, the
complexity of the dataset is too high in general. The hybrid training strategy leads to strong
results for the explicit and implicit atoms, suggesting the combination of neural and reasoning
is beneficial for this dataset.</p>
        <p>Train middle</p>
        <p>Train high
Test middle</p>
        <p>Test high</p>
        <p>Test middle</p>
        <p>Test high
implicit
explicit
implicit
explicit
implicit
explicit
implicit
explicit
Hybrid
Neural
Random</p>
      </sec>
      <sec id="sec-5-3">
        <title>5.3. CLUTRR Dataset</title>
        <p>
          The CLUTRR benchmark suite [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ] is designed for testing robustness and reasoning abilities of
natural language understanding systems. The datasets consist of small stories describing kinship
relationships between entities and the task is to infer the missing relationship between two
target entities. The dataset is governed by a set of rules such as   (, ) ∧ ℎℎ(, ) →
ℎℎ(, ) . We cannot use the same dataset as in [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ] and compare as we found two
erroneous rules in the dataset construction; further details are provided in Appendix B.2. We
deleted these rules and recreated two dataset instances with a) using stories with raw facts such
as ”A is the sister of B” and b) facts replaced with paraphrases gathered by Mturk users [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ].
Setting. The datasets contain a training split with roughly 10000 stories and 9 test splits with
500 stories respectively. Each test split is characterized by a diferent number of reasoning hops
required to find the target relationships. The training sets contain exclusively stories where
two hops are required. Likewise, we use as a validation set the test set containing stories with
two hops. A model takes a story as input and has to predict truth values of the atoms defining
the relationships between the entities in the story (implicit and explicit). At test time, the model
is evaluated in regard to predicting the relationship between the target entities correctly.
Results. Table 2 shows accuracies on the test sets (3-10 hops) after training on stories with
two hops for 4 epochs and validating on stories with two hops. The random baseline achieves
an accuracy of 1 % and we also report the majority baseline for every test set. The neural
11
baseline achieves high accuracies for the easier settings sets but the performance is more
stable for the hybrid on more dificult test sets suggesting generalizability towards unseen
reasoning complexities. The results in the Mturk setting are significantly weaker for both
models. Nevertheless, the hybrid model achieves a notable accuracy of 72.37% for the hardest
test set. The diference between the Mturk and the Vanilla setting highlights that the model
performance strongly depends on the ability of finding the explicit atoms.
        </p>
        <p>Vanilla
Mturk</p>
        <p>Test set (hops)</p>
        <p>Hybrid</p>
      </sec>
      <sec id="sec-5-4">
        <title>5.4. Discussion</title>
        <p>
          While gradients calculated by using equations (4) and (8) also may work in diferent settings
[
          <xref ref-type="bibr" rid="ref12 ref13">13, 12</xref>
          ], in our experiments, the Gumbel perturbations are necessary. One reason is that
noise perturbations allow for additional gradient signal even if the corresponding confidence is
already correct in regard to an explicit atom. For instance, assume the neural model calculates
a confidence of 0.3 for an explicit atom. If this atom is predicted correctly by the MLN, the
upstream gradient for the neural model is zero when using equations (4) or (8), hence, no further
gradient signal will be provided. When using Gumbel noise, on the other hand, a negative  
can lead to a negative confidence and a respective prediction of 0 for the label. This will lead
to an upstream gradient unequal to zero for the neural module, e.g., allowing for an update
towards a higher confidence.
        </p>
        <p>
          We found a potential limitation of our approach is given by the fact that the atoms for which
the neural module calculates confidences need to be specified by a deterministic mechanism. In
other words, we need to know for which atoms we require the neural model to pass confidences
to the MLN. While this is possible in our experiments, it imposes a limitation in terms of
applicability as, for instance, querying the neural module for every possible atom is not feasible
in general. Nevertheless, we hypothesize, this expresses a general challenge for neuro-symbolic
models where often the outputs of a neural module are directly interpreted as atom or predicate
confidences in a predefined logical structure ( e.g. [
          <xref ref-type="bibr" rid="ref31">31, 40</xref>
          ]).
        </p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion</title>
      <p>
        In this work, we presented a simple yet efective strategy of integrating MLNs into end-to-end
machine learning. We utilize perturbation-based implicit diferentiation [
        <xref ref-type="bibr" rid="ref13 ref16">16, 13</xref>
        ] for achieving a
diferentiable objective formulation. Our experimental findings suggest that the integration
strategy can be beneficial in the context of relational datasets with continuous input when using
noise perturbations on the MLN parameters. A more thorough investigation of the diferent
gradient estimators is required in future work.
possible worlds, in: Proceedings of the AAAI Conference on Artificial Intelligence,
volume 25, 2011.
[33] G. Papandreou, A. Yuille, S. Nowozin, P. Gehler, J. Jancsary, C. Lampert, Perturb-and-map
random fields: Reducing random sampling to optimization, with applications in computer
vision, Advanced structured prediction (2014) 159.
[34] J. Noessner, M. Niepert, H. Stuckenschmidt, Rockit: Exploiting parallelism and symmetry
for map inference in statistical relational models, in: Proceedings of the AAAI Conference
on Artificial Intelligence, volume 27, 2013.
[35] S. Riedel, Improving the accuracy and eficiency of map inference for markov logic, in:
      </p>
      <p>UAI, 2008.
[36] T. Wolf, L. Debut, V. Sanh, J. Chaumond, C. Delangue, A. Moi, P. Cistac, T. Rault, R. Louf,
M. Funtowicz, J. Davison, S. Shleifer, P. von Platen, C. Ma, Y. Jernite, J. Plu, C. Xu, T. L.
Scao, S. Gugger, M. Drame, Q. Lhoest, A. M. Rush, Transformers: State-of-the-art natural
language processing, in: Proceedings of the 2020 Conference on Empirical Methods in
Natural Language Processing: System Demonstrations, Association for Computational
Linguistics, 2020, pp. 38–45.
[37] A. L. Maas, A. Y. Hannun, A. Y. Ng, Rectifier nonlinearities improve neural network
acoustic models, in: Proc. icml, volume 30, Citeseer, 2013, p. 3.
[38] F. Baader, S. Brandt, C. Lutz, Pushing the el envelope, in: IJCAI, volume 5, 2005, pp.</p>
      <p>364–369.
[39] F. Baader, C. Lutz, S. Brandt, Pushing the EL envelope further, in: OWLED (Spring),
volume 496 of CEUR Workshop Proceedings, CEUR-WS.org, 2008.
[40] E. Tsamoura, L. Michael, Neural-symbolic integration: A compositional perspective,</p>
      <p>Proceedings of the AAAI Conference on Artificial Intelligence (2021).</p>
    </sec>
    <sec id="sec-7">
      <title>A. Axioms Mapping</title>
      <sec id="sec-7-1">
        <title>Axiom</title>
        <p>⊑ 
 ⊓  ⊑ 
∃.⊤ ⊑ 
 ⊑ ∃.⊤</p>
      </sec>
      <sec id="sec-7-2">
        <title>MLN Atom</title>
      </sec>
      <sec id="sec-7-3">
        <title>Textualized Representation</title>
        <p>(, )
(, , )</p>
      </sec>
    </sec>
    <sec id="sec-8">
      <title>B. Experimental Details</title>
      <sec id="sec-8-1">
        <title>B.1. Schema Dataset</title>
        <p>Architecture/Training details. For each instance of the dataset, the neural backbone predicts
confidences for the explicit, implicit and sampled false atoms. Each of these query atoms is
textualized and appended to the input after a [sep] token as explained in Section 5.1. This
procedure is applied for every query atom separately to not hard-code specific world configurations.
The fully connected layer, which is trained from scratch, outputs one real-valued confidence
score on which the leaky-ReLu is applied and the so obtained atom confidences are forwarded
to the MLN. During training the hybrid model, we use absolute error as a loss criterion based
on the MLN output (M A P state). During test time, the output of the MLN as used as the final
atom predictions. The neural baseline uses the exact same architecture as the neural backbone
and is trained using binary cross entropy.</p>
        <p>Hyperparameter for the schema dataset. We use the Adam optimizer with betas equal to
0.5. The weight decay is set to 5 × 10−4. We search over learning rates,  and the negative slope
of the leaky-ReLu activations on the validation set and use absolute error as a loss criterion. We
set k=10, the average number of true atoms in a schema instance. Finally, we use a learning
rate of 10−4,  = 0.5 ,  = 10 , and a negative slope of 5 × 10−2.</p>
      </sec>
      <sec id="sec-8-2">
        <title>B.2. CLUTRR dataset</title>
        <p>Dataset recreation. The dataset is governed by a set of rules such as ”When A is the wife of B
and B has child C then A has child C”. We found two erroneous rules in the dataset construction
which rendered almost every entity pair as siblings on some instances. We noticed this when
observing an initial bad performances of the hybrid model on the CLUTRR dataset. Despite the
confidences for the explicit relationships in the input story were reasonable, the MLN was not
able to infer the relationship between the two target entities correctly. Therefore, for debugging
purposes, we enforced the the target relationship by adding it as an evidence atom. In the
new M A P state (with the target relationship treated as hard evidence) all entities in the story
were rendered as siblings despite the neural confidences for these relationships being negative.
Therefore, we further investigated the dataset internals and we found the two erroneous rules
used during dataset construction:</p>
        <p>When A has child B and B has uncle C then A and C are siblings.</p>
        <p>This is not always the case, however, as C could be the sibling of A’s spouse.</p>
        <p>When A has child B and B has grandparent C then A is child of C.</p>
        <p>
          Here, A is not in general child of C as C could be the parent of A’s spouse. We cloned the project
repository and deleted these rules from the dataset construction. We recreated the two dataset
types with a) using stories with raw facts such as ”A is the sister of B” and b) facts replaced with
paraphrases gathered by Mturk users [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ]. For a), we used the following command:
p y t h o n m a i n . p y - - t r a i n _ t a s k s 1 . 2 , 1 . 3 - - t e s t _ t a s k s 1 . 2 , 1 . 3 , 1 . 4 , 1 . 5 , 1 . 6 , 1 . 7 , 1 . 8 , 1 . 9 , 1 . 1 0
- - t r a i n _ r o w s 1 0 0 0 0 - - t e s t _ r o w s 5 0 0 - - h o l d o u t
For b), we used the command:
p y t h o n m a i n . p y - - t r a i n _ t a s k s 1 . 2 , 1 . 3 - - t e s t _ t a s k s 1 . 2 , 1 . 3 , 1 . 4 , 1 . 5 , 1 . 6 , 1 . 7 , 1 . 8 , 1 . 9 , 1 . 1 0
- - t r a i n _ r o w s 1 0 0 0 0 - - t e s t _ r o w s 5 0 0 - - h o l d o u t - - u s e _ m t u r k _ t e m p l a t e
Architecture/Training details. For the hybrid model, the neural backbone takes the story
inputs and is queried for the relationship between the entities whose relationships are described
in the story (explicit and implicit) and passes the confidences to the MLN. We only consider
gender neutral relations, for instance, treating mother and father as parent. Therefore, the fully
connected layer takes the embedding of the [cls] token and outputs a vector with 11 scores for
the relationships in regard to one query atom. We follow [
          <xref ref-type="bibr" rid="ref17">17</xref>
          ] and substitute the entity names
randomly with digit placeholders and likewise for the Mturk setting we augment the stories
with two irrelevant facts. The hybrid model is then trained end-to-end using absolute error on
the output of the MLN. During test time, the output of the MLN defines the final predictions
where we only regard the predicted atom between the target entities in a respective story.
When training the neural baseline, the same neural architecture as the neural backbone is used
and trained using binary cross entropy, however, in favor of the neural model it is exclusively
trained on the target relationship.
        </p>
        <p>Hyperparameter for CLUTRR. We use the same optimizer parameters as for the schema
experiments except that we use a learning rate of 10−5. Furthermore, we use k=5, the same value
of  as above, and a value of one for  . Hyperparameters are found by training and validating
on a diferent dataset instance created under the same configurations as described above.
implicit
explicit</p>
        <p>Perceptron</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>G. Marcus,</surname>
          </string-name>
          <article-title>The next decade in ai: four steps towards robust artificial intelligence</article-title>
          , arXiv preprint arXiv:
          <year>2002</year>
          .
          <volume>06177</volume>
          (
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>G.</given-names>
            <surname>Marcus</surname>
          </string-name>
          , E. Davis,
          <string-name>
            <surname>Rebooting</surname>
            <given-names>AI</given-names>
          </string-name>
          :
          <article-title>Building artificial intelligence we can trust</article-title>
          ,
          <source>Vintage</source>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <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>
          , Springer Science &amp; Business
          <string-name>
            <surname>Media</surname>
          </string-name>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M.</given-names>
            <surname>Richardson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Domingos</surname>
          </string-name>
          ,
          <article-title>Markov logic networks</article-title>
          ,
          <source>in: Machine learning</source>
          , volume
          <volume>62</volume>
          , Springer,
          <year>2006</year>
          , pp.
          <fpage>107</fpage>
          -
          <lpage>136</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>C.</given-names>
            <surname>Zirn</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Niepert</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Stuckenschmidt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Strube</surname>
          </string-name>
          ,
          <article-title>Fine-grained sentiment analysis with structural features</article-title>
          ,
          <source>in: Proceedings of 5th International Joint Conference on Natural Language Processing</source>
          ,
          <year>2011</year>
          , pp.
          <fpage>336</fpage>
          -
          <lpage>344</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>K.</given-names>
            <surname>Gayathri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Easwarakumar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Elias</surname>
          </string-name>
          ,
          <article-title>Probabilistic ontology based activity recognition in smart homes using markov logic network</article-title>
          ,
          <source>in: Knowledge-Based Systems</source>
          , volume
          <volume>121</volume>
          ,
          <string-name>
            <surname>Elsevier</surname>
          </string-name>
          ,
          <year>2017</year>
          , pp.
          <fpage>173</fpage>
          -
          <lpage>184</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>M.</given-names>
            <surname>Niepert</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Noessner</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Stuckenschmidt</surname>
          </string-name>
          ,
          <article-title>Log-linear description logics</article-title>
          , in: TwentySecond
          <source>International Joint Conference on Artificial Intelligence, Citeseer</source>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>S.</given-names>
            <surname>Satpal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Bhadra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Sellamanickam</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Rastogi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Sen</surname>
          </string-name>
          ,
          <article-title>Web information extraction using markov logic networks</article-title>
          ,
          <source>in: Proceedings of the 17th ACM SIGKDD international conference on Knowledge discovery and data mining</source>
          ,
          <year>2011</year>
          , pp.
          <fpage>1406</fpage>
          -
          <lpage>1414</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <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>in: Neural computation</source>
          , volume
          <volume>9</volume>
          , MIT Press,
          <year>1997</year>
          , pp.
          <fpage>1735</fpage>
          -
          <lpage>1780</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <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: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies</source>
          , Volume
          <volume>1</volume>
          (Long and Short Papers),
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>A.</given-names>
            <surname>Vaswani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Shazeer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Parmar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Uszkoreit</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Jones</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. N.</given-names>
            <surname>Gomez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Kaiser</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Polosukhin</surname>
          </string-name>
          ,
          <article-title>Attention is all you need</article-title>
          ,
          <source>Advances in Neural Information Pro-cessing Systems</source>
          (
          <year>2017</year>
          )
          <fpage>6000</fpage>
          -
          <lpage>6010</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>M. V.</given-names>
            <surname>Pogančić</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Paulus</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Musil</surname>
          </string-name>
          , G. Martius,
          <string-name>
            <given-names>M.</given-names>
            <surname>Rolinek</surname>
          </string-name>
          ,
          <article-title>Diferentiation of blackbox combinatorial solvers</article-title>
          ,
          <source>in: International Conference on Learning Representations</source>
          ,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>M.</given-names>
            <surname>Niepert</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Minervini</surname>
          </string-name>
          , L. Franceschi,
          <article-title>Implicit mle: Backpropagating through discrete exponential family distributions</article-title>
          ,
          <source>arXiv preprint arXiv: 2106.01798</source>
          (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>M.</given-names>
            <surname>Collins</surname>
          </string-name>
          ,
          <article-title>Discriminative training methods for hidden markov models: Theory and experiments with perceptron algorithms</article-title>
          ,
          <source>in: Proceedings of the 2002 conference on empirical methods in natural language processing.</source>
          ,
          <year>2002</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>8</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>D.</given-names>
            <surname>Lowd</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Domingos</surname>
          </string-name>
          ,
          <article-title>Eficient weight learning for markov logic networks</article-title>
          ,
          <source>in: European conference on principles of data mining and knowledge discovery</source>
          , Springer,
          <year>2007</year>
          , pp.
          <fpage>200</fpage>
          -
          <lpage>211</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>J.</given-names>
            <surname>Domke</surname>
          </string-name>
          ,
          <article-title>Implicit diferentiation by perturbation</article-title>
          , volume
          <volume>23</volume>
          ,
          <string-name>
            <surname>Citeseer</surname>
          </string-name>
          ,
          <year>2010</year>
          , pp.
          <fpage>523</fpage>
          -
          <lpage>531</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>K.</given-names>
            <surname>Sinha</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Sodhani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Dong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Pineau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W. L.</given-names>
            <surname>Hamilton</surname>
          </string-name>
          ,
          <article-title>Clutrr: A diagnostic benchmark for inductive reasoning from text</article-title>
          ,
          <source>Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing</source>
          . (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>M.</given-names>
            <surname>Diligenti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Gori</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Scoca</surname>
          </string-name>
          ,
          <article-title>Learning eficiently in semantic based regularization</article-title>
          ,
          <source>in: Joint European Conference on Machine Learning and Knowledge Discovery in Databases</source>
          , Springer,
          <year>2016</year>
          , pp.
          <fpage>33</fpage>
          -
          <lpage>46</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>Z.</given-names>
            <surname>Hu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Ma</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Hovy</surname>
          </string-name>
          , E. Xing,
          <article-title>Harnessing deep neural networks with logic rules</article-title>
          ,
          <source>in: 4th Annual Meeting of the Association for Computational Linguistics</source>
          ,
          <year>2016</year>
          , p.
          <fpage>2410</fpage>
          -
          <lpage>2420</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>P.</given-names>
            <surname>Minervini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Demeester</surname>
          </string-name>
          ,
          <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>Adversarial sets for regularising neural link predictors</article-title>
          ,
          <source>Proceedings of the 33rd Conference on Uncertainty in Artificial Intelligence</source>
          (
          <year>2017</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>T.</given-names>
            <surname>Rocktäschel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Riedel</surname>
          </string-name>
          ,
          <article-title>Injecting logical background knowledge into embeddings for relation extraction</article-title>
          ,
          <source>in: Proceedings of the 2015 conference of the north American Chapter of the Association for Computational Linguistics: Human Language Technologies</source>
          ,
          <year>2015</year>
          , pp.
          <fpage>1119</fpage>
          -
          <lpage>1129</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>S.</given-names>
            <surname>Badreddine</surname>
          </string-name>
          , A.
          <string-name>
            <surname>d'Avila Garcez</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Serafini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Spranger</surname>
          </string-name>
          ,
          <article-title>Logic tensor networks</article-title>
          , arXiv preprint arXiv:
          <year>2012</year>
          .
          <volume>13635</volume>
          (
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>R.</given-names>
            <surname>Evans</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Grefenstette</surname>
          </string-name>
          ,
          <article-title>Learning explanatory rules from noisy data</article-title>
          ,
          <source>in: Journal of Artificial Intelligence Research</source>
          , volume
          <volume>61</volume>
          ,
          <year>2018</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>64</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [24]
          <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: Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems</source>
          <year>2017</year>
          ,
          <year>2017</year>
          , pp.
          <fpage>3788</fpage>
          -
          <lpage>3800</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [25]
          <string-name>
            <given-names>P.</given-names>
            <surname>Minervini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Bošnjak</surname>
          </string-name>
          ,
          <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>
          , E. Grefenstette,
          <article-title>Diferentiable reasoning on large knowledge bases and natural language</article-title>
          ,
          <source>in: Proceedings of the AAAI Conference on Artificial Intelligence</source>
          , volume
          <volume>34</volume>
          ,
          <year>2020</year>
          , pp.
          <fpage>5182</fpage>
          -
          <lpage>5190</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          [26]
          <string-name>
            <given-names>L.</given-names>
            <surname>Weber</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Minervini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Münchmeyer</surname>
          </string-name>
          , U. Leser, T. Rocktäschel,
          <article-title>Nlprolog: Reasoning with weak unification for question answering in natural language, Association for Computational Linguistics (</article-title>
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref27">
        <mixed-citation>
          [27]
          <string-name>
            <given-names>P.</given-names>
            <surname>Minervini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Riedel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Stenetorp</surname>
          </string-name>
          , E. Grefenstette,
          <string-name>
            <given-names>T.</given-names>
            <surname>Rocktäschel</surname>
          </string-name>
          ,
          <article-title>Learning reasoning strategies in end-to-end diferentiable proving</article-title>
          ,
          <source>in: International Conference on Machine Learning, PMLR</source>
          ,
          <year>2020</year>
          , pp.
          <fpage>6938</fpage>
          -
          <lpage>6949</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref28">
        <mixed-citation>
          [28]
          <string-name>
            <given-names>W.</given-names>
            <surname>Cohen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. R.</given-names>
            <surname>Mazaitis</surname>
          </string-name>
          ,
          <article-title>Tensorlog: A probabilistic database implemented using deep-learning infrastructure</article-title>
          ,
          <source>in: Journal of Artificial Intelligence Research</source>
          , volume
          <volume>67</volume>
          ,
          <year>2020</year>
          , pp.
          <fpage>285</fpage>
          -
          <lpage>325</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref29">
        <mixed-citation>
          [29]
          <string-name>
            <given-names>G.</given-names>
            <surname>Marra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Diligenti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Giannini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Gori</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Maggini</surname>
          </string-name>
          ,
          <article-title>Relational neural machines</article-title>
          , in: G. D.
          <string-name>
            <surname>Giacomo</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Catalá</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          <string-name>
            <surname>Dilkina</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Milano</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Barro</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Bugarín</surname>
          </string-name>
          , J. Lang (Eds.),
          <source>ECAI 2020 - 24th European Conference on Artificial Intelligence</source>
          , volume
          <volume>325</volume>
          <source>of Frontiers in Artificial Intelligence and Applications</source>
          , IOS Press,
          <year>2020</year>
          , pp.
          <fpage>1340</fpage>
          -
          <lpage>1347</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref30">
        <mixed-citation>
          [30]
          <string-name>
            <given-names>G.</given-names>
            <surname>Marra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Kuželka</surname>
          </string-name>
          ,
          <article-title>Neural markov logic networks</article-title>
          , arXiv preprint arXiv:
          <year>1905</year>
          .
          <volume>13462</volume>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref31">
        <mixed-citation>
          [31]
          <string-name>
            <given-names>R.</given-names>
            <surname>Manhaeve</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Dumancic</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Kimmig</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Demeester</surname>
          </string-name>
          , L. De Raedt,
          <article-title>Deepproblog: Neural probabilistic logic programming</article-title>
          ,
          <source>in: Advances in Neural Information Processing Systems</source>
          , volume
          <volume>31</volume>
          ,
          <year>2018</year>
          , pp.
          <fpage>3749</fpage>
          -
          <lpage>3759</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref32">
        <mixed-citation>
          [32]
          <string-name>
            <given-names>A.</given-names>
            <surname>Kimmig</surname>
          </string-name>
          , G. Van den Broeck, L. De Raedt,
          <article-title>An algebraic prolog for reasoning about</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>