# IFEval (2023)

> 541 prompts with constraints like "no commas" or "at least 300 words", checked by code instead of a judge model.

Page: https://mralbu.github.io/ai-datasets/d/ifeval

## Key facts

- Category: LLMs
- Task: Following instructions that a program can check
- Creators: Jeffrey Zhou, Tianjian Lu, Swaroop Mishra et al. (Google)
- Size: 541 prompts, 25 types of instruction
- Splits: train 541
- Input: A prompt containing one or more verifiable instructions
- Labels: The instruction ids (and their parameters) that the response is checked against
- License: Apache 2.0
- Paper: [Instruction-Following Evaluation for Large Language Models](https://arxiv.org/abs/2311.07911)
- Homepage: https://github.com/google-research/google-research/tree/master/instruction_following_eval
- Hugging Face: [google/IFEval](https://huggingface.co/datasets/google/IFEval)
- Sampled at Hub revision 966cd89545d6b6acfd7638bc708b98261ca58e84 (2026-11-08)

## Why it matters

Whether a model follows instructions is usually judged by people, which is slow, or by another model, which is biased. IFEval only uses instructions a short Python function can verify: a word count, a required keyword, JSON output, all lowercase, exactly three bullet points. Scoring is cheap and fully reproducible, so it became the default instruction-following number in model reports and one of the six benchmarks of Hugging Face's Open LLM Leaderboard v2.

## Worth knowing

- There are two scores: prompt-level (every instruction in a prompt followed) and instruction-level (the share of individual instructions followed).
- "Loose" accuracy retries each check after stripping Markdown asterisks and the first or last line, so a response is not failed for adding "Sure, here it is:".
- The prompts only test form, not content. A summary can be wrong and still pass.
- Frontier models now score above 90%, so newer sets like IFBench (2025) test instructions not seen in training.

## Get the data

```bash
# pip install -U huggingface_hub
hf download google/IFEval --repo-type dataset \
  --local-dir ifeval
```

```python
from datasets import load_dataset   # pip install datasets

ds = load_dataset("google/IFEval")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/google/IFEval@~parquet/default/train/*.parquet")
print(df.shape)
```

## Related datasets

- [IFBench](https://huggingface.co/datasets/allenai/IFBench_test): 2025, 58 new out-of-distribution constraints
- [Alpaca](https://huggingface.co/datasets/tatsu-lab/alpaca): 2023, instruction-tuning data, the training side (on this site: https://mralbu.github.io/ai-datasets/d/alpaca)
