Abstract
Deep Reinforcement Learning (DRL) has demonstrated remarkable success in solving complex control tasks, yet the resulting policies are often opaque "black boxes," hindering their adoption in safety-critical applications. This paper introduces RGMDT, a novel algorithm designed to extract highly interpretable Decision Tree (DT) policies from pre-trained DRL models. By framing the extraction process as a non-Euclidean clustering problem and establishing a mathematically guaranteed bound on the performance loss—referred to as the "return gap"—RGMDT enables the creation of compact, human-readable policies that maintain near-expert performance in both single-agent and multi-agent environments.
Introduction
While DRL models can master intricate environments, their reliance on deep neural networks makes it nearly impossible for human operators to audit the reasoning behind specific actions. To address this, researchers frequently attempt to "distill" these policies into Decision Trees, which offer inherent interpretability through simple if-then logic. However, traditional distillation methods suffer from two primary limitations: they lack formal guarantees regarding performance degradation when trees are kept small, and they often fail in multi-agent settings where the behavioral shifts of one agent can catastrophically impact the collective strategy. RGMDT addresses these challenges by optimizing the tree structure specifically to minimize the return gap.
Methodology
Bounding the Return Gap
The core theoretical contribution of RGMDT is the proof that the performance gap between an expert DRL policy and an extracted DT is bounded by the average cosine distance between the action-value (Q-value) vectors of observations assigned to the same leaf node. This insight shifts the objective from simple imitation to a specific form of geometric optimization.
Non-Euclidean Clustering and SVM Splits
Rather than treating DT extraction as a standard supervised learning task, RGMDT approaches it as a clustering problem in a non-Euclidean metric space. The algorithm uses a neural network to group observations based on the cosine similarity of their Q-values. Because the directional alignment of Q-values is more critical for action selection than their absolute magnitude, this approach ensures that observations within a cluster share the same optimal action.
To construct the tree, RGMDT employs Support Vector Machines (SVM) at each internal node. These SVMs find optimal linear hyperplanes to separate the clusters, routing observations toward the appropriate leaf nodes. This method ensures that the tree grows in a way that directly respects the non-Euclidean structure of the policy's value space.
Multi-Agent Iterative Growth
In multi-agent reinforcement learning (MARL), agents are co-dependent; the optimal action for one agent depends on the policies of others. RGMDT handles this by growing trees across all agents iteratively. Instead of extracting trees in isolation, the algorithm grows trees level-by-level. When an agent's tree is expanded, its Q-values are updated to account for the current, partially-distilled policies of its teammates. This iterative process prevents the compounding errors that typically occur when multiple agents are simplified simultaneously.
Experimental Evaluation
Environments and Datasets
The authors evaluated RGMDT across a variety of benchmarks:
- Maze Environments: Custom grid-world tasks (Simple to Hard) built on the Mujoco engine. This included a multi-agent Predator-Prey task requiring coordination without explicit communication.
- D4RL Benchmarks: Standard continuous control tasks, including the Hopper and HalfCheetah environments, to test the algorithm's scalability to high-dimensional state spaces.
Key Results
- Performance with Minimal Complexity: In the "Hard Maze" task, RGMDT was the only method to successfully complete the objective when restricted to a maximum of 4 leaf nodes. With 8 or more nodes, it achieved performance parity with the original black-box DRL expert.
- Sample Efficiency: On the D4RL Hopper benchmark, RGMDT achieved a reward of 776.70 using only 80,000 samples and 64 nodes. In contrast, a standard CART baseline achieved only 448.85, even when provided with significantly more training data.
- Robustness: Ablation studies confirmed that cosine distance is a superior metric for this task. When noise was introduced to the Q-values, Euclidean-based methods failed, while RGMDT’s cosine-based approach remained stable.
Discussion and Future Work
RGMDT demonstrates that it is possible to maintain high performance in DRL while drastically reducing model complexity for the sake of interpretability. By treating extraction as a clustering problem in the Q-value space, the algorithm provides a principled way to balance the trade-off between tree size and agent return.
Currently, the framework's splits rely on SVM hyperplanes, which are more complex than single-feature axis-aligned splits. Future research will focus on adapting the method for regression trees to better handle continuous action spaces and exploring resampling modules to further improve sample efficiency. The ultimate goal is the deployment of these interpretable policies in real-world, resource-constrained domains such as robotics and healthcare, where human-verifiable logic is a prerequisite for adoption.
Summary updated