arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.16024cs.AI
收藏

SMAC-R1:决策任务中智能的涌现

SMAC-R1: The Emergence of Intelligence in Decision-Making Tasks

College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Mathematics and Statistics, Xi’an Jiaotong University(西安交通大学数学与统计学院)

Yue Deng, Weiyu Ma, Yuxin Fan, Ruyi Song, Yin Zhang, Haifeng Zhang, Jian Zhao

AI总结:

本文提出SMAC-R1,利用DeepSeek LLM生成决策树代码并自我反思,通过SFT和GRPO算法微调Qwen2.5-7B-Base,以最少探索生成高可解释且具强迁移性的决策脚本,为决策任务提供新范式。

摘要:

StarCraft Multi-Agent Challenge (SMAC) 一直是多智能体强化学习 (MARL) 中最常用的实验环境之一,其具体任务是控制一定数量的盟军单位击败敌方部队。传统的 MARL 算法通常需要与环境交互数百万步来训练参数化模型,其产生的策略通常不可解释且迁移性较弱。本文提出了 SMAC-R1,该方法基于从 DeepSeek-Coder-v2.5-236B 蒸馏而来的 Qwen2.5-7B-Base LLM。类似于离线学习中行为克隆后的在线强化学习,在我们的流程中,智能体利用 DeepSeek LLM 通过提供任务描述来生成决策树代码,并利用环境提供的奖励反馈进行进一步自我反思。在此基础上,我们扩充生成的脚本以微调小型 LLM Qwen2.5-7B-Base,通过监督微调 (SFT) 蒸馏决策能力,并利用分组相对策略优化 (GRPO) 算法增强脚本生成能力。我们在原始的 23 个 SMAC 任务和 10 个新设计的任务中进行了实验,证明我们的方法能以最少的环境探索产生高质量、可解释的决策树。此外,这些脚本展现出强大的迁移性,无需修改即可成功应用于同构的 SMAC 环境。我们相信该方法为未来解决决策任务和领域特定 LLM 训练流程提供了新方向。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑