Explaining RL Decisions with Trajectories
Shripad Vilasrao Deshmukh, Arpan Dasgupta, Balaji Krishnamurthy, Nan Jiang, Chirag Agarwal, Georgios Theocharous, Jayakumar Subramanian
TL;DR
This work tackles explainability in offline RL by attributing a policy's decisions to encountered trajectories rather than to state features. It introduces a five-step trajectory attribution pipeline that encodes trajectories with sequence models into embeddings, clusters them, builds data embeddings for sets of trajectories, trains explanation policies on complementary data, and attributes decisions via cluster-level distances. Across grid-world, Seaquest, and HalfCheetah, the method yields semantically meaningful behaviours and scalable explanations, with a human study indicating substantial alignment between human intuition and the attributions. The findings suggest trajectory-based explanations can complement saliency methods, enabling trust and interpretability in real-world RL deployments.
Abstract
Explanation is a key component for the adoption of reinforcement learning (RL) in many real-world decision-making problems. In the literature, the explanation is often provided by saliency attribution to the features of the RL agent's state. In this work, we propose a complementary approach to these explanations, particularly for offline RL, where we attribute the policy decisions of a trained RL agent to the trajectories encountered by it during training. To do so, we encode trajectories in offline training data individually as well as collectively (encoding a set of trajectories). We then attribute policy decisions to a set of trajectories in this encoded space by estimating the sensitivity of the decision with respect to that set. Further, we demonstrate the effectiveness of the proposed approach in terms of quality of attributions as well as practical scalability in diverse environments that involve both discrete and continuous state and action spaces such as grid-worlds, video games (Atari) and continuous control (MuJoCo). We also conduct a human study on a simple navigation task to observe how their understanding of the task compares with data attributed for a trained RL policy. Keywords -- Explainable AI, Verifiability of AI Decisions, Explainable RL.
