Reproduce “TRPrompt: Bootstrapping Query-Aware Prompt Optimization from Textual Rewards” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Andreea Nica, Ivan Zakazov, Nicolas Mario Baldwin, Saibo Geng, Robert West

TRPrompt, developed by EPFL and Microsoft Research, introduces an iterative framework that trains a dedicated prompt model using rich textual feedback to generate query-specific prompts for large language models. The framework achieved state-of-the-art accuracy on complex mathematical reasoning benchmarks like GSMHard (31.76%) and MATH (41.37%), while operating without requiring initial expert prompts.

Key insights

  • Detailed natural language feedback can effectively act as a direct, high-resolution supervision signal for training dedicated prompt models, surpassing the limitations of sparse numerical rewards.
  • An iterative self-improvement loop allows a prompt model to bootstrap its own training data and refine prompt generation without requiring pre-existing expert prompts or manual dataset collection.
  • The continuous search and update of an 'optimal textual reward' is crucial for guiding the prompt model's learning process and preventing overfitting to suboptimal feedback.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.