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

面向机器学习工程智能体的强化学习

Reinforcement Learning for Machine Learning Engineering Agents

Stanford University(斯坦福大学)

Sherry Yang, Joy He-Yueya, Percy Liang

AI总结:

针对机器学习工程智能体依赖静态大模型无法随经验提升的问题,提出时长感知梯度更新和环境插桩方法,用RL训练小模型,在12个Kaggle任务上性能超越更大的静态模型22%。

摘要:

现有用于解决机器学习工程等任务的智能体依赖于对强大语言模型进行提示调优,因此这类智能体无法随着经验积累而提升性能。本文中,我们证明由较弱模型支撑、通过强化学习(RL)实现能力提升的智能体,性能可以超越由规模大得多但静态不变的模型支撑的智能体。我们明确了该场景下应用强化学习面临的两大挑战。首先,动作的执行时长不固定(例如针对不同解决方案执行代码的时长不同),这会导致异步策略梯度更新更偏向速度更快但效果次优的解决方案。为应对时长可变的动作问题,我们在分布式异步强化学习框架中提出了时长感知梯度更新方法,用以放大高成本但高回报的动作的作用。其次,仅使用测试集性能作为奖励提供的反馈十分有限:接近正确的程序和完全失败的程序会被同等对待。为解决这一问题,我们提出环境插桩方法以提供部分奖励,区分接近正确的程序和早期就失败(例如在数据加载阶段失败)的程序。环境插桩使用一个独立的静态语言模型,在现有程序中插入打印语句以记录智能体的实验进度,从中提取部分奖励作为学习的奖励信号。我们在MLEBench上的实验结果表明,对经过RL训练的规模小得多的模型(Qwen2.5-3B)执行梯度更新,其性能优于使用智能体脚手架对规模大得多的模型(Claude-3.5-Sonnet)进行提示调优的方案,在12个Kaggle任务上平均提升22%。

英文摘要:

Existing agents for solving tasks such as ML engineering rely on prompting powerful language models. As a result, these agents do not improve with more experience. In this paper, we show that agents backed by weaker models that improve via reinforcement learning (RL) can outperform agents backed by much larger, but static models. We identify two major challenges with RL in this setting. First, actions can take a variable amount of time (e.g., executing code for different solutions), which leads to asynchronous policy gradient updates that favor faster but suboptimal solutions. To tackle variable-duration actions, we propose duration-aware gradient updates in a distributed asynchronous RL framework to amplify high-cost but high-reward actions. Second, using only test split performance as a reward provides limited feedback. A program that is nearly correct is treated the same as one that fails entirely. To address this, we propose environment instrumentation to offer partial credit, distinguishing almost-correct programs from those that fail early (e.g., during data loading). Environment instrumentation uses a separate static language model to insert print statement to an existing program to log the agent's experimental progress, from which partial credit can be extracted as reward signals for learning. Our experimental results on MLEBench suggest that performing gradient updates on a much smaller model (Qwen2.5-3B) trained with RL outperforms prompting a much larger model (Claude-3.5-Sonnet) with agent scaffolds, by an average of 22% across 12 Kaggle tasks.

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

↑