Better by Comparison: Retrieval-Augmented Contrastive Reasoning for Automatic Prompt Optimization
On the map: LLM reasoning → Prompting and chain-of-thought reasoning
also in 1 more
Abstract (arXiv)
Automatic prompt optimization has recently emerged as a strategy for improving the quality of prompts used in Large Language Models (LLMs), with the goal of generating more accurate and useful responses. However, most prior work focuses on direct prompt refinement or model fine-tuning, overlooking the potential of leveraging LLMs' inherent reasoning capability to learn from contrasting examples. In this paper, we present Contrastive Reasoning Prompt Optimization (CRPO), a novel framework that formulates prompt optimization as a retrieval-augmented reasoning process. Our approach retrieves top k reference prompt-response pairs from the HelpSteer2 dataset, an open source collection where each response is annotated for helpfulness, correctness, coherence, complexity, and verbosity, and constructs two complementary optimization paradigms: (1) tiered contrastive reasoning, where the LLM compares high-, medium-, and low-quality exemplars (both prompts and responses) to refine its own generation through reflective reasoning, and (2) multi-metric contrastive reasoning, where the LLM analyzes the best exemplars along each evaluation dimension and integrates their strengths into an optimized prompt. By explicitly contrasting high and low quality exemplars, CRPO enables the model to deduce why certain prompts succeed while others fail, thereby achieving more robust and interpretable optimization. Experimental results on the HelpSteer2 benchmark demonstrate that CRPO significantly outperforms baselines. Our findings highlight the promise of contrastive, retrieval-augmented reasoning for advancing automatic prompt optimization.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 20 of its 22 references that are in the map. First posted on arXiv 2 Sep 2025.
Builds on
20 of 22 references.
Closest ancestors · 2
Same direction, newest first
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolution28 Sep
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Models28 Jan
Other references · 18
- 2023GPT-4 Technical Reportcited by 18,396
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,045
- 2023Large Language Models as Optimizerscited by 864
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 653
- 2024Interpretable Preferences via Multi-Objective Reward Modeling and Mixture-of-Expertscited by 376
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 366
6 more
- 2024HelpSteer2: Open-source dataset for training top-performing reward modelscited by 236
- 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 233
- 2025Multi-Agent Design: Optimizing Agents with Better Prompts and Topologiescited by 113
- 2022TEMPERA: Test-Time Prompting via Reinforcement Learningcited by 50
- 2024AMPO: Automatic Multi-Branched Prompt Optimizationcited by 11
- 2024Towards Hierarchical Multi-Agent Workflows for Zero-Shot Prompt Optimizationcited by 10
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025TRPrompt: Bootstrapping Query-Aware Prompt Optimization from Textual Rewards
- 2025Self-Supervised Prompt Optimization
- 2025Rethinking Prompt Optimizers: From Prompt Merits to Optimization
- 2024GReaTer: Gradients over Reasoning Makes Smaller Language Models Strong Prompt Optimizers
- 2026Optimizing Prompts for Large Language Models: A Causal Approach
- 2025Cross-Lingual Prompt Steerability: Towards Accurate and Robust LLM Behavior across Languages
- 2026RASPRef: Retrieval-Augmented Self-Supervised Prompt Refinement for Large Reasoning Models
- 2025SIPDO: Closed-Loop Prompt Optimization via Synthetic Data Feedback