Composing Policy Gradients and Prompt Optimization for Language Model Programs
On the map: LLM reasoning → Reinforcement learning for reasoning
Abstract (arXiv)
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 .
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in Reinforcement learning for reasoning, one of 17 directions in LLM reasoning. Builds on 22 of its 43 references that are in the map. First posted on arXiv 6 Aug 2025.
Builds on
22 of 43 references.
Closest ancestors · 3
Same direction, newest first
- 2025Not All Rollouts are Useful: Down-Sampling Rollouts in LLM Reinforcement Learning18 Apr
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Model29 May
- 2017Proximal Policy Optimization Algorithms20 Jul
Other references · 19
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,745
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,444
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 653
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 551
- 2020Efficient Intent Detection with Dual Sentence Encoderscited by 433
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 366
- 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 336
7 more
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 291
- 2020AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Promptscited by 249
- 2022Optimizing Prompts for Text-to-Image Generationcited by 207
- 2020HoVer: A Dataset for Many-Hop Fact Extraction And Claim Verificationcited by 201
- 2024PAPILLON: Privacy Preservation from Internet-based and Local Language Model Ensemblescited by 57
- 2020Answering Open-Domain Questions of Varying Reasoning Steps from Textcited by 43
- 2024Fine-Tuning and Prompt Optimization: Two Great Steps that Work Better Togethercited by 40
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2026WHALE: A Simple Recipe for Joint Harness-Weight Optimization31 Aug 2026
- 2026From Agent Failures to Text Policies: What Works and What Breaks22 Jul 2026
- 2026Divide-and-Conquer CoT: RL for Reducing Latency via Parallel Reasoning30 Jan 2026
- 2025WRAVAL -- WRiting Assist eVALuation19 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2025GTPO: Stabilizing Group Relative Policy Optimization via Gradient and Entropy Control
- 2026Demystifying Group Relative Policy Optimization: Its Policy Gradient is a U-Statistic
- 2026GRPO Training Dynamics for Small Language Models
- 2026GUPO: Gradient Uncertainty-aware Policy Optimization for Post-Training Large Language Models
- 2026CoDistill-GRPO: A Co-Distillation Recipe for Efficient Group Relative Policy Optimization
- 2025GRPO-RM: Fine-Tuning Representation Models via GRPO-Driven Reinforcement Learning
- 2026iGRPO: Self-Feedback-Driven LLM Reasoning
- 2026Holder Policy Optimisation