cs.LGMar 24, 2026

BXRL: Behavior-Explainable Reinforcement Learning

Authors: Ram Rachum, Yotam Amitai, Yonatan Nakar, Reuth Mirsky, Cameron Allen

Organizations: University of California, Berkeley · Tufts University · Independent Researcher · Google Research

Abstract

A major challenge of Reinforcement Learning is that agents often learn undesired behaviors that seem to defy the reward structure they were given. Explainable Reinforcement Learning (XRL) methods can answer queries such as "explain this specific action", "explain this specific trajectory", and "explain the entire policy". However, XRL lacks a formal definition for behavior as a pattern of actions across many episodes. We provide such a definition, and use it to enable a new query: "Explain this behavior". We present Behavior-Explainable Reinforcement Learning (BXRL), a new problem formulation that treats behaviors as first-class objects. BXRL defines a behavior measure as any function m:Π→Rm : Π\to \mathbb{R}, allowing users to precisely express the pattern of actions that they find interesting and measure how strongly the policy exhibits it. We define contrastive behaviors that reduce the question "why does the agent prefer aa to a′a'?" to "why is m(π)m(π) high?" which can be explored with differentiation. We do not implement an explainability method; we instead analyze three existing methods and propose how they could be adapted to explain behavior. We present a port of the HighwayEnv driving environment to JAX, which provides an interface for defining, measuring, and differentiating behaviors with respect to the model parameters.

Figures & tables

Appendix figures & tables1 asset

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Evaluating RL Explainability Methods by How Much They Help Fix Bugs in Agents

    Aug 18, 2026Ram Rachum, Yotam Amitai, Bálint Gyevnár +2Explainability EvaluationInterpretability in RL

  2. Explaining Reinforcement Learning Agents via Inductive Logic Programming

    Jul 15, 2026Celeste Veronese, Edoardo Zorzi, Daniele Meli +1Interpretability in RLExplainability Evaluation