How Microsoft and MBZUAI turned prompt tuning into a Pareto-front search — and why scalarization collapse is the silent failure mode nobody talks about.


Every prompt engineer has been here: you optimize a prompt for accuracy, it works beautifully, and then you realize it's 400 tokens long. Every API call costs real money now. You compress it, accuracy tanks. You try a weighted sum of the two objectives, and the optimizer finds… one narrow operating point that might not even be what you needed at deployment time.

The team behind SCULPT — the structure-aware prompt optimizer that landed at ACL 2025 — has returned with a follow-on that reframes the entire problem. CRAFT (Cost-aware Refinement And Front-aware Tuning) doesn't give you one optimized prompt. It gives you a Pareto front — a set of prompts trading accuracy against token cost — and lets you choose your operating point after the search is done, not before.

ArXiv paper: 2606.04661. Code: github.com/Sshanu/CRAFT. Authors: Shanu Kumar, Shubhanshu Khandelwal, Akhila Yesantarao Venkata, Parag Agrawal, Yova Kementchedjhieva, and Manish Gupta — a joint MBZUAI / Microsoft team.

The Core Problem: Scalarization Collapse

The paper's central insight is a failure mode they call scalarization collapse. When you combine accuracy and cost into a single weighted-sum objective (the standard approach in prior multi-objective prompt work like CAPO), you lock in the trade-off weight before the search begins. The optimizer then explores only the narrow slice of the Pareto front that corresponds to that weight. Different weights give you different slices, but no single run covers the full front.

This matters because the accuracy-cost landscape for prompts is non-convex and the prompt space is discrete. In such spaces, weighted-sum scalarization provably misses regions of the Pareto front — a result known from multi-objective optimization theory since Das and Dennis (1997). The practical consequence: if your production needs change (budget gets tighter, or accuracy requirements shift), you have to re-run the entire optimization from scratch with a new weight.

CRAFT's answer: don't scalarize. Search the front directly.

How CRAFT Works: Four Components in a Loop

CRAFT runs a round-by-round loop that gradually shapes a small population of prompts into an approximation of the accuracy-cost Pareto front. Each round has four components:

1. Refiner (Accuracy-Oriented)

The refiner is an accuracy-focused prompt optimizer. By default, CRAFT uses SCULPT — the same team's ACL 2025 system that parses prompts into a hierarchical tree (sections → rules → examples) and applies structure-aware edits via a critic-actor scaffold. SCULPT reorders, elaborates, and clarifies tree nodes to push accuracy up. It tends to make prompts longer, because detailed instructions help — but at a cost.

Crucially, the refiner is a swappable module. The paper also tests CRAFT with OPRO and EvoPrompt as drop-in replacements for the refiner. This modularity is a design win: you're not locked into one optimization strategy.

2. Condenser (Cost-Oriented)

If the refiner inflates prompts, the condenser shortens them. CRAFT introduces DISTILL, a new structure-aware compressor that reuses SCULPT's critic-actor scaffold but with opposite intent: the critic flags redundant or verbose substructures in the parsed prompt tree, and the actor applies tree-level edits — deleting, merging, or simplifying nodes.

This is a key distinction from token-level compressors like LLMLingua-2, which drop low-information surface tokens below the level of instructions. Aggressive token-level compression can accidentally remove task-critical content. DISTILL operates at the structure level, so it knows what it's cutting and why.

Each round, every prompt gets condensed at multiple compression ratios sampled from a fixed interval, producing candidates at various cost points.

3. Pareto-Gap Acquisition

Here's where the budgeted-search innovation lives. Each candidate prompt's accuracy must be validated by calling the target LLM — and LLM calls are the scarce resource. You can't validate every candidate. So how do you decide which ones to spend your budget on?

CRAFT uses a Pareto-gap acquisition function inspired by multi-objective Bayesian optimization. For each candidate, it computes an upper confidence bound (UCB) using partial-validation scores and their uncertainty. Candidates whose UCB tips touch the current "optimistic candidate front" (the estimated Pareto front based on noisy, partial scores) get priority. The gap between a candidate's UCB tip and the nearest point on the optimistic front determines its acquisition score — smaller gap means higher priority.

This is the front-aware part: the acquisition function looks at the geometry of the current front and spends budget where it can push the front outward, rather than just optimizing a scalar reward.

4. NSGA-II Retention

After validation, the population selector keeps k prompts for the next round using NSGA-II (Non-dominated Sorting Genetic Algorithm II) — the classic multi-objective evolutionary algorithm. It performs non-dominated sorting to keep Pareto-optimal candidates, then uses crowding distance to maintain spread across the front. This prevents the population from clustering in one region.

The result: after R rounds, you get a set of prompts spread across the entire accuracy-cost front, from high-accuracy/high-cost to low-accuracy/low-cost and everything in between.

What the Experiments Show

CRAFT was evaluated on six benchmarks spanning classification and reasoning:

  • BeaverTails (safety classification)
  • GoEmotions (emotion classification)
  • Disambiguation QA
  • Causal Judgement
  • Formal Fallacy (logical reasoning)
  • Salient Translation Error Detection

The headline result is consistent across all six: accuracy-only (SCULPT), cost-only (LLMLingua-2), and weighted-sum (WPRO) baselines each concentrate in narrow regions of the front, while CRAFT retains prompts across both high-accuracy and low-cost regions.

On BeaverTails, for example, SCULPT finds high-accuracy prompts but they're long; LLMLingua finds short prompts but accuracy drops; WPRO with weight 0.5 finds a single middle-ground point. CRAFT's front spans from the SCULPT-like high-accuracy region all the way down to near-LLMLingua cost levels, with multiple intermediate operating points.

The paper also tests transfer across optimizer LLMs: running CRAFT with GPT-4o as the optimizer (the LLM that proposes edits) and evaluating on GPT-4o-mini as the target. The fronts transfer, though with some degradation — a practical consideration for cost-conscious deployment.

Ablations Tell the Story

The ablation studies are particularly informative:

  • CRAFT-R (refiner only, no condenser): Finds high-accuracy prompts but misses the low-cost region. Essentially collapses to SCULPT-like behavior.
  • CRAFT-C (condenser only, no refiner): Finds low-cost prompts but misses the high-accuracy region.
  • CRAFT with OPRO or EvoPrompt as refiner: Still works, though SCULPT gives the strongest fronts due to its structure-aware precision.

The takeaway: both generators are necessary. The refiner pushes the front outward on the accuracy axis; the condenser pushes it outward on the cost axis. Neither alone recovers the full front.

Code: Setting Up and Running CRAFT

The reference implementation is at github.com/Sshanu/CRAFT. Here's how to get started:

# Clone and set up
git clone https://github.com/Sshanu/CRAFT.git
cd CRAFT
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt

# Set your API key
export OPENAI_API_KEY="sk-..."

# Run CRAFT on a benchmark
bash scripts/craft.sh beaver_tails

# Run with custom configuration
SEED=91 MODEL=gpt-4o MAX_ROUNDS=8 BEAM_SIZE=10 bash scripts/craft.sh go_emotions

The repository provides scripts for all the baselines and ablations:

Script Method
scripts/craft.sh CRAFT — full method (NSGA-II + refiner + condenser)
scripts/weighted_sum.sh Weighted-sum (WPRO) baseline
scripts/sculpt.sh SCULPT single-objective (accuracy only)
scripts/distill.sh Distill single-objective (compression)
scripts/llmlingua.sh LLMLingua-2 baseline
scripts/craft_opro.sh CRAFT with OPRO as refiner
scripts/craft_evoprompt.sh CRAFT with EvoPrompt as refiner
scripts/craft_r.sh CRAFT-R ablation (refiner only)
scripts/craft_c.sh CRAFT-C ablation (condenser only)

The key hyperparameters you'll want to tune:

# From scripts/_base.sh
PROVIDER=openai       # openai, azure, ollama
MODEL=gpt-4o          # Target LLM
MAX_ROUNDS=8          # Number of optimization rounds (R)
BEAM_SIZE=10          # Population size (k) — prompts retained per round
EVAL_ROUNDS=2         # Validation rounds for acquisition
N_VAL=200             # Validation set size
N_TEST=500            # Test set size

Each run writes outputs to outputs/<run_name>/, including per-round prompt candidates, the retained Pareto front, and metrics (best score, mean front score, min feasible tokens, peak efficiency, hypervolume, IGD, front size).

Why This Matters for Production Systems

The practical implications are significant:

1. The trade-off is a deployment-time decision. You don't need to know your cost budget when you optimize the prompt. Run CRAFT once, get a front, then pick the operating point that fits your production constraints. Budget tightened? Slide along the front. Accuracy requirements changed? Same front, different point.

2. LLM validation calls are the bottleneck. CRAFT explicitly treats target-LLM calls as the scarce resource and designs its acquisition strategy around that constraint. This is honest about the economics of prompt optimization: every evaluation costs money.

3. Structure-aware compression preserves task signal. DISTILL's tree-level editing is fundamentally safer than token-level compression for production prompts. You're cutting instructions you've identified as redundant, not dropping tokens that happen to have low information content in isolation.

4. The modular architecture is extensible. Swapping the refiner from SCULPT to OPRO or EvoPrompt is a one-line change. If a better prompt optimizer comes along, it slots in. The condenser, acquisition function, and selector are similarly decoupled.

Context: Where CRAFT Fits in the Landscape

CRAFT builds on a rapidly evolving line of work in multi-objective prompt optimization:

  • SCULPT (Kumar et al., ACL 2025): Structure-aware, accuracy-only prompt tuning via tree-level edits. CRAFT's refiner and condenser both build on SCULPT's scaffold.
  • CAPO (Zehle et al., 2025): Cost-Aware Prompt Optimization from LMU Munich. Uses fixed-weight scalarization — CRAFT's WPRO baseline adapts this approach, and the scalarization-collapse failure mode is demonstrated against it.
  • MO-CAPO (arXiv 2605.18869): A multi-objective extension of CAPO, appearing around the same time.
  • Pareto Prompt Optimization (Zhao et al., ICLR 2025): From Brookhaven National Lab, uses evolutionary multi-objective optimization for discrete prompts but doesn't explicitly handle the budgeted validation-call setting.
  • MORL-Prompt (Jafari et al., 2024): Multi-objective RL for prompt optimization, but doesn't target front construction under budgeted validation.

CRAFT's distinctive contribution is the budgeted front-construction framing: when each candidate's accuracy requires expensive LLM calls, you need an acquisition strategy that's front-aware, not just scalar-reward-greedy.

Looking Ahead

Several open questions remain:

  • Beyond two objectives: The current formulation handles accuracy and token cost. What about adding latency, fairness, or safety as additional objectives? NSGA-II generalizes, but the acquisition function would need extension.
  • Open-source models as targets: The paper primarily evaluates on GPT-4o and GPT-4o-mini. How well does CRAFT work when the target LLM is a locally-deployed open model where token cost translates to GPU time?
  • Dynamic budgets: What if your cost budget changes over time? Can the front be incrementally updated without re-running the full optimization?
  • Integration with prompt-chaining systems: CRAFT optimizes single prompts. In a multi-step agent pipeline, each step has its own accuracy-cost trade-off. Optimizing the chain jointly is an open problem.

The Takeaway

CRAFT's core message is deceptively simple: the accuracy-cost trade-off should be a post-search choice, not a pre-search weight. By searching the Pareto front directly — with complementary generators pushing both objectives, a front-aware acquisition function spending validation budget where it matters, and NSGA-II maintaining population diversity — CRAFT gives you options instead of a single answer.

In a world where prompt tokens have real costs and those costs change with deployment context, that's not just a technical improvement. It's a different way of thinking about what prompt optimization is for.


Paper: CRAFT: Cost-aware Refinement And Front-aware Tuning of Prompts — Shanu Kumar, Shubhanshu Khandelwal, Akhila Yesantarao Venkata, Parag Agrawal, Yova Kementchedjhieva, Manish Gupta (MBZUAI / Microsoft, 2026)

Code: github.com/Sshanu/CRAFT

Predecessor: SCULPT: Systematic Tuning of Long Prompts — ACL 2025

Related: CAPO (Zehle et al., 2025), Pareto Prompt Optimization (Zhao et al., ICLR 2025), MO-CAPO (arXiv 2605.18869)