<!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>Comparing Genetic Algortihms and Matrix Factorization for Learning Heuristics in Constraint Solving</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Seda Polat Erdeniz</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Andrei Popescu</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Graz University</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>Knowledge-based recommender systems assist users in the active configuration of complex products. These systems rely on solving Constraint Satisfaction Problems (CSP). In constraint solving, variable and value ordering heuristics help to increase efficiency. Applying such heuristics can increase the performance of CSP solvers. On the other hand, if we apply specific heuristics to similar CSPs, CSP solver performance could be further improved. In previous work, we have proposed novel approaches to learn such heuristics, however, an evaluation in terms of consistency and prediction quality is still lacking. In this paper, we evaluate an compare two proposed approaches to learn heuristics, one relying on Genetic Algorithms and Clustering, and one on Matrix Factorization, on the same problem. Our results provide valuable insights for future research in this domain.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        The configuration of complex items, such as financial services,
software artefacts, and cars, is a cumbersome task (from a user point of
view) in the scope of the mass customization business model [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. In
this context, a user often requires (or would benefit) from intelligent
support during the configuration task, to overcome sub-optimal
scenarios induced by time constraints, information overload, and
product suitability issues. A widespread intelligent support system in this
scenarios is provided by recommender systems.
      </p>
      <p>
        A recommender system can be defined as any system that guides
a user in a personalized way to interesting or useful objects in a large
space of possible options or that produces such objects as output
[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Knowledge-based recommender systems, in specific
constraintbased recommender systems [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], have been widely adopted in
scenarios involving the recommendation of complex tasks. These
systems generate recommendations by solving the corresponding
Constraint Satisfaction Problem (CSP). Since the search space can
quickly become challenging, heuristics [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] are of fundamental
importance in constraint-based recommender systems.
      </p>
      <p>Erdeniz et al. [10] have proposed a constraint-based
recommendation approach that provides accurate heuristics based on historical
configuration transactions. By integrating matrix factorization into
the computation of search heuristics for the feature model
configuration task, Erdeniz et al. [10] guarantee the consistency of determined
recommendations.</p>
      <p>
        The prediction of the preference of a user for a specific item was
based on elementary matrix multiplication operation, so-called
matrix factorization [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], as often are model-based collaborative filtering
      </p>
      <p>Austria,
email:
anapproaches. Matrix factorization is based on the idea of
parameterizing two low-dimensional matrices U and V in such a way that U
x V = R’. The matrix R is an approximation of the original user x
item preference matrix R. Consequently, missing values in R can be
estimated by the multiplication of the two low-dimensional matrices
U and V.</p>
      <p>
        There exist a couple of research contributions focusing on the
integration of feature model configurators with recommender systems.
Rodas-Silva et al. [11] introduce a content-based and collaborative
filtering approach to the recommendation of components that should
be selected for the implementation of a given configuration. Pereira
et al. [
        <xref ref-type="bibr" rid="ref1">8, 1</xref>
        ] integrate different collaborative filtering approaches into
feature model configuration processes to proactively support users
in the navigation through complex feature spaces. In this context,
the authors also apply matrix factorization with the goal to
further improve the prediction quality of the recommender system.
Finally, Falkner et al. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] provide an overview on different scenarios
that can benefit from the integration of recommender systems with
knowledge-based configurators. In another work, Erdeniz and
Felfernig [9] use k-means clustering and a genetic algorithm (GA) in order
to compute search heuristics to tackle the graph colouring problem.
      </p>
      <p>Compared to the approach of Erdeniz et al. [10], all of the
mentioned approaches do not propose a solution focusing on the
integration of recommendations into the search heuristics of a configurator
and thus not being able to guarantee the consistency of determined
recommendations and runtime performance at the same time.</p>
      <p>In this paper, we provide an evaluation and comparison between
the approach developed by Erdeniz et al. [10] and the work of
Erdeniz and Felfernig [9], in terms of prediction quality and achieved
consistency in the recommendation task. The contributions of our
paper are three-fold: (1) we apply the approach of Erdeniz and
Felfernig [10], and Erdeniz et al. [9] on a configuration dataset, allowing
a direct comparison in terms of consistency and prediction
performance; (2) we evaluate and compare the two approaches in terms of
achieved consistency and prediction quality; (3) we point out future
research directions to be pursued towards machine learning-based
search heuristics.</p>
      <p>In the remainder of the paper, we first describe the approach
followed by Erdeniz et al. [10] in Section 2, and explain the work of
Erdeniz and Felfernig [9] in Section 3. In Section 4 we cover in more
details our evaluation approach, the results of which we discuss in
Section 5. We conclude in Section 6.</p>
    </sec>
    <sec id="sec-2">
      <title>Matrix Factorization-based Heuristics</title>
      <p>Erdeniz et al. [10] have applied a constraint-based recommendation
approach to compute value ordering heuristics, in order to support the
recommendation of missing configuration parameters in the scope of
an online personalized bike shop. The proposed approach exploits
historical transactions in order to recommend missing configuration
parameters to the currently active user configuring his/her product,
by means of the matrix factorization. Matrix factorization is first
applied on the sparse matrix composed of historical transactions
(complete or incomplete) concluded by past users. This step produces a
dense matrix R0 providing estimated configuration parameter values
for the whole matrix. For users that completed their configuration,
the recommendation of parameters is straightforward, as it is
sufficient to provide the complete historical transaction (HT1), whereas
for users who have provided an incomplete configuration, the
corresponding dense transaction is used to obtain search heuristics for the
constraint-based recommender.</p>
      <p>Concerning the transaction currently active (AT), in the scope of
which the user needs support, value ordering for missing variable
assignments are obtained based on the k-nearest neighbours (Euclidean
Distance) applied with respect to the dense matrix. The obtained
search heuristic is then used by a CSP solver to provide an accurate
recommendation.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Genetic Algorithms with Clustering Heuristics</title>
      <p>Another approach to computing optimal variable and value ordering
heuristics for Constraint Satisfaction Problems is to employ genetic
algorithms.</p>
      <p>Genetic algorithms are a subclass of Evolutionary Algorithms
inspired by the idea of natural selection. The algorithm starts with a
random population of random individuals (the population can be
seen as the solution to the problem, for example a set of variable
assignments), which is iteratively improved generation by
generation. An improvement of the population in the current generation is
achieved by selecting the most appropriate individuals through a
fitness function (in our case based on the satisfaction of problem’s
constraints), and by modifying the genome of such individuals in order
to compose the next generation.</p>
      <p>Erdeniz and Felfernig [9] have proposed Cluster and Learn, an
approach that first uses k-means clustering and then applies a genetic
algorithm to learn heuristics for solving the graph colouring problem.
In the first phase, Cluster and Learn performs a clustering operation
based on the euclidean distance between two user requirements. A
genetic algorithm is then applied to the obtained clusters in order to
minimize the runtime of CSP solving, returning the optimal variable
and value ordering heuristics.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Methodology</title>
      <p>In this paper, we compare the performance of both the work of
Erdeniz et al. [10] and Erdeniz and Felfernig [9] in terms of overall
achieved consistency and prediction quality. While Erdeniz et al. [9]
have evaluated their approach in terms of runtime, in the scenario of
active configuration, consistency and prediction quality are of
fundamental relevance to assure a high user satisfaction, and thus ensure
a positive interaction with the configurator. In this work, we provide
a more detailed evaluation, that compares these two approaches with
respect to the consistency and prediction quality of recommended
configurations.</p>
      <p>To allow direct comparison between the two studies, we
implement both approaches and evaluate their performance on the basis
of a CSP comprised of 10 variables having a domain of size 5, and
two constraints, one domain constraint and one user constraint. The
following is the definition of the used CSP.</p>
      <p>V a r i a b l e s : V0 , V1 , V2 , V3 , V4 , V5 , V6 , V7 , V8 , v9 , V10
Domains : dom(V1) = dom(V2) . . . . = dom( v10 ) = f1, 2 , 3 , 4 , 5g
Domain C o n s t r a i n t s :
c1 : x &gt; 2 −&gt; y &gt;= 4
User Requirements :
c2 : x = req . val where req . val i s a value imposed by the user</p>
      <p>Pre-computed solutions of the above introduced CSP (without the
user requirement) were used to build the training and test set. The test
set in particular, consists of solutions to the problem, with an
increasing number of missing variable assignments (up to #variables-1). We
use matrix factorization (MP), matrix factorization with CSP solving
(MF with CSP solving), and genetic algorithms with CSP solving
(GA with CSP solving) to recommend values for the missing
assignments. The genetic algorithm was hyper-tuned with the following
parameters:</p>
      <p>Generations
Cross-over Rate
Mutation Rate
10
0.9
0.05 / sizeOfGenes</p>
      <p>The number of clusters for the Cluster and Learn approach [9] was
set to 4 for simplicity reasons. For each test case, the average
performance metrics (consistency and prediction quality) are calculated
and discussed in Section 5.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Evaluation Results</title>
      <p>According to the results depicted in the following figures, the
approach of Erdeniz et al. [10] and Erdeniz and Felfernig [9] perform
similarly. It can also be observed that two approaches perform better
in terms of consistency, and only slightly better in terms of prediction
quality with respect to basic matrix factorization.</p>
      <p>1
0:9
] 0:8
e
tg 0:7
a
n
c 0:6
e
r
e
p 0:5
[
y
c
e 0:4
n
itn 0:3
s
s
o
C 0:2</p>
      <sec id="sec-5-1">
        <title>MF-only MF with CSP solving GA with CSP solving</title>
        <p>0:1
00
1 2 3 4 5 6 7 8
Number of missing assignments in test CSPs
9
9</p>
      </sec>
      <sec id="sec-5-2">
        <title>Number of missing assignments in test CSPs</title>
        <sec id="sec-5-2-1">
          <title>Consistency</title>
          <p>In terms of consistency, we can observe stable and high
consistency of recommended variable assignments. In specific, as shown
in the first figure, by using the heuristics obtained with Cluster and
Learn and with the approach integrating Matrix Factorization with
Constraint solving, we are able to recommend variable assignments
which are always consistent. The improvement is significant with
respect to an approach that would simply rely on matrix factorization,
especially when the number of missing variable assignments in the
test set increases. In other words, consistency is not guaranteed when
using matrix factorization only.</p>
        </sec>
        <sec id="sec-5-2-2">
          <title>Prediction Quality</title>
          <p>With respect to prediction quality, all approaches perform
similarly, showing an abrupt decay in quality as the missing variable
assignments increase.
6</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Conclusion and Future Work</title>
      <p>We have evaluated and compared two previously proposed value
ordering heuristics, [9] and [10], that improve both the runtime and
quality of achieved recommendations in the context of active
product configuration. We observed compelling growth in terms of the
consistency of the two approaches, when compared with an approach
relying on matrix factorization alone.</p>
      <p>We foresee potential in machine learning-based heuristics for
constraint solving to be applied in the scope of active configuration,
multi-configuration, and reconfiguration. Consequently, we call for
further research in this direction, for example, using a different set of
learning models, for instance artificial neural networks.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Juliana</given-names>
            <surname>Alves</surname>
          </string-name>
          <string-name>
            <surname>Pereira</surname>
          </string-name>
          , Pawel Matuszyk,
          <string-name>
            <given-names>Sebastian</given-names>
            <surname>Krieter</surname>
          </string-name>
          , Myra Spiliopoulou, and Gunter Saake, '
          <article-title>Personalized recommender systems for product-line configuration processes'</article-title>
          ,
          <source>Computer Languages, Systems Structures</source>
          ,
          <volume>54</volume>
          , (02
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Robin</given-names>
            <surname>Burke</surname>
          </string-name>
          , '
          <article-title>Hybrid recommender systems: Survey and experiments', User Modeling</article-title>
          and
          <string-name>
            <surname>User-Adapted</surname>
            <given-names>Interaction</given-names>
          </string-name>
          ,
          <volume>12</volume>
          , (11
          <year>2002</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>Andreas</given-names>
            <surname>Falkner</surname>
          </string-name>
          , Alexander Felfernig, and
          <string-name>
            <surname>Albert</surname>
            <given-names>Haag,</given-names>
          </string-name>
          '
          <article-title>Recommendation technologies for configurable products'</article-title>
          ,
          <source>AI Magazine</source>
          ,
          <volume>32</volume>
          (
          <issue>3</issue>
          ),
          <fpage>99</fpage>
          -
          <lpage>108</lpage>
          , (Oct.
          <year>2011</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>Alexander</given-names>
            <surname>Felfernig</surname>
          </string-name>
          and Robin Burke, '
          <article-title>Constraint-based recommender systems: technologies and research issues</article-title>
          .', p.
          <fpage>3</fpage>
          ,
          <issue>(</issue>
          08
          <year>2008</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Alexander</given-names>
            <surname>Felfernig</surname>
          </string-name>
          , Lothar Hotz, Claire ONeill, and Juha Tiihonen,
          <string-name>
            <surname>Knowledge-Based</surname>
            <given-names>Configuration</given-names>
          </string-name>
          : From Research to Business Cases,
          <volume>05</volume>
          <fpage>2014</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Chris</surname>
            <given-names>Groe¨</given-names>
          </string-name>
          r, Bruce Golden, and Edward Wasil, '
          <article-title>A library of local search heuristics for the vehicle routing problem'</article-title>
          ,
          <source>Mathematical Programming Computation</source>
          ,
          <volume>2</volume>
          ,
          <fpage>79</fpage>
          -
          <lpage>101</lpage>
          , (06
          <year>2010</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Yehuda</given-names>
            <surname>Koren</surname>
          </string-name>
          , Robert Bell, and Chris Volinsky, '
          <article-title>Matrix factorization techniques for recommender systems'</article-title>
          , Computer,
          <volume>42</volume>
          (
          <issue>8</issue>
          ),
          <fpage>30</fpage>
          -
          <lpage>37</lpage>
          , (
          <year>2009</year>
          ).
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>