Reproduce “CRAFT: Cost-aware Refinement And Front-aware Tuning of Prompts” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Shanu Kumar, Shubhanshu Khandelwal, Akhila Yesantarao Venkata, Parag Agrawal, Yova Kementchedjhieva, Manish Gupta
CRAFT introduces a prompt optimization framework that simultaneously optimizes LLM task accuracy and inference cost, generating a Pareto front of diverse prompts. It achieves the best overall performance across six benchmarks, effectively balancing accuracy and cost objectives.
Key insights
- Direct Pareto-front optimization is effective in overcoming "scalarization collapse," allowing for the discovery of a comprehensive range of accuracy-cost trade-offs in LLM prompting.
- The combination of accuracy-oriented refinement and cost-oriented condensation modules is crucial for simultaneously improving both task performance and inference efficiency.
- An acquisition strategy based on Pareto gap and upper confidence bounds, coupled with partial validation, enables efficient allocation of a limited target-LLM validation budget.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.