A Reinforcement Learning Method to Factual and Counterfactual Explanations for Session-based Recommendation
Han Zhou, Hui Fang, Zhu Sun, Wentao Hu
TL;DR
The paper tackles the opacity of session-based recommender systems by introducing FCESR, a model-agnostic framework that generates both factual and counterfactual explanations for SR predictions using reinforcement learning. It reframes explanation generation as a combinatorial optimization problem solved within an MDP, and then uses the derived explanations as high-quality positive and negative samples in a contrastive learning setup to boost SR accuracy. Extensive experiments across three datasets and five SR backbones show that FCESR improves recommendation performance while delivering meaningful, concise explanations, bridging interpretability and usefulness. This approach advances trustworthy SR by providing true explanations and demonstrating practical gains through explanation-informed training.
Abstract
Session-based Recommendation (SR) systems have recently achieved considerable success, yet their complex, "black box" nature often obscures why certain recommendations are made. Existing explanation methods struggle to pinpoint truly influential factors, as they frequently depend on static user profiles or fail to grasp the intricate dynamics within user sessions. In response, we introduce FCESR (Factual and Counterfactual Explanations for Session-based Recommendation), a novel framework designed to illuminate SR model predictions by emphasizing both the sufficiency (factual) and necessity (counterfactual) of recommended items. By recasting explanation generation as a combinatorial optimization challenge and leveraging reinforcement learning, our method uncovers the minimal yet critical sequence of items influencing recommendations. Moreover, recognizing the intrinsic value of robust explanations, we innovatively utilize these factual and counterfactual insights within a contrastive learning paradigm, employing them as high-quality positive and negative samples to fine-tune and significantly enhance SR accuracy. Extensive qualitative and quantitative evaluations across diverse datasets and multiple SR architectures confirm that our framework not only boosts recommendation accuracy but also markedly elevates the quality and interpretability of explanations, thereby paving the way for more transparent and trustworthy recommendation systems.
