Contrastive Representation for Interactive Recommendation

Jingyu Li, Zhiyong Feng, Dongxiao He, Hongqi Chen, Qinghang Gao, Guoli Wu

Abstract

Interactive Recommendation (IR) systems leveraging Deep Reinforcement Learning (DRL) often struggle with sample inefficiency, requiring extensive user interactions to learn effective policies. We present Contrastive Representation for Interactive Recommendation (CRIR), a framework that integrates an auxiliary contrastive learning task to enhance representation learning. By ranking user interests through an attention-based State Representation Network and employing Preference Ranking Contrastive Learning (PRCL), CRIR significantly accelerates convergence and improves recommendation quality, particularly in cold-start scenarios.

Introduction

Interactive Recommendation is a sequential decision-making process where a system adapts to user feedback in real-time. While DRL provides a robust mathematical framework for IR, its practical application is hindered by high-dimensional state spaces and massive action spaces, leading to extreme "data hunger." In real-world settings, slow learning curves result in poor user experiences and churn. CRIR addresses this by extracting high-quality semantic information from interaction histories more efficiently through self-supervised auxiliary tasks.

Methodology

The CRIR framework consists of several key innovations designed to improve the agent's understanding of user preferences.

State Representation Network

The system employs a weighted sum attention mechanism to process interaction history. Unlike simple pooling, this network assigns "Interest Weights" to past behaviors, identifying which historical actions are most relevant to the current context. This allows the agent to focus on significant user signals.

Preference Ranking Contrastive Learning (PRCL)

PRCL serves as an auxiliary task that runs alongside DRL training. It utilizes the learned Interest Weights to rank historical behaviors. Top-ranked behaviors are treated as "positive pairs," while lower-ranked ones serve as "negative pairs" for contrastive learning. This self-supervised signal helps the model distinguish between varying levels of user interest.

Overview of the CRIR framework and the PRCL process.

Positional Weighted InfoNCE Loss

To account for the fact that user interests are not binary, we introduce a Positional Weighted InfoNCE Loss. This loss function uses coefficients based on ranking positions to smooth the discrimination between items, acknowledging that some "negative" samples may still be relatively close to a user's true preference.

Experiments and Results

CRIR was evaluated using two industry-standard simulators: Virtual-Taobao, which models complex e-commerce interactions, and an enhanced ML-1M Simulator designed to test dynamic interest shifts.

Performance Metrics

The framework demonstrated superior performance across multiple metrics:

  • Sample Efficiency: In Virtual-Taobao, CRIR achieved high-performing policies by episode 8,000, whereas baselines like PPO and SAC failed to reach comparable levels even after 20,000 episodes.
  • Recommendation Quality: CRIR consistently outperformed specialized methods like DRR and NICF in terms of both cumulative rewards and Click-Through Rate (CTR).
  • Cold-Start Robustness: The auxiliary contrastive task proved particularly effective when the agent had zero prior knowledge, allowing for rapid adaptation to new users.
Performance comparison across Virtual-Taobao and ML-1M environments, including ablation and frequency studies.

Conclusion

CRIR effectively mitigates the sample inefficiency of DRL in interactive recommendation systems. By leveraging internal attention weights to generate self-supervised ranking signals, the framework enables faster learning of high-quality representations. Future work will focus on live-system deployment and exploring more advanced data augmentation techniques to further refine the contrastive learning process.

Summary updated

BibTeX
@inproceedings{li2025contrastive,
  author = {Jingyu Li and Zhiyong Feng and Dongxiao He and Hongqi Chen and Qinghang Gao and Guoli Wu},
  title = {{Contrastive Representation for Interactive Recommendation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i11.33313},
}
Figure