Add dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
size_categories:
|
| 6 |
+
- 100K<n<1M
|
| 7 |
+
task_categories:
|
| 8 |
+
- text-generation
|
| 9 |
+
pretty_name: Hard Instruction Following SFT (100K)
|
| 10 |
+
tags:
|
| 11 |
+
- instruction-following
|
| 12 |
+
- multi-constraint
|
| 13 |
+
- sft
|
| 14 |
+
- supervised-fine-tuning
|
| 15 |
+
- format-following
|
| 16 |
+
- ifeval
|
| 17 |
+
- constraint-satisfaction
|
| 18 |
+
- synthetic
|
| 19 |
+
configs:
|
| 20 |
+
- config_name: default
|
| 21 |
+
data_files:
|
| 22 |
+
- split: train
|
| 23 |
+
path: instruction-following-hard-sft-100k.jsonl
|
| 24 |
+
---
|
| 25 |
+
|
| 26 |
+
# Hard Instruction Following SFT (100K)
|
| 27 |
+
|
| 28 |
+
100,000 ShareGPT conversations where the assistant correctly satisfies multiple simultaneous explicit constraints in a single response. Each example pairs a multi-constraint prompt with a response that honors every constraint without dropping any.
|
| 29 |
+
|
| 30 |
+
Targets the instruction-following capability measured by IFEval and similar benchmarks.
|
| 31 |
+
|
| 32 |
+
## Motivation
|
| 33 |
+
|
| 34 |
+
A key failure mode in deployed LLMs is dropping constraints under load — responding to a multi-requirement prompt by satisfying some requirements while silently ignoring others. When a user says "write exactly 3 bullet points, each under 15 words, professional tone, mention X, don't mention Y," models often:
|
| 35 |
+
|
| 36 |
+
- Write 4 or 5 bullets when told exactly 3
|
| 37 |
+
- Exceed the word limit on some bullets
|
| 38 |
+
- Forget the exclusion constraint
|
| 39 |
+
- Drift from the specified tone
|
| 40 |
+
|
| 41 |
+
This dataset trains models to track and honor all constraints simultaneously.
|
| 42 |
+
|
| 43 |
+
## Dataset Description
|
| 44 |
+
|
| 45 |
+
**100,000 conversations** across 21 prompt scenarios, each with 4-6 simultaneous constraints:
|
| 46 |
+
|
| 47 |
+
### Constraint Count Distribution
|
| 48 |
+
|
| 49 |
+
| Constraints per prompt | Count | % |
|
| 50 |
+
|---|---|---|
|
| 51 |
+
| 4 | ~31,800 | 32% |
|
| 52 |
+
| 5 | ~50,000 | 50% |
|
| 53 |
+
| 6 | ~18,200 | 18% |
|
| 54 |
+
|
| 55 |
+
### Constraint Types Covered
|
| 56 |
+
|
| 57 |
+
| Type | Description |
|
| 58 |
+
|---|---|
|
| 59 |
+
| `format` | Output structure (bullets, table, numbered list, prose) |
|
| 60 |
+
| `length` | Exact or maximum word/sentence/item counts |
|
| 61 |
+
| `tone` | Register (formal, casual, professional, academic, motivating) |
|
| 62 |
+
| `content` | Specific topics or elements that must appear |
|
| 63 |
+
| `exclusion` | Specific words, topics, or elements that must NOT appear |
|
| 64 |
+
| `structure` | Internal organization (SBI format, chronological, paragraph role) |
|
| 65 |
+
| `style` | Voice, persona, or rhetorical approach |
|
| 66 |
+
| `order` | Sequence constraints (X must come first, end with Y) |
|
| 67 |
+
| `audience` | Target reader expertise level |
|
| 68 |
+
| `persona` | Signature, role, or POV requirements |
|
| 69 |
+
|
| 70 |
+
### Task Domains
|
| 71 |
+
|
| 72 |
+
Product writing, email drafting, code explanation, educational content, social media, academic writing, performance reviews, technical documentation, meeting facilitation, recipe/how-to guides, creative writing.
|
| 73 |
+
|
| 74 |
+
## Format
|
| 75 |
+
|
| 76 |
+
```json
|
| 77 |
+
{
|
| 78 |
+
"conversations": [
|
| 79 |
+
{
|
| 80 |
+
"from": "human",
|
| 81 |
+
"value": "Write a product description for a standing desk. Requirements: exactly 3 bullet points, each bullet under 15 words, professional tone, mention adjustable height and ergonomics, do NOT mention price or any specific brand name."
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"from": "gpt",
|
| 85 |
+
"value": "- Adjustable height lets you alternate between sitting and standing throughout your workday.\n- Ergonomic design reduces back strain and promotes healthier posture over long hours.\n- Smooth, quiet motor enables quick transitions so you stay focused and productive."
|
| 86 |
+
}
|
| 87 |
+
],
|
| 88 |
+
"metadata": {
|
| 89 |
+
"constraint_count": 5,
|
| 90 |
+
"constraint_types": ["format", "length", "tone", "content", "exclusion"]
|
| 91 |
+
},
|
| 92 |
+
"id": "abc123"
|
| 93 |
+
}
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
## Key Properties of Correct Responses
|
| 97 |
+
|
| 98 |
+
**1. Complete constraint satisfaction**: Every constraint in the prompt is honored in the response. No silent omissions.
|
| 99 |
+
|
| 100 |
+
**2. Verification-friendly outputs**: Responses are structured so constraints can be audited — exact bullet counts, verifiable word counts, no excluded terms.
|
| 101 |
+
|
| 102 |
+
**3. Quality within constraints**: Responses don't just technically satisfy constraints; they produce good outputs within the constraints. A 3-bullet product description should actually be a good product description.
|
| 103 |
+
|
| 104 |
+
**4. Exclusion constraints strictly followed**: "Do not use the word X" constraints are taken literally — the excluded words do not appear anywhere in the response.
|
| 105 |
+
|
| 106 |
+
**5. Numeric constraints precise**: "Exactly 4 sentences" means 4, not 3 or 5. "Under 15 words" means the bullet must count to 14 or fewer.
|
| 107 |
+
|
| 108 |
+
## Relationship to IFEval
|
| 109 |
+
|
| 110 |
+
The IFEval benchmark (Zhou et al., 2023) measures instruction-following on prompts with verifiable constraints. The constraint types in this dataset directly correspond to IFEval's constraint categories:
|
| 111 |
+
|
| 112 |
+
- Length constraints (word count, sentence count, paragraph count)
|
| 113 |
+
- Format constraints (JSON, markdown, bullet lists)
|
| 114 |
+
- Content constraints (keyword inclusion/exclusion)
|
| 115 |
+
- Style constraints (language register, tone)
|
| 116 |
+
|
| 117 |
+
Training on this dataset should improve scores on IFEval and similar instruction-following evaluations.
|
| 118 |
+
|
| 119 |
+
## Use Cases
|
| 120 |
+
|
| 121 |
+
- SFT fine-tuning for improved multi-constraint instruction following
|
| 122 |
+
- Training data for models targeting IFEval benchmark improvement
|
| 123 |
+
- Building AI writing assistants that reliably follow format specifications
|
| 124 |
+
- Enterprise AI deployment where output format consistency is critical
|
| 125 |
+
- Evaluation dataset development for constraint satisfaction testing
|
| 126 |
+
- Complementary to `instruction-following-dpo-100k` (DPO pairs for same capability)
|
| 127 |
+
|
| 128 |
+
## License
|
| 129 |
+
|
| 130 |
+
Apache 2.0
|