TL;DR
Evaluating the interpretability of reinforcement learning (RL) policies usually requires expensive, subjective human user studies with conflicting definitions. This paper introduces an automated, human-free evaluation methodology that distills deep RL experts into standardized, "unfolded" Python programs to measure proxy metrics for human simulatability (inference time and policy file size). Evaluating roughly 40,000 distilled policies across 16 tasks reveals that no single policy class consistently dominates the interpretability–performance trade-off.
What Problem Does This Paper Address?
In safety-critical applications like medicine and autonomous systems, RL agents must be interpretable so humans can understand, trust, and verify their behavior. However, evaluating policy interpretability faces major bottlenecks:
- High cost and subjectivity: User studies are expensive, ethically complex, and hard to reproduce across different populations.
- Ambiguous definitions: Interpretability has multiple dimensions. For instance, is a model interpretable if a human can quickly trace a single step's decision, or if they can comprehend the entire model at once?
- Execution artifacts: Prior automated comparisons directly ran policies in frameworks like PyTorch or scikit-learn. Library and hardware overheads masked model complexity, making small models look deceptively heavy.
The authors set out to develop an empirical, human-free benchmarking framework that aligns with cognitive notions of "simulatability" without relying on human trials.
Methods
The proposed pipeline consists of three primary steps:
- Expert Generation: Utilize pre-trained deep neural network experts (PPO, SAC, DQN) from Stable-Baselines3 Zoo.
- Imitation Learning / Distillation: Compress experts into simpler student policy classes using Behavior Cloning, DAgger, and Q-DAgger. Student classes include:
- Linear / Logistic regressions
- Decision Trees (CART with 4 to 128 nodes)
- Oblique Decision Trees (linear splits at nodes)
- Shallow ReLU MLPs (hidden dimensions from $2\times2$ to $16\times16$)
- Policy "Unfolding" into Python: Rather than evaluating models inside compiled libraries, every policy is translated into a standardized, PEP 8–compliant, sequential Python script consisting purely of raw arithmetic operations and explicit
if/elsestatements. - Simulatability Proxy Metrics:
- Step Inference Time (s): Proxies how fast a human can mentally execute the math/logic for a single state observation.
- Policy Size (bytes): Proxies how much code a human must read to inspect the whole policy.
- Verification Time: Measures the runtime of formal SMT solvers (Marabou 2.0) checking safety properties over state-action bounds.
[ Deep RL Expert (PPO / SAC / DQN) ]
│
▼ (DAgger / Q-DAgger Distillation)
[ Student Policies: Tree, Oblique Tree, Linear, MLP ]
│
▼ (Unfolding into raw Python AST)
[ Standardized Python Scripts (PEP 8, no matrix libs) ]
│
┌────────────────┴────────────────┐
▼ ▼
[ Step Inference Time ] [ Policy Size (bytes) ]
(Single-decision tracing) (Global policy inspection)
Datasets
The authors evaluated policies across three RL benchmark suites comprising 16 environments:
- Classic Control (8 envs): CartPole, MountainCar (discrete/continuous), Acrobot, Pendulum, LunarLander (discrete/continuous), BipedalWalker.
- MuJoCo Continuous Control (4 envs): Swimmer, Walker2d, HalfCheetah, Hopper.
- OCAtari Object-Centric Atari (4 envs): Breakout, Pong, SpaceInvaders, Seaquest (using object feature representations rather than raw pixel tensors to enable interpretability).
The generated policy dataset—encompassing approximately 40,000 baseline policies—has been open-sourced as the interpretable-rl-zoo.
Key Insights and Ideas
- Unfolding is mandatory for fair benchmarking: Native library representations ("folded" models) showed near-constant size and runtime regardless of whether a tree had 4 or 128 nodes. Unfolding into raw sequential code restored the expected scaling: larger models translated to directly measurable increases in file size and execution time.
- The "most interpretable" class depends on how you define it:
- If simulatability means evaluating a single action, decision trees win because execution only traverses a single root-to-leaf path.
- If simulatability means understanding the entire model globally, compact ReLU MLPs often beat deep decision trees because wide/deep trees require thousands of bytes of branching rules.
- No universal Pareto winner: There is no single policy class that consistently achieves the best reward-to-interpretability trade-off. For LunarLander, compact MLPs delivered the best trade-off; for Pong, decision trees did.
- Environment dimensionality dominates distillability: Fitting a random forest to predict policy interpretability showed that environment state dimension accounted for 80.87% of feature importance for step inference time. High-dimensional tasks (e.g., Seaquest, 180 state dims) failed to yield any solved interpretable policies.
Key Results
- Distillation performance: DAgger significantly outperformed Behavior Cloning across Classic Control (IQM normalized score $>0.90$) and MuJoCo. Simple imitation learning, however, struggled to match experts on high-dimensional tasks (MuJoCo and OCAtari IQMs remained below 0.35).
- Solvability thresholds: Interpretable baselines successfully solved low-to-medium dimensional environments like Pong (20 dims) and HalfCheetah (17 dims), but none solved Seaquest (180 dims).
- Formal verification scaling: SMT verification times using Marabou 2.0 scaled exponentially with the proxy interpretability metrics (inference time and byte size) for MLPs, demonstrating strong cross-validation with established formal explainability metrics.
Limitations and Future Work
- Language format specificity: Unfolding was restricted to sequential Python. Alternative representation formats (such as ONNX or domain-specific languages) were left for future work.
- Cross-model verification comparisons: Decision trees require distinct solvers (e.g., Z3) compared to piecewise linear MLPs (e.g., Marabou), preventing direct solver runtime comparisons across distinct policy families.
- Imitation capacity bounds: Because distillation struggled on complex MuJoCo and Atari environments, future work must explore whether reinforcement learning directly into programmatic policies (rather than post-hoc distillation) can close the performance gap.
Summary updated