atlas

Research map / Large language models / Language, safety and interpretability

Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formatting

ICLR 2024 · Large language models › Language, safety and interpretability · approach: LLM unlearning and benchmarks · 52 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows LLM few-shot accuracy varies widely across semantically equivalent prompt formats, and proposes FormatSpread, a Thompson-sampling bandit that estimates the performance range over plausible formats without model weights.

Problem

Reported LLM performance in prompting-based evaluation typically uses a single prompt format, but meaning-preserving formatting choices may strongly change accuracy, making comparisons between models and methods unreliable.

Approach

A grammar defines plausible, semantically equivalent prompt formats; a Bernoulli Thompson-sampling bandit (FormatSpread) searches this space under an evaluation budget to estimate the minimum and maximum accuracy, yielding a performance spread without needing model weights.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use prompt formats that omit colons after descriptorsLLaMA-2-7B on task280 · task280ranking accuracy: 0.043 -> 0.826Helped
Add spaces after double-colon separatorsLLaMA-2-7B on task317 · task317ranking accuracy: 0.076 -> 0.638Helped
Replace Roman numeral option labels with letter labelsLLaMA-2-7B on task190 · task190ranking accuracy: 0.360 -> 0.614Helped
Remove spaces after double-colon separatorsLLaMA-2-7B on task904 · task904ranking accuracy: 0.418 -> 0.616Helped
Replace the relevant separators with semicolonsLLaMA-2-7B on task320 · task320ranking accuracy: 0.361 -> 0.476Helped
Change descriptor casing from uppercase to lowercaseLLaMA-2-7B on task322 · task322ranking accuracy: 0.614 -> 0.714Helped
Change descriptor casing from title case to uppercaseLLaMA-2-7B on task279 · task279ranking accuracy: 0.372 -> 0.441Helped
Search prompt formats with Thompson sampling instead of naive samplingPrompt spread estimation · Super-NaturalInstructions tasksdistance from true accuracy spread: within 4 points -> within 1 accuracy point of the true spreadHelped
Search prompt formats with Thompson sampling instead of UCBPrompt spread estimation · Super-NaturalInstructions tasksdistance from true accuracy spread: within 11 -> within 1 accuracy point of the true spreadHelped
Increase model size to LLaMA-2-70BPrompt format sensitivity · Super-NaturalInstructions, 53 tasksaccuracy spreadNo clear effect
Increase the number of few-shot examplesPrompt format sensitivity · Super-NaturalInstructions tasksaccuracy spreadNo clear effect
Use instruction tuningFalcon-7B-Instruct prompt format sensitivity · Super-NaturalInstructions tasksaccuracy spreadNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Super-NaturalInstructions Instruction Induction

Benchmarks: Super-NaturalInstructions (53 tasks) Instruction Induction (10 tasks)

Metrics: accuracy performance spread exact prefix matching probability ranking

Baselines: UCB sampling naive sampling

Builds on: Thompson sampling upper confidence bound Super-NaturalInstructions

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy