CSRec: Rethinking Sequential Recommendation from A Causal Perspective.

Xiaoyu Liu, Jiaxin Yuan, Yuhang Zhou, Jingling Li, Furong Huang, Wei Ai · DOI

Abstract

The essence of sequential recommender systems (RecSys) lies in understanding how users make decisions. Most existing approaches frame the task as sequential prediction based on users' historical purchase records. While effective in capturing users' natural preferences, this formulation falls short in accurately modeling actual recommendation scenarios, particularly in accounting for how unsuccessful recommendations influence future purchases. Furthermore, the impact of the RecSys itself on users' decisions has not been appropriately isolated and quantitatively analyzed. To address these challenges, we propose a novel formulation of sequential recommendation, termed Causal Sequential Recommendation (CSRec). Instead of predicting the next item in the sequence, CSRec aims to predict the probability of a recommended item's acceptance within a sequential context and backtrack how current decisions are made. Critically, CSRec facilitates the isolation of various factors that affect users' final decisions, especially the influence of the recommender system itself, thereby opening new avenues for the design of recommender systems. CSRec can be seamlessly integrated into existing methodologies. Experimental evaluations on both synthetic and real-world datasets demonstrate that the proposed implementation significantly improves upon state-of-the-art baselines.

Introduction

Traditional sequential recommender systems (SR) typically operate by analyzing a user's purchase history to predict the next likely item. However, this approach suffers from two primary limitations. First, it exhibits a "Success Only" bias, learning primarily from positive interactions and ignoring the valuable information contained in rejected recommendations. Second, it treats the recommender system as a passive observer rather than an active intervention that shapes user exposure and decisions.

CSRec reframes sequential recommendation as a causal intervention. By modeling how users decide to accept or reject recommendations—and accounting for the system's own influence—it significantly improves the accuracy of predicting user behavior in real-world, "recommender-in-the-loop" scenarios.

Methodology: Causal Sequential Recommendation

The core of CSRec is a Directed Acyclic Graph (DAG) that models the decision-making process over time. In this framework, a user's decision at time $t$ ($D_t$) is influenced by their inherent preference ($P_t$), the system's recommendation ($S_t$), and their previous decision ($D_{t-1}$).

Causal Directed Acyclic Graph (DAG) for sequential recommendation.

Using Pearl’s causal calculus, the task is formulated as estimating the interventional distribution: $P(D_t | do(S_t, S_{t-1}, ...), P_t)$. This represents the outcome if the system were to force specific recommendations. The authors derive a causal constraint using a Lagrangian multiplier, allowing this structure to be integrated into existing neural architectures like SASRec or BERT4Rec. Additionally, a new metric, Treatment Effect in Recommendation (TER), is introduced to quantify the system's specific influence on purchase probability.

Experimental Evaluation

The model was evaluated on two datasets: the Spotify Sequential Music (MSSD) dataset, comprising 160 million sessions split into observational and interventional data, and GPT4-books, a synthetic dataset where GPT-4 acts as a user agent to provide a controlled environment for interventional analysis.

Key Results

The integration of CSRec leads to substantial improvements in modeling user decisions, particularly in interventional scenarios where standard models struggle.

Performance comparison on the Spotify dataset.

On the Spotify dataset, CSRec improved the accuracy of modeling user decisions by 64% when integrated into the WSDM Cup-winning model. In the GPT4-books simulation, the Adjusted Hit Rate (AHR) improved by nearly 3x compared to baselines. Crucially, these gains in causal modeling do not come at the expense of traditional performance metrics like HR@k or NDCG on observational data.

Discussion and Conclusion

CSRec shifts the paradigm of sequential recommendation from pattern matching to causal reasoning. By treating recommendations as "pokes" or interventions, the system can distinguish between natural user preference and system-induced bias. The inclusion of rejection signals ("zeros") allows the model to learn the boundaries of user preferences more effectively. While currently focused on offline training, CSRec offers a universal "plug-and-play" formulation that enhances the causal grounding of state-of-the-art recommenders without requiring a total redesign.

Summary updated

BibTeX
@inproceedings{liu2024csrec,
  author = {Xiaoyu Liu and Jiaxin Yuan and Yuhang Zhou and Jingling Li and Furong Huang and Wei Ai},
  title = {{CSRec: Rethinking Sequential Recommendation from A Causal Perspective.}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2024},
  doi = {10.1145/3726302.3729940},
}
Figure