ProRefine: Inference-Time Prompt Refinement with Textual Feedback
When multiple AI agents work together (like one agent planning and another executing), they rely heavily on good prompts. But writing perfect prompts is hard, and even small mistakes can cascade through the system, causing failures. ProRefine solves this by creating a feedback loop: one AI agent evaluates how well the prompt worked and suggests improvements, then another agent refines the prompt based on that feedback—all happening automatically at inference time without any training.
We tested ProRefine on mathematical reasoning tasks and it improved accuracy by 3-37% compared to standard methods. Even better, it lets smaller, cheaper AI models perform nearly as well as much larger, expensive ones. This makes powerful AI more accessible and cost-effective, especially for complex multi-agent systems that are becoming critical in commercial applications.