Abstract
This paper introduces a post-hoc framework designed to generate personalized, causal explanations for black-box recommender systems. By employing a Variational Auto-Encoder (VAE) to simulate counterfactual user histories, the model identifies specific items in a user's past that truly triggered a recommendation. Experimental results on MovieLens and Amazon datasets show that the proposed CR-VAE framework achieves over 95% explanation fidelity across various state-of-the-art sequential recommendation models.
Introduction
Modern recommender systems, while highly accurate, often operate as "black boxes," making it difficult to understand the reasoning behind specific suggestions. Existing explainability approaches generally fall into two categories: model-intrinsic methods, which often sacrifice recommendation performance for transparency, and association-based methods, which frequently mistake correlation for causation.
This research addresses the need for post-hoc causal explanations. The goal is to answer the counterfactual question: "If the user's behavior history had been slightly different, would the recommendation have changed?" By identifying the true causal triggers in a user's history, the system can provide explanations that are both personalized and faithful to the underlying recommendation logic.
Methods
The proposed framework treats the recommendation model as a black box and operates in two distinct stages:
1. The Perturbation Model (VAE)
To determine the "cause" of a recommendation, the system must experiment with variations of user history. The authors utilize a Variational Auto-Encoder (VAE) to generate "counterfactual histories." Unlike standard Auto-Encoders, the VAE learns the distribution of real user histories, allowing it to sample hundreds of synthetic histories that are realistic yet slightly different from the original.
2. Causal Rule Learning
These synthetic histories are fed into the target recommendation model. A Causality Mining Model then analyzes the relationship between the input items and the resulting recommendations.
- Time Decay: The model incorporates a weight decay parameter ($\gamma$), reflecting the intuition that recent interactions typically have a stronger causal influence than older ones.
- Personalized Mining: Causality is mined at the individual user level, ensuring that explanations are tailored to specific user contexts rather than relying on global trends.
Experimental Setup
The framework was evaluated using two benchmark datasets:
- MovieLens 100k: A standard dataset for movie recommendation.
- Amazon (Office Products): A dataset filtered for sequential recommendation, requiring users to have at least 15 interactions.
The explanations were tested against four state-of-the-art sequential recommendation models: FPMC, GRU4Rec, NARM, and Caser.
Key Results
The primary metric for evaluation was fidelity—the degree to which the generated explanations match the internal logic of the black-box model.
- High Fidelity Performance: The proposed CR-VAE model consistently achieved fidelity scores between 95% and 98% across all tested recommendation models and datasets. This significantly outperforms traditional association rule (AR) methods, which often struggle to reach 40% fidelity.
- Causal Validation: Using the Average Causal Effect (ACE) metric, the authors confirmed that the items identified as "causes" had a statistically significant impact on the recommendation outcomes.
- Robust Perturbations: The VAE-based approach produced counterfactual histories that were more representative of real-world user behavior compared to simpler deterministic perturbation methods (like CR-AE).
Conclusion and Future Work
The CR-VAE framework provides a powerful method for extracting causal explanations from complex, black-box recommenders without compromising their accuracy. While currently focused on item-level causality, future work aims to incorporate feature-level data (e.g., genres, directors) and leverage natural language processing to provide even more nuanced, human-readable explanations. Additionally, optimizing the computational overhead of generating counterfactual samples remains a key area for scaling the system to real-time production environments.
Summary updated