STACHE: Local Black-Box Explanations for Reinforcement Learning Policies

Andrew Elashkin, Orna Grumberg
12/10/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Reinforcement learning agents often behave unexpectedly in sparse-reward or safety-critical environments, creating a strong need for reliable debugging and verification tools. In this paper, we propose STACHE, a comprehensive framework for generating local, black-box explanations for an agent's specific action within discrete Markov games. Our method produces a Composite Explanation consisting of two complementary components: (1) a Robustness Region, the connected neighborhood of states where the agent's action remains invariant, and (2) Minimal Counterfactuals, the smallest state perturbations required to alter that decision. By exploiting the structure of factored state spaces, we introduce an exact, search-based algorithm that circumvents the fidelity gaps of surrogate models. Empirical validation on Gymnasium environments demonstrates that our framework not only explains policy actions, but also effectively captures the evolution of policy logic during training - from erratic, unstable behavior to optimized, robust strategies - providing actionable insights into agent sensitivity and decision boundaries.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{elashkin2025stache,
  title  = {STACHE: Local Black-Box Explanations for Reinforcement Learning Policies},
  author = {Andrew Elashkin and Orna Grumberg},
  year   = {2025},
  eprint = {2512.09909},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.09909v1}
}

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/2512.09909.svg)](https://codeofpaper.com/paper/2512.09909)

Discussion