---
title: "Self-Supervised Reinforcement Learning for Recommender"
description: "Self-supervised reinforcement learning combines next-item prediction with reward learning to improve recommendations from logged interactions."
canonical: "https://research.elamur.ai/free/en/papers/xin-2020-self-supervised-reinforcement-learning-recommender/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/xin-2020-self-supervised-reinforcement-learning-recommender/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/) / Self-Supervised Reinforcement Learning for Recommender Systems

# Self-Supervised Reinforcement Learning for Recommender Systems

Paper · 2020 · Xin Xin, Alexandros Karatzoglou, Ioannis Arapakis et al.

**Authors:** [Xin Xin](https://md.research.elamur.ai/free/en/authors/xin-xin/), Alexandros Karatzoglou, Ioannis Arapakis and Joemon M. Jose · **Year:** 2020 · **Venue:** International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**219** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3034853385) · [International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR)](https://openalex.org/S4363608773) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/2006.05779)
- [DOI 10.1145/3397271.3401147](https://doi.org/10.1145/3397271.3401147)
- [arXiv 2006.05779](https://arxiv.org/abs/2006.05779)
- [OpenAlex](https://openalex.org/W3034853385)

Citations: OpenAlex, 2026-10-14.

## Deep dive: Self-Supervised Reinforcement Learning for Recommender Systems

Self-supervised reinforcement learning combines next-item prediction with reward learning to improve recommendations from logged interactions. · about 34 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A recommendation system can become good at predicting what someone will click without becoming equally good at helping that person find something worth buying. The difference matters because interaction logs contain several kinds of behavior, and those behaviors need not carry the same value. A click may indicate passing interest; a purchase may be a stronger signal of usefulness. This paper asks how a sequential recommender can learn from the order of previous interactions while also giving greater importance to outcomes chosen by the system designer.

The authors propose keeping the usual next-item prediction task and adding a reward-learning task alongside it. Both tasks use the same representation of a user’s recent interaction history. A supervised output head learns to rank candidate items by predicting the next recorded interaction. A reinforcement-learning head estimates how valuable an item is under a specified reward scheme, including rewards associated with subsequent interactions. The ranking head supplies a strong training signal across the item catalog, while the reward head directs the shared representation toward outcomes such as purchases.

The paper develops this arrangement into Self-Supervised Q-learning, or SQN, and Self-Supervised Actor-Critic, or SAC. In SQN, the reward-learning loss and the next-item prediction loss jointly train the recommender. In SAC, the estimated value of a recorded action also determines how strongly that example contributes to the prediction loss. A high-value action therefore receives greater emphasis during training. Recommendations still come from the supervised head in both approaches. This choice is central: the authors use reinforcement learning to influence a working ranking system instead of relying on estimated action values to produce the final ranking.

The experiments combine these frameworks with recurrent, convolutional, and attention-based recommendation architectures on RC15 and RetailRocket. The authors report improvements over the corresponding unmodified recommenders for both click and purchase prediction. SAC is particularly effective at placing purchase-related items near the beginning of the recommendation list. Controlled comparisons also show that distinguishing purchases from clicks is useful, but does not explain the entire benefit: improvements remain when both interaction types receive equal rewards. Giving some weight to future rewards helps, although very large purchase rewards or discount factors can reduce performance.

The evidence concerns offline prediction from recorded interaction sequences. It does not establish that deploying these systems increases purchases, extends engagement, or improves user satisfaction. The authors leave online testing, other reward objectives, and recommendation sets as future work. The paper’s main contribution is consequently a training strategy: preserve a reliable next-item learning signal, then use an additional value-learning objective to make that predictor more sensitive to selected outcomes.

### Ideas worth borrowing

Preserve the useful training signal. The paper starts with a recommender that already learns a meaningful task: predicting a recorded next interaction. Instead of discarding that objective when introducing reinforcement learning, it retains it throughout training. This matters because the prediction loss provides information that positive-only reward observations cannot supply on their own. The broader lesson applies whenever an ambitious objective is difficult to optimize from limited feedback. A well-supported auxiliary task can keep learning grounded while another objective introduces a desired preference.

Separate learning influence from decision authority. The Q-learning head changes the shared representation, but the supervised head retains responsibility for the final item ranking. That separation allows a potentially useful signal to contribute without making its estimates the sole basis of the output. It is especially relevant when one component learns from incomplete or biased observations. In another system, the corresponding design question would be whether a new score should directly choose outputs or first serve as a training influence on an established predictor.

Use outcome value to allocate attention. SAC gives more weight to prediction examples whose recorded actions have higher estimated value. The same interaction history can therefore contribute differently depending on what the critic has learned about its consequences. This is more selective than treating every observed next item as equally important. The idea could apply to other sequential tasks where events differ in downstream usefulness, provided the value estimates are sufficiently stable and the weighting does not erase essential coverage of common events.

Share a representation across complementary objectives. The two heads read the same encoded interaction sequence. There is no need to build an independent state encoder merely to add the reward objective. This makes the proposal compatible with several kinds of sequence architecture and allows both losses to shape the same internal state. The transferable principle is architectural: when tasks depend on the same history, a shared representation can provide a direct route for one task’s learning signal to improve another.

Delay dependence on an immature critic. SAC begins with SQN-style updates and introduces value-weighted prediction only after a training threshold. The motivation is practical: early action-value estimates may be unstable, particularly with complex sequence encoders. An auxiliary estimator should not necessarily control example importance as soon as training begins. Elsewhere, this suggests staging the introduction of learned weights whenever their reliability depends on earlier representation learning.

Test the reward scheme as part of the method. The experiments vary purchase rewards and the discount factor rather than treating them as incidental settings. Both choices affect what the system emphasizes, and making them larger does not continually improve results. This is a useful experimental habit beyond recommendation. A reward scheme is an operational statement of the desired behavior; its effects and tradeoffs need examination alongside the architecture that learns from it.

Keep event coverage and event order distinct. The authors report hit ratio and normalized discounted cumulative gain separately, and they distinguish click events from purchase events. An item appearing somewhere in a recommendation list is a different achievement from placing it near the beginning. Likewise, accurately predicting frequent clicks can conceal weaker purchase prediction. Borrowing this evaluation design means selecting measurements that reveal both which outcomes are covered and how prominently their associated candidates appear.

### How Mova uses it

For Mova, the small transparent language system written in Rust, the relevant contribution is a possible separation between prediction and preference. The paper does not describe a Mova implementation, so SQN and SAC should be treated as design possibilities rather than established components of that system.

A concrete adaptation would begin with a bounded sequence task in which Mova already produces candidate scores from an explicit history. One output could continue to learn which candidate occurred next. A separate output could estimate a defined measure of usefulness associated with that choice. The important borrowing would be the relationship between the objectives: observed continuation provides a dependable learning signal, while the additional score expresses a preference that simple continuation prediction does not capture.

The recommendation setting gives a clear example of why these signals differ. A frequent interaction need not be the interaction the designer most wants to encourage. For a language system, applying that distinction would require identifying an equally concrete outcome and recording evidence for it. The reward could not simply be called quality and assumed to have a clear meaning. It would need an observable definition, an explanation of which events receive it, and an account of why those events represent the intended behavior.

Transparency would make the division of responsibility particularly useful. A prospective implementation could expose the candidate prediction score, the auxiliary value estimate, and the way each affects learning. Under an SQN-style arrangement, Mova’s final candidate ordering would still come from the ordinary prediction output. The auxiliary objective would influence the shared representation during training. Under an SAC-style arrangement, it would additionally change the importance of individual training examples, with the value estimate held fixed while applying that weight.

The paper also suggests a cautious development sequence. First establish that the ordinary predictor learns the task. Then assess whether the auxiliary value estimates are stable enough to be useful. Only after that would it make sense to let those estimates determine example weights. This follows the reason for SAC’s warm-up period without assuming that the same threshold or reward settings would suit language data.

The largest unresolved issue is whether the task actually supports a sequential reward interpretation. The paper associates recommendation actions with later user interactions. A Mova application would need its own defensible account of actions, states, transitions, and outcomes. If the available data only show recorded continuations, they cannot reveal every consequence of alternatives that were never chosen. The paper’s offline-data limitations would remain relevant.

What Mova can borrow immediately is therefore a design discipline: keep a clear prediction objective, make any additional preference explicit, and inspect how the preference changes learning. Claiming a reinforcement-learning capability would require implementing and evaluating the corresponding state, reward, and training machinery. The paper supplies a candidate architecture for that work, not evidence that it has already been done.

### The problem and its context

#### Predicting an interaction is not the whole objective

Sequential recommendation uses earlier interactions to decide what to recommend next. A session might contain a succession of viewed products followed by a purchase. A video service might record successive viewing events and the time spent watching. In each case, the history contains information about current interests, but the system’s objective can extend beyond reproducing the next observed event.

The standard self-supervised formulation makes the next item the training target. A sequence encoder reads the earlier items, creates a hidden representation, and passes that representation to an output layer that scores the catalog. The loss measures disagreement between those scores and the item that actually appeared next.

This procedure is self-supervised because the sequence supplies its own labels. No separate annotator needs to identify the correct continuation: the next recorded event provides it. The authors connect the arrangement to next-word prediction, where preceding words provide context and the following word becomes the target. The same training structure can be applied to an interaction sequence.

Its strength is also the source of the paper’s concern. The objective rewards accurate continuation prediction, but continuation accuracy need not fully express the goals of the recommendation service. A loss that treats observed next items uniformly does not explicitly distinguish browsing from purchasing. Nor does it directly assign value to effects extending beyond the immediate interaction.

The authors frame reinforcement learning as a way to express those additional goals. A reward function can assign different values to different interaction types. It can also support objectives involving later behavior. The resulting question is how to obtain that flexibility without losing the strong ranking performance of conventional self-supervised recommendation.

#### How earlier sequence methods represented history

The paper describes earlier sequential recommenders based on Markov chains and factorization. Markov-chain approaches represent dependence between successive interactions. One cited line combines short-range transitions with matrix factorization so that recent behavior and longer-term preference can both contribute.

Higher-order Markov approaches consider more of the preceding sequence. Nevertheless, the authors argue that complex patterns, including skipped interactions, remain difficult for this family. Factorization approaches offer another route by treating previous items as contextual information. The general factorization framework, for instance, represents a session through an average of its item representations. That aggregation does not preserve interaction order.

Neural sequence architectures supply more flexible encoders. GRU-based recommendation uses recurrent computation to summarize the sequence. The paper connects this recurrent building block to [On the Properties of Neural Machine Translation: Encoder-Decoder Approaches](https://md.research.elamur.ai/free/en/papers/cho-2014-properties-neural-machine-translation-encoder/). Convolutional recommenders instead learn patterns over representations of earlier items. Attention-based recommendation uses the [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/) approach to construct a representation from the history.

The cited foundation for the attention architecture is [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/). The role of these earlier architectures is specific: each can supply the sequence-to-state function required by the proposed training frameworks. The paper does not need every encoder to process history in the same way. It needs each to produce a hidden state from which candidate scores can be generated.

That shared interface is what makes the contribution portable. SQN and SAC modify the learning arrangement around the encoder instead of proposing a replacement for recurrent computation, convolution, or attention.

#### Why direct reinforcement learning is difficult

In an interactive reinforcement-learning setting, an agent takes actions, observes their consequences, and improves its behavior. A recommender could in principle learn this way by showing items to users and collecting subsequent feedback.

The authors identify a practical obstacle: an insufficiently trained policy could expose users to poor recommendations. That can damage the experience before the agent has learned enough to improve it. Commercial recommendation also need not be controlled by a single policy, so even an operating system may receive data influenced by other recommenders.

Logged interaction data provide an alternative, but introduce a mismatch. The behavior that generated the log differs from the behavior the new system is trying to learn. This is the off-policy problem. A method that expects trajectories generated by its own current policy cannot simply treat historical trajectories as though that condition held.

The paper discusses propensity-based correction as an earlier response. Such correction attempts to account for differences between the data-generating policy and the target policy. The authors emphasize the possibility of high variance and the resulting training difficulties. Their proposal seeks a different use for reinforcement learning rather than making propensity estimation the center of the solution.

A separate problem concerns missing negative feedback. An interaction log tells the system which item a user selected, but typically does not establish what that user would have thought of every unselected item. An absent interaction is therefore not a directly observed dislike.

This is especially troublesome for value learning over a large catalog. The system has observations for only a limited collection of state–action pairs. Training Q-values on positive interactions does not automatically produce a good ordering over the many other candidates. A procedure can learn values for recorded actions while remaining poorly equipped to rank the entire action space.

#### Alternatives considered by the authors

The paper also describes approaches that learn a user simulator before training a recommendation agent. A simulator allows the agent to collect artificial experience without exposing actual users to early recommendations. The authors’ objection is dependence on the simulator’s accuracy. If simulated responses misrepresent user behavior, the policy learns against the wrong environment.

They mention [Generative Adversarial Nets](https://md.research.elamur.ai/free/en/papers/goodfellow-2014-generative-adversarial-nets/) while discussing this direction, but do not treat successful image generation as evidence that user responses are easy to simulate. Their argument is that building a suitable behavioral environment is a substantial additional problem.

Another branch treats a complete recommendation set as an action. This better reflects systems that display several items together, but greatly enlarges the action space. The present work instead scores individual candidates and returns the highest-ranked items through the supervised head.

The authors distinguish their setting from bandit formulations as well. In their account, bandits assume that actions do not alter the state, whereas full reinforcement learning allows actions to affect what happens next. Because recommendations can influence subsequent behavior, they favor the sequential formulation.

Finally, the paper relates its method to imitation learning. The supervised component learns from recorded user actions, so part of training resembles learning from demonstrations. The resulting system combines this imitation-like signal with reward-oriented value learning.

### The method, step by step

The proposed method begins with an ordinary sequence recommender. It adds a value-estimation output to the same hidden representation, then trains the shared encoder using both prediction error and temporal-difference error. SAC adds a further connection: estimated action value becomes a weight on the prediction loss.

Learning recommendations from sequences and rewards The steps in order.

#### Represent the history and next-item task

The item history is written as:

```
x₁:ₜ = {x₁, x₂, …, xₜ}
```

The symbol x₁:ₜ denotes the interaction sequence up to time t. Each xᵢ identifies an item from the catalog ℐ, and i denotes its position in the sequence. The next-item task is to predict xₜ₊₁ from that history.

The sequence records interacted items, while the data can also identify the kind of interaction, such as clicking or purchasing. The reward function uses that distinction later. It is important not to confuse an item’s identity with the value assigned to the event involving that item.

An encoder turns the history into a state:

```
sₜ = G(x₁:ₜ)
```

Here G is the sequence encoder, x₁:ₜ is the observed history, and sₜ is its hidden representation at time t. The same sₜ serves as the state supplied to the reinforcement-learning head.

The ordinary prediction output is:

```
yₜ₊₁ = f(sₜ)
```

The function f maps state sₜ to the vector yₜ₊₁ of candidate-item logits for the next event. A logit is a score before normalization into a probability. The vector contains n components, with n representing the number of candidate items.

This decomposition is deliberately general. The encoder may be recurrent, convolutional, or attention-based. The output mapping may be a fully connected layer or a comparison with candidate item representations. What matters for the proposal is that the encoder exposes a state that both training objectives can use.

#### Define states, actions, and rewards

The paper expresses recommendation as a Markov decision process:

```
(𝒮, 𝒜, P, R, ρ₀, γ)
```

The symbol 𝒮 denotes the state space, and 𝒜 denotes the action space of candidate items. P gives transition probabilities between states after actions. R is the reward function, ρ₀ is the distribution of initial states, and γ discounts rewards associated with later steps.

The state is continuous because it is represented by the encoder’s hidden vector. The action is discrete because it identifies an item. For a logged transition, the paper obtains the action from the next recorded interaction:

```
aₜ = xₜ₊₁
```

The action aₜ at time t is therefore the item xₜ₊₁ observed at the next position in the log. This is a training convention based on recorded behavior, not evidence about the consequences of every alternative candidate.

The immediate reward is written r(sₜ, aₜ). It measures the value assigned to action aₜ in state sₜ. In the e-commerce experiments, clicks and purchases receive different rewards. More generally, the authors discuss novelty and watching time as possible bases for a reward, although those alternatives are not evaluated in the reported experiments.

A trajectory contains successive states and actions. Its discounted return is:

```
R(τ) = ∑ₜ₌₀^|τ| γᵗ r(sₜ, aₜ)
```

The symbol τ denotes a trajectory, |τ| its length, and t a step along it. The factor γᵗ reduces the contribution of rewards occurring later. The function r supplies each immediate reward, while R(τ) denotes the cumulative return for the complete trajectory.

The reinforcement-learning objective is:

```
max over πθ of Eτ∼πθ[R(τ)]
```

The policy πθ assigns action probabilities given a state, and θ denotes its trainable parameters. The expectation E averages over trajectories generated under that policy. Maximizing this expectation means preferring behavior with larger discounted cumulative reward.

This formal objective explains the appeal of reinforcement learning, but it also exposes the difficulty of learning from a fixed log. The available trajectories were not generated by the target policy being optimized.

#### Understand the off-policy mismatch

For policy-gradient learning, the paper gives the following expected gradient:

```
Eτ∼πθ[R(τ) ∇θ log πθ(τ)]
```

Here πθ(τ) is the trajectory probability under the target policy, log takes its logarithm, and ∇θ denotes differentiation with respect to θ. The return R(τ) weights the direction in which the trajectory’s probability would change.

Historical data instead support an expectation of this form:

```
Eτ∼β[R(τ) ∇θ log πθ(τ)]
```

The behavior policy β generated the recorded trajectories. The remaining terms refer to the target policy and its parameters. Changing the distribution under the expectation changes what the expression estimates, which is why the authors reject an uncorrected application of this policy-gradient calculation to their logs.

Q-learning takes a different route by estimating action values. Its one-step target follows:

```
Q(sₜ, aₜ) = r(sₜ, aₜ) + γ maxₐ′ Q(sₜ₊₁, a′)
```

The function Q gives the estimated value of taking action aₜ in state sₜ. The state sₜ₊₁ follows the logged transition. The symbol a′ ranges over candidate next actions, and max selects the largest estimated next-action value.

The right side combines immediate reward with discounted continuation value. This makes Q-learning attractive for the paper’s purpose: an interaction can receive learning signal from what follows it, rather than only from its own event type.

Nevertheless, the authors emphasize that being an off-policy algorithm does not make Q-learning immune to biased logged states. A value learner trained on the available histories does not automatically provide a reliable catalog-wide ranking. That is why the method retains supervised recommendation output.

#### Train the next-item prediction head

The supervised head normalizes its logits using:

```
pᵢ = eʸⁱ / ∑ᵢ′₌₁ⁿ eʸⁱ′
```

The symbol pᵢ is the predicted probability of candidate i. The score yᵢ is that candidate’s logit, e is the exponential base, and i′ is the index summed over all n candidate items.

The prediction loss is:

```
Lₛ = −∑ᵢ₌₁ⁿ Yᵢ log(pᵢ)
```

The symbol Lₛ denotes cross-entropy loss. The indicator Yᵢ is 1 for the item recorded at the next timestamp and 0 for the other candidates. The index i ranges over the catalog, and pᵢ is the normalized probability assigned to that item.

Although the target identifies a positive interaction, the denominator in the probability expression makes other candidates matter to learning. Increasing the target item’s probability requires adjusting its score relative to competing scores. The authors identify this competition as the source of negative gradient signals missing from positive-only Q-learning.

That point should be interpreted carefully. The prediction loss does not establish that every unchosen item was disliked. It supplies a ranking pressure: the recorded continuation should score above alternatives for that training example. This is a learning signal derived from the prediction task, not a complete observation of user preferences.

#### Add the Q-learning head

The reinforcement-learning output uses the shared state:

```
Q(sₜ, aₜ) = δ(sₜ hₜᵀ + b) = δ(G(x₁:ₜ) hₜᵀ + b)
```

The function δ is the activation function. The quantities hₜ and b are trainable parameters of the reinforcement-learning head, and the superscript T denotes transposition. The state sₜ is the encoder output G(x₁:ₜ), while aₜ identifies the action whose value is being estimated.

The key architectural choice is reuse. Both heads receive information from the same encoded history. Consequently, the Q-learning loss can change the representation on which next-item prediction depends, even though the Q-head does not generate the final recommendation list.

The temporal-difference loss is:

```
Lq = (r(sₜ, aₜ) + γ maxₐ′ Q(sₜ₊₁, a′) − Q(sₜ, aₜ))²
```

The symbol Lq denotes the squared temporal-difference error. The first terms form the target: immediate reward plus discounted estimated continuation value. The final Q(sₜ, aₜ) is the current estimate being trained towards that target.

This is a bootstrapping objective because part of the target is itself estimated. The learner does not need a separately observed final value for each action. It uses the next state’s estimated values to update the current state’s action value.

That convenience brings sensitivity to the scale and stability of value estimates. The paper addresses stability through double Q-learning and, for SAC, a delayed introduction of value weighting. Its reward and discount experiments also show why the bootstrapping settings cannot be treated as harmless details.

#### Combine the losses in SQN

SQN uses the joint objective:

```
L_SQN = Lₛ + Lq
```

The symbol L_SQN denotes the combined SQN loss. Its components are the next-item cross-entropy Lₛ and the temporal-difference loss Lq. Both contribute updates to the shared encoder.

Training uses a replay buffer constructed from the recorded implicit-feedback data. A training transition associates the current history with its next observed action, corresponding reward, and subsequent state. The buffer therefore reorganizes existing logged experience; it does not provide new interactions with users.

The paper adopts double Q-learning for stability, maintaining two parameter copies and alternating their training. This is the specified stabilization mechanism for the value-learning component. The method’s central argument does not depend on introducing a second user-history representation with a different purpose: the learning arrangement still revolves around a shared sequence state and separate output tasks.

At recommendation time, the system uses the supervised scores to select the highest-ranked candidates. The Q-head’s role is indirect. It has helped shape the encoder through training, but its values do not replace the prediction scores.

This distinction explains the term regularizer in the paper. The reinforcement-learning objective adds a preference about what information the shared representation should support. The ordinary prediction task continues to constrain that representation towards effective item ranking.

#### Make the critic influence example weights in SAC

SAC extends the connection between the heads. Its actor loss is:

```
L_A = Lₛ · Q(sₜ, aₜ)
```

The symbol L_A denotes the value-weighted prediction loss. The factor Lₛ is the supervised cross-entropy for the recorded action aₜ, and Q(sₜ, aₜ) is that action’s estimated value in state sₜ.

The supervised head acts as the actor because it supplies recommendation rankings. The value head acts as the critic because it evaluates the recorded action under the reward scheme. A larger critic value gives the corresponding prediction example more influence.

The authors distinguish this arrangement from conventional actor–critic learning. Their actor is trained through a supervised prediction loss rather than an on-policy policy-gradient objective. They also share the base encoder instead of using separate base networks for the actor and critic.

When Q is used as a weight, its value is held fixed for that part of the calculation. Gradients do not pass through the weighting factor. Otherwise, minimizing the weighted actor loss could alter the critic through the weight itself rather than solely through its value-estimation objective.

The shared encoder still receives learning signals from the relevant objectives. Stopping the gradient through the multiplier does not remove the critic’s own temporal-difference training. It defines how the actor uses the critic: as an assessed importance weight for the current update.

#### Introduce value weighting after a warm-up

The paper uses a threshold T to delay SAC-style weighting. Before the number of update steps reaches T, training follows SQN. After the threshold, the critic values begin weighting the supervised loss.

The symbol T denotes a training-step threshold, not an interaction timestamp within a user sequence. Its purpose is to allow value estimates to become more stable before they control example importance.

The authors particularly associate early instability with complex encoders, including attention-based recommendation. An unreliable value estimate is problematic twice over in SAC: it is an imperfect critic target, and it can also misallocate prediction-learning effort. The warm-up reduces this second source of dependence during the earliest training period.

The paper presents the threshold as a practical stabilization choice. It does not establish that one threshold is appropriate across all architectures or reward schemes. The broader methodological point is that an auxiliary estimate can be useful before it is reliable enough to serve as a training weight.

#### Specify what the architecture does and does not require

The frameworks require a recommender that maps interaction history to a hidden representation and then to item scores. That interface makes them compatible with the architectures evaluated in the paper.

Cross-entropy is the supervised objective used experimentally. The authors also state that the framework can accommodate other recommendation losses, including ranking-oriented alternatives. This is a statement about the design’s intended generality; the reported comparisons use the specified cross-entropy setup.

The reward scheme remains application-dependent. In the experiments, its purpose is to value purchase events more strongly than click events. The architecture itself does not determine whether that preference is appropriate. It supplies a way to inject the chosen preference into learning while retaining a direct next-item prediction task.

### Experiments and results

#### Datasets and event meanings

The experiments use RC15 and RetailRocket, both containing sequences of e-commerce interactions. Their event labels require separate explanation because purchase prediction does not mean exactly the same thing in both datasets.

RC15 comes from the RecSys Challenge dataset. The authors discard sessions shorter than 3 interactions and sample 200k sessions. The resulting collection contains 1,110,965 clicks and 43,946 purchases across 26,702 items. Events within a session are ordered by timestamp.

RetailRocket contains viewing and add-to-cart events. The authors map views to clicks and treat additions to the cart as purchases for consistency with the RC15 setup. They remove items with fewer than 3 interactions and sequences shorter than 3 events. After filtering, the dataset contains 1,176,680 click events and 57,269 events in the purchase category across 70,852 items.

The mapping matters when interpreting the results. On RC15, the purchase category refers to recorded purchases. On RetailRocket, it refers to adding an item to the cart. The experiments therefore test sensitivity to a more strongly valued event category in both datasets, but only one category has the literal purchase meaning used in the paper’s terminology.

The authors identify both datasets as publicly accessible. They also give an implementation location and state that their NextItNet experiments use code released by its authors. These details identify the intended experimental resources without changing the offline nature of the evidence.

#### Splitting and evaluation

The training, validation, and test proportions are 8:1:1. The authors randomly choose 80% of the sequences for training. Evaluation reveals the events of a held-out sequence successively and checks where the next observed item appears in the predicted ranking.

Candidate ranking covers the entire item catalog. This makes the task different from evaluation against a small sampled collection of alternatives. The recommender must place the recorded continuation among all available candidate items.

Each experiment is run five times, and its reported performance is the average of those runs. Validation is used during training, with checks after every 2000 update batches. The paper’s main comparison captions cover recommendation cutoffs of 5, 10, and 20.

Hit ratio measures whether the recorded next item appears within the selected leading positions. For click events, the paper defines:

```
HR(click) = number of hits among clicks / number of clicks
```

The quantity HR(click) is the fraction of evaluated click events whose target item appears within the chosen recommendation cutoff. A hit is a successful inclusion of that event’s item. The purchase version replaces click events with events in the purchase category.

Normalized discounted cumulative gain, abbreviated NDCG, is sensitive to the target’s position. An item placed near the beginning of the list contributes more than the same item placed later. Reporting both measures distinguishes successful inclusion from prominent placement.

The authors evaluate clicks and purchases separately. This is necessary because clicks dominate the data. A single pooled measure could make it difficult to see whether a method improves prediction for the sparser outcome that receives the larger reward.

#### Compared architectures

The experimental integration covers GRU, Caser, NextItNet, and SASRec. The paper also abbreviates NextItNet as NItNet in its baseline description.

GRU represents the sequence through the recurrent network’s final hidden state. Caser applies convolutional filters over the representation matrix of preceding items. NextItNet uses dilated convolution to extend the receptive field and residual connections to support greater depth. SASRec constructs its sequence representation using self-attention.

Each architecture is evaluated in its ordinary form and with the proposed training frameworks. This is important for the paper’s claim: a benefit across different encoders would suggest that the learning arrangement contributes something beyond the properties of one particular sequence architecture.

These comparisons do not amount to a broad contest among all possible reinforcement-learning recommenders. Their central purpose is to ask what changes when the same underlying recommender receives the additional SQN or SAC training mechanism.

#### Shared training settings

The input history contains the most recent 10 items preceding the target event. Shorter histories are completed with a padding item. This gives the encoders a consistent input length while allowing evaluation at earlier points in a sequence.

Training uses [Adam: A Method for Stochastic Optimization](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/). The mini-batch size is 256. The learning rate is 0.01 on RC15 and 0.005 on RetailRocket.

All compared architectures use item representations of size 64. The recurrent hidden state also has size 64. Caser uses 1 vertical filter and 16 horizontal filters, with heights drawn from {2,3,4}; its dropout setting is 0.1. The NextItNet configuration follows its released code. SASRec uses 1 self-attention head.

Unless an experiment varies them, the reinforcement-learning settings use a discount factor of 0.5 and a purchase-to-click reward ratio of 5. These defaults place greater immediate value on purchase-category events while retaining a contribution from subsequent interactions.

#### Main performance findings

On RC15, the authors report that SQN improves both click and purchase prediction over the matching baseline architectures. They interpret this as evidence that the extra value-learning objective contributes information useful to the shared representation.

For purchase prediction on RC15, SAC achieves the strongest performance in the authors’ comparison. Their explanation is that critic-based weighting helps the supervised objective make better use of sparse but strongly rewarded purchase signals.

On RetailRocket, both SQN and SAC improve click and purchase-category prediction relative to their corresponding baselines. SQN sometimes obtains the highest purchase hit ratio, while SAC achieves the best purchase NDCG in the reported comparisons.

That difference has a concrete interpretation. A method can be good at including an add-to-cart target somewhere within the recommendation cutoff while another is better at placing such targets nearer the beginning. SAC’s NDCG pattern supports the second interpretation: value weighting affects prominence as well as inclusion.

The comparison captions use a significance criterion of p-value \< 0.01 against the corresponding baseline. The paper’s prose emphasizes consistent improvements, but does not supply a complete series of per-architecture scores outside the comparison tables. The result that can be stated numerically in detail concerns an equal-reward comparison discussed in the reward analysis.

#### A numerical check with equal event rewards

With GRU as the base architecture on RC15, the paper reports purchase HR@10 of 0.5183 for the ordinary GRU recommender. When click and purchase rewards are equal, SAC reaches roughly 0.54 on the same metric.

The SAC value is explicitly approximate. It should be read as evidence for the direction of the comparison, not as a precisely tabulated score. The chart preserves that distinction in its label.

RC15 purchase HR@10 with GRU and equal-reward SAC SAC improves purchase inclusion even when clicks and purchases receive equal rewards.

**The numbers**

| System or setting | HR@10 |
| --- | --- |
| GRU | 0.5183 |
| SAC, equal rewards, approximately (this paper) | 0.54 |

This comparison matters because it rules out a narrow explanation of the method’s benefit. If the entire gain came from assigning purchases a larger reward, equalizing the event rewards would remove that mechanism. The observed advantage indicates that the additional sequential value-learning signal can help even without an immediate reward distinction between interaction types.

It remains a result about predicting recorded purchase events. It does not show that users would make more purchases if the SAC rankings were deployed.

### What the ablations show

The paper studies reward ratios, discount factors, and the use of Q-learning as the recommendation output. These controlled comparisons clarify which parts of the design matter. They are not a complete component-removal study of every stabilization choice.

#### Increasing purchase rewards changes the learning emphasis

The reward experiments vary the ratio between the reward for a purchase and the reward for a click. They use GRU as the base architecture and examine HR@10 and NDCG@10 on both datasets.

For SQN, purchase prediction initially improves as the purchase-to-click reward ratio increases from 1. This is the expected direction if the value-learning head is successfully influencing the shared representation. A larger purchase reward makes purchase-associated transitions more important to the reinforcement-learning objective.

SAC shows a similar initial improvement. Here there is also a direct route through the prediction loss: higher learned values can increase the weight assigned to examples associated with valued outcomes.

The trend does not continue indefinitely. At larger reward ratios, performance falls. The authors suggest that large reward differences can destabilize temporal-difference updates. Because the target combines immediate reward with estimated continuation value, changing reward scale affects the numerical learning problem as well as the intended preference.

Click performance provides another part of the picture. It is initially stable, and can improve slightly, before declining at larger reward ratios. The authors offer two explanations: reinforcement-learning instability and a reduction in the relative importance of clicks.

The second explanation matters because clicks supply most of the training events. Strongly emphasizing a sparse category can reduce the effective influence of the abundant category from which the system learns much of its sequential structure. The result is a tradeoff, instead of an instruction to maximize the purchase reward.

These experiments show that the reward head can steer learning. They do not identify a universally appropriate purchase-to-click ratio. The suitable setting depends on the data, the desired behavior, and the stability of the resulting updates.

#### Equal rewards still leave a benefit

The equal-reward setting is especially informative. With the purchase-to-click ratio set to 1, the proposed frameworks still outperform the ordinary GRU recommender in the reported analysis.

For SAC’s purchase prediction on RC15, the numerical comparison is the approximate HR@10 result already shown. Its significance is conceptual: the extra learning objective can help without distinguishing interaction categories by immediate reward.

The authors attribute this remaining benefit to learning about cumulative reward. Even if every immediate event has the same reward, states and actions can differ in their relationship to subsequent events. The continuation component of the temporal-difference target introduces information absent from immediate next-item cross-entropy.

This does not isolate every possible cause of the improvement. Adding a second learning task also changes representation training. The controlled result supports the narrower claim that purchase upweighting alone is insufficient to explain the observed gain.

#### Some future reward helps, but more is not always better

The discount-factor analysis uses GRU on RC15 and reports HR@10 and NDCG@10 for clicks and purchases. The authors state that RetailRocket follows similar trends.

When γ is 0, the temporal-difference target considers only immediate reward. As γ increases from that setting, performance improves. The authors interpret this as support for including information about later interactions.

At larger discount factors, performance decreases. The paper relates this behavior to session length: the average sequence length in the two datasets is 6. A setting suited to much longer control trajectories need not suit these short interaction histories.

The authors mention 0.95 and 0.99 as common discount settings in game-control contexts and argue for a smaller value in their recommendation setting. Their reported default is 0.5.

The practical lesson is about matching the temporal horizon to the data. A large discount factor does not simply mean that the system takes the future more seriously in a beneficial way. It also increases reliance on bootstrapped continuation estimates, which may be poorly supported at the relevant horizon.

The result supports a contribution from future-reward learning within the offline task. It does not directly establish improved engagement over a long period of real use. The observed metrics remain next-event ranking measures.

#### Direct Q-value ranking performs worse

The authors also test generating recommendations solely from Q-values. To make that comparison more favorable to ranking, they add uniformly sampled unseen items with negative rewards.

This matters because it addresses an obvious objection to positive-only Q-learning: perhaps the value learner simply needs explicit negative examples. The comparison does provide such examples, although their negative status is imposed by sampling rather than observed as user dislike.

With GRU on RC15, the Q-learning-only approach performs worse than the ordinary GRU recommender on HR@10 and NDCG@10. SQN and SAC perform better by using Q-learning as a regularizer or critic while preserving supervised ranking output.

This is one of the clearest pieces of evidence for the architectural division of labor. The value estimates can be useful to training without being effective as the final catalog-wide ordering.

The result does not establish that direct value-based recommendation is impossible. It evaluates a particular offline setup and comparison. Its force is local but important: within the paper’s experiments, replacing the supervised ranking mechanism with Q-value ranking is not what produces the improvement.

#### What remains unseparated

The paper does not report a dedicated comparison removing double Q-learning while holding the rest of SQN fixed. Nor does it present a systematic study of the SAC warm-up threshold or gradient stopping.

Those choices are explained as stability measures, but their individual contributions are not quantified by the reported analyses. The strongest controlled evidence concerns reward emphasis, temporal discounting, and which head produces recommendations.

Likewise, the recurrence, convolution, and attention integrations test portability of the training framework. They do not isolate a single representational mechanism shared by all architectures. The experiments show that the approach can help across those interfaces, while leaving the internal route of improvement less directly examined.

### Limitations

#### The authors leave deployment outcomes untested

The authors explicitly identify online evaluation as future work. This is the most important boundary on the conclusions.

An offline log shows what happened under earlier behavior. The evaluation asks whether the new system ranks those recorded next items well. It does not show how users would respond to a different sequence of recommendations.

Accordingly, improved purchase prediction is not equivalent to increased purchasing. A better-ranked purchase item might help a user find something useful, but the experiment does not observe that intervention. The same distinction applies to engagement and satisfaction: both motivate the reinforcement-learning formulation, but neither is directly measured as a deployment outcome.

The paper also proposes future experiments involving recommendation diversity and video watching time. These are examples of what a flexible reward function could target. They are not demonstrated capabilities of the reported e-commerce systems.

The authors additionally leave set-based recommendation for later work. Their present method scores individual items and returns the highest-ranked candidates. It does not optimize the joint effect of the displayed set as a separate action.

#### The claim about unbiased values requires care

The authors repeatedly describe their action-value estimator as unbiased and use that description to motivate the regularizer and critic roles. They also acknowledge that logged states are biased and explicitly set aside bias associated with temporal-difference learning steps.

A careful reading should preserve these qualifications. Their argument is not evidence that all action values are correctly estimated across the catalog or that the learned policy is free of offline-data bias.

The experiments themselves show why the distinction matters. Direct use of Q-values for ranking performs poorly, even after adding sampled negatives. The method succeeds by limiting how those values are used.

The safest conclusion is that a value-learning objective can improve the supervised recommender under the evaluated conditions. The paper does not establish a general statistical guarantee that its shared representation or final rankings recover the outcomes of an unbiased online experiment.

Nor does retaining supervised output make the historical data representative of every possible future state. The final predictor still learns from the histories available in the log. Its auxiliary objective also depends on transitions within those histories.

#### Missing interactions remain ambiguous

The supervised softmax supplies a negative gradient signal for competing candidates, but that signal should not be confused with explicit negative feedback. The user may have ignored an item, never encountered it, or preferred it under circumstances absent from the log.

This limitation is inherent in the paper’s implicit-feedback setting. The architecture finds a useful way to learn rankings in spite of missing dislike labels; it does not recover those labels.

The direct Q-learning comparison introduces another ambiguity. Uniformly sampled unseen items are assigned negative rewards, but unseen does not necessarily mean unwanted. The comparison tests the usefulness of that training construction rather than the consequences of learning from verified negative preferences.

For the same reason, the reward function reflects a chosen interpretation of recorded events. Treating a purchase as more valuable than a click can be appropriate for the experiment’s objective, but it does not measure every dimension of usefulness to the person interacting with the system.

#### The datasets constrain the meaning of purchase

The RetailRocket event mapping deserves explicit caution. Adding an item to a cart is treated as a purchase category during training and evaluation. That creates a consistent label scheme across experiments, but it does not turn cart activity into completed transactions.

RC15 and RetailRocket therefore support related but distinct statements. The former evaluates prediction of recorded purchases; the latter evaluates prediction of cart additions under purchase-style reward terminology.

The filtering and sampling also define the population being tested. Short sequences are removed, and RetailRocket items with very few interactions are excluded. The reported results consequently concern the retained sequences and catalog, instead of every situation in the original services.

This matters for sparse-history settings. The method is evaluated after preprocessing that ensures a minimum amount of sequential activity. The experiments do not separately establish performance for users with no history or for items outside the retained interaction data.

#### The evaluation is a sequence split

The authors randomly partition sequences into training, validation, and test sets. This supports held-out sequence evaluation, but differs from a deployment study in which the system is trained on earlier activity and assessed on later activity.

A careful reader should therefore avoid interpreting the split as a test of robustness to temporal change. The paper does not separately examine changing catalogs, shifting preferences, or changes in the policy that generates future logs.

The full-catalog ranking protocol is a strength because it avoids making the candidate task artificially small. Nonetheless, a realistic candidate universe does not by itself resolve the mismatch between predicting recorded actions and evaluating new recommendation decisions.

Repeated runs and significance testing address variability within the experimental protocol. They do not remove the underlying observational limits of that protocol.

#### Reward choices can create competing pressures

The reward-ratio experiments show that steering towards purchases has limits. Large differences between event rewards can hurt both stability and predictive performance.

This means the reward function is not merely an external statement of intent that the system obeys without cost. It changes the optimization landscape and the relative influence of different training events.

SAC adds dependence on the quality of the critic. If estimated values are unreliable, they can assign the wrong importance to prediction examples. The warm-up and stopped gradient are responses to that risk, but the paper does not provide a general rule for determining when the critic is reliable enough.

The method also combines objectives that may favor different parameter changes. The prediction task seeks accurate continuation rankings; the value-learning task seeks consistency with its reward-based targets. Their shared encoder makes transfer possible, but the paper does not show that this transfer is beneficial for every reward definition.

#### The evidence supports portability within a defined interface

The experiments span several sequence architectures, which supports the claim that SQN and SAC are not tied to one encoder. However, compatibility with a sequence-to-state interface is not the same as verified effectiveness in every recommendation setting.

All reported datasets concern e-commerce events. The authors’ discussion of video, novelty, and diversity explains potential applications rather than measured generalization to those domains.

Similarly, the paper says other supervised losses can be used, but the experiments described here use cross-entropy. An alternative loss might change the balance between ranking pressure and reward learning.

The resulting contribution is substantial but bounded: a shared encoder with separate prediction and value-learning heads improves the reported offline recommendation tasks. Claims about other feedback structures, objectives, and deployment conditions require their own evidence.

### What came after

No specific later study can be identified as a documented continuation of this paper within the citation record available for discussion. A citation-based account of subsequent developments would therefore require evidence beyond the work considered here.

The paper itself leaves a clear set of open directions. Online tests would examine whether improved prediction of recorded events translates into better outcomes when recommendations influence user behavior. Experiments with diversity or watching-time rewards would test whether the same training arrangement remains useful when the objective changes. Extending the action to a recommendation set would address interactions among items displayed together.

These directions follow directly from the method’s design. Its promise is that an established prediction objective can be retained while a separate reward-learning objective changes what the shared representation emphasizes. Its unresolved question is how reliably that arrangement carries beyond offline next-item evaluation into settings where the system’s choices alter the data it will later observe.

## Cite

Cite as Xin Xin, Alexandros Karatzoglou, Ioannis Arapakis and Joemon M. Jose. 2020. Self-Supervised Reinforcement Learning for Recommender Systems. International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1145/3397271.3401147](https://doi.org/10.1145/3397271.3401147) · [arXiv 2006.05779](https://arxiv.org/abs/2006.05779)

```bibtex
@inproceedings{xin2020self,
  title = {{Self-Supervised Reinforcement Learning for Recommender Systems}},
  author = {Xin Xin, Alexandros Karatzoglou, Ioannis Arapakis and Joemon M. Jose},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR)},
  year = {2020},
  doi = {10.1145/3397271.3401147},
  eprint = {2006.05779},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1145/3397271.3401147}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
