ProtoX: Explaining a Reinforcement Learning Agent via Prototyping
Ronilo J. Ragodos, Tong Wang, Qihang Lin, Xun Zhou
Abstract
While deep reinforcement learning has proven to be successful in solving control tasks, the "black-box" nature of an agent has received increasing concerns. We propose a prototype-based post-hoc policy explainer, ProtoX, that explains a blackbox agent by prototyping the agent's behaviors into scenarios, each represented by a prototypical state. When learning prototypes, ProtoX considers both visual similarity and scenario similarity. The latter is unique to the reinforcement learning context, since it explains why the same action is taken in visually different states. To teach ProtoX about visual similarity, we pre-train an encoder using contrastive learning via self-supervised learning to recognize states as similar if they occur close together in time and receive the same action from the black-box agent. We then add an isometry layer to allow ProtoX to adapt scenario similarity to the downstream task. ProtoX is trained via imitation learning using behavior cloning, and thus requires no access to the environment or agent. In addition to explanation fidelity, we design different prototype shaping terms in the objective function to encourage better interpretability. We conduct various experiments to test ProtoX. Results show that ProtoX achieved high fidelity to the original black-box agent while providing meaningful and understandable explanations.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext a906c685-fedc-4684-86b9-8cb00d0535f0Cited by top-tier papers4
- Temporal Prototype-Aware Learning for Active Voltage Control on Power Distribution NetworksFeiyang Xu, Shunyu Liu, Yunpeng Qing, Yihe Zhou et al.KDD 2024 · 2 citations
- ProtoPairNet: Interpretable Regression through Prototypical Pair ReasoningRose Gurung, Ronilo J. Ragodos, Chiyu Ma, Tong Wang et al.NeurIPS 2025 · 1 citation
- Reward Design for Justifiable Sequential Decision-MakingAleksa Sukovic, Goran RadanovicICLR 2024
- PRISM: Prototype-based Reasoning with Inter-modal Semantic Mining for Interpretable Image RecognitionAnni Yu, Yu-Bin YangCVPR 2026
Builds on6
- Bootstrap Your Own Latent - A New Approach to Self-Supervised LearningJean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec et al.NeurIPS 2020 · 9,171 citations
- Explainable Reinforcement Learning through a Causal LensPrashan Madumal, Tim Miller, Liz Sonenberg, Frank VetereAAAI 2020 · 408 citations
- EDGE: Explaining Deep Reinforcement Learning PoliciesWenbo Guo, Xian Wu, Usmann Khan, Xinyu XingNeurIPS 2021 · 79 citations
- Intrinsic Reward Driven Imitation Learning via Generative ModelXingrui Yu, Yueming Lyu, Ivor W. TsangICML 2020 · 63 citations
- xGAIL: Explainable Generative Adversarial Imitation Learning for Explainable Human Decision AnalysisMenghai Pan, Weixiao Huang, Yanhua Li, Xun Zhou et al.KDD 2020 · 28 citations
Related papers
- This State Looks Like That: Self-Interpretable Reinforcement Learning Agents using Prototype Soft Actor-CriticAndrea Marzo, Alessio Ragno, Roberto CapobiancoICML 2026
- Towards Interpretable Deep Reinforcement Learning with Human-Friendly PrototypesEoin M. Kenny, Mycal Tucker, Julie ShahICLR 2023
- Reinforcement Learning with Prototypical RepresentationsDenis Yarats, Rob Fergus, Alessandro Lazaric, Lerrel PintoICML 2021 · 262 citations
- Consistent Zero-Shot Imitation with Contrastive Goal InferenceKathryn Wantlin, Chongyi Zheng, Benjamin EysenbachICML 2026 · 1 citation
- This Looks Like Those: Illuminating Prototypical Concepts Using Multiple VisualizationsChiyu Ma, Brandon Zhao, Chaofan Chen, Cynthia RudinNeurIPS 2023 · 53 citations
