A Single Character can Make or Break Your LLM Evals
Jingtong Su, Jianyu Zhang, Karen Ullrich, Léon Bottou, Mark Ibrahim
TL;DR
The paper reveals that a single character delimiter used to separate in-context demonstrations can dramatically alter LLM evaluation outcomes, across both open-source families (Llama, Gemma, Qwen) and even closed models (GPT-4o). It establishes a common evaluation protocol and systematically varies 30 ASCII delimiters across multiple benchmarks (MMLU, ARC-Challenge, CommonsenseQA), showing performance swings up to $29.4\%$ on MMLU and substantial ranking shifts. The authors demonstrate that specifying the delimiter in the prompt improves robustness (with gains up to $27.9\%$ on some tasks) and that certain delimiters steer attention toward relevant input tokens, revealing a mechanistic link between prompt formatting and inference. They offer practical recommendations (e.g., newline or exclamation delimiters) and call for broader studies of formatting brittleness to ensure more reliable benchmarking and real-world prompting.
Abstract
Common Large Language model (LLM) evaluations rely on demonstration examples to steer models' responses to the desired style. While the number of examples used has been studied and standardized, the choice of how to format examples is less investigated. In evaluation protocols and real world usage, users face the choice how to separate in-context examples: use a comma? new line? semi-colon? hashtag? etc.? Surprisingly, we find this seemingly minor choice can dramatically alter model response quality. Across leading model families (Llama, Qwen, Gemma), performance on MMLU for example can vary by $\pm 23\%$ depending on the choice of delimiter. In fact, one can manipulate model rankings to put any model in the lead by only modifying the single character separating examples. We find LLMs' brittleness pervades topics, model families, and doesn't improve with scale. By probing attention head scores, we find that good-performing delimiters steer attention towards key tokens in the input. Finally, we explore methods to improve LLMs' robustness to the choice of delimiter. We find specifying the selected delimiter in the prompt boosts robustness and offer practical recommendations for the best-performing delimiters to select.
