SMAC-R1: The Emergence of Intelligence in Decision-Making Tasks
Yue Deng, Weiyu Ma, Yuxin Fan, Ruyi Song, Yin Zhang, Haifeng Zhang, Jian Zhao
TL;DR
SMAC-R1 presents a planner– coder–critic pipeline that leverages a large language model to generate interpretable decision-tree scripts for SMAC tasks. Through scripted planning, code generation, and environment-driven critique, followed by SFT, DPO, and GRPO, the approach achieves high win rates with minimal exploration and demonstrates strong transferability across similar SMAC maps. The work emphasizes white-box interpretability, map- and unit-informed strategies, and data-efficient fine-tuning, offering a scalable direction for domain-specific LLM training and decision-making pipelines. Overall, SMAC-R1 shows that combining code-generation and reinforcement-learning-inspired refinement can yield robust, transferable decision-making policies in complex multi-agent domains.
Abstract
StarCraft Multi-Agent Challenge (SMAC) has been one of the most commonly used experimental environments in multi-agent reinforcement learning (MARL), where the specific task is to control a set number of allied units to defeat enemy forces. Traditional MARL algorithms often require interacting with the environment for millions of steps to train a parametric model, of which the resulting policies are typically non-interpretable with weak transferability. In this paper, we introduce SMAC-R1 which is based on the Qwen2.5-7B-Base LLM distilled from DeepSeek-Coder-v2.5-236B. Similar to online reinforcement learning after behavior cloning in offline learning process, in our pipeline, agents leverage the DeepSeek LLM to generate decision tree code by providing task descriptions, and the agents are further self-reflected using feedback from the rewards provided by the environment. Based on that, we augment the generated scripts to fine-tune a small LLM, Qwen2.5-7B-Base, to distill the decision-making ability via Supervised Fine-Tuning (SFT) and enhance the script generation ability by the Group Relative Policy Optimization (GRPO) algorithm. We conduct experiments in the original 23 SMAC tasks and 10 newly-designed tasks to demonstrate that our method can produce high-quality, interpretable decision trees with minimal environmental exploration. Moreover, these scripts exhibit strong transferability, successfully applying to homogeneous SMAC environments without modification. We believe this approach offers a new direction for solving decision-making tasks and domain-specific LLM training pipelines in the future.
