<!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>Ask Me Any Rating: A Content-based Recommender System based on Recurrent Neural Networks</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Cataldo Musto</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Claudio Greco</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alessandro Suglia</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Giovanni Semeraro</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Science, University of Bari Aldo Moro</institution>
          ,
          <addr-line>Via E. Orabona 4, 70125 Bari</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this work we propose Ask Me Any Rating (AMAR), a novel content-based recommender system based on deep neural networks which is able to produce top-N recommendations leveraging user and item embeddings which are learnt from textual information describing the items. A comprehensive experimental evaluation conducted on stateof-the-art datasets showed a significant improvement over all the baselines taken into account.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>Internet users have access to a huge amount of information, which grows
exponentially every day. They are forced to dive among a lot of different
information sources from which they have to choose the most appealing contents.
Recommender systems can help users to solve the information overload problem
because they are able to filter contents according to user preferences.
Contentbased recommender systems need to effectively represent user profiles and items
to recommend items similar to those a given user has liked in the past.</p>
      <p>
        In recent years, Deep Learning techniques have proved to be particularly
effective in different machine learning fields such as computer vision, language
modeling and speech recognition, reaching state-of-the-art performance. Deep
Learning models learn a hierarchy of levels of representations from data by using
multiple processing layers [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
      </p>
      <p>In this work, we present a novel deep neural network model called Ask Me Any
Rating (AMAR) which exploits Recurrent Neural Networks (RNNs) to jointly
learn a representation for user preferences and items to be recommended and
generates a ranked list of items which may be of interest for a given user. Up to
our knowledge, this is the first try to use Deep Learning models for content-based
recommender systems in a top-N recommendation task.</p>
      <p>The paper is organized as follows: section 2 introduces basic terminology
and depicts the AMAR architecture. Next, in section 3 we report details about
the experimental evaluation conducted to establish the quality of the
recommendations generated by this model over different baselines on two well-known
datasets. In the last section 4, we underline advantages and disadvantages of the
architecture we proposed and we sketch future research directions.</p>
    </sec>
    <sec id="sec-2">
      <title>Ask Me Any Rating</title>
      <p>
        Our model took inspiration from the model based on Long Short-Term Memory
(LSTM) network [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] proposed as a baseline for a Question Answering scenario.
Indeed, our insight is that the analogy between questions and users profiles with
answers and items to be recommended can be exploited to adapt the previously
proposed solution in a recommendation scenario as well.
      </p>
      <p>The proposed architecture implements a content-based recommender system
able to predict a score s(u; i) which defines the probability of a like given by a
user u to a specific item i. In a nutshell, our approach is based on two different
modules which jointly learn a user embedding and an item embedding that are
used to feed a classifier which generates the preference estimation.</p>
      <p>Our architecture is based on a lookup table to represent users and items.
Given a set of elements A, each of them can be represented as a d-dimensional
vector contained in a W 2 RjAj d embedding matrix. Let ej 2 RjAj, which is all
zeros except for the j-th index in which there is the value 1. For each a 2 A we
assign an index j, 1 j jAj. The embedding v(ej ) associated to the element
a is given by ej⊺W .</p>
      <p>
        Figure 1a shows the AMAR architecture. Each user u is given to a user lookup
table (User LT ) to obtain a learnt du-dimensional user embedding v(u). Each
word w1; w2; : : : ; wm of the item description id associated to the item i is given
in input to a word lookup table (Word LT ) which generates a dw-dimensional
embedding v(wk) for each word wk, 1 k m. These word representations
v(wk) are sequentially passed through an LSTM network [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] which generates
a did -dimensional latent representation h(wk) for each of them. The item
embedding v(id) is obtained by a mean pooling layer which averages the latent
representations h(wk).
      </p>
      <p>The resulting representations v(u) and v(id) are concatenated through a
concatenation layer obtaining a (du + did )-dimensional feature vector given in input
to a logistic regression layer to predict the score s(u; i). The list of
recommendations for a given user u is generated sorting items in decreasing order by the
score s(u; i) for each item i.</p>
      <p>AMAR can be extended by adding an additional module to process
supplementary features associated to each item. The AMAR extended architecture
proposed in this work associates a list of genres g1; g2; : : : ; gn to each item, as
shown in figure 1b. Each of them is passed in input to a genre lookup table
(Genre LT ) which generates a dg-dimensional embedding v(gk) for each genre
gk, 1 k n. A mean pooling layer averages the resulting representations v(gk)
giving a genres embedding v(ig) which is concatenated to the user and item
embeddings to evaluate the recommendation score.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Experimental evaluation</title>
      <p>In the experimental evaluation the performance of AMAR architectures is
compared on top-n recommendation leveraging binary user preferences against two
User u
User LT
v(u)
v(w1)
LSTM
h(w1)</p>
      <p>v(wm)
LSTM</p>
      <p>h(wm)
Item description id
w1 w2 b b b wm</p>
      <p>Word LT</p>
      <p>v(w2)
LSTM</p>
      <p>h(w2)
Mean pooling layer</p>
      <p>v(id)
Concatenation layer
Logistic regression layer
(a) AMAR base</p>
      <p>User u</p>
      <p>Item description id</p>
      <p>Item genres igj
g1 g2 b b b gn</p>
      <p>Genre LT
v(g1) v(g2) b b b v(gn)</p>
      <p>Mean pooling layer
v(u)
v(id)</p>
      <p>v(ig)
Concatenation layer</p>
      <p>
        Logistic regression layer
(b) AMAR extended
state-of-the-art datasets as Movielens 1M (ML1M) 1 using 5-fold cross
validation and DBbook 2 using holdout evaluation, as in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. ML1M user preferences
are binarized setting to 1 all ratings equal or greater than 4. Textual content and
genres are obtained from DBpedia, IMDb and Goodreads. The produced
recommendation list is evaluated according to F1-measure considering only items in
the test set rated by each user using RiVal framework 3. The results are validated
using Wilcoxon signed-rank test.
      </p>
      <p>Table 1 shows AMAR performance against state-of-the-art algorithms (the
best configurations are marked in bold) as User-to-User (U2U) and Item-to-Item
(I2I) collaborative filtering, Bayesian Personalized Ranking Matrix Factorization
(BPRMF), Weighted Regularized Matrix Factorization (WRMF), Sparse Linear
Methods with BPR-Opt (BPRSlim) 4 and Vector Space Model with TF-IDF
weighting scheme (TF-IDF) 5. Additional algorithms are proposed using
pretrained word embeddings like Word2vec Google News 6 and GloVe Wikipedia
2014 + Gigaword 5 7 (# dimensions = 300). The recommendation score is
generated using the cosine similarity between the item represented by averaging
word embeddings of its description and the user profile represented by averaging
positively rated items representations.</p>
      <p>AMAR architectures are trained using RMSprop ( = 0:9, learning rate =
0:001) for 25 epochs by optimizing the binary cross-entropy criterion. Embedding
sizes are fixed to 10. Batch sizes are 1536 for ML1M and 512 for DBbook. U2U
1 http://grouplens.org/datasets/movielens/1m/
2 http://challenges.2014.eswc-conferences.org/index.php/RecSys
3 http://rival.recommenders.net/
4 Implementations provided by http://www.mymedialite.net/
5 Implementation provided by http://scikit-learn.org/
6 https://code.google.com/archive/p/word2vec/
7 http://nlp.stanford.edu/projects/glove/
and I2I neighborhood sizes are 30, 50, 80. BPRMF and WRMF number of
factors are 10, 30, 50. The configuration with the highest average F1-measure
among the chosen cut-off is reported (I2I-30, U2U-30, BPRMF-30, WRMF-50
on both datasets).
0.536 0.536 0.519 0.508 0.511
0.64 0.639 0.636 0.631 0.632
0.595 0.595 0.595 0.595 0.595</p>
      <p>Table 1: Results of the experiments</p>
      <p>Using a p-value of 0:05, on the DBbook dataset all the differences are
statistically significant, instead on the ML1M dataset the differences between U2U
and GloVe, BPRSlim and GloVe, GloVe and Word2vec are not statistically
significant. All the others differences are statistically significant.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Conclusions and Future Work</title>
      <p>According to the presented results, AMAR architectures outperform all the other
recommenders on the ML1M dataset. On DBbook there is not an improvement
which is probably due to the very high sparsity of the dataset.</p>
      <p>This preliminary work can be extended in different ways, such as improving
training by applying early stopping and regularization techniques, by using
different weight initialization strategies and by designing a proper cost function for
top-n recommendation. An additional improvement could be obtained by doing
hyperparameter optimization.
5</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments</title>
      <p>This work is supported by the IBM Faculty Award "Deep Learning to boost
Cognitive Question Answering". The Titan X GPU used for this research was
donated by the NVIDIA Corporation.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>A.</given-names>
            <surname>Graves</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mohamed</surname>
          </string-name>
          , and
          <string-name>
            <given-names>G. E.</given-names>
            <surname>Hinton</surname>
          </string-name>
          .
          <article-title>Speech recognition with deep recurrent neural networks</article-title>
          .
          <source>CoRR</source>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Y.</given-names>
            <surname>LeCun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Bengio</surname>
          </string-name>
          , and
          <string-name>
            <given-names>G. E.</given-names>
            <surname>Hinton</surname>
          </string-name>
          .
          <article-title>Deep learning</article-title>
          .
          <source>Nature</source>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>C.</given-names>
            <surname>Musto</surname>
          </string-name>
          , G. Semeraro, M. de Gemmis, and
          <string-name>
            <given-names>P.</given-names>
            <surname>Lops</surname>
          </string-name>
          .
          <article-title>Learning word embeddings from wikipedia for content-based recommender systems</article-title>
          .
          <source>In ECIR proceedings</source>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>J.</given-names>
            <surname>Weston</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Bordes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Chopra</surname>
          </string-name>
          , and
          <string-name>
            <given-names>T.</given-names>
            <surname>Mikolov</surname>
          </string-name>
          .
          <article-title>Towards ai-complete question answering: A set of prerequisite toy tasks</article-title>
          .
          <source>CoRR</source>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>