arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.23723cs.CLcs.AIcs.LG
收藏

ML-Agent: 通过强化学习增强大语言模型代理以实现自主机器学习工程

ML-Agent: Reinforcing LLM Agents for Autonomous Machine Learning Engineering

Shanghai Jiao Tong University(上海交通大学);Shanghai AI Laboratory(上海人工智能实验室)

Zexi Liu, Jingyi Chai, Xinyu Zhu, Shuo Tang, Rui Ye, Bo Zhang, Lei Bai, Siheng Chen

AI总结:

本文提出基于强化学习的代理机器学习框架,通过探索增强微调、分步强化学习和专用奖励模块,训练出性能媲美大模型但成本更低的ML-Agent,实现跨任务泛化。

摘要:

大语言模型(LLM)基于代理的出现显著推动了自主机器学习(ML)工程的发展。然而,主导的提示基于范式存在局限:小模型无法从执行轨迹中学习以实现泛化,而大专有模型则导致高计算开销,限制了可访问性和扩展性。针对此,我们首次探索基于学习的代理ML范式,其中LLM代理通过在线强化学习(RL)在ML任务上进行交互式实验学习。为此,我们提出一个新颖的代理ML训练框架,包含三个关键组件:(1)探索增强微调,使LLM代理能够生成多样化动作以增强RL探索;(2)分步RL,使单个动作步骤的训练加速经验收集并提高训练效率;(3)专用代理ML奖励模块,将各种ML反馈信号统一为一致的奖励以供RL优化。利用此框架,我们训练出ML-Agent,由7B规模的Qwen-2.5 LLM驱动,实现自主ML。尽管仅在9个ML任务上训练,我们的7B规模ML-Agent在性能上可与使用更大专有LLM(如GPT-5)的代理相媲美,但计算成本显著更低,展示了强大的性能和跨任务泛化能力。

英文摘要:

The emergence of large language model (LLM)-based agents has significantly advanced the development of autonomous machine learning (ML) engineering. However, the dominant prompt-based paradigm exhibits limitations: smaller models lack the capacity to learn from execution trajectories for generalization, while large proprietary models incur high computational overhead, restricting accessibility and scalability. Focusing on this, for the first time, we explore the paradigm of learning-based agentic ML, where an LLM agent learns through interactive experimentation on ML tasks using online reinforcement learning (RL). To realize this, we propose a novel agentic ML training framework with three key components: (1) exploration-enriched fine-tuning, which enables LLM agents to generate diverse actions for enhanced RL exploration; (2) step-wise RL, which enables training on a single action step, accelerating experience collection and improving training efficiency; (3) an agentic ML-specific reward module, which unifies varied ML feedback signals into consistent rewards for RL optimization. Leveraging this framework, we train ML-Agent, driven by a 7B-sized Qwen-2.5 LLM for autonomous ML. Despite training on only 9 ML tasks, our 7B-sized ML-Agent achieves comparable performance to agents using much larger proprietary LLMs (e.g., GPT-5) but at significantly lower computational cost, demonstrating strong performance and cross-task generalization.

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

↑