- Rating
- 4
- Clarity
- 3
- Confidence
- 3
- Originality
- 1
- Quality
- 3
- Significance
- 2
Read review
Summary
This paper proposes CAPO, a method for optimizing system prompts under operational constraints. It applies the Lagrangian relaxation used in CMDPs to prompt optimization, and shows performance gains across a variety of datasets.
Strengths and weaknesses
Strengths:
- The setting of directly using the constraint threshold as an optimization target via the Lagrangian is sound and well motivated.
- It is interesting that actually varies across different datasets.
Weaknesses:
- The convergence theory relies on the text gradient. The theory itself is sound and is supported by CMDP theory. However, whether the text gradient can actually function as an optimizer still requires validation.
- The mechanism by which the continuous dual variable is translated into constraint-enforcement force is weak. is a quantitative value and is also a quantitative value, but the only way they influence the prompt is through the LLM rewriter's "emphasis." This emphasis is stepwise (coarse-grained) and is only weakly tied to the continuous . There is not even an ablation showing the actual effect of a fixed (i.e., merely whether a violation occurred or not) versus a variable .
- There is no comparison against the RL-based optimization line. RLPrompt is mentioned, but subsequent works such as StablePrompt [1] are a core line of this direction—e.g., showing that Mistral 7B can write prompts better than GPT-3.5. It should be verified whether these methods can naturally handle constraints via RL.
[1] Kwon, Minchan, et al. "StablePrompt: Automatic prompt tuning using reinforcement learning for large language model." Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing. 2024.
Questions
Questions:
- Is there an ablation on the variation of the value? Various analyses seem necessary, such as a setting with fixed and a setting where the scalar mean is varied.
Limitations
yes
Paper formatting concerns
no
Final justification
The authors have addressed my concerns. Accordingly, I will raise my score.
We thank Reviewer zC5P for recognizing that using explicit constraint thresholds as Lagrangian optimization targets is sound and well motivated, that the convergence analysis is theoretically sound, and that the observed variation of the multipliers across datasets is informative.
We validate optimizer-like behavior at two complementary levels.
At the system level, the submitted results already show that CAPO/DCAPO's rewrite-evaluate-select loop reaches feasible operating points across models and settings: Table 1, Figure 2, and Table 2 cover evaluations across different models and benchmarks. Appendix Table 22 further shows that the learned rewriter from DCAPO matches online CAPO's accuracy while improving its constrained trade-off, and Figure 12 shows its constrained training score rising to a stable plateau.
At the optimization-step level, Assumption B1 (Appendix A2) formalizes the optimizer-like role of the text-gradient mechanism by requiring the induced rewrite displacement dt to align in expectation with the surrogate ascent direction, up to approximation error: E[⟨∇zJ(zt,λt),dt⟩∣Ft]≥κ∥∇zJ(zt,λt)∥22−ϵt. When the gradient signal dominates the approximation error, its optimizer-like signature is positive alignment. We test the corresponding empirical signature, E[⟨g^z,zchild−zparent⟩]>0, on the trained DCAPO rewriter, instantiating z as the editor's last-token hidden state. To estimate the ascent gradients ∇ztE[J] and ∇θtE[J] through the discrete sampled rewrites, we use the REINFORCE score-function estimator. Specifically, we construct LRF=∑eJelogπθt(pe+∣zt,ctxe), where Je is the realized Lagrangian score, pe+ denotes the child prompt sampled for parent-to-child rewrite edge e, ctxe denotes the auxiliary context supplied to the rewriter for sample e, including the sampled parent trajectories. Differentiating the same surrogate with respect to zt or θt yields g^z or g^θ, respectively:
Therefore we could conclude from both system and per-step optimization level that there is directional evidence of optimizer-like ascent in hidden space, parameter space, and the realized selection operator.
To clarify the mechanism of lagrangian multiplers and the existing evidence.
1. How the continuous multiplier exerts constraint-enforcement pressure. It acts through two distinct channels. First, in every round, the current multiplier enters the Lagrangian score, Jt(p)=r(p)−∑iλt,i(ci−τi)
Thus, increasing λt,i proportionally increases the penalty for constraint i. The resulting score directly determines candidate ranking, beam retention, and parent-sampling probabilities qj∝exp(γJt(pj)). This channel uses the numerical value of λ directly and does not pass through a coarse text label.
Second, the same multiplier vector conditions the feedback supplied to the rewriter, increasing the relative emphasis placed on constraints with larger multipliers. The textual rendering is therefore an additional control channel, not the sole mechanism by which λ affects optimization.
2. Evidence from fixed weighting and controlled ablations. The submitted paper already includes both non-adaptive comparisons and a controlled update-rule ablation; we will cross-reference them more explicitly.
Fixed, non-adaptive constraint weighting: Multi-task APO, GEPA, and EvoPrompt-GA use similar fixed Lagrangian-style objectives, J(p)=r(p)−∑iλi(ci−τi), with method-specific fixed penalty definitions and native proposal and selection rules. They therefore instantiate the fixed-weight alternative raised by the reviewer.
Controlled occurrence-only ablation: Appendix Table 20 provides a strict module-level comparison in which the initial prompt, rewriter, evaluator, candidate generation, Lagrangian scoring, and selection pipeline are identical; only the dual update rule changes. CAPO uses the magnitude-aware residual update. It replaces CAPO's magnitude-aware residual update, λt+1,i=Π(λt,i+β(ρt,i−τi)) with λt+1,i=Π[0,λmax](λt,i+βI(ρt,i>τi))
Here, I(⋅) is the indicator function. This ablation directly instantiates the reviewer's stepwise alternative: every violated constraint receives the same increment, regardless of violation magnitude. All metric values below are percentages.
The fixed-weight comparisons test the removal of online adaptation, while the pipeline-matched count-based ablation isolates the value of using violation magnitude rather than only violation occurrence. CAPO achieves substantially higher feasible accuracy in both domains. Together, these results show that λ provides continuous enforcement through scoring and selection, and that adaptive, magnitude-aware updates materially improve the resulting objective-constraint trade-off.
StablePrompt [1] is a directly relevant RL prompt-learning baseline. We therefore compare DCAPO with both StablePrompt and Agent-GRPO, with all methods starting from the same Qwen3-8B task-agent checkpoint.
DCAPO is fundamentally different in both what RL updates and how constrained search is performed. StablePrompt trains a policy to generate prompts from a fixed scalar reward, whereas Agent-GRPO keeps the system prompt fixed and trains the task agent. DCAPO instead freezes the task agent and trains the prompt rewriter within an evolving candidate pool. It samples parents from the pool, generates sibling rewrites conditioned on trajectories and λ, computes group-relative advantages from constraint-aware Lagrangian scores, updates the rewriter, and admits strong children back into the pool. Its online per-constraint dual updates adapt both candidate scoring and the rewrite context. Thus, DCAPO couples RL-based rewriter learning with evolutionary prompt search and adaptive constraint enforcement rather than optimizing against a stationary scalarization.
Both StablePrompt and Agent-GRPO use a stationary scalarization with fixed weights λi=1,
J=r−∑iλˉi[ci−τi],
neither updates constraint prices online.
From results above, DCAPO reaches AllSat in all three domains: it matches the highest feasible accuracy on Airline and Retail and is the only feasible method on Telecom. This consistent cross-domain feasibility supports the effectiveness of combining learned prompt rewrites with adaptive, constraint-specific dual updates.
[1] Minchan Kwon, Gaeun Kim, Jongsuk Kim, Haeil Lee, and Junmo Kim. "StablePrompt: Automatic Prompt Tuning using Reinforcement Learning for Large Language Model." EMNLP 2024, pp. 9868--9884. https://aclanthology.org/2024.emnlp-main.551/.