<!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>Data Masking for Recommender Systems: Prediction Performance and Rating Hiding</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Martha Larson Radboud University and TU Delft Netherlands</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2019</year>
      </pub-date>
      <abstract>
        <p>Data science challenges allow companies, and other data holders, to collaborate with the wider research community. In the area of recommender systems, the potential of such challenges to move forward the state of the art is limited due to concerns about releasing user interaction data. This paper investigates the potential of privacy-preserving data publishing for supporting recommender system challenges. We propose a data masking algorithm, Shufle-NNN, with two steps: Neighborhood selection and value swapping. Neighborhood selection preserves valuable item similarity information. The data shufling technique hides (i.e., changes) ratings of users for individual items. Our experimental results demonstrate that the relative performance of algorithms, which is the key property that a data science challenge must measure, is comparable between the original data and the data masked with Shufle-NNN.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>1htp://www.mymedialite.net/examples/datasets.html
Recommender systems, privacy-preserving data publishing, data masking</p>
    </sec>
    <sec id="sec-2">
      <title>INTRODUCTION TO DATA MASKING WITH SHUFFLE-NNN</title>
      <p>
        We propose a masking approach, Shufling Non-Nearest-Neighbors (Shufle-NNN), which changes (i.e.,
hides) a large proportion of the values of the ratings in the original user-item matrix, R, to create
a masked data set, R′. Our work is a step towards masked data that can be publicly released for
data science challenges. For this reason, we adopt a relative-rank success criterion: given a set of
recommender algorithms to be compared, the relative ranking of the algorithms trained and tested on
R and on R′ must be maintained. Shufle-NNN is motivated by the observation that privacy-preserving
techniques [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] (privacy-preserving data publishing [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], privacy-preserving data mining [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]) have not
yet been systematically applied to the data released for recommender system challenges.
      </p>
      <p>
        Shufle-NNN generates a masked data by changing a large portion of values of the ratings in
a user’s profile. We chose a data shufling technique because of its previous success in masking
numerical data in other domains [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
      </p>
      <p>Shufle-NNN works as follows. Our overall strategy is to shufle ratings in a way that maintains
key item-item similarities in the data set. First, we determine the item neighborhoods, i.e., the most
similar item for every item, and join them, giving us an overall set of critical items. Then, we shufle
ratings for items not in this set (non-critical items, i.e., the rest of the items). Shufle-NNN has two
parameters. We fix the neighbhorhood size k = 40, since this value has been shown to be efective in
practice1. Given k, we set θ (a minimum threshold on item-similarity that must be met for inclusion in
a neighborhood) by running some test rankings. Our exploratory experiments showed that a range of
θ values can be efective, and that θ can be determined using a subset of the algorithms to be ranked
(meaning that it can be set in-house before releasing data).</p>
      <p>
        Recall that the goal of this paper is not to demonstrate the absolute performance of the algorithms,
but rather to evaluate if the relative performance of algorithms is the same on the original and on
the masked data. For this purpose, we need a selection of classic recommender algorithms, ranging
from baselines that are known not to yield state-of-the-art performance, to current algorithms.
We carry out experiments on both ranking prediction, and on classic rating prediction tasks. The
algorithms for ranking prediction are: Most Popular, KNN is user/item-based K-Nearest Neighbor.
(BPRFM) [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] and BPRMF. We followed the hyperparameters tested in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].The algorithms for rating
prediction are: ItemKNN [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], UserKNN, SlopeOne [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ],Co-clustering [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. matrix factorization (MF),
Biased Matrix Factorization (BMF) [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] and (SVD++) [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. We also test baseline algorithms: Average-Item
and Average-User which use the average rating value of a user or item for predictions.
      </p>
    </sec>
    <sec id="sec-3">
      <title>EXPERIMENTAL FRAMEWORK</title>
      <p>
        The experiments are implemented using WrapRec [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. We test on two publicly available data sets (cf.
Table 1). We choose MovieLens 100k 2, since it is well understood, and Goodbooks-10K 3, since it is
larger and sparser.
      </p>
    </sec>
    <sec id="sec-4">
      <title>COMPARATIVE ALGORITHM RANKING</title>
    </sec>
    <sec id="sec-5">
      <title>Ranking Prediction Performance</title>
      <p>We train and test the algorithms for ranking prediction both on the original data and and the masked
data. Results are given in Table 2. It can be seen that the comparative algorithm ranking is maintained.
In other words, for all cases, the best algorithm on the masked data is also the best algorithm on
the original data and the worst algorithm on the masked data is also the worst algorithm on the
original data. These results demonstrate the success of Shufle-NNN. In Table 2, we report results for
specific values of θ . However, relative ranking is actually maintained for a range of values of θ (not
shown here). In addition to Recall@5 and Recall@10, we found also that Precision@5/ Precision@10
maintains the same relative ranking of algorithms.</p>
      <p>Interestingly, when we tested our algorithms on empirical data (which we generate by replacing
individual values with values drawn randomly from the global distribution of ratings in the original
data), the comparative ranking was also preserved. This means that Shufle-NNN is suficient, but</p>
      <p>3 4
Movielens data</p>
      <p>5
1
2 3 4
GoodBook data</p>
      <p>5
not actually necessary in the case of Top-N recommendation. Our conclusion from these results is
that (at least for these data sets) the values of the ratings are not important if the goal is a relative
ranking among algorithms. What is important is that our masked data sets maintain information on
which items were rated.</p>
    </sec>
    <sec id="sec-6">
      <title>Rating Prediction Performance</title>
      <p>To dig deeper, we carry out rating prediction experiments. Results are reported in Table 3. Here, we
observe that the relative ranking is well maintained between the original data and masked data
(although not perfectly). Our focus here is on relative performance, but it is interesting to note that the
absolute RMSE on the masked data remains within 5% of its value on the original data. In contrast to
the ranking-prediction results, we found that the empirical distribution does less well in maintaining
the ranking than Shufle-NNN.</p>
    </sec>
    <sec id="sec-7">
      <title>RATING HIDING</title>
      <p>
        Next, we discuss the ability of Shufle-NNN to hide ratings. A rating is considered hidden if its value
changes between the masked data and the original data [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. First, we look at the global proportion
of ratings hidden in the masked data. We find that at our operating point, Shufle-NNN achieved a
rating hiding percentage of 0.7 for MovieLens data and 0.68 for the GoodBook data.
      </p>
      <p>Then, we look at the impact of masking at the user level. Figure 1 illustrates the relationship
between average user ratings before and after masking. Figure 2 shows, for diferent level of hidden
ratings, for how many users that level was achieved. The average user rating of the masked data is
80
70
10
0
17500
a
t
a15000
d
k
o12500
o
B
od10000
o
G
f 7500
o
s
r 5000
e
s
U2500
Figure 2: Average user ratings original
vs. masked data (masked using θ = 0.4 for
MovieLens; θ = 0.15 for GoodBook).
impacted, but still correlated with the original values. The protection varies per user, but is relatively
high. For the GoodBook data, there is a large number of users have a hiding level equal to zero. On
average these users have rated less than 30 books.</p>
    </sec>
    <sec id="sec-8">
      <title>CONCLUSIONS AND OUTLOOK</title>
      <p>Our overall conclusion is that data masking has great potential for data science challenges. It is possible
to develop a masking approach, such that masked data can be used to train and test algorithms
with litle impact on the relative performance of algorithms. Shufle-NNN provides valuable evidence
about what information can be removed from the user-item matrix and what information should be
maintained. When the critical items list is larger than the list of items that is shufled, it is easier to
reconstruct the original values. Future work will investigate the dificulty of reconstructing the original
values from the shufled data, which is an issue important to consider in cases where the critical items
are in the majority. We note that even modest levels of rating hiding can support deniability.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Rakesh</given-names>
            <surname>Agrawal</surname>
          </string-name>
          and
          <string-name>
            <given-names>Ramakrishnan</given-names>
            <surname>Srikant</surname>
          </string-name>
          .
          <year>2000</year>
          .
          <article-title>Privacy-preserving Data Mining</article-title>
          .
          <source>SIGMOD Rec</source>
          .
          <volume>29</volume>
          ,
          <issue>2</issue>
          (
          <year>2000</year>
          ),
          <fpage>439</fpage>
          -
          <lpage>450</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Elisa</given-names>
            <surname>Bertino</surname>
          </string-name>
          , Igor Nai Fovino, and Loredana Parasiliti Provenza.
          <year>2005</year>
          .
          <article-title>A framework for evaluating privacy preserving data mining algorithms</article-title>
          .
          <source>Data Mining and Knowledge Discovery</source>
          <volume>11</volume>
          ,
          <issue>2</issue>
          (
          <year>2005</year>
          ),
          <fpage>121</fpage>
          -
          <lpage>154</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Benjamin</surname>
            <given-names>CM Fung</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ke</surname>
            <given-names>Wang</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>Ada</given-names>
            <surname>Wai-Chee Fu</surname>
          </string-name>
          , and
          <string-name>
            <given-names>S Yu</given-names>
            <surname>Philip</surname>
          </string-name>
          .
          <year>2010</year>
          .
          <article-title>Introduction to privacy-preserving data publishing: Concepts and techniques</article-title>
          . Chapman and Hall/CRC.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>T.</given-names>
            <surname>George</surname>
          </string-name>
          and
          <string-name>
            <given-names>S.</given-names>
            <surname>Merugu</surname>
          </string-name>
          .
          <year>2005</year>
          .
          <article-title>A scalable collaborative filtering framework based on co-clustering</article-title>
          .
          <source>In Proceedings of the Fifth IEEE Conference on Data Mining (ICDM'05)</source>
          .
          <fpage>625</fpage>
          -
          <lpage>628</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Weiyu</given-names>
            <surname>Guo</surname>
          </string-name>
          , Shu Wu,
          <string-name>
            <given-names>Liang</given-names>
            <surname>Wang</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Tieniu</given-names>
            <surname>Tan</surname>
          </string-name>
          .
          <year>2016</year>
          .
          <article-title>Personalized Ranking with Pairwise Factorization Machines</article-title>
          .
          <source>Neurocomput</source>
          <volume>214</volume>
          (
          <year>2016</year>
          ),
          <fpage>191</fpage>
          -
          <lpage>200</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Yehuda</given-names>
            <surname>Koren</surname>
          </string-name>
          .
          <year>2008</year>
          .
          <article-title>Factorization Meets the Neighborhood: A Multifaceted Collaborative Filtering Model</article-title>
          .
          <source>In Proceedings of the 14th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD '08)</source>
          . ACM.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>Yehuda</given-names>
            <surname>Koren</surname>
          </string-name>
          , Robert Bell, and
          <string-name>
            <given-names>Chris</given-names>
            <surname>Volinsky</surname>
          </string-name>
          .
          <year>2009</year>
          .
          <article-title>Matrix Factorization Techniques for Recommender Systems</article-title>
          . IEEE Computer Society Press 42,
          <issue>8</issue>
          (
          <year>2009</year>
          ),
          <fpage>30</fpage>
          -
          <lpage>37</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>Daniel</given-names>
            <surname>Lemire</surname>
          </string-name>
          and
          <string-name>
            <given-names>Anna</given-names>
            <surname>Maclachlan</surname>
          </string-name>
          .
          <year>2005</year>
          .
          <article-title>Slope one predictors for online rating-based collaborative filtering</article-title>
          .
          <source>In Proceedings of the 2005 SIAM International Conference on Data Mining. SIAM</source>
          ,
          <fpage>471</fpage>
          -
          <lpage>475</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>Babak</given-names>
            <surname>Loni</surname>
          </string-name>
          , Roberto Pagano, Martha Larson, and
          <string-name>
            <given-names>Alan</given-names>
            <surname>Hanjalic</surname>
          </string-name>
          .
          <year>2019</year>
          .
          <article-title>Top-N Recommendation with Multi-Channel Positive Feedback Using Factorization Machines</article-title>
          .
          <source>ACM Trans. Inf. Syst</source>
          .
          <volume>37</volume>
          ,
          <issue>2</issue>
          (
          <year>2019</year>
          ),
          <volume>15</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>15</lpage>
          :
          <fpage>23</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>Babak</given-names>
            <surname>Loni</surname>
          </string-name>
          and
          <string-name>
            <given-names>Alan</given-names>
            <surname>Said</surname>
          </string-name>
          .
          <year>2014</year>
          .
          <article-title>WrapRec: An Easy Extension of Recommender System Libraries</article-title>
          .
          <source>In Proceedings of the 8th ACM Conference on Recommender Systems (RecSys '14)</source>
          . ACM,
          <volume>377</volume>
          -
          <fpage>378</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>Krishnamurty</given-names>
            <surname>Muralidhar</surname>
          </string-name>
          and
          <string-name>
            <given-names>Rathindra</given-names>
            <surname>Sarathy</surname>
          </string-name>
          .
          <year>2006</year>
          .
          <article-title>Data shufling: A new masking approach for numerical data</article-title>
          .
          <source>Management Science</source>
          <volume>52</volume>
          ,
          <issue>5</issue>
          (
          <year>2006</year>
          ),
          <fpage>658</fpage>
          -
          <lpage>670</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Badrul</surname>
            <given-names>Sarwar</given-names>
          </string-name>
          , George Karypis, Joseph Konstan,
          <string-name>
            <given-names>and John</given-names>
            <surname>Riedl</surname>
          </string-name>
          .
          <year>2001</year>
          .
          <article-title>Item-based Collaborative Filtering Recommendation Algorithms</article-title>
          .
          <source>In Proceedings of the 10th International Conference on World Wide Web (WWW '01)</source>
          . ACM.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>Vicenç</given-names>
            <surname>Torra</surname>
          </string-name>
          .
          <year>2017</year>
          . Masking Methods. Springer International Publishing, Cham,
          <fpage>191</fpage>
          -
          <lpage>238</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>