Published August 3, 2026 | Version v1

Explaining Agents' Interactions through their Causal Behavior and Counterfactuals

  • 1. ROR icon Mälardalen University

Description

Reinforcement learning (RL) agents often operate as black boxes, making it difficult to understand their decision-making in dynamic environments. This study proposes a novel framework for explainable RL based on structural causal models (SCMs). Here, the approach learns an SCM of the environment dynamics and reward process in a mobile network simulator (mobile-env), and uses this causal model to generate counterfactual explanations and perform interventions to understand agent behavior. The approach demonstrates that the learned SCM can closely approximate the environment’s transition dynamics while remaining interpretable. By leveraging do-calculus and counterfactual reasoning, our framework explains the long-term effects of actions through causal chains and highlights key influential factors. Experiments on a wireless network control task show that our method provides meaningful explanations for agent decisions (e.g., why a given action yields a higher reward), with minimal loss in policy performance. The study also presents comparative evaluations against baseline explanation approaches and discusses how our SCM-based explanations improve transparency and trust in RL policies.

Files

Explaining Agent Interactions through their Causal Behavior and Counterfactuals.pdf

Additional details

Funding

European Commission
HIVEMIND - Human-centred collaboratIVE MultI-ageNt framework for accelerating software Development and maintenance 101189745