RL-LLM-DT: An Automatic Decision Tree Generation Method Based on RL Evaluation and LLM Enhancement

Junjie Lin, Jian Zhao, Lin Liu, Yue Deng, Youpeng Zhao, Lanxiao Huang, Xia Lin, Wengang Zhou, Houqiang LiarXiv 2024 · DOI

Abstract

This paper introduces RL-LLM-DT, a framework that automates the creation of high-performance, interpretable decision trees for game AI. By leveraging Reinforcement Learning (RL) to stress-test strategies and Large Language Models (LLMs) to diagnose failures and rewrite code, the authors developed a curling AI that outperformed human-designed strategies and topped a competitive leaderboard. The method addresses the classic trade-off between the performance of "black-box" RL agents and the interpretability of decision trees by creating a self-evolving loop that refines human-readable code.

1. Introduction

In the development of game AI, researchers often face a dilemma between performance and interpretability. While Reinforcement Learning (RL) can produce superhuman agents, their decision-making processes are typically opaque "black boxes." Conversely, Decision Trees (DTs) offer high stability and interpretability but are notoriously difficult to construct manually, especially when accounting for complex edge cases and adversarial tactics. RL-LLM-DT aims to close this loop by automating the iterative design of decision trees, allowing an AI to "self-evolve" its strategy through a combination of adversarial testing and linguistic reasoning.

2. The RL-LLM-DT Framework

The core of the RL-LLM-DT framework is a three-part iterative loop designed to refine a strategy from a simple baseline to a complex, robust agent.

The RL-LLM-DT framework: an iterative loop between LLM-based coding, RL-based stress testing, and LLM-driven strategic refinement.

2.1 LLM Coder

The process begins with the LLM Coder, which translates high-level tactical descriptions into executable Python code. Using specific prompts that define game rules and API interfaces, the coder generates the initial logic for the decision tree.

2.2 RL Debugger

Once a decision tree is implemented, the RL Debugger employs Proximal Policy Optimization (PPO) to train a "challenger" agent. This challenger is specifically optimized to find flaws in the current DT. When the DT loses, the system records "lose trajectories"—the specific sequences of moves and states where the strategy failed.

2.3 LLM Critic

The LLM Critic acts as the strategic brain of the system. It analyzes the game rules, the current DT code, and the failure logs provided by the RL Debugger. By identifying the root causes of failure (e.g., inappropriate aggression or defensive lapses), it proposes revised tactical descriptions to be implemented by the Coder in the next iteration.

3. Experimental Evaluation

The framework was evaluated using a virtual curling simulation hosted on the Jidi platform, a professional AI competition site. Curling provides a strategically deep environment with physics-based interactions.

Visualizing "lose trajectories" where the RL debugger successfully identifies flaws in the current decision tree strategy.

3.1 Performance and Robustness

The final evolved agent, Tree III, was tested against 34 other curling AIs. It achieved a dominant ranking of 1st place with a score of 0.93, significantly outperforming a human-designed tree which scored 0.80.

A key finding was the emergence of complex tactics. Starting from a simple "throw to center" rule, the system independently discovered advanced strategies such as obstacle stone protection and specialized final-turn maneuvers. Furthermore, as iterations progressed, the RL Debugger found it increasingly difficult to exploit the DT, indicating a substantial increase in strategic robustness.

4. Conclusion and Future Work

RL-LLM-DT demonstrates that LLMs can bridge the gap between raw game data and high-level tactical reasoning. By using RL as a diagnostic tool rather than the final product, the framework maintains the interpretability of the resulting agent while achieving state-of-the-art performance. Future work will focus on reducing the reliance on domain-specific prompts and scaling the iterative DT generation to more complex environments like e-sports.

Summary updated

BibTeX
@misc{lin2024rl,
  author = {Junjie Lin and Jian Zhao and Lin Liu and Yue Deng and Youpeng Zhao and Lanxiao Huang and Xia Lin and Wengang Zhou and Houqiang Li},
  title = {{RL-LLM-DT: An Automatic Decision Tree Generation Method Based on RL Evaluation and LLM Enhancement}},
  year = {2024},
  eprint = {2412.11417},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.11417},
}
Figure