Abstract
A fundamental challenge of recommendation systems (RS) is understanding the causal dynamics underlying users' decision making. Most existing literature addresses this problem by using causal structures inferred from domain knowledge. However, there are numerous phenomenons where domain knowledge is insufficient, and the causal mechanisms must be learnt from the feedback data. Discovering the causal mechanism from RS feedback data is both novel and challenging, since RS itself is a source of intervention that can influence both the users' exposure and their willingness to interact. Also for this reason, most existing solutions become inappropriate since they require data collected free from any RS. In this paper, we first formulate the underlying causal mechanism as a causal structural model and describe a general causal structure learning framework grounded in the real-world working mechanism of RS. The essence of our approach is to acknowledge the unknown nature of RS intervention. We then derive the learning objective from our framework and propose an augmented Lagrangian solver for efficient optimization. We conduct both simulation and real-world experiments to demonstrate how our approach compares favorably to existing solutions, together with the empirical analysis from sensitivity and ablation studies.
Introduction
Traditional recommendation algorithms are primarily designed to capture correlations in user behavior. However, the data they consume is inherently biased: the items a user interacts with are heavily influenced by what the Recommendation System (RS) chose to show them. In causal terms, the RS acts as an intervener, creating a feedback loop that obscures the user's true underlying intent.
This paper introduces CSL4RS, a novel framework that learns the underlying causal relationships between items (e.g., "buying a TV causes a need for a sound bar") directly from RS feedback data. By treating the RS as an "unknown intervention" and modeling user behavior as a mixture of competing causal and algorithmic mechanisms, the authors successfully recover true causal graphs and improve recommendation accuracy over standard sequential models.
The Challenge of RS as an Intervener
Standard causal discovery methods usually require data that is either intervention-free or has perfectly documented interventions. In the context of an active recommendation system, we rarely have either. We don't know if a user clicked a product because of an inherent causal need (intent) or simply because the RS pushed it to the top of their feed.
As shown in the figure above, the interaction is a cycle where exposure leads to clicks, which then feed back into the RS to determine future exposure. This makes it incredibly difficult to isolate the "independent mechanisms" of human decision-making from the algorithmic noise.
Methods: Modeling the Mixture of Mechanisms
The authors propose a Structural Causal Model (SCM) where the joint distribution of user feedback is factorized into a set of independent mechanisms.
Structural Causal Model (SCM)
In this framework, items are represented as nodes in a Directed Acyclic Graph (DAG). The relationship between items is defined by conditional probabilities. For example, the probability of purchasing a sound bar ($X_2$) is conditioned on the purchase of a TV ($X_1$).
Mixture of Competing Mechanisms
The core innovation of CSL4RS is the Mixture of Competing Mechanisms, which handles the unknown nature of the RS intervention:
- The Mixture Model: The likelihood of a user action is modeled as a competition between two "experts": the Causal Mechanism (the user's true intent) and the RS Mechanism (the algorithm's influence).
- The Stochastic Indicator: A latent indicator variable is introduced to "judge" which mechanism better explains a specific data point. To allow for gradient-based optimization of this discrete indicator, the authors utilize the Gumbel-Softmax reparameterization trick.
- Continuous DAG Constraint: To ensure the learned causal graph remains a DAG, the model adopts the "NOTEARS" approach, converting the hard combinatorial problem of acyclicity into a smooth functional constraint: $Tr(e^A) - d = 0$.
- Optimization: The system is solved using an Augmented Lagrangian procedure, allowing the model to scale to hundreds of variables (product types) where traditional search-based methods would fail.
Experimental Results
The authors evaluated CSL4RS on both real-world and synthetic datasets, including Walmart (Wmt Electronics) and Amazon (Amzn Electronics) sequences.
- Recommendation Accuracy: CSL4RS significantly outperformed baselines like Item2vec and GRU4Rec. On the Amazon Electronics dataset, Hit@1 improved from approximately 0.16 to 0.26, demonstrating that understanding causality is more effective than simple association mapping.
- Graph Recovery: In simulations with known ground-truth, CSL4RS achieved a much lower Structural Hamming Distance (SHD) compared to state-of-the-art causal discovery methods like NOTEARS and SDI.
- Ablation Study: Removing the RS intervention component (CSL4RS-RS) led to a significant drop in performance, confirming that explicitly modeling the "unknown intervention" of the recommender is critical for learning from biased feedback data.
Conclusion
CSL4RS shifts the perspective on recommendation data: instead of viewing RS influence as a nuisance to be "debiased," it treats the RS as a systematic intervention that helps identify cause-effect mechanisms through perturbed data. The model essentially filters out algorithmic noise to find the "pure" causal signal. This framework provides a foundation for more transparent and explainable AI, as the learned graphs offer a human-readable map of user intent, such as identifying a "Laptop" as a parent node to "Mouse" and "Webcam."
Summary updated