# Instruction-Following Evaluation for Large Language Models

Zhou, Jeffrey, Lu, Tianjian, Mishra, Swaroop, Brahma, Siddhartha, Basu, Sujoy, Luan, Yi and 2 more · arXiv · 2023-11-14

- **Problem** Human graders are slow and hard to reproduce, and LLM graders inherit the biases of the evaluator model. Standardized benchmarks for instruction following have been missing.
- **Method** IFEval is a benchmark that scores only verifiable instructions, which a simple program can check. Instead of asking a model to judge, each check is deterministic and tolerates harmless formatting such as bold markers.
- **Results** The authors run GPT-4 and PaLM 2 on IFEval as baselines, using about 500 prompts that cover 25 instruction types.

## Why following instructions is hard to score

Language models are expected to follow the instructions in their prompts, and a miss can matter in places like healthcare. Judging that ability is hard, because human language is subjective and ambiguous. One prompt asking for a funny tone can be read in several ways, so two judges may disagree on the same answer. Human annotators can settle these cases, but the process is slow, costly and hard to repeat across groups.

A second route asks a model to act as the judge. Its verdicts are only as reliable as the evaluator, and that reliability isn't guaranteed. If the evaluator has real limits, the scores it produces mislead about the model under test. Standardized benchmarks avoid this dependence, and Sun et al. (2023) examined counting-related instruction following on generative tasks.

## Verifiable instructions as the scoring unit

The key idea is to score only instructions that a short program can check. The authors call these verifiable instructions, meaning instructions whose compliance can be confirmed objectively. Examples include a word count target, a required JSON output and a title placed inside double square brackets. Since each check is a simple deterministic program, the same response always gets the same verdict.

Few instructions are fully verifiable, though, and the edge cases matter. An email that must end with a fixed P.S. line can be followed in a way that a plain string match marks as wrong, for example when the line is wrapped in bold markdown. Such a false negative would penalize a correct answer, so the check has to tolerate harmless formatting.

## Building the prompt set

Each instruction type comes in variants, both in parameters and in phrasing. A word range such as 450 to 500 words can be swapped for 350 to 400 words, or written as a plain requirement that the response contain that range. The authors define 25 instruction types in total. They then assemble 541 prompts, and each prompt includes one or more of those instructions.

The simplest method attaches instructions to a base request such as write an essay. That approach can create clashing constraints, such as a limit of five paragraphs alongside a cap of under 20 words. It also yields prompts that are not diverse, so the authors used few-shot prompting and then manual curation instead.

## How responses are checked

For each instruction, a program inspects the response and records whether it is satisfied. The check does not require exact wording, because it accepts commonly seen variations of the required output. Harmless formatting, such as bold markers around a required phrase, is therefore not counted as a failure.

Each prompt can carry several instructions, so one response may be checked on several items at once. The per-instruction results are then summarized into instruction-following metrics. Such summaries let a reader see which instruction types a model tends to miss.

## Which models were evaluated

The authors ran two widely available models on the market, GPT-4 and PaLM 2. They report these models as baselines for the benchmark. Both the code and the prompts are released, so anyone can rerun the same checks.

The benchmark is therefore a tool for comparing models on the same checks, rather than a ranking of the whole field.

## Limits of the current design

The evaluation results shown are for two widely available LLMs. Whether the same ranking holds for other model families was not tested. Some instructions still resist full automation, so a few edge cases remain open.

The authors say the instruction list can be extended, and they name XML format and mixed-language responses as possible additions. Those additions are not among the 25 instruction types evaluated here.

## Paper info

- **Authors**: Zhou, Jeffrey, Lu, Tianjian, Mishra, Swaroop, Brahma, Siddhartha, Basu, Sujoy, Luan, Yi, Zhou, Denny, Hou, Le
- **Venue**: arXiv · Preprint
- **First published**: 2023-11-14
- **Added**: 2026-11-12
- **Updated**: 2023-11-14
- **Version**: v1
- **arXiv**: 2311.07911
- **Category**: cs.CL · cs.AI · cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2311.07911v1) · [PDF ↗](https://arxiv.org/pdf/2311.07911v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Zhou, Jeffrey, Lu, Tianjian, Mishra, Swaroop, Brahma, Siddhartha, Basu, Sujoy, Luan, Yi, Zhou, Denny, Hou, Le (2023). Instruction-Following Evaluation for Large Language Models. arXiv:2311.07911v1. https://arxiv.org/abs/2311.07911v1

**BibTeX**

```
@misc{jeffrey2023instruction,
  title = {{Instruction-Following Evaluation for Large Language Models}},
  author = {Zhou, Jeffrey and Lu, Tianjian and Mishra, Swaroop and Brahma, Siddhartha and Basu, Sujoy and Luan, Yi and Zhou, Denny and Hou, Le},
  year = {2023},
  eprint = {2311.07911},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.07911v1}
}
```

## Other paper commentary

- [Large Language Models: A Survey](https://refivu.com/en/papers/d8a3f692-1bfe-4a26-b530-c20397434b3c-large-language-models-a-survey.md)
- [What Does BERT Look At? An Analysis of BERT's Attention](https://refivu.com/en/papers/8f682775-2bc4-4c36-a7e8-6afc56d2aeae-what-does-bert-look-at-an-analysis-of.md)
- [AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts](https://refivu.com/en/papers/e3fa3b73-5b1d-4ff0-8f81-98fad2340fa5-autoprompt-eliciting-knowledge-from-language-models-with.md)
- [DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligence](https://refivu.com/en/papers/a9b5666a-9125-4553-968a-b6f76e0d19db-deepseek-coder-when-the-large-language-model-meets.md)
- [OpenAI GPT-5 System Card](https://refivu.com/en/papers/678bc558-0d7f-4ee8-9fa0-55c5eb2daf22-openai-gpt-5-system-card.md)
- [Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Models](https://refivu.com/en/papers/b7a8b2ba-0d8c-47b1-8619-757da5d13fc9-siren-s-song-in-the-ai-ocean-a.md)
- [Neural Architecture Search: A Survey](https://refivu.com/en/papers/b954b27d-f3d7-4513-8986-c9a0dfb01e6e-neural-architecture-search-a-survey.md)
- [NTU RGB+D 120: A Large-Scale Benchmark for 3D Human Activity Understanding](https://refivu.com/en/papers/3fe61b53-c129-49a6-9839-f52dcd0e5d8d-ntu-rgb-d-120-a-large-scale-benchmark.md)
- [Imbalanced-learn: A Python Toolbox to Tackle the Curse of Imbalanced Datasets in Machine Learning](https://refivu.com/en/papers/fddce09d-7fcc-4378-9b7f-d421fd3b3e85-imbalanced-learn-a-python-toolbox-to-tackle-the.md)
- [Learning Structured Sparsity in Deep Neural Networks](https://refivu.com/en/papers/904b80d6-c19c-420d-861d-be919e5725b1-learning-structured-sparsity-in-deep-neural-networks.md)
- [ThiNet: A Filter Level Pruning Method for Deep Neural Network Compression](https://refivu.com/en/papers/13501147-4289-4a98-981e-919e37e87fc7-thinet-a-filter-level-pruning-method-for-deep.md)
- [Representation Learning on Graphs: Methods and Applications](https://refivu.com/en/papers/3ca2c648-5d7e-46c2-be1e-357cc66ab085-representation-learning-on-graphs-methods-and-applications.md)

## Terms in this paper

- [GPT-4](https://refivu.com/en/terms/1e2d0d2cdc44-gpt-4)
- [Large Language Models](https://refivu.com/en/terms/f2404476b183-large-language-models)
- [few-shot prompting](https://refivu.com/en/terms/92ad53fb3cd1-few-shot-prompting)
- [Human evaluation](https://refivu.com/en/terms/b64307b0a4d2-human-evaluation)
- [IFEval](https://refivu.com/en/terms/da319c218f51-ifeval)
- [Instruction following](https://refivu.com/en/terms/fa599a04e52c-instruction-following)
- [PaLM 2](https://refivu.com/en/terms/9cc1b4ac4881-palm-2)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/87d7b3e4-5def-4a0c-ac6d-4f0204c38402-instruction-following-evaluation-for-large-language-models)
