Putting the Iterative Training of Decision Trees to the Test on a Real-World Robotic Task
Raphael C. Engelhardt, Marcel J. Meinen, Moritz Lange, Laurenz Wiskott, Wolfgang Konen
TL;DR
Problem and approach: This work tests an iterative method to distill DTs from a DRL policy for a real-world robotic control task (CartPole Swing-Up). It uses an alternating loop where DTs guide exploration of the state space and a DRL agent supplies the correct actions, producing labeled samples for DT training; the real-world CPSU task introduces noise and delays not present in simulation. Key findings: after 10 iterations, the best DT achieved $\overline{R}=7594.87 \\pm 826.85$ on five evaluation episodes, closely matching the DRL oracle at $\overline{R}=7138.83 \\pm 1517.47$, and could be pruned to about 36% fewer parameters than the DQN; base sampling required careful curation to avoid bias toward upright states. Significance: the results demonstrate the feasibility of distilling transparent, lightweight DTs from DRL controllers for real-world reinforcement learning tasks.
Abstract
In previous research, we developed methods to train decision trees (DT) as agents for reinforcement learning tasks, based on deep reinforcement learning (DRL) networks. The samples from which the DTs are built, use the environment's state as features and the corresponding action as label. To solve the nontrivial task of selecting samples, which on one hand reflect the DRL agent's capabilities of choosing the right action but on the other hand also cover enough state space to generalize well, we developed an algorithm to iteratively train DTs. In this short paper, we apply this algorithm to a real-world implementation of a robotic task for the first time. Real-world tasks pose additional challenges compared to simulations, such as noise and delays. The task consists of a physical pendulum attached to a cart, which moves on a linear track. By movements to the left and to the right, the pendulum is to be swung in the upright position and balanced in the unstable equilibrium. Our results demonstrate the applicability of the algorithm to real-world tasks by generating a DT whose performance matches the performance of the DRL agent, while consisting of fewer parameters. This research could be a starting point for distilling DTs from DRL agents to obtain transparent, lightweight models for real-world reinforcement learning tasks.
