ruIFEval — Russian Instruction-Following Benchmark
ruIFEval is a 2,000-example Russian benchmark for evaluating instruction-following capabilities in LLMs (in the spirit of IFEval). The core 1,800 examples are verified purely deterministically via code without an LLM judge, while 200 examples (style_and_reasoning) combine deterministic constraints with llm_rubric criteria for judge-based evaluation.
All prompts, inputs, and references are natively authored in Russian with localized entities (rubles, Russian dates, fictional full names, +7 phone numbers) rather than translated from English benchmarks.
Dataset Configurations
deterministic(default) —data/deterministic.jsonl:1,800examples (ru_if_0001–ru_if_1800),eval_mode="deterministic", splittest.full—data/full.jsonl: all2,000examples (ru_if_0001–ru_if_2000, with IDs matchingdeterministic), splittest.
Quick Start
Loading with HuggingFace datasets
from datasets import load_dataset
# Default configuration: deterministic (1,800 examples)
ds_det = load_dataset("Squeal-Studio/ruIFEval", "deterministic", split="test")
# Full dataset: deterministic + llm_judge (2,000 examples)
ds_full = load_dataset("Squeal-Studio/ruIFEval", "full", split="test")
Evaluating Model Responses (eval.py)
Model responses can be provided as a JSON object ({"ru_if_0001": "...", ...}) or JSONL ({"id": "ru_if_0001", "response": "..."}):
python3 eval.py --dataset data/deterministic.jsonl --responses model_responses.jsonl
The script outputs four metrics: prompt_level_strict, prompt_level_loose, instruction_level_strict, and instruction_level_loose.
Validating the Dataset (validate.py)
python3 validate.py --file data/full.jsonl --check-expected --stats
Dataset Composition
Categories
| Category | Count | Share (full) |
eval_mode |
Description |
|---|---|---|---|---|
formatting |
280 | 14.0% | deterministic |
JSON, YAML, CSV, Markdown tables, XML |
extraction |
240 | 12.0% | deterministic |
Extracting names, amounts, dates, IDs, and entities from text |
structure |
230 | 11.5% | deterministic |
Bullet/numbered lists, sections, <<title>>, [placeholders], P.S. |
length |
220 | 11.0% | deterministic |
Word, sentence, paragraph, and line count constraints |
lexical |
220 | 11.0% | deterministic |
Required/forbidden words, keyword frequency, start/end anchors |
multi_constraint |
200 | 10.0% | deterministic |
3–5+ compatible constraints combined in a single prompt |
language_case_punct |
180 | 9.0% | deterministic |
Casing, forbidden characters, Cyrillic ratio, quotation wrapping |
classification |
140 | 7.0% | deterministic |
Single-label classification from a closed set |
edge_cases |
90 | 4.5% | deterministic |
Distractors, long inputs (>= 400 words), embedded prompt injections |
style_and_reasoning |
200 | 10.0% | llm_judge |
Tone shift, paraphrasing, short reasoning (deterministic + llm_rubric) |
| Total | 2,000 | 100.0% | — | 1,800 deterministic + 200 llm_judge |
Difficulty & Domain Distribution
- Difficulty:
easy— 601 (30.05%),medium— 904 (45.20%),hard— 495 (24.75%). - Domains (12):
business,finance,legal,hr,ecommerce,logistics,tech,education,science,journalism,everyday,public_services(7.55%–8.95%each).
Record Schema
Every JSONL line has 12 required string fields (expected and checks are JSON-serialized strings to keep a flat, uniform Arrow/HuggingFace schema):
| Field | Type | Description |
|---|---|---|
id |
string |
Sequential identifier ru_if_0001 – ru_if_2000 |
lang |
string |
Always "ru" |
category |
string |
One of the 10 categories above |
subtopic |
string |
Fine-grained task subtopic |
domain |
string |
One of the 12 domains |
difficulty |
string |
"easy", "medium", or "hard" |
eval_mode |
string |
"deterministic" or "llm_judge" |
prompt |
string |
Full prompt ready for model inference (instruction + input) |
instruction |
string |
Instruction text only |
input |
string |
Input data only ("" if none) |
expected |
string |
JSON-encoded reference answer ("" for llm_judge) |
checks |
string |
JSON-encoded list of check objects |
Evaluation Modes: strict vs loose
eval.py evaluates every deterministic check in both modes:
strict: evaluates the raw model response as-is.loose: appliesnormalize_loose()before checking — stripping common conversational intro/outro phrases (e.g., "Конечно, вот ответ:", "Обращайтесь!"), outer markdown code fences (```...```), bold/italic asterisks (**/*), and redundant whitespace.- Checks where loose normalization is inappropriate (such as
no_markdown_fencesor strict-formatstarts_with) carry"loose": falseand behave identically in both modes.
Check Catalog
| Check | Parameters | Description |
|---|---|---|
valid_json |
— | Response parses as valid JSON |
json_equals |
ref |
Parsed JSON equals ref |
json_subset |
ref |
Parsed JSON contains the ref subtree |
required_keys |
keys |
Parsed JSON object contains all keys in keys |
json_types |
types |
JSON values match expected types (str, int, float, bool, list, dict, null) |
exact_match |
ref |
Exact string match (or membership in list ref) |
normalized_match |
ref |
Match after case folding, whitespace collapse, outer punctuation stripping, and ё→е |
numeric_equals |
ref, path?, tolerance? |
Numeric value (or JSON field at path) equals ref within tolerance |
label_in_set |
labels |
Response belongs to allowed set labels |
word_count |
min?, max? |
Word count within [min, max] (defaults to min=1 if omitted) |
sentence_count |
min?, max? |
Sentence count (segments with >= 1 word) within [min, max] |
paragraph_count |
n |
Exactly n non-empty paragraphs separated by blank lines |
line_count |
min?, max? |
Non-empty line count within [min, max] |
bullet_count |
n, marker? |
Exactly n list items starting with marker (-, *, •, 1.) |
section_count |
marker, n |
Exactly n section headers starting with marker |
contains_all |
words, case_sensitive? |
All words/stems in words match at word-start boundaries ((?<!\w)) |
contains_none |
words, case_sensitive? |
None of the words/stems in words match at word-start boundaries ((?<!\w)) |
keyword_frequency |
word, op, n, case_sensitive? |
Occurrence count of word satisfies op (==, >=, <=, >, <) n |
starts_with |
text |
Response starts with text |
ends_with |
text |
Response ends with text |
regex_match |
pattern |
Response matches regex pattern |
regex_absent |
pattern |
Response does not match regex pattern (requires >= 1 word) |
lowercase_only |
— | Contains alphabetic chars and no uppercase letters |
uppercase_only |
— | Contains alphabetic chars and no lowercase letters |
no_char |
chars |
None of chars appear in response (requires >= 1 word) |
language_ru |
min_cyrillic_ratio? |
Ratio of Cyrillic letters among alphabetic characters >= min_cyrillic_ratio (default 0.8) |
wrapped_in_quotes |
— | Entire response is wrapped in matching quotes («...», "...", etc.) |
title_in_angle_brackets |
— | Contains a title wrapped in double angle brackets <<...>> |
placeholder_count |
n |
Exactly n bracketed placeholders [...] |
postscript |
marker |
Contains a postscript starting with marker after body content |
no_markdown_fences |
— | Contains no triple backticks (```) |
llm_rubric |
criteria |
3–5 concrete rubric criteria for an LLM judge (eval_mode="llm_judge" only) |
Limitations & Notes
- Fictional Data: All names, companies, addresses, phone numbers, and financial figures are synthetic.
- LLM-Judge Subset: The 200
style_and_reasoningexamples require an external LLM judge to scorellm_rubriccriteria alongside their deterministic checks;eval.pyevaluates only the deterministic checks unless a customllm_judge_fncallback is supplied. - Form-Only Constraints: A small fraction of
length/lexicaltasks test purely formal constraints (e.g., word count or forbidden words), which by design do not verify semantic coherence without a judge.
Citation
@misc{ruifeval2026,
title = {ruIFEval: Russian Instruction-Following Benchmark},
author = {Squeal Studio},
year = {2026},
url = {https://huggingface.co/datasets/Squeal-Studio/ruIFEval}
}