ssaraf1 commited on
Commit
d034a4e
·
verified ·
1 Parent(s): e64c0ba

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +126 -0
README.md ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - text-classification
5
+ - text-generation
6
+ language:
7
+ - en
8
+ tags:
9
+ - workflow-planning
10
+ - slm
11
+ - lora
12
+ - instruction-tuning
13
+ - policy-learning
14
+ - fork-join
15
+ - multi-agent
16
+ size_categories:
17
+ - 100K<n<1M
18
+ configs:
19
+ - config_name: default
20
+ data_files:
21
+ - split: train
22
+ path: train.jsonl
23
+ - split: validation
24
+ path: valid.jsonl
25
+ - split: test
26
+ path: test.jsonl
27
+ ---
28
+
29
+ # SLM Workflow Planner — Policy-Corrected Instruction Tuning Dataset (v2)
30
+
31
+ ## Overview
32
+
33
+ High-quality instruction-tuning dataset for training a Small Language Model (SLM)
34
+ to serve as a **workflow execution planner**. The model learns to make policy-aware
35
+ decisions about workflow transitions: when to proceed (NEXT), retry (RETRY),
36
+ parallelize (FORK), synchronize (JOIN), or escalate (META).
37
+
38
+ ## Key Features
39
+
40
+ - **648K instruction pairs** across 2 stages (decision type + node selection)
41
+ - **Policy-corrected labels**: FORK/JOIN/META decisions are conditioned on state
42
+ signals (resource pressure, parallel activity, goal progress, uncertainty),
43
+ not just topology flags
44
+ - **Counterfactual negatives**: Scenarios where topology suggests FORK/JOIN but
45
+ state signals dictate NEXT — teaching the model true policy boundaries
46
+ - **89 diverse workflow graphs** across 8 structural families + 2 semantic workflows
47
+ - **Balanced decision distribution**: NEXT ~36%, JOIN ~27%, META ~13%, FORK ~12%, RETRY ~12%
48
+
49
+ ## Dataset Structure
50
+
51
+ Each sample is a chat-completion format message with 3 roles:
52
+
53
+ ```json
54
+ {
55
+ "messages": [
56
+ {"role": "system", "content": "You are a workflow planner..."},
57
+ {"role": "user", "content": "Current node: ... State: ... Eligible: ..."},
58
+ {"role": "assistant", "content": "FORK"}
59
+ ]
60
+ }
61
+ ```
62
+
63
+ ### Stage 1: Decision Type Classification
64
+ Given current node, outcome, state signals, eligible nodes, forkable sets, and
65
+ join-ready nodes → predict one of: `NEXT`, `RETRY`, `FORK`, `JOIN`, `META`
66
+
67
+ ### Stage 2: Node Selection
68
+ Given the decision type and candidates → select which node(s) to execute
69
+
70
+ ## State Signals
71
+
72
+ Each sample includes realistic state signals:
73
+ - `goal_progress` (0→1): How close to workflow completion
74
+ - `retry_count` / `total_retries`: Retry budget tracking
75
+ - `parallel_active` / `parallel_depth`: Current parallelism state
76
+ - `resource_pressure` (0→1): System load indicator
77
+ - `sla_pressure` (0→1): Deadline urgency
78
+ - `uncertainty_level` (0→1): Confidence in current path
79
+ - `cost_accrued`: Cumulative cost so far
80
+ - `escalation_count`: Number of escalations triggered
81
+
82
+ ## Policy Boundaries (What Makes This Dataset Special)
83
+
84
+ Unlike naive topology-based labeling, this dataset includes:
85
+
86
+ | Scenario | Topology says | State says | Label |
87
+ |----------|--------------|------------|-------|
88
+ | Forkable set present + high resource pressure | FORK | Don't parallelize | **NEXT** |
89
+ | Forkable set present + already parallel | FORK | Already forked | **NEXT** |
90
+ | Join-ready + low goal progress | JOIN | Too early | **NEXT** |
91
+ | Anomaly outcome + high uncertainty | NEXT | Escalate | **META** |
92
+
93
+ These counterfactual samples are critical for learning **policy** vs **topology**.
94
+
95
+ ## Workflow Families
96
+
97
+ Generated from 89 workflows spanning:
98
+ 1. Linear with optional exits
99
+ 2. Retry loops
100
+ 3. Fork-Join patterns
101
+ 4. OR-alternative paths
102
+ 5. Escalation ladders
103
+ 6. Partial (k-of-n) joins
104
+ 7. Conditional irreversible branches
105
+ 8. Long horizon workflows
106
+ 9. Semantic parallel (Insurance Claim)
107
+ 10. Semantic join patterns
108
+
109
+ ## Intended Use
110
+
111
+ Fine-tuning SLMs (3B–7B) with LoRA for workflow planning tasks.
112
+ Tested with: `Qwen/Qwen2.5-7B-Instruct`
113
+
114
+ ## Splits
115
+
116
+ | Split | Samples |
117
+ |-------|---------|
118
+ | Train | 583,504 |
119
+ | Valid | 32,417 |
120
+ | Test | 32,417 |
121
+ | **Total** | **648,338** |
122
+
123
+ ## Citation
124
+
125
+ Part of the Agentic Factory project — building autonomous workflow orchestration
126
+ with SLM-powered planning.