<!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>
      <journal-title-group>
        <journal-title>F. Betello);</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Finite Rank-Biased Overlap (FRBO): A New Measure for Stability in Sequential Recommender Systems (Extended Abstract)⋆</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Filippo Betello</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Federico Siciliano</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Pushkar Mishra</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fabrizio Silvestri</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>AI at Meta</institution>
          ,
          <addr-line>London</addr-line>
          ,
          <country country="UK">UK</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Sapienza University of Rome</institution>
          ,
          <addr-line>Rome</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0003</lpage>
      <abstract>
        <p>Sequential Recommender Systems (SRSs) are widely used to model user behavior over time but they often face a critical challenge: they can fail when faced with perturbations in their training data. While the conventional Rank-Biased Overlap (RBO) measure is widely used, it does not properly address this issue, especially when dealing with finite rankings. To fill this gap, we introduce the Finite Rank-Biased Overlap (FRBO) measure. We study the impact of removing elements at the beginning, in the middle, and at the end of the sequence: the latter removal has a negative impact on performance of up to 60% in NDCG. Surprisingly, removing elements from the beginning or middle of sequences has minimal impact on performance. These results shed light on the crucial role of element positioning within the training data and highlight the urgent need for improved robustness in SRSs. We make available our code implementation1 for FRBO and invite further exploration and adoption by the research community.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Recommender Systems</kwd>
        <kwd>Evaluation of Recommender Systems</kwd>
        <kwd>Model Stability</kwd>
        <kwd>Input Data Perturbation</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Recommender systems are now ubiquitous, crucial for helping users navigate the vast online
information [
        <xref ref-type="bibr" rid="ref2 ref3 ref4">2, 3, 4</xref>
        ]. Despite their success, the robustness of SRSs against training data
perturbations remains an open research question [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ]. In real-world scenarios, users may employ
different services for similar purposes, leading to fragmented data between competitors. Providers
must train robust recommender systems with this incomplete data. Previous assessments [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] use
Rank-Biased Overlap (RBO) [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], designed for infinite lists and fail to converge to 1 when applied
to finite-length lists. Therefore, we propose the Finite Rank-Biased Overlap (FRBO)[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] measure
to address this limitation. We empirically analyze the efects of removing items from user
interaction sequences on SRS performance. Our results indicate that removing the most recent
items in user interaction sequences leads to a significant decrease in recommendation accuracy.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Methodology</title>
      <sec id="sec-2-1">
        <title>2.1. Setting</title>
        <p>In Sequential Recommendation, each user  is represented by a sequence of items  =
(1, 2, ...,  , ..., − 1,  ) with which they have interacted, where  is the sequence length.
We investigate this type of removal: Beginning:  = (+1, . . . , − 1), Middle:  =
(1, . . . , ⌊ − 1−  , ⌊ − 1+ ⌋..., − 1), End:  = (1, . . . , − 1−  ), with  ≤ 10.</p>
        <p>2 ⌋ 2</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Metrics</title>
        <p>
          To evaluate model performance, we use traditional metrics: Precision, Recall, MRR and NDCG.
For stability assessment, we employ the Rank List Sensitivity (RLS) [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ], which compares two
ranking lists  and , derived from the model trained under standard and perturbed conditions,
respectively. The RLS measure is defined as: RLS = 1 | |
∑︀ sim( ,  ), where  and
be either Jaccard Similarity (JAC) [
          <xref ref-type="bibr" rid="ref9">9</xref>
          ] or Rank-Biased Overlap (RBO) [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ].
 represent the -th ranking inside  and  respectively. The similarity measure sim can
| ∪  |
JAC(X, Y) = | ∩  |
        </p>
        <p>RBO(X, Y) = (1 − ) ∑︁ − 1 |[1 : ] ∩  [1 : ]|
(1)</p>
        <p>In recommendation systems, metrics are often computed using finite-length rankings,
NDCG, MRR) adapt well to this format, but RLS does not when using RBO due to a key
limitation: it does not converge to one for identical finite-length lists. To address this, we
introduce Finite Rank-Biased Overlap FRBO@k, designed to ensure a convergence value of</p>
        <sec id="sec-2-2-1">
          <title>1 for identical lists and 0 for completely dissimilar lists.</title>
          <p>= (1, ..., ), such that ,  ∈ , and  ∈ N+
Theorem 1. Given a set of items  = {1, ...,  }, two rankings  = (1, ..., ) and
| | =1
+∞
=1
,</p>
          <p>,</p>
          <p>Finding the minimum and maximum values of RBO is crucial for normalizing it when
summing up to the top k items of the ranking. We also need to show that these values are
not necessarily limited to 0 and 1.
(1, ..., ), such that ,  ∈ , and  ∈ N+, the following holds:
Lemma 1. Given a set of items  = {1, ...,  }, two rankings  = (1, ..., ) and  =
,
⎧⎨0,
︂(</p>
          <p>⎩(1 − ) 2 ⌊ 21−⌋− 
−  ℓ
︂)
if  ≤ ⌊
otherwise

2 ⌋
(2)
(3)

where RBO(X, Y)@k = (1 − ) ∑︁ − 1 |[1 : ] ∩  [1 : ]|

=1
⌊︁  ⌋︁ 
and ℓ =  2 Φ( , 1, ⌊ 2 ⌋ + 1) −  Φ( , 1,  + 1)
Lemma 2. Given a set of items  = {1, ...,  }, two rankings  = (1, ..., ) and  =
(1, ..., ), such that ,  ∈  and  ∈ N+, the following holds: max, RBO@k = 1 − .</p>
        </sec>
      </sec>
      <sec id="sec-2-3">
        <title>2.3. Experimental setup</title>
        <p>We use four diferent datasets: MovieLens (1M and 100K versions) [ 10] and Foursquare (New
York City and Tokyo) [11]; we use two diferent architectures to validate the results: SASRec
[12] and GRU4Rec [13]. The RecBole library [14] was utilized for conducting all the experiments,
encompassing data preprocessing, model configuration, training, and testing. The code required
to replicate the experiments is accessible in our GitHub repository1.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Results</title>
      <sec id="sec-3-1">
        <title>3.1. Intrinsic Models Instability (RQ1)</title>
        <p>The inherent resilience of the models when using alternative starting seeds is shown in the
Baseline row in Tab. 1. In general, the deviation is almost always less than 1%. However, the
RLS shows a large deviation from the optimal value of 1, indicating quite diferent ranks. The
aggregated results suggest that the models achieve a suficient level of performance regardless
of the initialization seed, but the generated rankings are significantly afected by it.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Comparison of the position of removal (RQ2)</title>
        <p>The performance and stability of keeping all elements in the training set with a constant
initialization seed versus removing 10 elements are compared in Tab. 1. It can be seen that the
performance of the model is not significantly afected by removing items from the beginning
or the middle of the sequence. Rather, we can see how drastically the metrics are reduced by
removing items from the end of the sequence: for example, when SASRec is applied to the
MovieLens 1M dataset, the NDCG decreases by more than 50%. In addition, the Jaccard similarity
and FRBO values approach 0, indicating that very few items are shared by the generated ranks.</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Efect of the number of elements removed (RQ3)</title>
        <p>As seen before, removing items at the beginning or in the middle of the sequence has a negligible
impact on performance, as confirmed by Fig. 1. However, removing elements from the end of the
sequence leads to a noticeable decrease in the metrics, proportional to the number of elements
removed. This efect is consistent across both models tested and across all datasets evaluated.
In particular, Fig. 1 illustrate how the SASRec model performs on the MovieLens datasets under</p>
        <sec id="sec-3-3-1">
          <title>1https://github.com/siciliano-diag/finite_rank_biased_rbo.git</title>
          <p>these conditions, highlighting in particular a significant decrease in metrics. Interestingly, even
removals from the beginning and middle of sequences in ML-1M show a significant decrease
in RLS-FRBO, suggesting considerable variation in the rankings generated despite overall stable
performance levels, likely influenced by the large user base and interaction volume of the dataset.
10
8</p>
          <p>6 4
Elements removed</p>
          <p>2</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion</title>
      <p>
        This study investigates the efect of item position within a temporally ordered sequence in
SRSs. First, it introduces Finite RBO, a variant of RBO tailored for finite lists, which has been
shown to normalize within the [
        <xref ref-type="bibr" rid="ref1">0,1</xref>
        ] range. Second, it shows that removing items at the end of
the sequence significantly afects all performances, while removing items at the beginning or in
the middle of the sequence has a less pronounced efect. Future research aims to extend these
results to more models and datasets, and to explore strategies to improve model robustness
to missing training data possibly through diferent training approaches, robust loss functions
[15], or diferent optimization goals [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgments</title>
      <p>This work was partially supported by projects FAIR (PE0000013) and SERICS (PE00000014) under
the MUR National Recovery and Resilience Plan funded by the European Union -
NextGenerationEU. This work has also been supported by the NEREO (Neural Reasoning over Open Data)
project funded by the Italian Ministry of Education and Research (PRIN) Grant no. 2022AEFHA.
[10] F. M. Harper, J. A. Konstan, The movielens datasets: History and context, ACM Trans.
Interact. Intell. Syst. 5 (2015). URL: https://doi.org/10.1145/2827872. doi:10.1145/2827872.
[11] D. Yang, D. Zhang, V. W. Zheng, Z. Yu, Modeling user activity preference by leveraging
user spatial temporal characteristics in lbsns, IEEE Transactions on Systems, Man, and
Cybernetics: Systems 45 (2014) 129–142.
[12] W.-C. Kang, J. McAuley, Self-attentive sequential recommendation, in: 2018 IEEE
International Conference on Data Mining (ICDM), IEEE, 2018, pp. 197–206.
[13] B. Hidasi, A. Karatzoglou, L. Baltrunas, D. Tikk, Session-based recommendations with
recurrent neural networks, 2016. arXiv:1511.06939.
[14] W. X. Zhao, S. Mu, Y. Hou, Z. Lin, Y. Chen, X. Pan, K. Li, Y. Lu, H. Wang, C. Tian, Y. Min,
Z. Feng, X. Fan, X. Chen, P. Wang, W. Ji, Y. Li, X. Wang, J.-R. Wen, Recbole: Towards a
unified, comprehensive and eficient framework for recommendation algorithms, 2021.
arXiv:2011.01731.
[15] M. S. Bucarelli, L. Cassano, F. Siciliano, A. Mantrach, F. Silvestri, Leveraging inter-rater
agreement for classification in the presence of noisy labels, in: Proceedings of the IEEE/CVF
Conference on Computer Vision and Pattern Recognition, 2023, pp. 3439–3448.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>F.</given-names>
            <surname>Betello</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Siciliano</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Mishra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Silvestri</surname>
          </string-name>
          ,
          <article-title>Investigating the robustness of sequential recommender systems against training data perturbations</article-title>
          ,
          <source>in: Advances in Information Retrieval: 46th European Conference on Information Retrieval</source>
          ,
          <string-name>
            <surname>ECIR</surname>
          </string-name>
          <year>2024</year>
          , Glasgow, UK, March
          <volume>24</volume>
          -28,
          <year>2024</year>
          , Proceedings,
          <string-name>
            <surname>Part</surname>
            <given-names>II</given-names>
          </string-name>
          , Springer-Verlag, Berlin, Heidelberg,
          <year>2024</year>
          , p.
          <fpage>205</fpage>
          -
          <lpage>220</lpage>
          . URL: https://doi.org/10.1007/978-3-
          <fpage>031</fpage>
          -56060-6_
          <fpage>14</fpage>
          . doi:
          <volume>10</volume>
          .1007/ 978-3-
          <fpage>031</fpage>
          -56060-6_
          <fpage>14</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>G.</given-names>
            <surname>Adomavicius</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Tuzhilin</surname>
          </string-name>
          ,
          <article-title>Toward the next generation of recommender systems: a survey of the state-of-the-art and possible extensions</article-title>
          ,
          <source>IEEE Transactions on Knowledge and Data Engineering</source>
          <volume>17</volume>
          (
          <year>2005</year>
          )
          <fpage>734</fpage>
          -
          <lpage>749</lpage>
          . doi:
          <volume>10</volume>
          .1109/TKDE.
          <year>2005</year>
          .
          <volume>99</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A.</given-names>
            <surname>Purificato</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Cassarà</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Siciliano</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Liò</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Silvestri</surname>
          </string-name>
          , Sheaf4rec:
          <article-title>Sheaf neural networks for graph-based recommender systems</article-title>
          ,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>F.</given-names>
            <surname>Betello</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Purificato</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Siciliano</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Trappolini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Bacciu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Tonellotto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Silvestri</surname>
          </string-name>
          ,
          <article-title>A reproducible analysis of sequential recommender systems</article-title>
          ,
          <source>arXiv preprint arXiv:2408.03873</source>
          (
          <year>2024</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Fu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Ge</surname>
          </string-name>
          ,
          <string-name>
            <surname>Y. Zhang,</surname>
          </string-name>
          <article-title>User-oriented fairness in recommendation</article-title>
          ,
          <source>in: Proceedings of the Web Conference</source>
          <year>2021</year>
          , WWW '21,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2021</year>
          , p.
          <fpage>624</fpage>
          -
          <lpage>632</lpage>
          . URL: https://doi.org/10.1145/3442381.3449866. doi:
          <volume>10</volume>
          .1145/3442381.3449866.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>A.</given-names>
            <surname>Bacciu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Siciliano</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Tonellotto</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Silvestri</surname>
          </string-name>
          ,
          <article-title>Integrating item relevance in training loss for sequential recommender systems</article-title>
          ,
          <source>in: Proceedings of the 17th ACM Conference on Recommender Systems</source>
          , RecSys '23,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2023</year>
          , p.
          <fpage>1114</fpage>
          -
          <lpage>1119</lpage>
          . URL: https://doi.org/10.1145/3604915.3610643. doi:
          <volume>10</volume>
          .1145/ 3604915.3610643.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>S.</given-names>
            <surname>Oh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Ustun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>McAuley</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Kumar</surname>
          </string-name>
          ,
          <article-title>Rank list sensitivity of recommender systems to interaction perturbations</article-title>
          ,
          <source>in: Proceedings of the 31st ACM International Conference on Information &amp; Knowledge Management, CIKM '22</source>
          ,
          <string-name>
            <surname>Association</surname>
          </string-name>
          for Computing Machinery, New York, NY, USA,
          <year>2022</year>
          , p.
          <fpage>1584</fpage>
          -
          <lpage>1594</lpage>
          . URL: https://doi.org/10.1145/3511808.3557425. doi:
          <volume>10</volume>
          .1145/3511808.3557425.
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>W.</given-names>
            <surname>Webber</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mofat</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Zobel</surname>
          </string-name>
          ,
          <article-title>A similarity measure for indefinite rankings</article-title>
          ,
          <source>ACM Trans. Inf. Syst</source>
          .
          <volume>28</volume>
          (
          <year>2010</year>
          ). URL: https://doi.org/10.1145/1852102.1852106. doi:
          <volume>10</volume>
          .1145/1852102. 1852106.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>P.</given-names>
            <surname>Jaccard</surname>
          </string-name>
          ,
          <article-title>The distribution of the flora in the alpine zone. 1, New Phytologist 11 (</article-title>
          <year>1912</year>
          )
          <fpage>37</fpage>
          -
          <lpage>50</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>