<!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>Constructing decision quivers</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Egor Dudyrev</string-name>
          <email>egor.dudyrev@loria.fr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sergei O. Kuznetsov</string-name>
          <email>skuznetsov@hse.ru</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Amedeo Napoli</string-name>
          <email>amedeo.napoli@loria.fr</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>HSE University</institution>
          ,
          <addr-line>20 Myasnitskaya St, Moscow, 101000, Russian Federation</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Université de Lorraine</institution>
          ,
          <addr-line>CNRS, LORIA, F-54000 Nancy</addr-line>
          ,
          <country country="FR">France</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Rule Learning and Formal Concept Analysis (FCA) are two fields of science that study similar topic yet speak in a very diferent terms. This paper describes rule-based machine learning models with FCA-based terminology which results in decision quiver model. A decision quiver, discussed in the paper, is a supervised machine learning model that is based on intents, generators of intents, and predictions for each intent (or generator). We show that the finding of the optimal set of intents is a cornerstone task in constructing a decision quiver (and thus, any rule-based model). The paper finishes with the baseline algorithm to construct decision quivers. The algorithm produces machine learning models that are much smaller than the state-of-the-art ensembles of decision trees, yet that ofer the similar quality of predictions.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Rule Learning [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and Formal Concept Analysis (FCA) [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] are two fields of science that study
similar topic yet speak in a very diferent terms. Rule Learning searches for rules that could
accurately predict the attributes of unseen data. While FCA focuses on studying dependencies
in only the given data. This paper attempts to combine the language of FCA and the goal of
Rule Learning in one model called Decision Quivers. Thus, we combine the mathematicity of
      </p>
      <sec id="sec-1-1">
        <title>FCA with the applicability of Rule learning.</title>
        <p>
          Rule learning is a mature and well-recognised research area mainly concerned with finding
the Boolean rules (i.e. ”rules”) from the given attributes that are able to predict the value of
“target” attribute. One specific configuration of a rule-based model – an ensemble of decision
trees – is considered among the state-of-the-art machine learning models on tabular data.
However, the last big increment in the prediction quality of the ensembles was introduced in the
year 2016 [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] and is based on ensembling decision trees that are known since (at least) the year
1986 [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ]. The later studies on Rule learning focus on interpreting and explaining big rule-based
models, ensembles of decision trees especially [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ] [
          <xref ref-type="bibr" rid="ref6">6</xref>
          ] [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. We attribute the lack of novel
can FCA do for Artificial Intelligence?”, FCA4AI 2023, co-located with IJCAI 2023, August 20 2023, Macao, S.A.R. China,
state-of-the-art models in the area to the lack of a good formalism to describe rule-based models.
Such formalism could also propose new ways to interpret and explain big rule-based models.
        </p>
        <p>Formal Concept Analysis is a formalism aimed at analysing data based on discrete (often
binary) descriptions. The FCA focus on binary descriptions promises its good applicability to
become a formalism for rule-based models.</p>
        <p>
          The natural connections between FCA and rule-based machine learning were covered in
many works: [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ] [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ] [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ] [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ] [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ] [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ]. This paper does not attempt to highlight any new
connection between FCA and rule-based models. Instead, we discuss a model for rule-based
machine learning called Decision Quiver. The model is defined using the very basic notions
of FCA – closed descriptions and generators. The notion of generators allows decision quiver
describe any other rule-based model. While the notion of closed descriptions greatly shrinks
the search space while constructing the model.
        </p>
        <p>The paper is structured as follows. Section 2 recalls the basics of Formal Concept Analysis and
Supervised Machine Learning, and defines Decision Quivers. Section 3 introduces the pipeline
and the simple algorithm to construct decision quivers. Section 4 evaluates the algorithm on
some of LUCS-KDD datasets. Section 5 concludes the paper.</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>2. Background</title>
      <p>This subsection introduces definitions we use throughout the paper. Firstly, we provide the
basic terms of Formal Concept Analysis to describe the rule models. Secondly, we describe the
space of premises that contains the machine learning models discussed in the paper. Thirdly,
we describe the main topics of a binary classification in the language in the FCA notation.</p>
      <sec id="sec-2-1">
        <title>2.1. Formal Concept Analysis</title>
        <p>In Formal Concept Analysis the data is represented as a formal context  = (,  ,  ) , which is
a triple of a set of objects  , a set of attributes  and the relation  ⊆  ×  among them.</p>
        <p>A running example of a formal context is provided in Table 1 (together with “Target  ”
column and “test objects” rows that will be introduced in the following sections). To lighten the
notation, we will represent a subset of attributes from the running example as a concatenation
of these attributes: e.g. we denote the subset of attributes {, ℎ} as ℎ .</p>
        <p>We call any subset of attributes  ⊆  a description. And we denote the set of all descriptions
(i.e. the powerset of  ) as 2 :</p>
        <p>2 = { ∣  ⊆  }</p>
        <p>Now we can define two “prime” operations:  ′ would describe all attributes  shared by
objects  ⊆  , and  ′ would describe all objects  covered by attributes  ⊆  . Prime operations:</p>
        <p>Two prime operations, combined together, result in “double prime” operator (⋅)″ that has
the properties of a closure operator. For example, if  is a subset of attributes  then  ″ is the
closure of  on set  .</p>
        <p>′ = { ∈  ∣ ∀ ∈  ∶ (, ) ∈  },  ⊆ 
 ′ = { ∈  ∣ ∀ ∈  ∶ (, ) ∈  },  ⊆ 
(1)
(2)
Attributes 
w
x
x
x
c
x
x
x
c
;
ch
dog,bream
dog,corn,
bream, egg
h
h
x
x
x
w
cw
chw</p>
        <p>hw
bream
lives on land
lives in water
can move
has limbs
is mammal
Running example of a formal context with additional target column  and test objects
(3)
(4)
Objects</p>
        <p>Test
objects</p>
        <p>Attr.
names
bream
dog
corn
egg
reed
frog
dog,corn</p>
        <p>l
lc
dog
l
x
x
x
x
lh
lch
tions of the empty set of objects are omitted.</p>
        <sec id="sec-2-1-1">
          <title>In FCA terminology, a closed description  ⊆  ,</title>
          <p>″ =  is also referred to as an intent. The
set of all intent is denoted by  and, together with set inclusion order, forms a lattice :</p>
          <p>Line diagram on Figure 1 shows the descriptions of a context from the running from Table 1
grouped by the equivalence classes. Descriptions equivalent to  (that describe no objects) are
omitted as they would make the diagram harder to read.</p>
          <p>In each equivalence class [],  ⊆</p>
          <p>, there is a single maximal description  ″ =  (also
called closed description or intent) and possibly many minimal descriptions, that are called
 = { ⊆  ∣</p>
          <p>″ = }
[] = { ⊆  ∣ 
″ =  ″}.</p>
          <p>Two diferent subsets of attributes ,  ⊆  ,  ≠ 
can describe the same set of objects
 ′ =  ′ and, consequently, have the same closure  ″ =  ″
. Such descriptions are called
equivalent. Equivalence class [] of description  ⊆ 
is denoted as [] :
“keys”. Let  ⊆ 
equivalent to  :
be a closed description  ″ =  , then  ()</p>
          <p>is the set of minimal descriptions,
 () = { ∈ [] ∣ ∄ ∈ []
s.t.  ⊂ },  ⊆ 
(5)</p>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Supervised Machine Learning</title>
        <p>This subsection covers the basic ideas of Supervised Machine Learning and introduces our
notation for these terms.</p>
        <p>Let us define a formal context (,  ,  ) , a space of target values  , and a target label  () ∈ 
for each object  ∈  . The task of supervised machine learning is to find a function  that maps
any description  ⊆  to a target value  ( ) ∈  so that, for any object  ∈  , the prediction
 ( ′) would be close to the target label  () . The “closeness” of target labels  and predictions 
on objects  is evaluated by non-negative loss function ℒ ( ,  ∣ ) ∈ ℝ +, where ℒ ( ,  ∣ ) = 0
means that  is optimal. Here we provide two loss functions that can be used to evaluate the
prediction function  : negative F1-score ℒ 1 for binary classification task (i.e. when  = {0, 1} ),
and Mean Squared Error (MSE) ℒ for regression task (i.e. when  = ℝ ).</p>
        <p>ℒ 1 ( ,  ∣ ) = 1 − 2
ℒ
( ,  ∣ ) =
∑ ( () −  (</p>
        <p>′))2
1
|| ∈</p>
        <p>∑∈  () (
∑∈ (1 −  () (
′)
′))</p>
        <p>It should be noted that, since the loss function ℒ is evaluated on objects  , the “best” prediction
function  for these objects would be the function  ∶  ′ ↦  () that predicts the label  ()
of every objects  ∈  based on its description  ′. Such function  would give zero loss on
objects  but it will not extrapolate well on new descriptions, not shared by objects  . This
issue is often mitigated by introducing the “test” formal context ( test,  ,  test) with target labels
 test ∶  test →  . Then, prediction function  is constructed by minimizing the loss on “train”
context (,  ,  ) , but the final evaluation of the loss of function  is done on the test context
( test,  ,  test). In the running example from Table 1, objects  test are denoted as Test objects.</p>
        <p>
          In what follows we use the “average” operation over the target space (Equation 6). We assume,
therefore, that the space  is “averageble”, i.e. for every list of tuple of target values  , its average
avg( ) is also a target value from  . This assumption does not make the following reasoning
too specific, as many Supervised Machine Learning problems can be reformulated to satisfy it.
For example, binary classification task suggests only two target values  bin = {0, 1}. However,
it can be reformulated as a regression task with  = [
          <xref ref-type="bibr" rid="ref1">0, 1</xref>
          ] where the values of  represent the
probability of an object to belong to the positive class 1 ∈  bin.
        </p>
        <p>avg( ) =
1 ∑  ,  ∈ 
| | ∈
1 ∪  2 ∪ … ∪  ∞
(6)</p>
      </sec>
      <sec id="sec-2-3">
        <title>2.3. Rule set</title>
        <p>Given a description  ⊆  , a rule-based machine learning model makes prediction  ( ) based
on a set of rules of the form: “if  is described by  ⊆  then predict ( ) ∈  ”. That is, every
rule is characterised by a pair ( , ( )) where  ⊆  is a subset of attributes called premise,
and ( ) ∈  is a prediction of premise  . A rule set is a pair ( , ) where  ⊆ 2  is a set of
premises and  is a function that maps each premise to a target value ( ∶  ↦  ).</p>
        <p>Now, let us consider two special cases when predicting with rule set ( , ) . Let  ⊆  be a
description and let  1,  2 ∈  be two comparable premises covered by  :  1 ⊂  2 ⊆  . Then
we follow the intuition that a more precise premise  2 should give a more precise prediction
( 2), therefore we only use premise  2 to make a prediction about the target of  . Now,
let  1,  2 ∈  be incomparable premises, covered by  :  1 ⊈  2,  2 ⊈  1,  1 ⊆  ,  2 ⊆  .
Then we use both premises  1,  2 to make a prediction for  by averaging their predictions
 ( ) = avg((( 1), ( 2))).</p>
        <p>With these ideas in mind we define prediction function  ( ,) ∶ 2 →  for rule set ( , )
as follows:</p>
        <p>( ,) ( ) = avg((( ) ∣  ∈ 
where   , max = { ∈  ∣  ⊆  , ∀
 , max)),  ⊆ 
2 ∈  ∶ ( ⊂ 
2) ⟹ ( 2 ⊈  )}</p>
        <sec id="sec-2-3-1">
          <title>Prediction ( ) for a premise  ∈</title>
          <p>objects described by  :</p>
          <p>is often computed as the average of target labels of
Example 1. Let us provide an example of a rule set ( , ) constructed on the example context 1.
For the sake of readability, we represent the rule set as a set of implications { ⟹ ( ) ∣  ∈  } :
{∅</p>
          <p>⟹ 25%,  ⟹ 50%,  ⟹ 100%, ℎ ⟹ 100%,  ⟹ 0%}.</p>
          <p>Let us make a prediction for object reed with description  =  . There are three premises
from  that can be applied for  : {∅, ,  } . Out of these three, there are two maximal descriptions:
  , max = {,  } . The former predicts that reed is mammal with () = 50% probability, and the
latter predicts that reed is mammal with ( ) = 0% probability. Therefore, the final prediction is
 ( ,) ( ) = 25% probability of reed being a mammal.</p>
          <p>Analogously, let us predict whether object frog with description  =  ℎ is a mammal. All
premises of  can be applied for the given  . However, only three of them are maximal:   , max =
{, ℎ,  } . The corresponding premise predictions are () = 100%, (ℎ) = 100%, ( ) = 0% .
Therefore, the final prediction is  ( ,) ( ) = 67% probability of frog being a mammal.</p>
          <p>This process of making predictions is schematically depicted in Figure 2.</p>
          <p>( ) =
avg(( () ∣  ∈</p>
          <p>′))
X = lw PX;max fl; wg % (50%; 0%) avg.</p>
          <p>25% = (P;%)(X)</p>
          <p>X =lwchPX;maxflc; lh; wg % (100%; 100%; 0%) avg. 67%= (P;%)(X)</p>
        </sec>
      </sec>
      <sec id="sec-2-4">
        <title>2.4. Implicitly equivalent premises</title>
        <p>Let us rewrite the predictions from Example 1 in more details, considering what objects from 
we use to make predictions.</p>
        <p>For object reed with description  =  the set  contains two maximal premises describing
 :   , max = {,  } . Premise  describes training objects  ′ = {,  } ⊂  with corresponding
target labels  () = 100%,  ( ) = 0% whose average label is 50%. Premise  describes
training object  ′ = { } ⊂  with target label  ( ) = 0% . So the rule set ( , ) from
Example 1 predicts that reed is mammal with 25% probability.</p>
        <p>For object frog with description  =  ℎ the set  contains three maximal premises
describing  :   , max = {, ℎ,  } . Premise  describes training object  ′ = {} ⊂  with target label
 () = 100% ; premise ℎ describes the same training object training object  ′ =  ′ = {} ⊂ 
with target label  () = 100% ; and premise  describes training object  ′ = { } ⊂  with
target label  ( ) = 0% . So the rule set ( , ) from Example 1 predicts that frog is mammal
with 67% probability.</p>
        <p>This process of making predictions is schematically depicted in Figure 3.</p>
        <p>X = lw PX;max fl; wg
X = lwchPX;maxflc; lh; wg wl0h0 fdogg
l0 fdog; corng
w0 fbreamg
lc0 fdogg
(100%; 0%) avg. 50% avg.</p>
        <p>(0%)
(100%) avg.
(100%) avg.</p>
        <p>avg.</p>
        <p>0% avg.
100%
avg.</p>
        <p>avg.
100% avg.
0%</p>
        <p>Notice that two premises {, ℎ} ⊂  used for target prediction of object frog ( =  ℎ )
have the same extent:  ′ = ℎ ′ = {} . Therefore, the information that subset of objects {}
has average target of 100% is used two times inside the rule set. In fact , if we count only one
premise with extent {} dog when making the final prediction  ( ,) we will get the value
50%, which is closer to the true value 0% than 67%.</p>
        <p>There are many possible ways to overcome this issue. For example, one can construct rule
set ( , ) such that the set  would only contain premises that are either comparable or
contradicting (i.e. ∀ 1,  2 ∈  ∶  1 ⊆  2 or  2 ⊆  1 or ∃ ∈  1, s.t. “not  ” ∈  2). This is
the approach, used by decision trees. One can also construct rule set ( , ) such that the all
premises in  are closed (i.e.  ⊆  ⊆ 2  ). Then, there will be no two premises that describe
the same set of objects. This is the approach commonly used in FCA literature.</p>
        <p>In this paper we propose another approach by enriching the rule set ( , ) with the set of
closures ℬ of premises  : ℬ = { ″ ∣  ∈  } .</p>
      </sec>
      <sec id="sec-2-5">
        <title>2.5. Decision Quiver</title>
        <p>The previous sections introduced equivalent descriptions and covered their importance for
making predictions with rule sets. This section presents Decision Quiver: a rule set model
enriched with the information about equivalent descriptions.</p>
        <p>
          The model of Decision Quiver was introduced in [
          <xref ref-type="bibr" rid="ref15">15</xref>
          ] as a directed multigraph (i.e. a quiver)
with intents as nodes, generators as edges, and predictions for each nodes. This paper inherits
the name of Decision Quiver but presents its definition in a more set-theoretic way, as we have
found the latter to be more concise.
        </p>
        <p>Definition 1. Let (,  ,  ) be a (training) context and  be its set of closed descriptions, a
decision quiver is a triplet  = ( , ℬ, ) of premises  ⊆ 2  , their intents ℬ ⊂  ∶ { ″ ∣  ∈
 } = ℬ , and predictions  ∶ ℬ →  for every intent.</p>
        <p>Given a description  ⊆  , prediction  ( ,ℬ,) ( ) is computed as the average of predictions
 of maximal intents ℬ , max ⊆ ℬ, whose generators   ⊆  are covered by  .
 ( ,ℬ,)</p>
        <p>( ) = avg((() ∣  ∈ ℬ
where ℬ , max = { ∈ ℬ ∣ ∃ ∈</p>
        <p>, max)),
 , max s.t.  =</p>
        <p>″
″, ∄ 2 ∈   , max s.t.  ⊂  2 }
  , max = { ∈  ∣  ⊆  , ∀
2 ∈ 
s.t. ( ⊆  2) ⟹ ( 2 ⊈  )}
Example 2. Let us provide an example of a decision quiver ( , ℬ, ) having the same premises
as a rule set ( , ) from Example 1. For the sake of readability, we represent the quiver ( , ℬ, )
as two sets of implications: { ⟹  ∣  ∈  ,  ∈ ℬ,  ″ = } and { ⟹ () ∣  ∈ ℬ} :
(11)
(12)
(13)
 → ℬ ∶{∅ ⟹ ∅,  ⟹ ,  ⟹ ℎ, ℎ ⟹ ℎ,  ⟹ ℎ },
ℬ →  ∶{∅ ⟹ 25%,  ⟹ 50%, ℎ ⟹ 100%, ℎ ⟹ 0%} = .</p>
        <p>Contrary to the rule set ( , ) from Example 1, the quiver ( , ℬ, ) “knows” that premises 
and ℎ are equivalent as they correspond to the same closure ℎ . Therefore, when making prediction
for a frog with description  =  ℎ , the quiver uses only two subsets of objects: {} =  ℎ ′
with average target equal to 100%, and { } = ℎ ′ with average target equal to 0%. This
prediction process is schematically represented on Figure 4.</p>
        <p>X = lwch</p>
        <p>lc00 lch
PX;maxflc; lh; wg lh00
w00 chw
%
%
100%
0%
avg
avg
50% =
(P;B;%)(X)</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Quivers construction pipeline</title>
      <p>The previous section introduced target-based and arrow-based decision quivers. Now, let us
discuss, how these quivers can be constructed.</p>
      <sec id="sec-3-1">
        <title>3.1. Algorithm to find the optimal quiver</title>
        <p>Decision quiver  = ( , ℬ, ) consists of three elements. Note that prediction function
 ∶ ℬ →  depends on intents ℬ and not the premises  . And considering the training formal
context, every premise  ∈  describes the same objects as itc closure  ∈ ℬ,  ″ =  . So, when
making predictions on the training context, the choice of a specific subset of premises  is
irrelevant. Therefore, the task of finding the optimal quiver ( , ℬ, ) on the training formal
context reduces to finding the optimal rule set (ℬ, ) whose premises are limited to intents.</p>
        <p>After finding (ℬ, ) one should select the optimal set of premises  to construct a quiver
( , ℬ, ) that would be generalisable to the test data. However, since premises with the same
intent describe the same objects, they are empirically indistinguishable. Thus, the choice of
the premises  relies on a priori intentions: for example, one may want to make premises as
precise as possible (then  = ℬ ), or as general as possible (then  = ⋃∈ℬ  () ).</p>
        <p>More formally, let ℒ be a loss function, (,  ,  ) be a training context, and  opt =
( opt, ℬopt,  opt) be the quiver, that achieves the minimal loss ℒ on the context (,  ,  ) :
ℒ ( ,   opt ∣ ) → 0 . Then, the task of finding such optimal quiver  opt can be separated into
three independent steps:
0. Fix the search space of intents  search ⊆  of context (,  ,  ) ,
1. Find the optimal rule set (ℬopt,  opt) of intents ℬopt ⊆  search and their predictions
 opt ∶ ℬopt →  ,
2. Construct the set of premises  opt of intents ℬopt.</p>
        <p>The initial step of the pipeline is fixing the search space  search. For the sake of simplicity,
in this paper we assign the search space  search to be the space of all intents  . The ways to
minimise the search space is one of the future research directions.</p>
        <p>The first and the main step of the algorithm is finding the optimal rule set (ℬopt,  opt) where
the choice of premises is limited to intents from the search space: ℬopt ⊆  search. Remind that
the prediction function  opt is often evaluated the same way for every intent. For example,
similar to Equation 9, prediction  opt() for an intent  ∈  is the average target label of objects
 ′ described by intent  . Thus, the search for optimal rule set (ℬopt,  opt) is a search for optimal
subset of intents ℬopt ⊆  search:
ℬopt = arg</p>
        <p>min
ℬ⊆ search
ℒ ( ,  (ℬ,) ∣ )
(14)</p>
        <p>The last step of the pipeline is to construct the set of premises  opt of quiver  opt to generalise
the latter to the possible test descriptions. Here we propose two options for the set of generators
 opt: the set of closed descriptions  closed = ℬopt, and the set of keys  keys = ⋃∈ℬ opt keys() .</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Algorithm to find the optimal subset of intents</title>
        <p>This paper uses the very basic greedy discrete optimisation algorithm to find the optimal subset
of intents (i.e. solving the task from Equation 14).</p>
        <p>When finding the optimal subset of intents ℬopt ⊆  search we operate the fixed set training
context (,  ,  ) , the fixed targets  ∶  →  , and the fixed way to compute the prediction ()
for an intent  ∈  search (see eq. 9). Therefore, for the sake of brevity, we define the training
loss ℒtrain(ℬ) of a subset of intents ℬ as follows:
ℒtrain(ℬ) = ℒ ( ,  (ℬ,) ∣ ).
(15)
The algorithm (to find</p>
        <p>ℬopt given  search):
0. Start with ℬ containing the top intent ℬ = {∅″},
1. Find the intent  opt ∈  search that gives the minimal loss, when added to the current set
of intents ℬ:
 opt = arg min∈ search ℒtrain(ℬ ∪ {})
2. Add intent  opt to the set ℬ,
3. Repeat the steps 1, 2 while the set ℬ contains less than ℬmax ∈ ℕ elements and the loss
decrease is higher than  ∈ ℝ +:
repeat until |ℬ| ≤ ℬmax, and ℒtrain(ℬ)−ℒtrain(ℬ∪{ opt})&gt; .</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Experiments</title>
      <p>
        The main limitation for the current algorithm is that considers the intents search space  search
as the set of all intents  . Therefore, we can only apply the algorithm on the datasets where
we can compute the intents  . For the experiments we chose nine dataset from LUCS-KDD
repository [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] that are discretized versions of real-world datasets from UCI repository. The set
of intents  for every dataset was computed by LCM algorithm implemented in Scikit-mine
repository.
      </p>
      <p>The selected datasets give the task of multi-class classification. For example, Iris dataset asks
to classify a flower into one of the three types (Setosa, Versicolour, and Virginica) based on
its petal and sepal lengths and widths. We used F1 score with weighted averaging as a loss
function so that it can be applied to all datasets with no adjustments.</p>
      <p>
        For each dataset we fit a gradient boosting model provided by Sci-Kit learn [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] and XGBooost
[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] to get the state-of-the-art prediction quality scores. Then we construct two decision quivers
for each dataset: one makes predictions via intents (denoted by ”Quiver, intents”), and the other
makes predictions via keys of these intents (denoted as ”Quiver, keys”).
      </p>
      <p>Table 2 compares the test prediction quality of models on the selected datasets. One can
see that the Gradient boosting models gave the best scores. However, in some cases, quiver
models showed comparable decision quality: e.g. Iris, Congres, Breast, Flare datasets. Also,
on this data, we see almost no diferences between quivers that make predict with intents
and quivers that prediction with keys. The only dataset where the diference occurs is Zoo
dataset. Currently, we cannot explain this fact as we assumed the diference would be much
more apparent. So we should proceed with more profound studies comparing intents and keys
as means for predictions.</p>
      <p>Now, let us compare the sizes of the models, provided in Table 3. One can see that quiver
models contain no more that 6 intents for all the datasets. While each gradient boosting consists
of one hundred of decision trees. Note that each decision tree in each gradient boosting consist
of many Boolean rules. In that regard, decision quiver model are more eficient, as they are able
to achieve the similar prediction quality score with much lesser number of rules.</p>
      <p>Dataset
zoo
iris
ecoli
congres
breast
ticTacToe
flare
led7
nursery</p>
      <p>However, the better algorithm to construct decision quivers should be developed. As the
current algorithm construct the quivers for too long. For example, on Nursery dataset, it took
XGBoost 0.8 seconds to construct 100 decision trees, and it took decision quivers algorithm 19
minutes to select 5 intents.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion</title>
      <p>In this paper we have presented decision quivers as a formalism for describing rule-based
machine learning models. We showed that description quiver can describe any rule-based
model. And, by incorporating closed descriptions, it can possibly suggest eficient algorithms to
create more optimal machine learning models.</p>
      <p>We have also presented a general pipeline to construct decision quivers. We showed that the
most important part of the pipeline is finding the optimal set of intents. Thus, many FCA-based
algorithm can be used to construct decision quivers. The current baseline algorithm for quivers
construction is very slow, compared to the state-of-the-art models. However, it can produce
much smaller models with the similar prediction quality.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <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>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Lavrač</surname>
          </string-name>
          ,
          <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>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Lavrač</surname>
          </string-name>
          ,
          <article-title>Rule learning in a nutshell, Foundations of Rule Learning (</article-title>
          <year>2012</year>
          )
          <fpage>19</fpage>
          -
          <lpage>55</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>B.</given-names>
            <surname>Ganter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Wille</surname>
          </string-name>
          ,
          <source>Formal Concept Analysis</source>
          , Springer, Berlin,
          <year>1999</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>T.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Guestrin</surname>
          </string-name>
          ,
          <article-title>Xgboost: A scalable tree boosting system</article-title>
          ,
          <source>in: Proceedings of the 22nd acm sigkdd international conference on knowledge discovery and data mining</source>
          ,
          <year>2016</year>
          , pp.
          <fpage>785</fpage>
          -
          <lpage>794</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>J. R.</given-names>
            <surname>Quinlan</surname>
          </string-name>
          ,
          <article-title>Induction of decision trees</article-title>
          ,
          <source>Machine learning 1</source>
          (
          <year>1986</year>
          )
          <fpage>81</fpage>
          -
          <lpage>106</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>C.</given-names>
            <surname>Rudin</surname>
          </string-name>
          ,
          <article-title>Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead</article-title>
          ,
          <source>Nature Machine Intelligence</source>
          <volume>1</volume>
          (
          <year>2019</year>
          )
          <fpage>206</fpage>
          -
          <lpage>215</lpage>
          . doi:
          <volume>10</volume>
          .1038/s42256- 019- 0048- x.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>C.</given-names>
            <surname>Bénard</surname>
          </string-name>
          , G. Biau,
          <string-name>
            <given-names>S. Da</given-names>
            <surname>Veiga</surname>
          </string-name>
          , E. Scornet,
          <article-title>Interpretable random forests via rule extraction</article-title>
          ,
          <source>in: International Conference on Artificial Intelligence and Statistics</source>
          , PMLR,
          <year>2021</year>
          , pp.
          <fpage>937</fpage>
          -
          <lpage>945</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <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>
          ,
          <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>
          ,
          <source>in: Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining</source>
          ,
          <year>2016</year>
          , pp.
          <fpage>1675</fpage>
          -
          <lpage>1684</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>E.</given-names>
            <surname>Dudyrev</surname>
          </string-name>
          , I. Semenkov,
          <string-name>
            <given-names>S. O.</given-names>
            <surname>Kuznetsov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Gusev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Sharp</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O. S.</given-names>
            <surname>Pianykh</surname>
          </string-name>
          ,
          <article-title>Human knowledge models: Learning applied knowledge from the data</article-title>
          ,
          <source>Plos one 17</source>
          (
          <year>2022</year>
          )
          <article-title>e0275814</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>S. O.</given-names>
            <surname>Kuznetsov</surname>
          </string-name>
          ,
          <article-title>Machine learning and formal concept analysis</article-title>
          ,
          <source>in: Concept Lattices: Second International Conference on Formal Concept Analysis, ICFCA</source>
          <year>2004</year>
          , Sydney, Australia,
          <source>February 23-26</source>
          ,
          <year>2004</year>
          . Proceedings 2, Springer,
          <year>2004</year>
          , pp.
          <fpage>287</fpage>
          -
          <lpage>312</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>B.</given-names>
            <surname>Ganter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. O.</given-names>
            <surname>Kuznetsov</surname>
          </string-name>
          ,
          <article-title>Hypotheses and version spaces</article-title>
          ,
          <source>in: ICCS</source>
          , volume
          <volume>2746</volume>
          , Springer,
          <year>2003</year>
          , pp.
          <fpage>83</fpage>
          -
          <lpage>95</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>E.</given-names>
            <surname>Dudyrev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. O.</given-names>
            <surname>Kuznetsov</surname>
          </string-name>
          ,
          <article-title>Decision concept lattice vs. decision trees and random forests</article-title>
          ,
          <source>in: Formal Concept Analysis: 16th International Conference, ICFCA</source>
          <year>2021</year>
          , Strasbourg, France, June 29-July 2,
          <year>2021</year>
          , Proceedings 16, Springer,
          <year>2021</year>
          , pp.
          <fpage>252</fpage>
          -
          <lpage>260</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>R.</given-names>
            <surname>Belohlavek</surname>
          </string-name>
          , B. De Baets,
          <string-name>
            <given-names>J.</given-names>
            <surname>Outrata</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Vychodil</surname>
          </string-name>
          ,
          <article-title>Inducing decision trees via concept lattices</article-title>
          ,
          <source>International journal of general systems 38</source>
          (
          <year>2009</year>
          )
          <fpage>455</fpage>
          -
          <lpage>467</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>T.</given-names>
            <surname>Hanika</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Hirth</surname>
          </string-name>
          ,
          <article-title>Conceptual views on tree ensemble classifiers</article-title>
          ,
          <source>International Journal of Approximate Reasoning</source>
          (
          <year>2023</year>
          )
          <fpage>108930</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Š. Horvát</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          <string-name>
            <surname>Antoni</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          <string-name>
            <surname>Krídlo</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Szabari</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Krajči</surname>
          </string-name>
          ,
          <article-title>Generalized decision directed acyclic graphs and their connection with formal concept analysis (</article-title>
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>E.</given-names>
            <surname>Dudyrev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. O.</given-names>
            <surname>Kuznetsov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Napoli</surname>
          </string-name>
          ,
          <article-title>Description quivers for compact representation of concept lattices and ensembles of decision trees</article-title>
          , in: D.
          <string-name>
            <surname>Dürrschnabel</surname>
          </string-name>
          , D. López Rodríguez (Eds.),
          <source>Formal Concept Analysis</source>
          , Springer Nature Switzerland, Cham,
          <year>2023</year>
          , pp.
          <fpage>127</fpage>
          -
          <lpage>142</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>F.</given-names>
            <surname>Coenen</surname>
          </string-name>
          ,
          <article-title>The lucs-kdd discretised/normalised arm and carm data library</article-title>
          ,
          <year>2003</year>
          . URL: http://www.csc.liv.ac.uk/~frans/KDD/Software/LUCS_KDD_DN/.
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>F.</given-names>
            <surname>Pedregosa</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Varoquaux</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Gramfort</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Michel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Thirion</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Grisel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Blondel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Prettenhofer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Weiss</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Dubourg</surname>
          </string-name>
          , et al.,
          <article-title>Scikit-learn: Machine learning in python</article-title>
          ,
          <source>the Journal of machine Learning research 12</source>
          (
          <year>2011</year>
          )
          <fpage>2825</fpage>
          -
          <lpage>2830</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>