Composing Policy Gradients and Prompt Optimization for Language Model Programs
summary
This work builds mmGRPO, an extension of GRPO that treats module invocations as equal units and applies online RL to multi-prompt LM programs in DSPy, improving end-task accuracy by 11% on average across classification, many-hop retrieval, and privacy-preserving delegation. It combines automatic prompt optimization then RL, trains a four-hop retrieval program in ~3 hours on an 8B model using 2–4 GPUs, and shows modules learn keyword-focused queries and stateful ledger-like fields that boost downstream retrieval. mmGRPO DSPy
AI-written summary · about
chapters (8)
- 0:00Introduction and background
- 1:39Prompt optimization limitations
- 2:43Comparing prompt optimization and RL
- 3:48Adapting RL to language model programs
- 5:33MMGRPO results and observations
- 7:55Combining prompt optimization and RL
- 9:17RL optimization time and scalability
- 10:28Q&A on rule bending and factuality
