From Top-1 to Top-K: A Reproducibility Study and Benchmarking of Counterfactual Explanations for Recommender Systems

Quang-Huy Nguyen, Thanh-Hai Nguyen, Khac-Manh Thai, Duc-Hoang Pham, Huy-Son Nguyen +4 more
4/21/2026
cs.IRcs.LG

Official code: L2R-UET/CFExpRec (6 stars, last commit 2026-04-19).

Abstract

Counterfactual explanations (CEs) provide an intuitive way to understand recommender systems by identifying minimal modifications to user-item interactions that alter recommendation outcomes. Existing CE methods for recommender systems, however, have been evaluated under heterogeneous protocols, using different datasets, recommenders, metrics, and even explanation formats, which hampers reproducibility and fair comparison. Our paper systematically reproduces, re-implement, and re-evaluate eleven state-of-the-art CE methods for recommender systems, covering both native explainers (e.g., LIME-RS, SHAP, PRINCE, ACCENT, LXR, GREASE) and specific graph-based explainers originally proposed for GNNs. Here, a unified benchmarking framework is proposed to assess explainers along three dimensions: explanation format (implicit vs. explicit), evaluation level (item-level vs. list-level), and perturbation scope (user interaction vectors vs. user-item interaction graphs). Our evaluation protocol includes effectiveness, sparsity, and computational complexity metrics, and extends existing item-level assessments to top-K list-level explanations. Through extensive experiments on three real-world datasets and six representative recommender models, we analyze how well previously reported strengths of CE methods generalize across diverse setups. We observe that the trade-off between effectiveness and sparsity depends strongly on the specific method and evaluation setting, particularly under the explicit format; in addition, explainer performance remains largely consistent across item level and list level evaluations, and several graph-based explainers exhibit notable scalability limitations on large recommender graphs. Our results refine and challenge earlier conclusions about the robustness and practicality of CE generation methods in recommender systems: https://github.com/L2R-UET/CFExpRec.

View on arXivView PDF

Code Implementations(1)

L2R-UET/CFExpRecOfficial100%
61Python, Jupyter NotebookApr 3, 20266 months ago

Similar Papers

Cite this paper

@article{nguyen2026from,
  title  = {From Top-1 to Top-K: A Reproducibility Study and Benchmarking of Counterfactual Explanations for Recommender Systems},
  author = {Quang-Huy Nguyen and Thanh-Hai Nguyen and Khac-Manh Thai and Duc-Hoang Pham and Huy-Son Nguyen and Cam-Van Thi Nguyen and Masoud Mansoury and Duc-Trong Le and Hoang-Quynh Le},
  year   = {2026},
  eprint = {2604.19663},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.19663v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.19663.svg)](https://codeofpaper.com/paper/2604.19663)

Discussion