JIF-Eval: Japanese Instruction Following Evaluation
Dataset Description
This dataset contains Japanese instruction-following evaluation tasks designed to test language models' ability to follow specific instructions in Japanese. It is based on the IFEval framework but adapted for Japanese language evaluation.
Dataset Details
- Total Samples: {len(dataset):,}
- Language: Japanese
- Format: Instruction-following tasks with constraints
- Purpose: Evaluation of instruction-following capabilities in Japanese
Instruction Types Distribution
The dataset includes the following types of instruction constraints:
{chr(10).join([f"- {instruction}: {count} samples" for instruction, count in instruction_counts.most_common(20)])}
{f"... and {len(instruction_counts) - 20} more instruction types" if len(instruction_counts) > 20 else ""}
Data Fields
key: Unique identifier for each sampleprompt: The instruction prompt in Japaneseinstruction_id_list: List of instruction constraint IDs that apply to this samplekwargs: Parameters for the instruction constraints (e.g., required keywords, format constraints)
Instruction Constraint Categories
The constraints are organized into several categories:
- Language Constraints (
ja:language:*): Requiring specific languages in responses - Length Constraints (
ja:length_constraints:*): Controlling response length in sentences, characters, or paragraphs - Format Constraints (
ja:detectable_format:*): Requiring specific formats like JSON, bullet points, numbered lists - Content Constraints (
ja:detectable_content:*): Requiring specific content like placeholders or postscripts - Keyword Constraints (
ja:keywords:*): Controlling keyword usage, frequency, or forbidding certain words - Character/Letter Constraints (
ja:letters:*): Controlling use of hiragana, katakana, kanji, or furigana - Punctuation Constraints (
ja:punctuation:*): Controlling punctuation usage - Start/End Constraints (
ja:startend:*): Requiring specific beginnings or endings - Combination Constraints (
ja:combination:*): Complex multi-part instructions
Usage
This dataset is designed for:
- Model Evaluation: Test Japanese language models' instruction-following capabilities
- Benchmarking: Compare models on Japanese instruction adherence
- Research: Analyze instruction-following patterns and failure modes
- Fine-tuning: Training models to better follow Japanese instructions
Example Usage
from datasets import load_dataset
dataset = load_dataset("{self.org_name}/{self.dataset_name}")
# Get a sample
sample = dataset['train'][0]
print(f"Key: {{sample['key']}}")
print(f"Prompt: {{sample['prompt']}}")
print(f"Instructions: {{sample['instruction_id_list']}}")
print(f"Parameters: {{sample['kwargs']}}")
Evaluation
To evaluate a model on this dataset:
- Generate responses for each prompt
- Check if the response satisfies all constraints listed in
instruction_id_list - Use the parameters in
kwargsto validate constraint compliance - Calculate the percentage of instructions correctly followed
Citation
If you use this dataset, please cite:
https://github.com/lightblue-tech/M-IFEval/blob/main/data/ja_input_data.jsonl
Disclaimer
This dataset contains instruction-following tasks in Japanese. It is intended for research and evaluation purposes only.