TL;DR
Evaluating Large Language Models (LLMs) on multiple-choice questions using First-Token Probability (FTP) is highly efficient but notoriously fragile due to conversational preambles that throw off formatting. This paper introduces a zero-cost solution by repurposing the "prefilling attack" from AI safety—forcing the model's output to start with a phrase like "Given the question and the possible options, my answer is:"—to mechanically steer the model into emitting a clean answer token. This simple trick dramatically improves evaluation accuracy, calibration, and output consistency across diverse LLMs and benchmarks without any fine-tuning.
What Problem Does This Paper Address?
Multiple-Choice Question Answering (MCQA) benchmarks, such as the MMLU, are the gold standard for evaluating an LLM's general knowledge and reasoning. To avoid the high computational cost and parsing headaches of full text generation, researchers frequently use First-Token Probability (FTP). FTP evaluates a model by looking at the probability distribution of the very first token it generates, restricting the choice to valid options (e.g., 'A', 'B', 'C', 'D').
However, FTP is highly fragile and suffers from two major failure modes:
- First-Token Misalignment: Instead of directly outputting a choice, an instruction-tuned model might output a conversational preamble like "Sure! The answer is C." Because the first token is "Sure", standard FTP fails to register the correct answer.
- First-Token Misinterpretation: The model might output a valid token like 'A', but use it purely grammatically, such as "A possible answer could be C." Standard FTP would incorrectly score this as a vote for option A.
While prompt engineering (e.g., adding "Please answer only with the option letter") helps, it cannot completely guarantee strict format adherence due to competing instruction-following biases.
Methods
The authors propose a simple, zero-cost intervention: Output Prefilling.
Instead of modifying the user prompt, they inject a short, structured natural-language prefix directly into the assistant's response turn, immediately following the model's specific control tokens (e.g., <|assistant|> or [/INST]). The default template used is:
"Given the question and the possible options, my answer is: "
Because the LLM treats this injected text as content it has already generated, it naturally continues the sequence by emitting the actual answer option ('A', 'B', 'C', or 'D') as its true next token. This mechanically forces format compliance at the token level without modifying model parameters or adding decoding latency.
Datasets
The approach was rigorously evaluated across 14 prominent MCQA benchmarks spanning multiple cognitive domains:
- General Knowledge: MMLU
- Reading Comprehension: RACE, OpenBookQA (OBQA)
- Commonsense Reasoning: Social IQa (SIQA), Moral Stories (MS), CommonsenseQA (CQA)
- Narrative Understanding: Story Cloze (SC), HellaSwag (HS), MC-TACO (MC-T)
- STEM: SciQ, MathQA (MQA)
- Logical Reasoning: ARC-Easy (ARC-E), ARC-Challenge (ARC-C), LogiQA (LQA)
These benchmarks were tested using eight popular open-source LLMs: Llama-3.1-8B, Qwen-2-7B, Gemma-7B, Gemma-2-9B, Zephyr-7B, Ministral-8B, Mistral-Nemo-12B, and Phi-4-14B.
Key Insights and Ideas
- Repurposing an Adversarial Attack for Good: Prefilling was originally discovered in AI safety as a vulnerability used to bypass guardrails (e.g., forcing a model to start with "Sure, I can help you build a bomb"). Flipping this technique into an evaluation optimization tool is a clever, pragmatic twist.
- Mechanical vs. Prompt-Side Constraints: Instructing a model to follow a format in the prompt often fails because of the model's internal conversational biases. Forcing the text directly into the output cache completely bypasses this friction.
- The Gemma Breakthrough: Unconstrained full-vocabulary testing revealed that standard FTP completely breaks down on certain architectures like Gemma because they are heavily aligned to always start answers with phrases like "The correct answer is...". Prefilling completely resolves this architectural brittleness.
Key Results
- Massive Accuracy Gains: Prefilling yielded substantial improvements over standard FTP across the board. The most dramatic average accuracy gains were observed in Gemma-2-9B (+25.9 points) and Gemma-7B (+14.9 points). Stronger models also saw meaningful boosts, such as Phi-4-14B (+7.3 points) and Llama-3.1-8B (+6.0 points).
- Parity with Open-Ended Generation: FTP with prefilling achieved performance on par with—and sometimes superior to—expensive open-ended generation methods that require full autoregressive decoding and external LLM classifiers (like GPT-3.5 or xFinder) to extract answers.
- Enhanced Calibration: Prefilling consistently lowered the Adaptive Calibration Error (ACE), Brier score, and Log Loss across all models, meaning the probabilities assigned by the models became much more reliable indicators of their actual correctness.
- Drastically Lower Continuation Diversity (CD): The authors introduced a metric called Continuation Diversity to measure the variety of tokens following a valid first token. Prefilling dropped CD close to zero, proving it successfully eliminated verbose preambles and misinterpretation errors.
Limitations and Future Work
- Scope of Tasks: The study focuses exclusively on English-language benchmarks and multiple-choice formats. The authors note that future work should explore how well this generalizes to multilingual tasks or domain-shifted applications.
- Decoding Regimes: The controlled experiments were conducted using greedy decoding. The interaction of prefilling with other decoding strategies, such as beam search or temperature sampling, remains unexamined.
- Core Reasoning Limits: While prefilling fixes surface-level formatting issues, it cannot compensate for deep reasoning deficits; performance gains were noticeably lower on highly complex, reasoning-heavy tasks like MathQA and ARC-Challenge.
Summary updated