TL;DR
This paper demonstrates that Upside-Down Reinforcement Learning (UDRL)—a paradigm that treats RL as a supervised learning problem—doesn't require "black-box" neural networks to be effective. By swapping neural networks for tree-based models like Random Forests, the authors achieve competitive performance on classic control tasks while gaining the ability to see exactly which environmental features (like a pole's angle or a lander's height) are driving the agent's decisions.
What Problem Does This Paper Address?
Standard Deep Reinforcement Learning (DRL) has a transparency problem. Because it relies on complex Neural Networks (NNs), it is often impossible for humans to understand why an agent chooses a specific action. In high-stakes fields like healthcare, autonomous driving, or infrastructure management, this lack of interpretability is a major barrier to safety and trust.
The authors tackle this by leveraging Upside-Down Reinforcement Learning (UDRL). Unlike traditional RL, which learns to predict rewards, UDRL learns to predict the action needed to achieve a specific desired reward within a certain timeframe. Since UDRL essentially turns RL into a Supervised Learning (SL) task on tabular data, it opens the door to using inherently more interpretable models that typically excel at tabular tasks but are rarely used in deep RL.
Methods
The researchers replaced the standard neural network "behavior function" in UDRL with several alternative supervised learning algorithms:
- Tree-Based Ensembles: Random Forests (RF) and Extremely Randomized Trees (ET).
- Boosting Algorithms: AdaBoost and XGBoost.
- Instance-Based Learning: K-Nearest Neighbors (KNN).
The core of their approach is the UDRL framework, where the model is trained on a buffer of past experiences to map a state and a "command" (desired reward and time horizon) to an action. To measure interpretability, they used Mean Impurity Decrease, a technique for tree-based models that calculates "feature importance" scores, revealing which parts of the environment the agent is prioritizing at any given moment.
Datasets
The models were evaluated on three classic optimal control benchmarks from the OpenAI Gym library, listed in increasing order of difficulty:
- CartPole: Balancing a pole on a moving cart.
- Acrobot: Swinging a two-link robot arm to reach a certain height.
- Lunar Lander: Navigating a spacecraft to a soft landing on the moon's surface.
Key Insights and Ideas
- Tabular Strengths: UDRL transforms the RL problem into a tabular data problem. Since tree-based models (like RF and XGBoost) often outperform neural networks on tabular data, they are a natural, yet previously overlooked, fit for the UDRL framework.
- Performance Parity: You don't have to sacrifice much performance for transparency. Tree-based models performed "just as well" as NNs across the benchmarks.
- Dynamic Importance: Interpretability isn't static. The authors found that what an agent cares about changes during an episode. For example, in the Lunar Lander task, the agent's focus shifts from vertical position to velocity and angle as it nears the ground.
- Inherent vs. Post-hoc: While NNs require complex "post-hoc" techniques to explain their decisions (which can be unfaithful to the model), tree-based models provide intrinsic global explanations through feature importance.
Key Results
The study found that tree-based methods are surprisingly robust in the UDRL setting:
- Lunar Lander Surprise: On the most complex task (Lunar Lander), the Random Forest model actually outperformed the Neural Network at inference time, achieving a higher average reward (~ -54 vs ~ -157).
- Training Efficiency: As shown in Figure 2, while NNs often start training faster, tree-based ensembles like RF and XGBoost frequently catch up or surpass them in final reward stability.
- Feature Importance: The authors successfully extracted "why" the agents acted. In CartPole, the pole's angular velocity ($\dot{\theta}$) was consistently the most critical feature for the Random Forest agent. In Acrobot, the angular velocities of the two links were the primary drivers of decision-making.
Limitations and Future Work
The primary limitation is the complexity of the environments. The benchmarks used (CartPole, Lunar Lander) have low-dimensional, numerical state spaces. It remains unknown how well tree-based UDRL would scale to high-dimensional "spatial" data, such as the pixel inputs used in Atari games, where convolutional neural networks currently reign supreme.
Future research directions suggested by the authors include:
- Testing these models on more complex, high-dimensional environments.
- Integrating more advanced explanation tools like Shapley values or Decision Predicate Graphs to provide even deeper insights into the "logic" of the learned policies.
- Exploring how these interpretable policies can be used to guarantee safety in autonomous systems.
Summary updated