Dataset Card for IFEval-Semantic (v0.1)
A model-agnostic semantic evaluation set for quantized (or otherwise compressed) language models, built on IFEval. The official IFEval checker still scores formal constraints; an LLM judge scores meaning only (whether the response substantively does what the user asked). Word counts, letter case, wrapping, and similar constraints are ignored by the judge.
This v0.1 release is the 200-item IFEval subset used in the 2026-12-02 Gemma-4-E2B-it pilot, plus the exact judge prompts and a standalone runner.
The sister math set is GSM8K-Semantic. Pilot generations for both tests are in Semantic-results-gemma-phi-lattice.
Contents
200 items from google/IFEval train split. source_key / id is the official IFEval key; ifeval_index is the row index in that split. Subset selection seed: 20261202. Source items follow Apache-2.0 as declared on the official HF dataset — see LICENSE, LICENSE-Apache-2.0, and NOTICE.
from datasets import load_dataset
ife = load_dataset("ununununununununununununununununununun/IFEval-Semantic", split="test")
prompt is the official IFEval user prompt. kwargs_json is the official per-instruction kwargs list, serialized as JSON (instruction types do not share one flat schema).
Method
- Generate responses for every item under one or more named configs (greedy decoding is what the pilot used; any decoding is allowed as long as you document it). Write
{config}.jsonlwithconfig,task(ifeval),id,output, and optionalfinish. - Official checkers (free, local):
- IFEval:
lm_eval.tasks.ifeval.utils.process_results(lm-eval), prompt-level and instruction-level, strict and loose. - Langdetect correction (documented bug): if
change_case:english_lowercasefails but the response is actually entirely lowercase, treat that instruction as passed and recompute prompt-level strict. In the Gemma pilot this affects official keys 279 and 3608.
- IFEval:
- Semantic judge (paid API): pinned
deepseek-ai/DeepSeek-V3.2:deepinfra, temperature 0, seed 0, JSON output, via the Hugging Face router (https://router.huggingface.co/v1). Exact templates are inprompts/(andprompts/prompts.json).- IFEval-Semantic: does the response substantively accomplish the user's request? Formal/counting constraints are explicitly ignored. Score:
good/ok/bad.
- IFEval-Semantic: does the response substantively accomplish the user's request? Formal/counting constraints are explicitly ignored. Score:
- Semantic drift vs a reference config (typically BF16 of the same model):
none/minor/major. Byte-identical pairs are labelednonewithout a judge call.
A standalone runner is in scripts/run_semantic_evals.py. It implements official checkers, the pinned judge, drift, and the summary table. The same script is also shipped in GSM8K-Semantic and will score whichever items are present in the checkout.
pip install -r requirements.txt # datasets, lm-eval
export HF_TOKEN=... # needed only for the judge, not for official scores
python scripts/run_semantic_evals.py \
--items-dir . \
--outputs-dir /path/to/outputs \
--configs bf16,myquant \
--reference-config bf16 \
--phase official # free
# then, after reviewing cost:
python scripts/run_semantic_evals.py \
--items-dir . --outputs-dir /path/to/outputs \
--configs bf16,myquant --reference-config bf16 \
--phase all --cap 0.70 --outdir ./run_out
Cost estimate
Budget about ~$0.3 per model with 4 configs on this 200-item set (DeepSeek-V3.2 at $0.26 / $0.38 per 1M tokens in/out). A single config is cheaper; longer responses cost more. The 2026-12-02 Gemma pilot spent $0.6010 judging GSM8K-Semantic and IFEval-Semantic together (pointwise $0.2938, drift $0.3072).
Limitations (v0.1)
- Pilot scale: 200 items, not the full IFEval set.
- Single judge (DeepSeek-V3.2). No second-judge agreement study.
- No BF16-vs-BF16 noise floor yet (repeated reference generations to measure judge/decoding jitter).
- About one third of IFEval
badlabels in the Gemma pilot still mentioned formal constraints (all-caps, forbidden words, bullet counts) despite the “semantics only” prompt. Treat content scores as a useful supplement, not a replacement for the official IFEval checker. - The official IFEval checker’s
english_lowercasecheck depends onlangdetectand can fail on short or odd lowercase English (prompts 279 and 3608). The runner applies a documented correction; raw and corrected scores are both reported. - Prices and router availability change; pin the judge model string if you need exact reproducibility of a published table.
Licensing
Apache-2.0. This is not legal advice.
- The 200 IFEval items follow the license declared on
google/IFEval(Apache-2.0). Some Google Research dataset materials have also been described as CC BY 4.0; this release follows the official Hugging Face dataset declaration and retains attribution inNOTICE. - Original prompts, runner, subset selection, and documentation are also released under Apache-2.0. See
LICENSEandNOTICE.
Citation
Please cite IFEval, and this dataset if you use the protocol:
@article{zhou2023instruction,
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},
journal={arXiv preprint arXiv:2311.07911},
year={2023}
}
Pilot date: 2026-12-02. Author: Kiryl Zmitrovich.