RecXplainer: Post-Hoc Attribute-Based Explanations for Recommender Systems

Sahil Verma, Anurag Beniwal, Narayanan Sadagopan, Arjun Seshadri

TL;DR

This paper introduces RecXplainer, a novel post-hoc and model-agnostic method for generating attribute-based explanations for recommender systems. Unlike existing methods that explain recommendations based on item similarity or user-user similarity, RecXplainer explains why an item is recommended by focusing on the user's preferences for specific attributes of that item, leading to more personalized and trustworthy recommendations.

What Problem Does This Paper Address?

Recommender systems are integral to our digital lives, powering everything from movie suggestions to online shopping. However, many of these systems are "black boxes," making it difficult for users and even developers to understand why a particular recommendation is made. While previous research has shown that explanations enhance user trust and satisfaction, most existing methods provide "item-style" explanations (e.g., "Because you liked X, we recommend Y") or "user-style" explanations (e.g., "Users similar to you liked Z"). These approaches fail to capture a user's nuanced preferences over the attributes of items, which is a more intuitive way for humans to understand recommendations. Furthermore, many explainability methods are model-specific or require retraining complex models, which is impractical for large-scale, pre-trained recommender systems.

Methods

RecXplainer tackles this challenge by proposing a post-hoc and model-agnostic approach to generate attribute-based explanations. The core idea is to train a separate "auxiliary model" that learns to predict a user's rating for an item based on the user's embedding (from the original recommender system) and the item's attribute vector. This auxiliary model is trained on existing user-item interaction data.

To generate an explanation for a recommended item, RecXplainer uses the trained auxiliary model to assess the importance of each attribute of that item to the user's predicted rating. It does this by systematically "removing" (setting to zero) each attribute and observing the resulting drop in the predicted rating. Attributes that cause a larger drop in predicted rating are considered more important to the user's preference for that item. This allows RecXplainer to generate explanations like, "We recommend this movie because you like Action movies."

The paper also introduces ten new evaluation metrics to assess the quality of attribute-based explanations, focusing on both "coverage" (how well explanations align with user history and recommendations) and "personalization" (how well explanations reflect individual user preferences).

Datasets

The primary dataset used for experiments and evaluation is MovieLens-100K. This dataset contains 100,000 ratings for 1682 movies from 943 users, along with movie genres. The authors used 70% of this data for training their recommender system and the auxiliary model, and the remaining 30% for testing. No new benchmarks were introduced; instead, the authors focused on developing new evaluation metrics for existing explainability techniques.

Key Insights and Ideas

  • Attribute-level explanations are more intuitive: Users naturally think about their preferences in terms of item attributes (e.g., genre, actor, director), making attribute-based explanations more understandable and persuasive than item-to-item or user-to-user comparisons.
  • Post-hoc and model-agnostic is crucial for real-world systems: The ability to generate explanations without retraining existing, complex recommender models is a significant practical advantage.
  • Popularity bias is a challenge for evaluation: Popular genres or attributes can artificially inflate coverage metrics, making it difficult to assess true personalization. The paper's proposed metrics aim to address this by focusing on personalized preference proxies.
  • New metrics are needed for attribute-based explainability: Existing metrics are often insufficient or not well-justified for evaluating the quality of attribute-based explanations, necessitating the development of new, more robust evaluation methods.

Key Results

RecXplainer demonstrated strong performance across the board, particularly in personalization metrics. While global popularity baselines achieved the highest "coverage" (meaning they could explain a large proportion of items), RecXplainer significantly outperformed them and other baselines on metrics measuring the personalization of explanations. For instance, RecXplainer achieved the best or second-best performance on most personalization metrics, indicating that its explanations are tailored to individual user preferences. The paper also highlights that existing methods like LIME-RS and AMCF performed poorly on several metrics, with LIME-RS even underperforming a random baseline on coverage.

Limitations and Future Work

The main limitation acknowledged is the computational cost of training the auxiliary model. However, the authors note that in their experiments, training three different auxiliary model architectures was very fast, taking less than 10 minutes on a laptop.

Future work could involve conducting user studies to directly validate the effectiveness and persuasiveness of RecXplainer's explanations, as this would provide a "gold standard" for evaluating personalization beyond proxy metrics. The authors also suggest that their framework could be extended to incorporate other types of attributes beyond genres.

Summary updated

BibTeX
@inproceedings{verma2022recxplainer,
  author = {Sahil Verma and Anurag Beniwal and Narayanan Sadagopan and Arjun Seshadri},
  title = {{RecXplainer: Post-Hoc Attribute-Based Explanations for Recommender Systems}},
  booktitle = {TEA @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=1-rCv9xeK2U},
}
Figure