Mitigating Information Loss in Tree-Based Reinforcement Learning via Direct Optimization

Sascha Marton, Tim Grams, Florian Vogt, Stefan Lüdtke, Christian Bartelt, Heiner Stuckenschmidt

Reinforcement Learning (RL) has achieved incredible feats across various domains, but its most successful policies are usually deep neural networks—notorious "black boxes." In safety-critical fields like robotics or medicine, deploying an agent without understanding why it makes specific decisions is a significant risk.

To address this, researchers often turn to symbolic policies, particularly Decision Trees (DTs), which are compact and human-readable. However, standard DTs are non-differentiable, making them difficult to train using standard gradient descent. This paper introduces SYMPOL (SYMbolic tree-based on-POLicy RL), a novel method that allows RL agents to learn interpretable, axis-aligned decision tree policies directly through gradient descent, matching the performance of complex models without the typical information loss.

The Problem with Current Interpretable RL

Because standard decision trees cannot be easily optimized via gradient descent, researchers usually take one of two paths, both of which have significant drawbacks:

  1. Post-hoc Distillation: Train a complex neural network first, then try to approximate its behavior with a decision tree. This often leads to "information loss," where the resulting tree performs significantly worse than the original network.
  2. Soft Decision Trees (SDTs): Use "fuzzy," probabilistic splits that are differentiable. While easier to train, these are much harder for humans to interpret because they often use multiple features per split and probabilistic routing.

SYMPOL aims to bridge this gap by optimizing "hard," axis-aligned (single-feature split) decision trees directly during the RL training process.

The SYMPOL Approach

The core of SYMPOL is the integration of a differentiable tree structure into an on-policy RL framework (like PPO or A2C).

  • Direct Optimization: Instead of distilling a tree from a pre-trained network, SYMPOL treats the decision tree parameters (split features, thresholds, and leaf actions) as differentiable variables.
  • Straight-Through Operator: To handle the non-differentiable nature of "hard" splits (like rounding or hardmax), SYMPOL uses a "straight-through estimator." This allows gradients to flow through these operations during backpropagation while maintaining discrete, interpretable decisions during the forward pass.
Dense Decision Tree representation used to facilitate matrix operations and gradient-based learning.
  • Hybrid Actor-Critic: SYMPOL uses a tree-based Actor (the policy we want to interpret) but keeps a standard, high-complexity neural network as the Critic (the value function). This allows the agent to learn complex value estimations without sacrificing the interpretability of its actual behavior.
  • Training Stability: Training trees with gradients is notoriously unstable. The authors introduce a dynamic rollout buffer and dynamic batch size (via gradient accumulation) that grow as the agent gains expertise, providing more stable gradients as the policy becomes more refined.

Key Insights and Results

The authors evaluated SYMPOL on several standard RL benchmarks, including Classic Control tasks (CartPole, Acrobot, LunarLander) and MiniGrid (categorical, grid-based environments designed to test navigation and generalization).

Zero Information Loss

By optimizing the tree directly, SYMPOL ensures the "explanation" (the tree) is exactly what the agent is using to act. There is no gap between the optimized policy and the interpreted one. SYMPOL showed near-zero information loss between training and testing. In contrast, distillation methods (SA-DT) and discretized soft trees (D-SDT) suffered from massive performance drops when converted to interpretable forms.

SYMPOL maintains performance during testing (a), while distillation methods (b and c) suffer from severe information loss.

Interpretability as a Debugger

The authors demonstrate that symbolic policies can reveal "goal misgeneralization." In one case study, they showed that an agent solved a task not by understanding the goal, but by learning a "shortcut" (following a wall). This behavior was immediately obvious upon inspecting the SYMPOL tree but would have remained hidden in a neural network.

Competitive Performance

On control tasks like CartPole and Acrobot, SYMPOL achieved the maximum possible reward, matching the performance of Multi-Layer Perceptrons (MLPs) while using trees with an average of only ~50 nodes. Furthermore, decision trees have a natural inductive bias for categorical or grid-based data. In MiniGrid environments, SYMPOL consistently outperformed other tree-based methods and was competitive with full-complexity neural networks.

Limitations and Future Work

While SYMPOL represents a significant step forward for interpretable RL, it has a few limitations:

  • On-Policy Focus: The current work focuses on on-policy algorithms. Extending this to off-policy methods like Soft Actor-Critic (SAC) is a promising next step.
  • Tree Complexity: While the learned trees are small, highly complex environments might require deeper trees or "forests," which could eventually challenge the limits of human interpretability.
  • Optimization Stability: Even with the proposed stability tricks, gradient-based tree optimization remains more sensitive to hyperparameters than standard neural networks.

Ultimately, SYMPOL proves that we do not have to sacrifice performance for transparency, laying the foundation for a new class of interpretable, tree-based reinforcement learning.

Summary updated

BibTeX
@inproceedings{marton2025mitigating,
  author = {Sascha Marton and Tim Grams and Florian Vogt and Stefan Lüdtke and Christian Bartelt and Heiner Stuckenschmidt},
  title = {{Mitigating Information Loss in Tree-Based Reinforcement Learning via Direct Optimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=qpXctF2aLZ},
}
Figure