← Latest papers
💬 NLP

CRAFT: Cost-aware Refinement And Front-aware Tuning of Prompts

CRAFT is a Pareto-front prompt optimizer that avoids the limitations of scalarization collapse by treating validation calls as a scarce resource to efficiently discover a diverse set of prompts offering optimal accuracy-cost trade-offs across various tasks.

Original authors: Shanu Kumar, Shubhanshu Khandelwal, Akhila Yesantarao Venkata, Parag Agrawal, Yova Kementchedjhieva, Manish Gupta

Published 2026-06-04
📖 4 min read☕ Coffee break read

Original authors: Shanu Kumar, Shubhanshu Khandelwal, Akhila Yesantarao Venkata, Parag Agrawal, Yova Kementchedjhieva, Manish Gupta

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a very smart, but expensive, robot how to do a specific job. You do this by writing it a set of instructions, called a prompt.

The problem is a bit of a catch-22:

  • If you write long, detailed instructions, the robot usually gets the job right (high accuracy), but it costs a lot of money to run because it has to read every single word.
  • If you write short, punchy instructions, it's cheap to run, but the robot might get confused and make mistakes (low accuracy).

Most people try to solve this by picking a "middle ground" before they start. They say, "I want 50% accuracy and 50% cost savings," and they search for the one perfect prompt that fits that specific mix. The authors of this paper call this approach "Scalarization Collapse." It's like trying to find the perfect temperature for a shower by only testing water that is exactly lukewarm. You might miss a spot that is slightly hotter but much more comfortable, or slightly cooler but much more refreshing.

Enter CRAFT: The Smart Shopper

The paper introduces a new method called CRAFT (Cost-aware Refinement And Front-aware Tuning). Instead of looking for one "perfect" prompt, CRAFT looks for the entire menu of best options.

Think of it like a smart shopper trying to buy a car.

  • The Old Way: You tell the salesperson, "I want a car that costs exactly $30,000 and gets exactly 30 miles per gallon." They show you one car. If you change your mind later, you have to start over.
  • The CRAFT Way: CRAFT says, "Show me all the cars that are the best deal possible." It builds a list of options:
    • Option A: Super fast, but expensive.
    • Option B: Super cheap, but a bit slow.
    • Option C: A great balance of both.
    • Option D: A weird mix that saves money but is surprisingly fast.

CRAFT doesn't force you to pick a balance before you start searching. It finds the whole "Pareto Front"—a fancy term for the best possible trade-offs where you can't get better accuracy without paying more, or get cheaper without getting worse.

How CRAFT Works (The Kitchen Analogy)

CRAFT runs a kitchen with two chefs working on the same recipe, but with different goals:

  1. The "Refiner" Chef (The Perfectionist): This chef's only job is to make the dish taste amazing. They keep adding spices, clarifying instructions, and making the recipe longer and more detailed. They don't care about the cost of the ingredients.
  2. The "Condenser" Chef (The Minimalist): This chef's only job is to make the recipe shorter and cheaper. They cut out fluff, remove redundant steps, and simplify the language. They don't care if the dish loses a little flavor, as long as it's still edible.

The Tasting Session (The Selection Process):
Every round, these two chefs create new versions of the recipe. But here's the catch: Tasting the food costs money (it requires calling the expensive robot). You can't taste every single version.

So, CRAFT uses a smart strategy to decide what to taste:

  • It looks at the "menu" of recipes created so far.
  • It asks: "Which of these new recipes has the best chance of being a new best option?"
  • It picks the ones that are either very likely to be delicious (high accuracy) or very likely to be cheap, or ones that fill a gap in the menu where no good option currently exists.

The Final Menu:
At the end of the process, CRAFT doesn't give you just one recipe. It gives you a spread-out menu of options.

  • If you have a huge budget, you pick the "Perfectionist" recipe.
  • If you are on a tight budget, you pick the "Minimalist" recipe.
  • If you want a balance, you pick one from the middle.

Why This Matters

The paper tested this on six different tasks (like sorting emails, answering logic puzzles, and detecting errors). They compared CRAFT against:

  • Accuracy-only methods (which made long, expensive prompts).
  • Cost-only methods (which made short, confusing prompts).
  • Weighted-sum methods (which tried to find a middle ground but got stuck in a narrow spot).

The Result:
CRAFT was the only method that successfully found both the high-accuracy, high-cost options and the low-cost, decent-accuracy options. It didn't get stuck in the middle. It gave the user the freedom to choose the right trade-off after the search was done, rather than guessing the trade-off before the search began.

In short, CRAFT stops you from guessing the price of a perfect meal before you even see the menu. Instead, it cooks up the whole menu of best deals so you can pick what fits your wallet and your hunger.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →