<!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>Beyond DNF: First Steps towards Deep Rule Learning</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Florian Beck</string-name>
          <email>fbeck@faw.jku.at</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Johannes Fürnkranz</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Institute for Application-oriented Knowledge Processing (FAW) Department of Computer Science Johannes Kepler University Linz</institution>
          ,
          <country country="AT">Austria</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Inductive rule learning is arguably among the most traditional paradigms in machine learning. Although we have seen considerable progress over the years in learning rule-based theories, all state-of-the-art learners still learn descriptions that directly relate the input features to the target concept. It could nevertheless be the case that more structured representations, which form deep theories by forming intermediate concepts, could be easier to learn, in very much the same way as deep neural networks are able to outperform shallow networks, even though the latter are also universal function approximators. In this paper, we investigate into networks with weights and activations limited to the values 0 and 1. For the lack of a powerful algorithm that optimizes deep rule sets, we empirically compare deep and shallow rule networks with a uniform general algorithm, which relies on greedy mini-batch based optimization. Our experiments on both artificial and realworld benchmark data indicate that deep rule networks may outperform shallow networks.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        Dating back to the AQ algorithm [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], inductive rule
learning is one of the most traditional fields in machine learning.
However, when reflecting upon its long history [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], it can
be argued that while modern methods are somewhat more
scalable than traditional rule learning algorithms [see, e.g.,
16, 10], no major break-through has been made. In fact, the
RIPPER rule learning algorithm [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] is still very hard to beat
in terms of both accuracy and simplicity of the learned rule
sets. All these algorithms, traditional or modern, typically
provide flat lists or sets of rules, which directly relate the
input variables to the desired output. In concept learning,
where the goal is to learn a set of rules that collectively
describe the target concept, the learned set of rules can be
considered as a logical expression in disjunctive normal
form (DNF), in which each conjunction forms a rule that
predicts the positive class.
      </p>
      <p>
        In this paper, we argue that one of the key factors for
the strength of deep learning algorithms is that latent
variables are formed during the learning process. However,
while neural networks excel in implementing this ability
in their hidden layers, which can be effectively trained via
backpropagation, there is essentially no counter-part to this
ability in inductive rule learning. We therefore set out to
verify the hypothesis that deep rule structures might be
easier to learn than flat rule sets, in very much the same way as
deep neural networks have a better performance than
singlelayer networks [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. Note that this is not obvious, because,
in principle, every logical formula can be represented with a
DNF expression, which corresponds to a flat rule set, in the
same way as, in principle, one (sufficiently large) hidden
layer is sufficient to approximate any function with a neural
network [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. As no direct comparison is possible because
of the lack of a powerful algorithm for learning deep rule
sets, our tool of choice is a simple stochastic optimization
algorithm to optimize a rule network of a given size. While
this does not quite reach state-of-the-art performance (in
either setting, shallow or deep), it nevertheless allows us to
gain some insights into these settings. We also test on both,
real-world UCI benchmark datasets, as well as artificial
datasets for which we know the underlying target concept
representations.
      </p>
      <p>
        The remainder of the paper is organized as follows:
Sect. 2 elaborates why deep rule learning is of
particular interest and refers to related work. We propose a new
network approach in Sect. 3 and test it in Sect. 4. The
results are concluded in Sect. 5, followed by possible
future extensions and improvements in Sect. 6. An extended
version of this paper containing an elaborate discussion of
related work, more details on the methods, and additional
experiments is available as [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Deep Rule Learning</title>
      <p>Rule learning algorithms typically provide flat lists that
directly relate the input to the output. Consider, e.g., the
following example: the parity concept, which is known
to be hard to learn for heuristic, greedy learning
algorithms, checks whether an odd or an even number of R
relevant attributes (out of a possibly higher total number
of attributes) are set to true. Figure 1a shows a flat
rulebased representation1 of the target concept for R = 5, which
requires 2R 1 = 16 rules. On the other hand, a structured
representation, which introduces three auxiliary predicates
(parity2345, parity345 and parity45 as shown in
Figure 1b), is much more concise using only 2 (R 1) = 8
1We use a Prolog-like notation for rules, where the consequent (the
head of the rule) is written on the left and the antecedent (the body) is
written on the right. For example, the first rule reads as: If x1, x2, x3 and
x4 are all true and x5 is false then parity holds.
parity :- x1, x2, x3, x4, not x5.
parity :- x1, x2, not x3, not x4, not x5.
parity :- x1, not x2, x3, not x4, not x5.
parity :- x1, not x2, not x3, x4, not x5.
parity :- not x1, x2, not x3, x4, not x5.
parity :- not x1, x2, x3, not x4, not x5.
parity :- not x1, not x2, x3, x4, not x5.
parity :- not x1, not x2, not x3, not x4, not x5.
parity :- x1, x2, x3, not x4, x5.
parity :- x1, x2, not x3, x4, x5.
parity :- x1, not x2, x3, x4, x5.
parity :- not x1, x2, x3, x4, x5.
parity :- not x1, not x2, not x3, x4, x5.
parity :- not x1, not x2, x3, not x4, x5.
parity :- not x1, x2, not x3, not x4, x5.
parity :- x1, not x2, not x3, not x4, x5.
(a) A flat unstructured rule set for the parity concept
:- x4, x5.</p>
      <p>:- not x4, not x5.
parity345 :- x3, not parity45.
parity345 :- not x3, parity45.
parity2345 :- x2, not parity345.
parity2345 :- not x2, parity345.
parity
parity
:- x1, not parity2345.</p>
      <p>:- not x1, parity2345.
(b) A deep structured rule base for parity using
three auxiliary predicates
rules. We argue that the parsimonious structure of the latter
could be easier to learn because it uses only a linear
number of rules, and slowly builds up the complex target
concept parity from the smaller subconcepts parity2345,
parity345 and parity45.</p>
      <p>To motivate this, we draw an analogy to neural network
learning, and view rule sets as networks. Conventional
rule learning algorithms learn a flat rule set of the type
shown in Figure 1a, which may be viewed as a concept
description in disjunctive normal form (DNF): Each rule
body corresponds to a single conjunct, and these conjuncts
are connected via a disjunction (each positive example
must be covered by one or more of these rule bodies). This
situation is illustrated in Figure 2a, where the 5 input nodes
are connected to 16 hidden nodes - one for each of the 16
rules that define the concept - and these are then connected
to a single output node. Analogously, the deep parity rule
set of Figure 1b may be encoded into a deeper network
structure as shown in Figure 2b. Clearly, the deep network
is more compact and considerably sparser in the number of
edges. Of course, we need to take into consideration that the
optimal structure is not known beforehand and presumably
needs to emerge from a fixed network structure that offers
the possibility for some redundancy, but nevertheless we
expect that such structured representations offer similar
advantages as deep neural networks offer over single-layer
networks.</p>
      <p>
        It is important to note that deep structures do not
increase the expressiveness of the learned concepts. Any
formula in propositional logic (and we limit ourselves to
propositional logic in this project) can be converted to a
DNF formula. In the worst case (a so-called full DNF),
each of the input variables appears exactly once in all of
the inputs, which essentially corresponds to enumerating
all the positive examples. Thus, the size of the number of
conjuncts in a DNF encoding of the inputs may grow
exponentially with the number of input features. This is in many
ways analogous to the universal approximation theorem [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ],
which essentially states that any continuous function can
be approximated arbitrarily closely with a shallow neural
network with a single hidden layer, provided that the size
of this layer is not bounded. So, in principle, deep neural
networks are not necessary, and indeed, much of the neural
network research in the 90s has concentrated on learning
such two-layer networks. Nevertheless, we have now seen
that deep neural networks are easier to train and often yield
better performance, presumably because they require
exponentially less parameters than shallow networks [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. In the
same way, we expect that deep logical structures will yield
more efficient representations of the captured knowledge
and might be easier to learn than flat DNF rule sets.
3
      </p>
    </sec>
    <sec id="sec-3">
      <title>Deep Rule Networks</title>
      <p>
        For our studies of deep and shallow rule learning, we define
rule-based theories in a networked structure, which we
describe in the following. We build upon the shallow
twolevel networks we have previously used for experimenting
with mini-batch rule learning [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], but generalize them from
a shallow DNF-structure to deeper networks.
      </p>
      <sec id="sec-3-1">
        <title>3.1 Network Structure</title>
        <p>A conventional rule set consisting of multiple conjunctive
rules that define a single target concept, corresponds to
a logical expression in disjunctive normal form (DNF).
An equivalent network consists of three layers, the input
layer, one hidden layer (= AND layer) and the output layer
(= OR layer), as, e.g., illustrated in Figure 2a. The
input layer receives one-hot-encoded nominal attribute-value
(a) shallow representation
(b) deep representation
pairs as binary features (= literals), the hidden layer
conjuncts these literals to rules and the output layer disjuncts
the rules to a rule set. The network is designed for binary
classification problems and produces a single prediction
output that is true if and only if an input sample is covered
by any of the rules in the rule set.</p>
        <p>For generalizing this structure to deeper networks, we
need to define multiple layers. While the input layer and the
output layer remain the same, the number and the size of the
hidden layers can be chosen arbitrarily. Note that we can
still emulate a shallow DNF-structure by choosing a single
hidden layer. In the more general case, the hidden layers
are treated alternately as conjunctive and disjunctive layers.
We focus on layer structures starting with a conjunctive
hidden layer and ending with a disjunctive output layer,
i.e. networks with an odd number of hidden layers. In this
way, the output will be easier to compare with rule sets in
DNF. Furthermore, the closer we are to the output layer, the
more extensive are the rules and rule sets, and the smaller
is the chance to form new combinations from them that are
neither tautological nor contradictory. As a consequence,
the number of nodes per hidden layer should be lower the
closer it is to the output layer. This makes the network
shaped like a funnel.
3.2</p>
      </sec>
      <sec id="sec-3-2">
        <title>Network Weights and Initialization</title>
        <p>In the following, we assume the network to have n + 2
layers, with each layer i containing si nodes. Layer 0
corresponds to the input layer with s0 = jxj and layer n + 1 to the
output layer with sn+1 = 1. Furthermore, a weight w(jik) is
identified by the layer i it belongs to, the node j from which
it receives the output, and the node k in the successive layer
i + 1 to which it passes the activation. Thus, the weights of
each layer can be represented by an si si 1-dimensional
matrix W (i) = [w(jik)]. In total, there are åi=0 sisi+1 Boolean
n
weights which have to be learned, i.e., have to be set to
true (resp. 1) or false (resp. 0). If weight w(jik) is set to
true, this means that the output of node j is used in the
conjunction (if i mod 2 = 0) or disjunction (if i mod 2 = 1)
that defines node k. If it is set to false, this output is
ignored by node k.</p>
        <p>In the beginning, these weights need to be initialized.
This initialization process is influenced by two
hyperparameters: average rule length (l¯) and initialization probability
(p), where l¯ only affects the number of weights that are
set to 1 in the first layer. Here we use the additional
information which literals belong to the same attribute to
avoid immediate contradictions within the first conjunction.
Let jA j be the number of attributes, then each attribute is
selected with the probability l¯=jA j so that on average for l¯
literals of different attributes the corresponding weight will
be set to true. In the remaining layers, the weights are
set to true with the probability p. Additionally, at least
one outgoing weight from each node will be set to true
to ensure connectivity. This implies that, regardless of the
choice of p, all the weights in the last layer will always
be initialized with true because there is only one output
node. Note that, as a consequence, shallow DNF-structured
networks will not be influenced by the choice of p, since
they only consist of the first layer influenced by l¯ and the
last layer initialized with true.
The prediction of the network can be efficiently computed
using binary matrix multiplications ( ). In each layer i,
the input features A(i) are multiplied with the
corresponding weights W (i) and aggregated at the receiving node in
layer i + 1. If the aggregation is disjunctive, this directly
corresponds to a binary matrix multiplication. According
to De Morgan’s law, a ^ b = :(:a _ :b) holds. This means
that binary matrix multiplication can be used also in the
conjunctive case, provided that the inputs and outputs are
negated before and after the multiplication. Because of the
alternating sequence of conjunctive and disjunctive layers,
binary matrix multiplications and negations are also always
alternated when passing data through the network, so that a
binary matrix multiplication followed by a negation can be
considered as a NOR-node. Thus, the activations A(i+1) can
be computed from the activations in the previous layers as
A(i+1)</p>
        <p>A˜(i)</p>
        <p>W (i)
(1)
where X˜ = J X denotes the element-wise negation of a
matrix X (J denotes a matrix of all ones). Hence, internally,
we do not distinguish between conjunctive and disjunctive
layers within the network, but have a uniform network
structure consisting only of NOR-nodes. However, for the
sake of the ease of interpretation, we chose to represent the
networks as alternating AND and OR layers.</p>
        <p>In the first layer, we have the choice whether to start with
a disjunctive layer or a conjunctive one, which can be
controlled by simply using the original input vector (A(0) = x)
or its negation (A(0) = x˜) as the first layer. Also, if the
last layer is conjunctive, an additional negation must be
performed at the end of the network so that the output has
the same ”polarity” as the target values. In our experiments,
we always start with a conjunctive and end with a
disjunctive layer. In this way, the rule networks can be directly
converted into conjunctive rule sets.
3.4</p>
      </sec>
      <sec id="sec-3-3">
        <title>Training</title>
        <p>
          Following [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ], we implement a straight-forward mini-batch
based greedy optimization scheme. While the number, the
arrangement and the aggregation types of the nodes remain
unchanged, the training process will flip the weights of the
network to optimize its outcome. Flipping a weight from 0
to 1 (or vice versa) can be understood to be a single addition
(or removal) of a literal to the conjunction or disjunction
encoded by the following node. After the initialization, the
base accuracy on the complete training set and the initial
weights are stored and subsequently updated every time
when the predicted accuracy on the training set exceeds
the previous maximum after processing a mini-batch of
training examples. However, the predictive performance
does not necessarily increase monotonically, since the
accuracy is optimized not on the whole training set, but on
a mini-batch. For all layers and nodes, possible flips are
tried and evaluated, and the flip with the biggest
improvement of the accuracy on the current mini-batch is selected.
These greedy adjustments are repeated until either no flip
improves the accuracy on the mini-batch or a maximum
number of flips is reached, which ensures that the network
does not overfit the mini-batch data.
        </p>
        <p>When all mini-batches are processed, the procedure is
repeated for a fixed number of epochs. Only the composition
of the mini-batches is changed in each epoch by shuffling
the training data before proceeding. After all epochs, the
weights of the networks are reset to the optimum found so
far, and a final optimization on the complete training set
is conducted to eliminate any overfitting on mini-batches.
The returned network can then be used to predict outcomes
of any further test instances.
4</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Experiments</title>
      <p>In this section we present the results of differently
structured rule networks on both artificial and real-world UCI
datasets, with the goal of investigating the effect of
differences in the depth of the networks.
4.1</p>
      <sec id="sec-4-1">
        <title>Artificial Datasets</title>
        <p>
          As many standard UCI databases can be solved with very
simple rules [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ], we generated artificial datasets with a deep
structure that we know can be represented by our network.
An artificial dataset suitable for our greedy optimization
algorithm should not only include intermediate concepts
which are meaningful but also a strictly monotonically
decreasing entropy between these concepts, so that they can
be learned in a stepwise fashion in successive layers. One
way to generate artificial datasets that satisfy these
requirements is to take the output of a randomly generated deep
rule network. Subsequently, this training information can
be used to see whether the function encoded in the original
network can be recovered. Note that such a recovery is
also possible for networks with different layer structures.
In particular, each of the logical functions encoded in such
a deep network can, of course, also be encoded as a DNF
expression, so that shallow networks are not in an a
priori disadvantage (provided that their hidden layer is large
enough, which we ensured in preliminary experiments).
        </p>
        <p>We use a dataset of ten Boolean inputs named a to j
and generate all possible 210 combinations as training or
test samples. These samples are extended by the ten
negations :a to : j via one-hot-encoding and finally passed
to a funnel-shaped deep rule network with n = 5 and
s = [32; 16; 8; 4; 2]. The weights of the network are set
by randomly initializing the network and then training it
on two randomly selected examples, one assigned to the
positive and one to the negative class, to ensure both a
positive and negative output is possible. If the resulting ratio of
positively predicted samples is still less than 20% or more
than 80%, the network is reinitialized with a new random
seed to avoid extremely imbalanced datasets.
4.2</p>
      </sec>
      <sec id="sec-4-2">
        <title>Results on Artificial Datasets</title>
        <p>
          We first conducted a few preliminary experiments on three
of the artificial datasets to set suitable default values for the
hyperparameters of the deep and shallow networks. The
detailed grid search including figures comparing different
hyperparameter settings are presented in the extended
version of this paper [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ]. Based on these results, we selected
three network versions for the main experiments. As a
candidate for shallow networks, we take the best
combination of s1 = 20 and l¯ = 5. For the deep networks, however,
we will choose the second-best network s = [32; 16; 8; 4; 2]
combined with l¯ = 2 and an averaged p = 0:05, since it is
almost ten times faster than the best deep network while
still reaching an accuracy over 0:895. The third network
is chosen as an intermediate stage between the first two:
s = [32; 8; 2] combined with l¯ = 3 and p = 0:05. While still
being a deep network, the learned rules can be passed to the
output layer a little faster. In the following, we will refer to
these (deep) rule network classifiers based on their number
of layers, i.e. DRNC(5) for s = [32; 16; 8; 4; 2], DRNC(3)
for s = [32; 8; 2] and RNC for s1 = 20. For computational
reasons, all of the reported results were estimated with a
2-fold cross validation. While this may not yield the most
reliable estimate on each individual dataset, we
nevertheless get a coherent picture over all 20 datasets, as we will
see in the following.
        </p>
        <p>In the main experiments, we use a combination of 15
artificial datasets with seeds we already used in the prior
hyperparameter grid search and 5 artificial datasets with
new seeds to detect potential overfitting on the first datasets.
All datasets are tested using five epochs, a batch size of 50
and an unlimited number of flips per batch. We also ensured
for all of the generated datasets that the DNF concept does
not contain more than 20 rules, so that it can be theoretically
also be learned by the tested shallow network with s1 = 20
(and therefore also for the two deep networks, since their
first layer is already bigger).</p>
        <p>Figure 3 shows the development of the accuracies on
the training set averaged on all 20 datasets over the
number of processed mini-batches, whereby after every ten
mini-batches a new epoch starts. The base accuracy
before processing the first mini-batch and after the full batch
optimization are omitted. We can see that the deep
networks not only deliver higher accuracies but they also
converge slightly faster than the shallow one. The orange
curve of DRNC(3) runs a little higher than the blue one
of DRNC(5), whereas the green curve of RNC has some
distance to them, especially during the first two epochs.</p>
        <p>Table 1 shows the accuracies of the three networks. For
each dataset, the best accuracy of the three network
classifiers is highlighted in bold. We can see a clear advantage
for the two deep networks both when considering the
average accuracy and the amount of highest accuracies. The
results clearly show that the best performing deep networks
outperform the best performing shallow network in all but
4 of the 20 generated datasets. Both the average rank and
the average accuracy of the deep networks is considerably
better than the corresponding values for RNC. This also
holds for pairwise comparisons of the columns (DRNC(5)
vs. RNC 15:5, DRNC(3) vs. RNC 15:5).</p>
        <p>The Friedman-test for the ranks yields a significance
of more than 95%. A subsequent Nemenyi-Test delivers
a critical distance of 0.741 (95%) or 0.649 (90%), which
shows that DRNC(3) and RNC are significantly different
on a level of more than 95% and DRNC(5) and RNC
on a level of more than 90%. The corresponding critical
distance diagram (CD=0.741) is shown in Figure 4. We
thus find it safe to conclude that deep networks outperform
shallow networks on these datasets.</p>
        <p>
          In the two right-most columns of Table 1 we also show
a comparison to the state-of-the-art rule learner RIPPER
[
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] and the decision tree learner CART [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] in Python
implementations using default parameters.2 We see that all
network approaches are outperformed by the RIPPER and
CART classifiers with default setting. The difference
between RIPPER and DRNC(3) is approximately the same
as the difference between DRNC(3) and RNC. However,
considering that we only use a naïve greedy algorithm, it
2We used the implementations available from https:
//pypi.org/project/wittgenstein/ and https://
scikit-learn.org/stable/modules/generated/sklearn.
tree.DecisionTreeClassifier.html.
could not be expected (and was also not our objective) to
be able to beat state-of-the-art rule learner. In particular,
the runtime is far from state-of-the-art, since already for
the shallow network 30 seconds are needed per dataset and
up to three minutes for the deep networks (in comparison
to less than a second for RIPPER and CART).
Furthermore, the results also confirm that shallow rule learners (of
which both RIPPER and CART are representatives) had no
disadvantage by the way we generated the datasets.
4.3
        </p>
      </sec>
      <sec id="sec-4-3">
        <title>Results on UCI Datasets</title>
        <p>
          For an estimation how the rule networks perform on
realworld datasets, we select nine classification datasets
(carevaluation, connect-4, kr-vs-kp, monk 1-3, mushroom,
tictac-toe and vote ) from the UCI Repository [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ]. They
differ in the number of attributes and instances, but have in
common that they consist only of nominal attributes.
Carevaluation and connect-4 are actually multi-class datasets
and are therefore converted into the binary classification
problem whether a sample belongs to the most frequent
class or not. Of all binary classification problems, the
networks to be tested treat again the more common class as the
positive class and the less common as the negative class,
except for the monk datasets whereby the positive class
is set to 1. As with the artificial datasets, we additionally
compare the performance of the networks to RIPPER and
CART, and again all accuracies are obtained via 2-fold
cross validation. In case a random initialization did not
yield any result (i.e., the resulting network classified all
examples into a single class), we re-initialized with a different
seed (this happened once for both deep network versions).
        </p>
        <p>
          The results are shown in Table 2. We can again observe
that the deep 5-layer network DRNC(5) outperforms the
shallow network RNC. Of all rule networks, DRNC(5)
provides the highest accuracy on the connect-4, monk-1,
monk-3, mushroom and vote datasets, whereas DRNC(3)
performs best on car-evaluation and monk-2 and RNC on
kr-vs-kp and tic-tac-toe. The latter two datasets are also
interesting: tic-tac-toe clearly does not require a deep
structure, because for solving it, the learner essentially needs
to enumerate all three-in-a-row positions on a 3 3 board.
This is similar to connect-4, where four-in-a-row positions
have to be recognized. However, in the former case, there
is only one matching tile for an intermediate concept
consisting of two tiles, while in connect-4 there are several,
which can potentially be exploited by a deeper network. In
the kr-vs-kp dataset, deep structures are also not helpful
because it consists of carefully engineered features for the
KRKP chess endgame, which were designed in an iterative
process so that the game can be learned with a decision
tree learner [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ]. It would be an ambitious goal of deep
rule learning methods to be able to learn such a dataset
from, e.g., only the positions of the chess pieces. This is
clearly beyond the state-of-the-art of current rule learning
algorithms. The comparison to RIPPER and CART is again
clearly in favor of these state-of-the-art algorithms.
The main objective of this work was to study the question
whether deep rule networks have the potential of
outperforming shallow DNF rule sets, even though, in principle,
every concept can be represented as DNF formula. As
there is no sufficiently competitive deep rule learning
algorithm, we proposed a technique how deep and shallow
rule networks can be learned and thus effectively compared
in a uniform framework, using a network approach with
a greedy optimization algorithm. For both types of
networks, we find good hyperparameter settings that allow the
networks to reach reasonable accuracies on both artificial
and real-world datasets, even though the approach is still
outperformed by state-of-the-art learning algorithms such
as RIPPER and CART.
        </p>
        <p>Our experiments on both artificial and real-world
benchmark data indicate that deep rule networks outperform
shallow networks. The deep networks obtain not only a higher
accuracy, but also need less mini-batch iterations to achieve
it. Moreover, in preliminary experiments in the
hyperparameter grid search, we have seen indications that the deep
networks are generally more robust to the choice of the
hyperparameters than shallow networks. On the other hand,
we also had some cases on real-world data sets where deep
networks failed because a poor initialization resulted in
indiscriminate predictions.</p>
        <p>Overall, we interpret these results as evidence that an
investigation of deep rule structures is a promising research
goal, which we hope could yield a similar boost in
performance in inductive rule learning as could be observed by
moving from shallow to deep neural networks. However,
this goal is still far ahead.
6</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Future Work</title>
      <p>In this work, it was not our goal to reach a state-of-the-art
predictive performance, but instead we wanted to evaluate
a very simple greedy optimization algorithm on both
shallow and deep networks, in order to get an indication on
the potential of deep rule networks. Nevertheless, several
avenues for improving our networks have surfaced, which
we intend to explore in the near future.</p>
      <p>One of the main drawbacks of the presented deep rule
networks is the extremely high runtime due to the primitive
flipping algorithm. A single flip needs a recalculation of
all activations in the network, even if only a few them will
be affected by this flip whereby the matrix multiplication
could be minimized considerably. Conversely, this
knowledge can be used to find a small subset of flips that affects
a certain activation. On the other hand, the majority of
possible flips does not have any effect on this activation
or the accuracy at all. This effect will typically remain
unchanged after a few more flips are done. Therefore an
exhaustive search of all flips is only needed in the first
iteration, while afterwards just a subset of possible flips should
be considered which can be built either in a deterministic
or probabilistic way.</p>
      <p>Due to this lack of backpropagation, the flips are
evaluated by their influence on the prediction when executed.
However, when looking at a false positive, we can only
correct this error by making the overall hypothesis of the
network more specific. In order to achieve a generalization
of the hypothesis, only flips from false to true in
conjunctive layers or flips from true to false in disjunctive
layers have to be taken into account. In this way, all flips are
split into ”generalization-flips” and ”specialization-flips”
of which only one group has to be considered at the same
time. This improvement as well as the above mentioned
selection of a subset of flips might also allow us to perform
two or more flips at the same time so that a better result
than with the greedy approach can be achieved.</p>
      <p>
        An even more promising approach starts one step
earlier in the initialization phase of the network. Instead of
specifying the structure of the network and finding optimal
initialization parameters l¯ and p for it, a small part of the
data could be used to create a rough draft version of the
network. The Quine-McCluskey algorithm [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] or RIPPER
are suitable methods to generate shallow networks, whereas
the ESPRESSO-algorithm [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] would generate deep networks.
Decision trees can also be used to generate deep networks
since the contained rules already share some conditions
and, moreover, similar subtrees can be merged.
      </p>
      <p>All these approaches share some significant advantages
over the network approach we developed so far. First of all,
the decision which class value will be treated as positive
or negative does not have to be made manually any longer.
Second, they automatically deliver a suitable initialization
of the network, which otherwise would have to be improved
by similar approaches like used in neural networks [e.g.,
14] to achieve a robust performance. Third, the general
structure of the network is not limited to a fixed size and
depth where each node is strictly assigned to a specific
layer. Instead of generating nodes that become useless after
a few flips have been processed and that should be removed,
we can thereby start with a small structure which can be
adapted purposefully by copying and mutating good nodes
and pruning bad ones. However, it remains unclear whether
these changes still lead to improvements in performance or
if the network in the given structure is already optimal.
Acknowledgments. We are grateful to Eneldo Loza Mencía,
Michael Rapp, Eyke Hüllermeier, and Van Quoc Phuong Huynh
for inspiring discussions, fruitful pointers to related work, and for
suggesting the evaluation with artificial datasets.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>F.</given-names>
            <surname>Beck</surname>
          </string-name>
          and
          <string-name>
            <given-names>J.</given-names>
            <surname>Fürnkranz</surname>
          </string-name>
          .
          <article-title>An investigation into minibatch rule learning</article-title>
          . In K. Kersting,
          <string-name>
            <given-names>S.</given-names>
            <surname>Kramer</surname>
          </string-name>
          , and
          <string-name>
            <surname>Z</surname>
          </string-name>
          . Ahmadi, editors,
          <source>Proceedings of the 2nd Workshop on Deep Continuous-Discrete Machine Learning (DeCoDeML)</source>
          ,
          <year>2020</year>
          . Available as arXiv Preprint abs/2106.10202.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>F.</given-names>
            <surname>Beck</surname>
          </string-name>
          and
          <string-name>
            <surname>J. Fürnkranz.</surname>
          </string-name>
          <article-title>An empirical investigation into deep and shallow rule learning</article-title>
          .
          <source>arxiv Preprint, abs/2106.10254</source>
          ,
          <year>2021</year>
          .
          <article-title>Submitted for journal publication</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>R. K.</given-names>
            <surname>Brayton</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G. D.</given-names>
            <surname>Hachtel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. T.</given-names>
            <surname>McMullen</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A. L.</given-names>
            <surname>Sangiovanni-Vincentelli</surname>
          </string-name>
          .
          <article-title>Logic Minimization Algorithms for VLSI Synthesis</article-title>
          , volume
          <volume>2</volume>
          of The Kluwer International Series in Engineering and Computer Science. Springer,
          <year>1984</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>L.</given-names>
            <surname>Breiman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. H.</given-names>
            <surname>Friedman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Olshen</surname>
          </string-name>
          , and
          <string-name>
            <given-names>C.</given-names>
            <surname>Stone</surname>
          </string-name>
          .
          <article-title>Classification and Regression Trees</article-title>
          .
          <source>Wadsworth &amp; Brooks</source>
          , Pacific Grove, CA,
          <year>1984</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>W. W.</given-names>
            <surname>Cohen</surname>
          </string-name>
          .
          <article-title>Fast effective rule induction</article-title>
          . In A. Prieditis and S. Russell, editors,
          <source>Proceedings of the 12th International Conference on Machine Learning (ML-95)</source>
          , pages
          <fpage>115</fpage>
          -
          <lpage>123</lpage>
          , Lake Tahoe, CA,
          <year>1995</year>
          . Morgan Kaufmann.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>D.</given-names>
            <surname>Dua</surname>
          </string-name>
          and
          <string-name>
            <surname>C. Graff.</surname>
          </string-name>
          <article-title>UCI machine learning repository</article-title>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>J.</given-names>
            <surname>Fürnkranz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Gamberger</surname>
          </string-name>
          , and
          <string-name>
            <given-names>N.</given-names>
            <surname>Lavracˇ</surname>
          </string-name>
          .
          <source>Foundations of Rule Learning</source>
          . Springer-Verlag,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>R. C.</given-names>
            <surname>Holte</surname>
          </string-name>
          .
          <article-title>Very simple classification rules perform well on most commonly used datasets</article-title>
          .
          <source>Machine Learning</source>
          ,
          <volume>11</volume>
          :
          <fpage>63</fpage>
          -
          <lpage>91</lpage>
          ,
          <year>1993</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>K.</given-names>
            <surname>Hornik</surname>
          </string-name>
          .
          <article-title>Approximation capabilities of multilayer feedforward networks</article-title>
          .
          <source>Neural Networks</source>
          ,
          <volume>4</volume>
          (
          <issue>2</issue>
          ):
          <fpage>251</fpage>
          -
          <lpage>257</lpage>
          ,
          <year>1991</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>H.</given-names>
            <surname>Lakkaraju</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. H.</given-names>
            <surname>Bach</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Leskovec</surname>
          </string-name>
          .
          <article-title>Interpretable decision sets: A joint framework for description and prediction</article-title>
          . In B. Krishnapuram,
          <string-name>
            <given-names>M.</given-names>
            <surname>Shah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. J.</given-names>
            <surname>Smola</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C. C.</given-names>
            <surname>Aggarwal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Shen</surname>
          </string-name>
          , and R. Rastogi, editors,
          <source>Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD-16)</source>
          , pages
          <fpage>1675</fpage>
          -
          <lpage>1684</lpage>
          , San Francisco, CA,
          <year>2016</year>
          . ACM.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>E. J.</given-names>
            <surname>McCluskey</surname>
          </string-name>
          .
          <article-title>Minimization of Boolean functions</article-title>
          .
          <source>The Bell System Technical Journal</source>
          ,
          <volume>35</volume>
          (
          <issue>6</issue>
          ):
          <fpage>1417</fpage>
          -
          <lpage>1444</lpage>
          ,
          <year>1956</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>H.</given-names>
            <surname>Mhaskar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Liao</surname>
          </string-name>
          , and
          <string-name>
            <given-names>T. A.</given-names>
            <surname>Poggio</surname>
          </string-name>
          .
          <article-title>When and why are deep networks better than shallow ones? In S. P. Singh and S</article-title>
          . Markovitch, editors,
          <source>Proceedings of the 31st AAAI Conference on Artificial Intelligence</source>
          , pages
          <fpage>2343</fpage>
          -
          <lpage>2349</lpage>
          , San Francisco, California, USA,
          <year>2017</year>
          . AAAI Press.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>R. S.</given-names>
            <surname>Michalski</surname>
          </string-name>
          .
          <article-title>On the quasi-minimal solution of the covering problem</article-title>
          .
          <source>In Proceedings of the 5th International Symposium on Information Processing (FCIP-69)</source>
          , volume
          <volume>A3</volume>
          (
          <article-title>Switching Circuits)</article-title>
          , pages
          <fpage>125</fpage>
          -
          <lpage>128</lpage>
          , Bled, Yugoslavia,
          <year>1969</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>E. Z.</given-names>
            <surname>Ramos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Nakakuni</surname>
          </string-name>
          , and
          <string-name>
            <given-names>E.</given-names>
            <surname>Yfantis</surname>
          </string-name>
          .
          <article-title>Quantitative measures to evaluate neural network weight initialization strategies</article-title>
          .
          <source>In Proceedings of the IEEE 7th Annual Computing and Communication Workshop and Conference (CCWC)</source>
          , pages
          <fpage>1</fpage>
          -
          <lpage>7</lpage>
          ,
          <string-name>
            <given-names>Las</given-names>
            <surname>Vegas</surname>
          </string-name>
          ,
          <string-name>
            <surname>NV</surname>
          </string-name>
          , USA,
          <year>2017</year>
          . IEEE.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>A. D.</given-names>
            <surname>Shapiro</surname>
          </string-name>
          .
          <article-title>Structured Induction in Expert Systems</article-title>
          . Turing Institute Press. Addison-Wesley,
          <year>1987</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>T.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Rudin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Doshi-Velez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Klampfl</surname>
          </string-name>
          , and
          <string-name>
            <given-names>P.</given-names>
            <surname>MacNeille. A</surname>
          </string-name>
          <article-title>Bayesian framework for learning rule sets for interpretable classification</article-title>
          .
          <source>Journal of Machine Learning Research</source>
          ,
          <volume>18</volume>
          :70:
          <fpage>1</fpage>
          -
          <lpage>70</lpage>
          :
          <fpage>37</fpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>