Skip to content

The best prompt, scored on examples it wasn't picked on

Pick the best of 11 to 13 wordings on half the items and it looks 2.6 points better than the base prompt. On the other half it's 0.2 points worse. The full-grid result, cell by cell.

2 min read

The usual way to improve a prompt: try a few wordings on a set of examples, keep the one that scores best. I ran that loop on purpose, thousands of times, and scored each winner on examples it hadn't been picked on.

I wrote about this in October on a run that was cut short. This is the full grid: 100 items per task, three local models (qwen3 8B, Llama 3.1 8B, Gemma 3 12B), and 11 wordings per item, 13 for multiple choice.

The loop

For each model and task, split the items in half at random. On the first half, pick whichever wording has the highest accuracy, as you would on a dev set. Measure its gain over the base prompt on that half and on the other half. Do it 2,000 times.

For each model and task, the gain of the best-looking prompt over the base prompt: open circles on the half it was picked on, all positive, up to about +5.5 points; filled circles on the other half, clustered around zero, several negative, with wide ranges across splits.

The gain doesn't travel

Averaged over the 12 model-and-task cells, the winner looked 2.6 points better than the base prompt on the half it was picked on. On the other half it was 0.2 points worse. In every one of the nine single-task cells, the middle 95% of held-out gains covers zero.

Three cells show the range:

  • Llama on multiple choice had the biggest apparent win: 5.5 points where it was picked, 0.6 on new items.
  • Gemma on multiple choice looked 1.6 points better where it was picked and was 2.3 points worse on new items. Its held-out gain was below zero on 64% of splits. On all 100 items, the base prompt was its best wording, so the selection could only find something worse and make it look better.
  • qwen3 on maths is the one cell that kept part of it. One synonym rewording was picked on 56% of splits and held out at +1.6 points on average, above zero on 61% of splits. Even there, the held-out range runs from -4 to +6.

Why it happens

Each wording's score on 50 items is the true accuracy plus noise. Yesterday's post showed how much noise: 15 to 24% of items are right under some wordings and wrong under others. Pick the top of 11 noisy scores and you mostly pick the luckiest draw. On new items the luck is gone.

What to do instead

  • Score the chosen prompt on examples you didn't choose it on. The gap between the two numbers is your selection effect.
  • Repeat the choice over random splits. A wording that wins on only some of them isn't better.
  • Treat a gain of 2 or 3 points on 50 to 100 examples as noise until held-out items say otherwise.

Limits

Small local models at temperature 0, three tasks, one set of hand-written wordings. The ranges are spreads over splits, not confidence intervals. With larger dev sets the selection effect shrinks, so measure it at the size you actually use.

The October post is here. The full results are in the case study, and the code is on GitHub.

All writing
  • LLMs
  • Prompting
  • Evaluation
  • Statistics

Get in touch

Questions about my work, a role, or a project idea. Send a message here or email me directly.

Srikarmks@gmail.com