arXiv · 2512.09909
STACHE: Local Black-Box Explanations for Reinforcement Learning Policies
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.
Explore related subjects
Keep this discovery
Andrew Elashkin, Orna Grumberg. 2025-12-10. STACHE: Local Black-Box Explanations for Reinforcement Learning Policies. https://arxiv.org/abs/2512.09909
Cite the original work for its findings. Save a collection to share your selection of sources.