Introduction
Modern session-based recommender systems typically rely on supervised learning (SL) to predict a user's next interaction. While effective for immediate clicks, SL is inherently "greedy" and often fails to optimize for long-term objectives like total purchases or user retention. Reinforcement Learning (RL) offers a framework for maximizing cumulative rewards, but its application in recommendation is hindered by off-policy training challenges, massive action spaces, and biased Q-values.
This paper introduces two novel frameworks, Supervised Negative Q-learning (SNQN) and Supervised Advantage Actor-Critic (SA2C), designed to bridge the gap between SL and RL. By integrating negative sampling and advantage-based metrics, these frameworks mitigate common biases and achieve state-of-the-art performance.
Proposed Architectures
The core of the proposal is a shared-architecture approach where a base sequential model (such as a GRU or Transformer) generates a hidden state that feeds into two distinct "heads": a supervised head and an RL head.
Supervised Negative Q-learning (SNQN)
Unlike traditional methods that only perform Q-learning on positive user interactions, SNQN introduces negative sampling. By sampling items the user did not interact with and assigning them a reward of zero, the RL head is forced to learn a more robust ranking function. This acts as a regularizer, helping the model distinguish between relevant and irrelevant items more effectively than standard supervised approaches.
Supervised Advantage Actor-Critic (SA2C)
SA2C builds upon SNQN by replacing raw Q-values with the concept of Advantage. Instead of using raw values to re-weight the supervised "actor," SA2C calculates how much better a specific action is compared to the average of sampled actions. This normalization removes biases introduced by varying session lengths and timestamps, providing a cleaner signal for optimization.
Key Insights
- RL as a Regularizer: The RL head pushes the supervised model to prioritize high-value outcomes (like purchases) rather than just any interaction.
- The Power of Negatives: Explicitly teaching the model that unobserved items have zero reward significantly improves the ranking quality of the Q-values.
- Advantage over Raw Value: Using the Advantage (Action Value - Average Value) provides a more stable training signal by accounting for the temporal context of the session.
Experimental Results
The frameworks were evaluated on the RC15 (RecSys Challenge 2015) and RetailRocket datasets using various base models, including GRU, Caser, and SASRec.
Performance Gains
- Consistency: SA2C consistently achieved the highest scores in Hit Rate (HR@k) and Normalized Discounted Cumulative Gain (NDCG@k) across nearly all test cases.
- Efficiency: SNQN demonstrated faster convergence than previous self-supervised RL methods like SQN, as the negative signals provide a clearer gradient early in training.
- Quantifiable Impact: On the RC15 dataset with a GRU base, SA2C improved the purchase NDCG@5 from 0.2824 to 0.3297, representing a substantial leap in recommendation quality.
Conclusion
By combining the stability of supervised learning with the long-term perspective of reinforcement learning, SNQN and SA2C offer a powerful path forward for session-based recommendation. Future work may explore more complex reward structures—such as diversity or novelty—and more sophisticated "hard" negative sampling strategies to further refine model performance.
Summary updated