Compositional Concept-Based Neuron-Level Interpretability for Deep Reinforcement Learning

Zeyu Jiang, Hai Huang, Xingquan ZuoarXiv 2025 · DOI

Introduction

Deep Reinforcement Learning (DRL) has achieved remarkable success in complex tasks, yet its "black box" nature remains a significant barrier to deployment in safety-critical domains like medicine or autonomous driving. While existing explainability methods (XRL) often focus on post-hoc feature importance—identifying which input features influenced a specific decision—they frequently fail to elucidate the internal mechanisms of the neural network. This research addresses the challenge of neuron-level interpretability, seeking to establish a direct correspondence between internal neural activity and human-understandable semantic concepts.

Methodology

The proposed framework translates high-dimensional neural activations into interpretable logical "sentences." This process is structured into four primary stages:

  1. Concept Formalization: Defining "atomic concepts" as binary functions over the state space (e.g., "is horizontal velocity > 0.2?").
  2. Neuron Binarization: Continuous neuron activations are converted to binary values using a threshold ($\beta$). A neuron is considered active (1) if its activation exceeds $\beta$, and inactive (0) otherwise.
  3. Compositional Logic: Logical operators ($\land, \lor, \neg$) are employed to construct complex formulas from atomic concepts. For example, a neuron might represent (Height near ground ∨ High velocity) ∧ Slight left angle.
  4. Concept Matching via Beam Search: To navigate the vast space of potential logical formulas, the researchers use Beam Search to identify the formula with the highest Jaccard similarity (a measure of overlap) to a specific neuron's activation pattern across a large set of states.
The four-step framework for mapping neuron activations to compositional logical concepts.

Experimental Setup

The methodology was evaluated using standard benchmarks from the Gymnasium library, covering both discrete and continuous action spaces:

  • Blackjack-v1: A discrete decision-making task.
  • LunarLander-v3: A discrete control task for spacecraft landing.
  • LunarLander-Continuous-v2: A continuous version used to test robustness across different RL paradigms, comparing Deep Q-Networks (DQN) and Proximal Policy Optimization (PPO).

Key Insights

The analysis revealed several fundamental properties of the trained networks:

  • Functional Specialization: Neurons demonstrate clear specialization. In LunarLander, specific neurons were identified as "landing detectors" (tracking ground contact) or "attitude controllers" (tracking orientation).
  • Hierarchical Organization: The network appears to organize concepts hierarchically, with lower-level neurons detecting basic states and higher-level neurons integrating these into strategic triggers.
  • Algorithmic Consistency: Similar interpretable structures emerged regardless of whether the model was trained using DQN or PPO, suggesting that these concepts are intrinsic to the task solution rather than an artifact of the training algorithm.
  • Causal Validation: Beyond correlation, the researchers demonstrated causality by perturbing states to "flip" neuron activations, which predictably altered the agent's behavior (e.g., forcing a switch from a left engine fire to a main engine fire).

Results

The framework achieved high alignment between neurons and logical formulas. For example, Neuron 41 in the LunarLander environment exhibited a Jaccard similarity of 0.997 with its assigned concept, indicating near-perfect explanation by a specific logical rule. In Blackjack, the method identified neurons (e.g., Neuron 28) that perfectly encoded "Basic Strategy" rules for high-sum hands (17–21), directly influencing the "Stick" action.

Conclusion and Future Work

While providing a powerful tool for neuron-level interpretability, the current approach relies on manually defined atomic concepts. Future research should explore automated concept discovery to reduce human intervention. Additionally, while limiting formula length to five ensures readability, it may overlook more complex behaviors. Scaling this approach to massive transformer-based architectures remains a key computational challenge for future development.

Summary updated

BibTeX
@misc{jiang2025compositional,
  author = {Zeyu Jiang and Hai Huang and Xingquan Zuo},
  title = {{Compositional Concept-Based Neuron-Level Interpretability for Deep Reinforcement Learning}},
  year = {2025},
  eprint = {2502.00684},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.00684},
}
Figure