arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2508.04660cs.CL
收藏

将策略梯度与提示优化组合用于语言模型程序

Composing Policy Gradients and Prompt Optimization for Language Model Programs

University of Notre Dame(诺特大学);Stanford University(斯坦福大学);UC Berkeley(伯克利大学);Anyscale;CMU(卡内基梅隆大学);Zoom, Inc.(Zoom公司);Contextual AI;MIT(麻省理工学院)
Noah Ziems, Dilara Soylu, Lakshya A Agrawal, Isaac Miller, Liheng Lai, Chen Qian, Kaiqiang Song, Meng Jiang, Dan Klein, Matei Zaharia, Karel D'Oosterlinck, Chri… 展开作者

Noah Ziems, Dilara Soylu, Lakshya A Agrawal, Isaac Miller, Liheng Lai, Chen Qian, Kaiqiang Song, Meng Jiang, Dan Klein, Matei Zaharia, Karel D'Oosterlinck, Christopher Potts, Omar Khattab

AI总结:

本文研究了如何将GRPO与自动提示优化结合,以提升多提示程序的性能,实验表明这种组合在分类、多跳搜索和隐私保护委托任务中平均提升准确率11%。

摘要:

组相对策略优化(GRPO)已被证明是训练后语言模型(LMs)的有效工具。然而,AI系统越来越多地以模块化程序形式出现,混合多个具有不同提示模板和其他工具的LM调用,不清楚从业者如何最好地利用在线RL算法如GRPO来改进这些系统。我们开始通过研究是否可以有效地实例化GRPO用于任意多提示程序,并探讨其作为通用优化器在相同抽象和约束下对LM程序的鲁棒性。我们的主要多模块GRPO变体通过模块级调用构建组,并考虑轨迹级分组作为另一种自然实例化。我们首次发现GRPO(及其多模块对应物)在与自动提示优化结合时表现良好,共同在分类、多跳搜索和隐私保护委托任务中平均提升准确率11%,相对于仅使用提示优化的5%提升。我们开源了多模块GRPO在DSPy库中,网址为https://dspy.ai。

英文摘要:

Group Relative Policy Optimization (GRPO) has proven to be an effective tool for post-training language models (LMs). However, AI systems are increasingly expressed as modular programs that mix together multiple LM calls with distinct prompt templates and other tools, and it is not clear how practitioners can best leverage online RL algorithms like GRPO to improve these systems. We begin to address this challenge by investigating whether it is possible to effectively instantiate GRPO for arbitrary multi-prompt programs and whether it can work robustly as an off-the-shelf optimizer for LM programs using the same abstractions and constraints typically involved for prompt optimization. Our main variant of multi-module GRPO constructs groups from module-level invocations, and we also consider trajectory-level grouping as another natural instantiation. We find for the first time that GRPO (and its multi-module counterpart) empirically composes well with automatic prompt optimization, and together they improve accuracy by 11% on average across classification, many-hop search, and privacy-preserving delegation tasks against the post-trained LM - with 5% gains against prompt optimization on its own. We open-source multi-module GRPO in the DSPy library at https://dspy.ai .

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

↑