<!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>Modeling Online Behavior in Recommender Systems: The Importance of Temporal Context</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Milena Filipovic</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Blagoj Mitrevski</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Diego Antognini</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Emma Lejal Glaude</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Boi Faltings</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Claudiu Musat</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Swisscom</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Switzerland</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Ecole Polytechnique Fédérale de Lausanne</institution>
          ,
          <country country="CH">Switzerland</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Symphony</institution>
          ,
          <addr-line>North</addr-line>
          <country country="MK">Macedonia</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Recommender systems research tends to evaluate model performance ofline and on randomly sampled targets, yet the same systems are later used to predict user behavior sequentially from a fixed point in time. Simulating online recommender system performance is notoriously dificult and the discrepancy between online and ofline behaviors is typically not accounted for in ofline evaluations. This disparity permits weaknesses to go unnoticed until the model is deployed in a production setting. In this paper, we ifrst demonstrate how omitting temporal context when evaluating recommender system performance leads to false condfience. To overcome this, we postulate that ofline evaluation protocols can only model real-life use-cases if they account for temporal context. Next, we propose a training procedure to further embed the temporal context in existing models. We use a multi-objective approach to introduce temporal context into traditionally time-unaware recommender systems and confirm its advantage via the proposed evaluation protocol. Finally, we validate that the Pareto Fronts obtained with the added objective dominate those produced by state-of-the-art models that are only optimized for accuracy on three real-world publicly available datasets. The results show that including our temporal objective can improve recall@20 by up to 20%</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;evaluation</kwd>
        <kwd>recommendation</kwd>
        <kwd>ofline and online evaluation</kwd>
        <kwd>multi-objective optimization</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>In an increasingly digital world, recommender systems are a staple of our daily routines. They
influence how we perceive our environment, from media content to human relationships.
Traditional methods of evaluation that entail random sampling over a long period of time are
perfect for a system that is designed to remain unchanged for an equally long and predefined
period. However, if the system is to be used in a dynamic setting, e.g. recommending the
next song to play in a playlist, the way it is evaluated must reflect that. Inadequate evaluation
techniques can lead to false confidence, which is especially detrimental in commercial settings.</p>
      <p>Recommender system evaluation can be done online or ofline . Online evaluation implies
deployment of the recommender in the real world, often in a commercial setting. While this
may be ideal for measuring the real-life impact of a system, it is also costly, both in terms
of resources and time, and therefore rarely used in research and benchmarking. In ofline
evaluation, historical data is utilized. Some portion of the data is selected to train on, while
another subset is used for performance testing. Since all data points are available beforehand,
the evaluation costs and overall timeline are significantly reduced.</p>
      <p>
        Irrespective of whether they are evaluated online or ofline, many existing recommenders
ignore temporal information. Most recommender systems fall into one of two main categories:
content-based or collaborative filtering [
        <xref ref-type="bibr" rid="ref1 ref2 ref3 ref4">1, 2, 3, 4</xref>
        ]. The former relies on recommended items
having similar attributes to those that the user has previously interacted with, while the
latter methods base their recommendation on items bought by similar users. However, many
models completely ignore temporal information, with the notable exception of time-aware
recommender systems[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. These systems introduce additional context to interactions: their
temporal dimension.
      </p>
      <p>
        In this work, we first focus on the importance of temporal dynamics in recommender system
evaluation. We draw attention to the lack of standardization in the evaluations, and the
diferences between research settings and the systems’ ultimate applications. Then, we highlight two
temporal evaluation protocols and show how they attain a closer approximation of the real-life
conditions in which recommender systems are deployed. Second, we present a multi-objective
approach[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] of incorporating the temporal context to time-unaware recommender systems
without any change in model architecture. We introduce a naive recency objective as a means
to include temporal dynamics in typically time-independent recommender systems. We also
provide a measure of recency in the form of a performance metric. Through experiments on
three real-world publicly available datasets we show that the addition of the naive temporal
objective yields improvements not only in recency but also in relevance. Finally, we
demonstrate that the Pareto Fronts obtained with the added objective dominate those produced by
state-of-the-art models.
      </p>
      <p>To the best of our knowledge, this is the first study quantifying the diference in recommender
system performance when evaluated using methods that model real-world environments, as
opposed to traditional techniques. We also show that a recommender system can be optimized
for both relevance and recency objectives simultaneously. To summarize, the main contributions
of this paper are as follows:
• We demonstrate how commonly used evaluation protocols do not provide adequate
modeling of real-world deployment settings. To combat this, we show two evaluation
techniques to facilitate ofline modeling of online production environments that inherently
incorporate temporal dynamics;
• We introduce a “naive” recency function that can be utilized to create a temporal objective.</p>
      <p>
        We show that optimizing for both temporal context and relevance [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] leads to solutions
that dominate those optimized just for relevance in both dimensions.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <sec id="sec-2-1">
        <title>2.1. Evaluating Recommender Systems</title>
        <sec id="sec-2-1-1">
          <title>2.1.1. Traditional Recommender Systems.</title>
          <p>Inputs and outputs share similarities with classification and regression modeling: a class variable
is predicted from a set of given features. Given that recommendation tasks can be seen as a
generalization of these, some evaluation techniques used for classification are transferable to
recommender systems.</p>
          <p>
            In collaborative filtering research, recommenders are generally evaluated either through
strong or weak generalization, as characterized by [
            <xref ref-type="bibr" rid="ref7">7</xref>
            ]. In both approaches, models are trained
on observed interactions and validated or tested on those that are held-out. However, there
exist some key diferences. Weak generalization is introduced in [
            <xref ref-type="bibr" rid="ref8">8</xref>
            ], where the held-out set is
created through random sampling of the available interactions of all users. Strong generalization
difers by taking disjoint sets of users for the training, validation, and testing sets. Following
this, some interactions are held-out from the validation and test sets and then approximated
using the recommender. Methods that encode user representation cannot apply strong
generalization, as they cannot generate outputs for previously unseen users. An example of the strong
generalization approach can be seen in [
            <xref ref-type="bibr" rid="ref3">3</xref>
            ], whereas [
            <xref ref-type="bibr" rid="ref10 ref11 ref9">9, 10, 11</xref>
            ] all use weak generalization.
          </p>
          <p>
            Several of these works emphasize that the application of their recommender system would be
in predicting future user actions, yet all validation and testing is done with randomly selected
interactions. This can break the time linearity as the knowledge of future interactions during
training can help predict a randomly sampled past interaction. While much efort is directed
towards establishing the importance of proper evaluation design, it is generally focused on
implementing relevant metrics to avoid under- or over-estimating real-world performance [
            <xref ref-type="bibr" rid="ref12">12</xref>
            ],
and not on the evaluation procedures themselves.
          </p>
        </sec>
        <sec id="sec-2-1-2">
          <title>2.1.2. Temporal Recommender Systems.</title>
          <p>
            They denote time-aware RS (TARS), and incorporate time explicitly or implicitly[
            <xref ref-type="bibr" rid="ref5">5</xref>
            ].
          </p>
          <p>
            Temporal recommender systems can be taken to include sequence-aware recommender
systems (SARS), as a special form of time adaptive recommenders that focus on ordering rather
than specific time instances[
            <xref ref-type="bibr" rid="ref5">5</xref>
            ]. It is however important to note that while they can be evaluated
using similar techniques, SARS approach temporal dynamics from a diferent perspective,
therefore the resulting models can difer greatly from typical TARS[
            <xref ref-type="bibr" rid="ref13">13</xref>
            ]. [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ] provide an extensive
overview of possible evaluation techniques, which served as an inspiration and point of reference
for this work. While traditional evaluation protocols may be used on temporal recommenders,
it is more representative to preserve the temporal ordering between interactions since this is
something that the recommender aims to learn. By extension, train, validation, and test splits
should also be ordered. [
            <xref ref-type="bibr" rid="ref13">13</xref>
            ] state that they were unable to find a consensus among evaluation
protocols used in recent sequence-aware recommender work, which is mirrored in our findings.
Yet we did determine that most recent SARS focus only on next item prediction, meaning they
output one recommendation. They also typically employ certain target item conditions to
decrease computational cost [
            <xref ref-type="bibr" rid="ref5">5</xref>
            ]. The target item conditions determine the (sub)set of items for
which a recommender should produce predictions and are specific for top-N recommendation
evaluation. The reduction of the computational costs is generally done through conditions that
rank one ground truth item against a set of other items false items. Examples can be found in
[
            <xref ref-type="bibr" rid="ref14 ref15 ref16">14, 15, 16</xref>
            ]. We return to the problem of subsampling in Section 3.
          </p>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Temporal Context in Recommender Systems</title>
        <p>In this paper, we introduce the concept of recency. An important note is that there are multiple
definitions of recency in recommender systems literature. In fact, this lack of consensus has
persisted for years. [17, 18] treat the recency of an item as an attribute that is user-dependent.
The value is determined by the last time the user interacted with a given item. [19, 20] also claim
to incorporate recency into their research: when recommending news articles, they measure
recency as the age of the item on the platform. Our analysis will follow the latter definition.
This is in line with our desire to explore the efects of a light-weight temporal addition on the
performance of traditional RS. Further work to determine the "ideal" definition of recency, while
undoubtedly invaluable, is outside the scope of this work.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Evaluation Protocols</title>
      <p>We propose that the temporal dimension should be considered when evaluating the performance
of any recommender. While random sampling may be an appropriate target selection technique
for some classification or regression tasks, we argue that this is not the case when it comes to
predicting a user’s subsequent move.</p>
      <p>Unlike the vast majority of evaluation methods applied to traditional recommenders, temporal
recommender systems literature does model the passage of time. However, as stated above, the
performance is often computed over a subset of the itemset and the user’s true chosen item.
The argument is that subsampling is necessary due to the complexity of the ranking task. While
this has some validity, itemsets of around 10,000 datapoints can be ranked highly eficiently,
especially when taking into consideration recent advancements in machine learning libraries
and GPU programming. Therefore, we do not utilize subsampling in our work.</p>
      <p>The adoption of a recommender system in real scenarios has two major phases. The first,
called the development phase, is purely ofline and theoretical. In this part, three separate
sets of data must be created: a training set that the model will use to learn item and user
representations, a validation set for hyperparameter tuning, and a test set to evaluate how
well the model performs. The second, called the deployment-ready phase, include interactions
with end-users. The maximum amount of data is leveraged to train a model with as much
information as possible, evaluate its performance, and then deploy it into production. In this
case, only two sets are needed: training and validation sets.</p>
      <p>One downside of collaborative filtering methods is that most models are incapable of
incorporating new items without retraining. While ways to alleviate this problem have been explored
[21], the issue remains widespread and worthy of more study, but lies outside the scope of this
paper. Therefore, we assume an industry-like environment: the recommender system will be
retrained regularly and will be exposed to clients for a relatively short period, ranging from a
s
r
e
s
U</p>
      <p>Time
(a) Proportional Temporal Selection.</p>
      <p>Time
(b) Strict Temporal Cutof.
couple of days to a few months. We postulate that the performance of the recommender on the
last portion of historically available data is most indicative of how it will behave when deployed.</p>
      <p>
        Our protocols focus on set creation. When selecting the target values in a validation set, we
take two possible approaches. The first, proportional selection, depicted in Figure 1a, selects the
ifnal % of each user’s interactions and uses these to create target items. Here we preserve
the time ordering of the input and target interactions, maintaining similarity with the real-life
use-case. The second approach, shown in Figure 1b, is based on a strict time cutof to select the
target items of the validation set. This method is even closer to the real-world use case. However,
it does sufer from certain drawbacks as user interactions are not necessarily evenly distributed
through time, leading to some users being more represented than others in the target set. While
these are similar to the suggestions developed in [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], we underline that these approaches should
not be limited to evaluating TARS. It is crucial to approximate with maximum precision the
performance of a model when developing a novel system, before it is released into production.
The second approach directly models the real-world context and contains user-item interaction
sequences created after a specific strict time cutof.
      </p>
    </sec>
    <sec id="sec-4">
      <title>4. Recency to Improve Recommendation</title>
      <p>The main task of a recommender system is to anticipate users’ future desires and suggest
relevant content. The relevance objective is the one that is most commonly found in
recommender systems literature and accounts for the accuracy or correctness. It actively focuses the
recommender on selecting the item(s) with which the users will most likely interact.</p>
      <p>However, just recommending the most relevant items does not always satisfy all the concerns
of those building the system and it is not the only objective used in practice. We distinguish
two types of objectives: correlated and uncorrelated to relevance. The former ones correspond
to those whose optimization is linked to the relevance objective. Examples are novelty [22],
serendipity [23], and utility-based objectives, such as revenue. For the latter, not correlated to
relevance, examples can be found in diversity and fairness. In this work, we introduce a simple
utility-based objective used to inject temporal information alongside the relevance objective.
While the exploration of uncorrelated objectives is essential for the future of recommender
systems, we leave it for future work.</p>
      <sec id="sec-4-1">
        <title>4.1. Adding Temporal Context</title>
        <p>
          Based on our experience with real-life use-cases, we observed that users seem to gravitate
towards content that had more recently been added to a given platform. While we cannot
disclose internal facts and figures, the temporal objective described below was motivated by
behaviour exhibited across many months of user interactions observed internally. Building on
these findings, and works such as [ 19] and [20], we chose to explore the efects of incorporating
recency as an objective during the learning phase. Given an item  with a timestamp , we
further define the recency function  (· ) as:
 () =
where  and  are the maximum (most recent) and minimum (oldest) timestamps over
the itemset. In  (· ), we first scale all timestamps to [
          <xref ref-type="bibr" rid="ref1">0, 1</xref>
          ] using the min-max scaler, and then
apply a transformation inspired by [24].
        </p>
        <p>We underline that this is a naive function which we found to best approximate user
interactions observed in-house. Works such as [25] rely on a power law distribution to model
temporal efects, highlighting that further exploration into use-case specific temporal context
approximations may yield exciting results.</p>
        <p>The recency objective is formulated as a loss that stimulates the recommendation of recent
items. Each item in the itemset is assigned a recency weight, The vector is then used to weigh
item importance when calculating the loss. Adding weights into a traditional loss does not
afect the diferentiability of the function.</p>
        <p>
          To illustrate how our temporal objective can be easily integrated into a traditionally
timeunaware RS, we take as a use-case the state-of-the-art variational autoencoder Mult-VAEPR of
[
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. For the sake of brevity, we refer the reader to [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] for more details about the model. We thus
propose an extension of Mult-VAEPR, where the loss function for user  is modified to:
ℒ (; ,  ) = E(|) [log  ( () * |)] −  · KL((|)||())
(2)
where the expected negative log-likelihood is modified to include the element-wise
multiplication of input vector  by  (), which corresponds to the recency scores of the given items in
.  controls how much importance is given to the KL term,  is a variational parameter of
the variational distribution  and  are model parameters.
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Multi-Objective Optimization</title>
        <p>
          Optimizing a recommender on multiple objectives is non-trivial. Thanks to the recent work of
[
          <xref ref-type="bibr" rid="ref6">6</xref>
          ], we employ the proposed multi-gradient descent algorithm for multiple objectives to train
our recommenders. After a standard forward pass, the loss and gradient are computed for each
objective and weights of the gradients are computing as a Quadratic Constrained Optimization
Problem [26]. This can be solved analytically for two objectives, or solved as a constrained
optimization problem as proposed in [27] for more than two objectives. Solving it allows us to
obtain the common descent vector and update the parameters. This training procedure enables
us to incorporate both our temporal context and the relevance objectives to retrieve time-aware
recommendations. The algorithm adapts the weight repartition between the two objectives in
an advanced manner to optimize both during training.
        </p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Experiments</title>
      <sec id="sec-5-1">
        <title>5.1. Datasets</title>
        <p>We study the performance of various models on three real-world publicly available datasets.
MovieLens-20M. Contains about 20 million ratings1, with values between 1 and 5. We
binarize the user-item interaction matrix, keeping ratings of 4 and above as positive feedback
to transform it into implicit feedback. We filter out all users with less than five ratings, and all
movies rated by less than five users. We focus on the last ten years of available data (2005-2015).
The preprocessed dataset contains 46,295 users, 9479 items, and 3.76M interactions with a
density of 0.86%.</p>
        <p>Steam. Has review information from the gaming platform Steam2. We converted user-item
interactions into a positive feedback signals. The dataset contains reviews from 2010 to 2018;
however, the platform only sees an uptick in review activity after 2014, therefore we use
20142018 for our analysis. After preprocessing the dataset contains 471,457 users, 13,018 items, and
3.14M interactions with a density of 0.09%.</p>
        <p>Netflix. The well-known Netflix Prize Competition dataset 3. It consists of over 100 million
ratings. We filter these ratings in the same way as the MovieLens ratings, and take the last two
years of activity (2003-2005). Because of low performance on certain baselines, we denote two
variants for the implicit feedback: one with threshold of 4 and above (Netflix ≥ 4), the other one
with a threshold of 5 (Netflix ≥ 5). After preprocessing the dataset contains 257,775 users, 13,995
items, and 38.87M interactions with a density of 0.59%.</p>
      </sec>
      <sec id="sec-5-2">
        <title>5.2. Recommendation Techniques</title>
        <p>
          We conduct experiment with the following well-known recommendation systems:
Mult-VAEPR. The MAMO framework4 and the setup from the original paper [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ] are utilized.
SVD. The PyTorch implementation5 of the Singular Value Decomposition [28] is used, taking
the top 100 dimensions.
        </p>
        <p>1https://grouplens.org/datasets/movielens/20m/.
2https://cseweb.ucsd.edu/~jmcauley/datasets.html.
3https://www.kaggle.com/netflix-inc/netflix-prize-data.
4https://github.com/swisscom/ai-research-mamo-framework.</p>
        <p>5https://pytorch.org/docs/stable/generated/torch.svd.html.</p>
        <p>
          NCF. The Neural Collaborative Filtering [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ], we take the implementation from 6, sample 4
negative instances for every existing user-item interaction, set the predictive factor of 64, and
the number of hidden layers for the multilayer perceptron (MLP) to three. We do not present
results obtained using pre-trained NeuMF, as they exhibited the same patterns as generalized
matrix factorizaion (GMF) and MLP, but did not give a significant improvement. To resolve
dificulties in obtaining good results with Netflix ≥ 4 for GMF and MLP models, we used instead
the Netflix ≥ 5 dataset.
        </p>
        <p>
          BERT4Rec. We implement this sequence-aware recommender system from [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ] in PyTorch
and integrate it with the MAMO framework. We take this model to show how directly encoding
temporal information in the model impacts performance. In this case the ordering represents the
temporal information. Hyperparameters were mostly taken from the original paper, otherwise
selected based on a simple grid search. The number of transformer layers is set to 2, the head
number is 4, head dimensionality is 64, and the dropout is 0.1. We use a sequence length of 100,
while the proportion of masked inputs is 0.2. The model is trained using the Adam optimizer
with a learning rate of 1e-4. All models were trained with the Adam optimizer, with a learning
rate of 0.001.
        </p>
      </sec>
      <sec id="sec-5-3">
        <title>5.3. Experimental Setup</title>
        <p>We explore whether validation set formation in the deployment-ready phase may lead to false
confidence in the performance of the evaluated model. In the deployment-ready phase, what
we call the validation set is not necessarily used for hyperparameter tuning, but to assess the
performance of the model before it is deployed. There are minor diferences in the datasets
used for models with and without user representation. Models without user representation
require some input interactions to be able to predict targets, while those with simply need to be
passed a user identifier. We divide our experiments into three sets, corresponding to the type of
evaluation.</p>
        <sec id="sec-5-3-1">
          <title>5.3.1. Traditional Evaluation.</title>
          <p>
            Similarly to [
            <xref ref-type="bibr" rid="ref3">3</xref>
            ], we divide the users 80:10:10 to form a train, validation, and test set. The
target interactions are selected by randomly sampling 20% of the user-item interactions in the
validation and test sets.
          </p>
          <p>We show that if a model is evaluated on and then applied to a task that entails predicting
randomly held-out interactions, the performance achieved on both validation and test sets is
comparable. This traditional approach is typically used to report model performance.</p>
          <p>We then contrast performance on randomly held-out interactions in the validation set against
temporally held-out interactions in the test set. We take 5% of the users from the train set
to create the validation set and randomly hold-out 20% of their interactions. The train and
validation sets contain user-item interactions up to a specific point in time. The test set contains
the interactions and users from the train and validation sets as inputs, and the temporally
held-out interactions are targets, to simulate deployment in a commercial setting.</p>
          <p>6https://github.com/guoyang9/NCF.</p>
        </sec>
        <sec id="sec-5-3-2">
          <title>5.3.2. Temporal Evaluation.</title>
          <p>We show that when evaluated with either a proportional or hard temporal cutof, the model’s
performance is closer to what would be observed in a real-life setting. However, it is important
to note the ideal evaluation technique is heavily domain dependent.</p>
          <p>We divide the train, validation, and test sets as follows. 5% of the users from the train form
the validation set. In the first approach, we hold out the last 20% of user-item interactions from
each user in the validation set. While in the other, we hold out the last couple of months of
activity and evaluate the model’s ability to predict these interactions. The test set contains the
interactions and users from the two other sets as inputs, and the temporally held-out interactions
are targets.</p>
        </sec>
        <sec id="sec-5-3-3">
          <title>5.3.3. Temporal Evaluation with Added Temporal Context.</title>
          <p>
            We introduce temporal context into the traditionally time-independent Mult-VAEPR by using
the work from [
            <xref ref-type="bibr" rid="ref6">6</xref>
            ] to optimize the model for accuracy and recency. To calculate the recency
score we take the timestamp of the moment that the item first became available, or the first
recorded instance of any user interacting with the given item. This timestamp is  in the
recency function 1. The strict temporal cutof validation set is utilized, as well as the temporal
test set described previously.
          </p>
        </sec>
      </sec>
      <sec id="sec-5-4">
        <title>5.4. Evaluation Metrics</title>
        <p>
          We evaluate models using three ranking metrics, as RS can often only show a predefined number
of recommendations. We ensured that the items that the user had previously interacted with
were removed from the output before the top-k results were selected for metric calculation.
• Precision@K: calculates how many of the recommended items are relevant to the user;
• Recall@K: quantifies the proportion of relevant items in the top-k recommended items by
calculating how many of the desirable items are are suggested to the end-user. We take
our definition from [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ];
• Recency@K: assigns a recency score to each item, calculating the rating of the top-k
recommended and relevant items. For user  with relevant items  we define () as
the item at rank , where I is the indicator function:
        </p>
        <p>@(, ,  ) = ∑︁ I[() ∈ ] ×  (())
=1
(3)</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>6. Results</title>
      <sec id="sec-6-1">
        <title>6.1. Traditional Evaluation.</title>
        <p>This experiment aims to show that the traditional way of evaluation recommender systems,
shown in Table 1, is not a faithful representation of the environments in which they are actually
deployed. The good performance achieved by evaluating in this way can provide a false sense
of security.</p>
        <p>Our claim is supported by the values highlighted by Table 2. Even though the validation
sets are not identical to the ones before, the performance observed is very similar. However,
it degrades on the time delayed test set, or to be more precise, when we simulate what would
happen in a production setting. Drops in performance of -65.63%, -35.00%, and -71.43% can
be observed, on the Recall@20 values. We postulate that this discrepancy leads to significant
dissonance between the results of certain recommenders as reported in literature, and those
observed in their real-life application.</p>
      </sec>
      <sec id="sec-6-2">
        <title>6.2. Temporal Evaluation.</title>
        <p>The results shown in Table 2 depict what happens when using traditional validation as opposed
to our proposed evaluation sets. The table illustrates how the strict cutof validation set
approximates the deployment behavior. For all datasets, this approach seems to be a closer
estimation of the "real-life" performance. For example, the drop in performance is reduced
from -71.43% to -16.67% on the Netflix ≥ 4 dataset for the Mult-VAEPR model. The proportionally
selected validation sets seems to work well for the Steam dataset, and we know from industry
experience that it can be good on others. However, this seems to be highly dataset specific.</p>
        <p>Table 2 also shows that this phenomenon is not isolated to the Mult-VAEPR, but can be
repeated with the SVD, GMF, and MLP models. As mentioned before, we were unable to conduct
experiments on Netflix ≥ 4 with the GMF and MLP models; therefore we report their results
on Netflix ≥ 5. It is important to note that simpler methods, especially those based on matrix
factorization, do not deal well with the Steam dataset. This is the sparsest dataset that we work
with which seems to make it dificult to learn anything meaningful. Based on this, we exclude
the Steam dataset for GMF and MLP. However, we keep the results for SVD.</p>
        <p>We strongly recommend that these evaluation methods be taken into account when presenting
novel achievements in the field. When feasible, we recommend to apply both protocols.</p>
      </sec>
      <sec id="sec-6-3">
        <title>6.3. Temporal Evaluation and Temporal Models.</title>
        <p>The results presented so far were achieved using traditional recommender architectures, with
no way of learning temporal dynamics. To show that it is possible to achieve better results on
the given datasets, we incorporate the temporal dynamics into the training process, by utilizing
BERT4Rec. The results are shown in 2, and dominate all traditional solutions. This confirms
our hypothesis that temporal dynamics should be accounted for in both evaluation design and
model architecture in order to attain the best possible recommenders.</p>
        <p>With BERT4Rec the interaction ordering is encoded in the model. The authors acknowledge
that the naive recency objective does not reproduce this efect when added to traditional RS.
However, the goal of the subsequent subsection is to illustrate that the simple addition of a
cheap time-dependant weight afects performance in a meaningful way.</p>
      </sec>
      <sec id="sec-6-4">
        <title>6.4. Temporal Evaluation with Added Temporal Context.</title>
        <p>To integrate the temporal context into the traditional models, our following contribution has the
recency included as an objective influencing the optimization. We refer to the multi-objective
Mult-VAEPR as the Multi-Objective Recency Enriched mult-VAEPR(MOREVAE).</p>
        <p>We present both the Pareto Fronts obtained during training and the results of the best models
on the test sets. These results were obtained through more intense training than those shown
in the previous sections in an attempt to extract the best possible performance from the
MultVAEPR. The Pareto Fronts were generated by evaluating on the strict cutof validation sets during
training, and the best models were chosen by selecting those with the highest Recall@20 and
applying them to the time delayed test sets. Figure 2 shows that the multi-objective approach not
only dominates the single objective one in terms of recency, but that optimizing for recency also
increases the relevance of the recommendations, validating our initial intuition. The results of
the best models over the test sets are shown in Table 3. The improvements obtained are 18.18%,
0.00%, and 20% for Recall@20; 14.29%, 0.00%, and 25.00% for Precision@20. The improvements
seen in Recency@20 are 104.35%, 20.00%, and 94.12%.</p>
        <p>Single-Objective</p>
        <p>Multi-Objective
0.110.4 0.5 0.6 0.7 0.8 0.9</p>
        <p>Recency@20
(c) Netflix≥ 4 dataset.</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>7. Conclusion</title>
      <p>Following standard ofline recommendation evaluations during development may lead to false
confidence when deploying models in real-life scenarios. Utilizing random sampling to hold out
data is not an adequate approximation of many real-life use-cases. Previous research generally
focuses on developing better metrics to reflect real-world performance, but still omits temporal
context. We highlight this lack of standardization and propose two temporal evaluation protocols
that empirically better approximate real-life conditions.</p>
      <p>Our second contribution is to propose leveraging a multi-objective approach and train models
on relevance and recency simultaneously. We show that a naive recency objective can be used
to integrate temporal information in existing time-unaware recommenders. Experiments on
three real-world publicly available datasets demonstrate that our method produced solutions
that strictly dominate those obtained with a model trained on a single-objective optimization.</p>
      <p>We explored datasets that are frequently used in recommender systems research, all related
to digital media content. Digital media content is consumed frequently and generally without
much repetition. The importance of recency and capturing transient behavioral trends may not
be equivalent in other recommender systems applications, such as grocery or clothes shopping.
The influence of temporal dynamics on these sectors is an exciting topic, and we leave it to
future academic and commercial research.
recommendations, in: Proceedings of the 27th ACM International Conference on
Information and Knowledge Management, 2018, pp. 843–852.
[17] Y. Ding, X. Li, M. E. Orlowska, Recency-based collaborative filtering, in: Proceedings of
the 17th Australasian Database Conference-Volume 49, 2006, pp. 99–107.
[18] J. Vinagre, A. M. Jorge, J. Gama, Collaborative filtering with recency-based negative
feedback, in: Proceedings of the 30th Annual ACM Symposium on Applied Computing,
2015, pp. 963–965.
[19] A. Chakraborty, S. Ghosh, N. Ganguly, K. P. Gummadi, Optimizing the recency-relevancy
trade-of in online news recommendations, in: Proceedings of the 26th International
Conference on World Wide Web, 2017, pp. 837–846.
[20] P. M. Gabriel De Souza, D. Jannach, A. M. Da Cunha, Contextual hybrid session-based news
recommendation with recurrent neural networks, IEEE Access 7 (2019) 169185–169203.
[21] X. Luo, Y. Xia, Q. Zhu, Incremental collaborative filtering recommender based on
regularized matrix factorization, Knowledge-Based Systems 27 (2012) 271–280.
[22] S. Vargas, P. Castells, Rank and relevance in novelty and diversity metrics for recommender
systems, in: Proceedings of the fifth ACM conference on Recommender systems, 2011, pp.
109–116.
[23] M. Ge, C. Delgado-Battenfeld, D. Jannach, Beyond accuracy: evaluating recommender
systems by coverage and serendipity, in: Proceedings of the fourth ACM conference on
Recommender systems, 2010, pp. 257–260.
[24] C.-L. Huang, M.-C. Chen, W.-C. Huang, S.-H. Huang, Incorporating frequency, recency
and profit in sequential pattern based recommender systems, Intelligent Data Analysis 17
(2013) 899–916.
[25] D. Kowald, S. C. Pujari, E. Lex, Temporal efects on hashtag reuse in twitter: A
cognitiveinspired hashtag recommendation approach, in: Proceedings of the 26th International
Conference on World Wide Web, 2017, pp. 1401–1410.
[26] J.-A. Désidéri, Multiple-gradient descent algorithm (mgda) for multiobjective optimization,</p>
      <p>Comptes Rendus Mathematique 350 (2012) 313–318.
[27] O. Sener, V. Koltun, Multi-task learning as multi-objective optimization, in: Advances in</p>
      <p>Neural Information Processing Systems, 2018, pp. 527–538.
[28] B. Sarwar, G. Karypis, J. Konstan, J. Riedl, Application of dimensionality reduction in
recommender system-a case study, Technical Report, Minnesota Univ Minneapolis Dept
of Computer Science, 2000.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>K.</given-names>
            <surname>Zhou</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W. X.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Zhu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.-R.</given-names>
            <surname>Wen</surname>
          </string-name>
          , S3
          <article-title>- rec: Self-supervised learning for sequential recommendation with mutual information maximization</article-title>
          ,
          <source>Proceedings of the 29th ACM International Conference on Information and Knowledge Management</source>
          (
          <year>2020</year>
          ). URL: http://dx.doi.org/10.1145/3340531.3411954. doi:
          <volume>10</volume>
          . 1145/3340531.3411954.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>X.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Liao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Nie</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Hu</surname>
          </string-name>
          , T.-S. Chua,
          <article-title>Neural collaborative filtering</article-title>
          ,
          <source>in: Proceedings of the 26th international conference on world wide web</source>
          ,
          <year>2017</year>
          , pp.
          <fpage>173</fpage>
          -
          <lpage>182</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>D.</given-names>
            <surname>Liang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. G.</given-names>
            <surname>Krishnan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. D.</given-names>
            <surname>Hofman</surname>
          </string-name>
          , T. Jebara,
          <article-title>Variational autoencoders for collaborative filtering</article-title>
          ,
          <source>in: Proceedings of the 2018 world wide web conference</source>
          ,
          <year>2018</year>
          , pp.
          <fpage>689</fpage>
          -
          <lpage>698</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>D.</given-names>
            <surname>Antognini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Musat</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Faltings</surname>
          </string-name>
          ,
          <article-title>Interacting with explanations through critiquing</article-title>
          ,
          <source>in: Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence</source>
          ,
          <source>(IJCAI</source>
          <year>2021</year>
          ),
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>P. G.</given-names>
            <surname>Campos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Díez</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Cantador</surname>
          </string-name>
          ,
          <article-title>Time-aware recommender systems: a comprehensive survey and analysis of existing evaluation protocols, User Modeling and User-Adapted Interaction 24 (</article-title>
          <year>2014</year>
          )
          <fpage>67</fpage>
          -
          <lpage>119</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>N.</given-names>
            <surname>Milojkovic</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Antognini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Bergamin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Faltings</surname>
          </string-name>
          ,
          <string-name>
            <surname>C.</surname>
          </string-name>
          <article-title>Musat, Multi-gradient descent for multi-objective recommender systems</article-title>
          ,
          <source>Proceedings of the AAAI</source>
          (
          <year>2020</year>
          ) - Workshop on Interactive and
          <source>Conversational Recommendation Systems (WICRS)</source>
          (
          <year>2020</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>B.</given-names>
            <surname>Marlin</surname>
          </string-name>
          ,
          <article-title>Collaborative filtering: A machine learning perspective</article-title>
          , University of Toronto Toronto,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>J. S.</given-names>
            <surname>Breese</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Heckerman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Kadie</surname>
          </string-name>
          ,
          <article-title>Empirical analysis of predictive algorithms for collaborative filtering</article-title>
          ,
          <source>in: Proceedings of the Fourteenth Conference on Uncertainty in Artificial Intelligence</source>
          , UAI'
          <fpage>98</fpage>
          , Morgan Kaufmann Publishers Inc., San Francisco, CA, USA,
          <year>1998</year>
          , p.
          <fpage>43</fpage>
          -
          <lpage>52</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>X.</given-names>
            <surname>Ning</surname>
          </string-name>
          , G. Karypis, Slim:
          <article-title>Sparse linear methods for top-n recommender systems</article-title>
          ,
          <source>in: 2011 IEEE 11th International Conference on Data Mining</source>
          , IEEE,
          <year>2011</year>
          , pp.
          <fpage>497</fpage>
          -
          <lpage>506</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wu</surname>
          </string-name>
          , C. DuBois,
          <string-name>
            <given-names>A. X.</given-names>
            <surname>Zheng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Ester</surname>
          </string-name>
          ,
          <article-title>Collaborative denoising auto-encoders for top-n recommender systems</article-title>
          ,
          <source>in: Proceedings of the Ninth ACM International Conference on Web Search and Data Mining</source>
          ,
          <year>2016</year>
          , pp.
          <fpage>153</fpage>
          -
          <lpage>162</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>S.</given-names>
            <surname>Rendle</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Freudenthaler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Gantner</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Schmidt-Thieme</surname>
          </string-name>
          ,
          <article-title>Bpr: Bayesian personalized ranking from implicit feedback</article-title>
          ,
          <source>arXiv preprint arXiv:1205.2618</source>
          (
          <year>2012</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>C. C.</given-names>
            <surname>Aggarwal</surname>
          </string-name>
          , et al.,
          <source>Recommender systems</source>
          , volume
          <volume>1</volume>
          , Springer,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>M.</given-names>
            <surname>Quadrana</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Cremonesi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Jannach</surname>
          </string-name>
          ,
          <article-title>Sequence-aware recommender systems</article-title>
          ,
          <source>ACM Computing Surveys (CSUR) 51</source>
          (
          <year>2018</year>
          )
          <fpage>1</fpage>
          -
          <lpage>36</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>F.</given-names>
            <surname>Sun</surname>
          </string-name>
          , J. Liu,
          <string-name>
            <given-names>J.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Pei</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Lin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Ou</surname>
          </string-name>
          , P. Jiang,
          <article-title>Bert4rec: Sequential recommendation with bidirectional encoder representations from transformer</article-title>
          ,
          <source>in: Proceedings of the 28th ACM International Conference on Information and Knowledge Management</source>
          ,
          <year>2019</year>
          , pp.
          <fpage>1441</fpage>
          -
          <lpage>1450</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>W.-C. Kang</surname>
            ,
            <given-names>J. McAuley</given-names>
          </string-name>
          ,
          <article-title>Self-attentive sequential recommendation</article-title>
          ,
          <source>in: 2018 IEEE International Conference on Data Mining (ICDM)</source>
          , IEEE,
          <year>2018</year>
          , pp.
          <fpage>197</fpage>
          -
          <lpage>206</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>B.</given-names>
            <surname>Hidasi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Karatzoglou</surname>
          </string-name>
          ,
          <article-title>Recurrent neural networks with top-k gains for session-based</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>