Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

ProRefine: Inference-Time Prompt Refinement with Textual Feedback

About

Agentic workflows, where multiple AI agents collaborate to accomplish complex tasks like reasoning or planning, play a substantial role in many cutting-edge commercial applications, and continue to fascinate researchers across fields for their potential to accomplish expensive, complex tasks that, until recently, only humans have been trusted to do. These workflows depend critically on the prompts used to provide the roles models play in such workflows. Poorly designed prompts that fail even slightly to guide individual agents can lead to sub-optimal performance that may snowball within a system of agents, limiting their reliability and scalability. To address this important problem of inference-time prompt optimization, we introduce ProRefine, an innovative inference-time optimization method that uses an agentic loop of LLMs to generate and apply textual feedback. ProRefine dynamically refines prompts for multi-step reasoning tasks without additional training or ground truth labels. Evaluated on five benchmark mathematical reasoning datasets, ProRefine significantly surpasses zero-shot Chain-of-Thought baselines by 3 to 37 percentage points. This approach not only boosts accuracy but also allows smaller models to approach the performance of their larger counterparts. This highlights its potential for building more cost-effective and powerful hybrid AI systems, thereby democratizing access to high-performing AI.

Deepak Pandita, Tharindu Cyril Weerasooriya, Ankit Parag Shah, Isabelle Diana May-Xin Ng, Christopher M. Homan, Wei Wei• 2025

Related benchmarks

TaskDatasetResultRank
Mathematical ReasoningMATH 500
Accuracy80
221
Medical Question AnsweringMedQA
Accuracy51
154
Causal ReasoningBBH Causal Judgement
Accuracy (BBH Causal Judgement)75
40
Science Question AnsweringGPQA Diamond
Accuracy29
31
Common Sense ReasoningBBH Sports Understanding
Accuracy (BBH Sports)82
21
Legal ReasoningLegalBench
Accuracy86
18
Logical reasoningBBH Web of Lies
Accuracy96
18
Question AnsweringBBH Disambiguation QA
Accuracy (BBH Disambiguation QA)64
18
Showing 8 of 8 rows

Other info

Follow for update