Learning Post-Hoc Causal Explanations for Recommendation

Shuyuan Xu, Yunqi Li, Shuchang Liu, Zuohui Fu, Yongfeng ZhangarXiv 2020

TL;DR

This paper introduces a novel post-hoc method to generate causal explanations for black-box sequential recommender systems. By creating counterfactual scenarios and mining causal rules, their approach provides personalized and more effective explanations than traditional association rules, without sacrificing recommendation accuracy.

What Problem Does This Paper Address?

Modern recommender systems, especially those based on deep learning, achieve impressive accuracy but often act as "black boxes." This lack of transparency makes it difficult for users to understand why a particular item is recommended, hindering trust and user satisfaction. While explainable recommendation systems aim to solve this, existing methods either require complex model redesign (model-intrinsic) or offer explanations that are not always personalized or truly causal. This paper tackles the challenge of providing personalized, causal explanations for existing, opaque sequential recommendation models.

Methods

The proposed approach combines two key components:

  1. VAE-based Perturbation Model: To understand the causal impact of past items on future recommendations, the authors need to explore "what-if" scenarios. They use a Variational Auto-Encoder (VAE) to learn a distribution of user interaction sequences. By sampling from this learned distribution, they generate perturbed versions of a user's history. These perturbed histories, along with the original one, are then fed into the black-box recommender system to generate corresponding recommendations. This process creates counterfactual examples.
  2. Causal Rule Mining Model: This component takes the original and perturbed input-output pairs (history -> recommendation) for a user. It then employs a logistic regression model to learn causal dependencies between items in the history and the recommended item. The model learns weights (coefficients) that represent the strength of these causal relationships. Finally, it identifies the most likely causal explanation by selecting a historical item that has a strong causal link to the recommended item and was actually present in the user's original history.

Datasets

The authors evaluate their framework on two publicly available datasets:

  • MovieLens100k: A classic dataset containing user ratings for movies.
  • Amazon Product Data: A dataset of user-item interactions from Amazon.

For both datasets, they split the data chronologically, using the last few interactions for testing and earlier ones for training. They also mention using pre-trained item embeddings derived from a BPRMF model.

Key Insights and Ideas

  • Causality over Correlation: The core idea is to move beyond simple item co-occurrence (association rules) to identify true causal links. This is crucial because correlation doesn't imply causation, and association rules can be misleading.
  • Counterfactuals are Key: Generating counterfactual examples (what would have happened if the user's history was slightly different) is essential for inferring causality. The VAE-based perturbation model is a novel way to achieve this for sequential data.
  • Personalized Explanations: Unlike global association rules, this method generates explanations tailored to individual user histories, making them more relevant and understandable.
  • Post-Hoc Flexibility: The approach works with any existing black-box sequential recommender system, offering explainability without requiring model retraining or redesign.

Key Results

  • High Model Fidelity: The proposed causal explanation framework achieves very high model fidelity (over 95% for most cases), meaning it can provide explanations for almost all recommendations. This is significantly better than association rule-based methods, which explain far fewer recommendations.
  • Causality Verification: Experiments show that over 90% of the extracted causal explanations satisfy a rigorous causality verification criterion (based on Pearl's do-calculus), indicating the quality and reliability of the explanations.
  • Robustness Across Models: The framework demonstrates consistent performance across different black-box sequential recommendation models (FPMC, GRU4Rec, Caser), suggesting its general applicability.
  • Parameter Sensitivity: The model's performance is sensitive to the time decay parameter ($\gamma$) and the number of perturbed samples ($m$). Optimal performance for fidelity was observed around $\gamma=0.7$, and a sufficient number of perturbations (e.g., $m=500$) is needed to achieve stable results.

Limitations and Future Work

  • Item-Level Explanations: The current work focuses solely on item-level causal relationships. The authors suggest future work could explore causal relations on feature-level external data, such as textual user reviews, to generate finer-grained explanations.
  • Computational Cost: While the VAE perturbation helps manage the combinatorial explosion of possible histories, generating a large number of perturbed samples can still be computationally intensive.
  • Defining "Cause": The paper defines a cause as an item in the user's history that influences the recommendation. Future work could explore more nuanced definitions of causality in the recommendation context.

Summary updated

BibTeX
@misc{xu2020learning,
  author = {Shuyuan Xu and Yunqi Li and Shuchang Liu and Zuohui Fu and Yongfeng Zhang},
  title = {{Learning Post-Hoc Causal Explanations for Recommendation}},
  year = {2020},
  eprint = {2006.16977},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.16977},
}
Figure