Rethinking Prompt Optimization: Reinforcement, Diversification, and Migration in Blackbox LLMs

MohammadReza Davari, Utkarsh Garg, Weixin Cai, Eugene BelilovskyarXiv 2025 · DOI

Introduction

As the AI industry shifts toward closed-weight models like GPT-4, traditional fine-tuning or internal model gradient methods are becoming less accessible. This has led to the rise of Automatic Prompt Optimization (APO), where one LLM iteratively refines instructions for another. However, current APO methods suffer from two primary issues: negativity bias, which focuses solely on fixing errors while potentially discarding effective prompt components, and feedback noise, where inconsistent LLM-generated feedback leads to unproductive optimization paths. Furthermore, the "migration" of prompts between model versions (e.g., GPT-3.5 to GPT-4o) often results in performance degradation, a challenge formalized as Continual Prompt Optimization (CPO).

The BReAD Framework

To address these challenges, the researchers introduce BReAD (Balanced Reinforcement and Aggregated Diversification). BReAD enhances the standard optimization loop with two novel components:

  1. Balanced Reinforcement: Unlike traditional tools that use feedback only for error correction (negative reinforcement), BReAD incorporates positive reinforcement. It explicitly identifies and preserves prompt components that lead to correct predictions, preventing the loss of critical instructions during updates.
  2. Feedback Diversification: To mitigate noise, BReAD samples multiple feedback signals for the same batch of examples. These signals are then aggregated by an LLM—acting as a "peer review" process—to produce consistent, actionable advice while filtering out hallucinations.
The BReAD framework architecture, illustrating the iterative loop of prompt optimization with feedback diversification and aggregation.

The framework is modular, allowing the search module to be abstracted and integrated with various state-of-the-art algorithms like Monte Carlo Tree Search (MCTS).

Experimental Setup

BReAD was evaluated across five diverse reasoning tasks:

  • BBH (Big-Bench Hard) Subset: Causal Judgment (logic), Geometric Shapes (spatial reasoning), and Penguins (tabular reasoning).
  • CommitmentBank (CB): Natural language inference focused on pragmatic implications.
  • Biosses: Biomedical sentence similarity requiring domain-specific knowledge.

Key Insights

  • The "Goldilocks" Zone: Ablation studies indicate that positive reinforcement is most effective when introduced around the 3rd or 4th iteration. Introducing it too early can freeze a mediocre prompt, while too late allows useful instructions to be discarded.
  • Diversification as a Denoising Filter: Accuracy peaks at approximately six feedback samples. Beyond this, feedback tends to become overly generalized, losing the specificity required for complex tasks.
  • Migration Challenges: Naive prompt migration often leads to "instruction loss." BReAD’s reinforcement mechanism effectively "upcycles" prompts for newer models by preserving domain-specific knowledge across model versions.

Key Results

BReAD consistently outperformed the strong PromptAgent baseline across all tasks, with relative accuracy gains ranging from 4.9% to 21.5%.

Performance comparison of BReAD against baseline methods across five diverse datasets, showing significant accuracy improvements and statistical significance.

Beyond accuracy, BReAD demonstrated superior efficiency. Despite the higher cost per individual step due to multi-sampling, it reached target accuracy levels faster, resulting in a 0.5% to 6.2% reduction in total API calls. In migration scenarios (GPT-3.5 → GPT-4o), BReAD achieved a 16% improvement on the Biosses dataset compared to standard strategies, proving its robustness in maintaining domain-specific terminology.

Limitations and Future Work

While effective, BReAD's current evaluation is focused on the GPT family. Future research should extend this to open-source models like Llama and Claude. Additionally, automating the selection of hyperparameters—such as the timing of reinforcement and the number of diversification samples—remains an open challenge. Finally, exploring lightweight aggregation methods could further reduce the per-step cost of the framework.

Summary updated

BibTeX
@misc{davari2025rethinking,
  author = {MohammadReza Davari and Utkarsh Garg and Weixin Cai and Eugene Belilovsky},
  title = {{Rethinking Prompt Optimization: Reinforcement, Diversification, and Migration in Blackbox LLMs}},
  year = {2025},
  eprint = {2507.09839},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.09839},
}
Figure