Ewakaa commited on
Commit
e43d4b4
·
verified ·
1 Parent(s): c427f62

Use dataset card as repo README (HF YAML frontmatter for split loading)

Browse files
Files changed (1) hide show
  1. README.md +316 -107
README.md CHANGED
@@ -1,149 +1,358 @@
1
- # TRACE
2
-
3
- **T**axonomy-**R**eferenced **A**BA **C**linical **E**xamples
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
- A 2,999-example synthetic instruction-tuning dataset for two clinical tasks in Applied Behavior Analysis: **teaching-program generation** and **behavioral session interpretation**. Every example is generated from a taxonomy grounded in the canonical ABA literature (Cooper, Heron, & Heward 2020; VB-MAPP; AFLS; BACB Ethics Code 2020) and carries full sampling provenance — the exact taxonomy cells that produced it.
6
 
7
- | | |
8
- |---|---|
9
- | **Version** | v1.0.0 |
10
- | **Examples** | 2,999 (2,549 train / 149 valid / 281 test / 20 sanity) |
11
- | **Tasks** | Teaching-program generation (DTT, NET, Task Analysis); behavioral session interpretation (12 patterns, 13 target behaviors) |
12
- | **Language** | English (US clinical register) |
13
- | **Data license** | CC BY-NC 4.0 |
14
- | **Code license** | MIT |
15
- | **Maintainer** | Pombo Labs — [GitHub](https://github.com/Pombo-Labs) · [Hugging Face](https://huggingface.co/PomboLabs) |
16
- | **Author** | Festus Kahunla |
17
 
18
  ---
19
 
20
- ## What this is for
21
 
22
- ABA is a clinical discipline with high documentation workload. Board Certified Behavior Analysts (BCBAs) draft teaching programs and interpret multi-session behavioral logs constantly across their caseloads. TRACE is a **research** dataset for studying whether small language models can learn the structure of those documents well enough to produce useful first-pass drafts. It is a research artifact, not a clinical tool.
23
 
24
- Real session data is HIPAA-protected and gated by BACB confidentiality rules; it cannot be reliably de-identified without losing clinical detail. TRACE avoids the constraint by construction: the data never represented a real person.
 
25
 
26
- ## What makes TRACE different
27
 
28
- 1. **Two tasks in one dataset.** Structured teaching-program generation across DTT, NET, and Task Analysis; multi-session interpretation across 12 clinical trajectory patterns.
29
- 2. **Taxonomy-grounded.** Every category in the controlled vocabulary ties to a specific source — Cooper/Heron/Heward chapters, JABA papers, VB-MAPP/AFLS curricula, BACB Ethics Code 2020, ABAI 2010 Position Statement.
30
- 3. **Full provenance per example.** `meta.provenance.taxonomy_cells` records the exact values sampled from every taxonomy dimension that produced the example. This is the property that makes clinical auditing tractable.
31
- 4. **Practitioner-in-the-loop iteration.** Clinical accuracy was refined through targeted taxonomy edits rather than per-example rewrites — each flagged inaccuracy maps to a single cell whose fix then propagates across every example that sampled it.
32
 
33
- ## Quick start
34
 
35
- ```bash
36
- # Load with Hugging Face datasets
37
- from datasets import load_dataset
38
- ds = load_dataset("PomboLabs/TRACE")
39
- print(ds["train"][0])
40
- ```
41
 
42
- Or from the raw JSONL splits:
43
- ```python
44
- import json
45
- for line in open("data/splits/train.jsonl"):
46
- example = json.loads(line)
47
- system, user, assistant = example["messages"]
48
- gold = example["meta"]["gold_labels"]
49
- provenance = example["meta"]["provenance"]["taxonomy_cells"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  ```
51
 
52
- ### Extend the generator
53
 
54
- The taxonomy YAMLs under `configs/` are the fork point — drop in a new teaching method, a new clinical area, or a new behavioral pattern, regenerate, and you have a corpus tailored to your scope.
55
 
56
- ```bash
57
- uv pip install -e .
58
- uv run python src/generate.py --all
59
- uv run python src/split_data.py
60
- uv run python src/prepare_curation.py
61
- uv run python src/compile_curation.py
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  ```
63
 
64
- (Without `uv`: `pip install -r requirements.txt` and drop the `uv run` prefix.)
65
 
66
- The pipeline is deterministic, so the same configs + seed produce the same corpus but the more interesting use is to make your own.
67
 
68
- ## Repository structure
 
 
 
 
 
 
 
 
 
69
 
70
  ```
71
- .
72
- ├── configs/ # taxonomy YAMLs (controlled vocabulary)
73
- ├── shared/ # cross-area: learner profiles, mastery states
74
- ├── dtt/ # DTT taxonomy + template + compatibility
75
- ├── net/ # NET area
76
- │ ├── task_analysis/ # chaining (independence + toleration)
77
- └── session_interpretation/ # patterns, behaviors, trajectories, recommendations
78
- ├── src/
79
- │ ├── generators/ # per-area generator code
80
- ├── generate.py # orchestrator
81
- ├── split_data.py # train / valid / curation_pool
82
- ├── prepare_curation.py # browseable review.md
83
- └── compile_curation.py # test + sanity splits
84
- ├── data/splits/ # the released JSONL splits
85
- └── docs/
86
- ├── dataset-card.md # HF-style user-facing card
87
- ├── datasheet.md # Gebru et al. (2021) template
88
- ├── data-statement.md # Bender & Friedman (2018) template
89
- ├── taxonomy-v1.md # operational definitions + citations
90
- ├── schema-v1.md # wire format + slot specifications
91
- ├── references.md # the focused citation shortlist (~30 papers)
92
- └── curation/
93
- ├── README.md # review + compile workflow
94
- └── LEGEND.md # session-log notation reference
95
  ```
96
 
97
- ## Documentation
 
 
 
 
 
 
 
 
 
98
 
99
- | | |
100
- |---|---|
101
- | **Dataset card** | [docs/dataset-card.md](docs/dataset-card.md) |
102
- | **Datasheet** (Gebru et al. 2021) | [docs/datasheet.md](docs/datasheet.md) |
103
- | **Data statement** (Bender & Friedman 2018) | [docs/data-statement.md](docs/data-statement.md) |
104
- | **Taxonomy reference** | [docs/taxonomy-v1.md](docs/taxonomy-v1.md) |
105
- | **Schema reference** | [docs/schema-v1.md](docs/schema-v1.md) |
106
- | **Curation workflow** | [docs/curation/README.md](docs/curation/README.md) |
107
- | **Session-log reading guide** | [docs/curation/LEGEND.md](docs/curation/LEGEND.md) |
108
 
109
- ## Ethics and intended use
 
 
 
 
110
 
111
- - **For:** fine-tuning small models (recommended: Gemma 4 E2B, QLoRA, 4-bit) for on-device drafting assistants, evaluation baselines, research on clinical-NLP data pipelines.
112
- - **Not for:** autonomous clinical decisions; writing final Behavior Intervention Plans without BCBA review; training models on real client data; medical diagnosis; insurance documentation.
113
 
114
- Crisis-plan content is deliberately conservative: physical-intervention procedures are not specified because they vary by jurisdiction, training certification, and learner-specific contraindications. See [docs/dataset-card.md section 6.3](docs/dataset-card.md) for details.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
 
116
  **Responsibility.** TRACE is a research artifact. It is not a clinical tool, has not been clinically validated, and carries no clinical endorsement. Anyone who chooses to deploy TRACE — or any model derived from it — in a clinical setting does so entirely at their own responsibility and under their facility's own oversight. The authors and Pombo Labs make no representation of clinical suitability and accept no liability for clinical outcomes.
117
 
118
- ## License
119
 
120
- - **Data** — JSONL splits under `data/splits/` — Creative Commons Attribution-NonCommercial 4.0 (CC BY-NC 4.0). Research and non-commercial use permitted with attribution. See [LICENSE-DATA](LICENSE-DATA).
121
- - **Code** — generator, scripts, configs — MIT. See [LICENSE-CODE](LICENSE-CODE).
122
 
123
- ## Citation
 
 
 
124
 
125
- ```bibtex
126
- @dataset{trace_2026,
127
- title = {TRACE: Taxonomy-Referenced ABA Clinical Examples},
128
- author = {Kahunla, Festus},
129
- year = {2026},
130
- publisher = {Pombo Labs},
131
- url = {https://github.com/Pombo-Labs/TRACE},
132
- note = {Taxonomy-Grounded Synthetic Data for Teaching Program Generation
133
- and Session Interpretation in Applied Behavior Analysis}
134
- }
135
  ```
136
 
137
- Machine-readable metadata in [CITATION.cff](CITATION.cff).
 
 
138
 
139
- ## Contributing
140
 
141
- The taxonomy YAMLs under `configs/` are the intended extension surface. Adding a new skill target, a new target behavior, a new mastery criterion, or a new teaching method follows a documented pattern — see `docs/taxonomy-v1.md` for the existing vocabulary and grounding conventions. Pull requests welcome.
142
 
143
- For clinical-accuracy corrections, open an issue with the flagged example's `example_id` and a description of the issue; we trace back to the offending taxonomy cell and apply a single-commit fix.
144
 
145
- ## Scope of v1
 
 
146
 
147
- 2,999 examples covering DTT, NET, and Task Analysis (including toleration programs) for the teaching-program task, and 1,200 multi-session logs across 12 trajectory patterns for the session-interpretation task. What v1 does not cover is documented in the dataset card (section 6.5 Known limitations).
148
 
149
- Version history in [CHANGELOG.md](CHANGELOG.md).
 
 
 
 
1
+ ---
2
+ pretty_name: "TRACE — Taxonomy-Referenced ABA Clinical Examples"
3
+ license: cc-by-nc-4.0
4
+ language:
5
+ - en
6
+ size_categories:
7
+ - 1K<n<10K
8
+ task_categories:
9
+ - text-generation
10
+ tags:
11
+ - clinical
12
+ - applied-behavior-analysis
13
+ - autism
14
+ - small-language-model
15
+ - synthetic
16
+ - instruction-tuning
17
+ - taxonomy
18
+ - provenance
19
+ configs:
20
+ - config_name: default
21
+ data_files:
22
+ - split: train
23
+ path: data/splits/train.jsonl
24
+ - split: validation
25
+ path: data/splits/valid.jsonl
26
+ - split: test
27
+ path: data/splits/test.jsonl
28
+ - split: sanity
29
+ path: data/splits/sanity.jsonl
30
+ ---
31
 
32
+ # TRACE Dataset Card (v1)
33
 
34
+ **Name:** **TRACE** — **T**axonomy-**R**eferenced **A**BA **C**linical **E**xamples
35
+ **Version:** v1.0.0
36
+ **Date:** 2026-04-25
37
+ **Primary language:** English
38
+ **License (data):** CC BY-NC 4.0 · **License (code):** MIT
39
+ **Total examples:** 2,999
40
+ **Tasks:** 2 (1) ABA teaching program generation, (2) behavioral session interpretation.
41
+ **Author:** Festus Kahunla (Drexel University).
42
+ **Publisher / maintained by:** [Pombo Labs](https://github.com/Pombo-Labs).
43
+ **Repository:** https://github.com/Pombo-Labs/TRACE
44
 
45
  ---
46
 
47
+ ## 1. TL;DR
48
 
49
+ TRACE is a **synthetic instruction-tuning dataset** for two clinical tasks in Applied Behavior Analysis (ABA):
50
 
51
+ 1. **Teaching program generation** given a learner profile and a skill target, produce a structured teaching program (DTT, NET, or Task Analysis/chaining) covering stimulus control, prompt hierarchy, reinforcement schedule, error correction, mastery criterion, and generalization plan.
52
+ 2. **Behavioral session interpretation** — given a multi-session behavioral log (accuracies, target behaviors with measurements, optional ABC and IOA data), produce clinical concerns, a pattern classification, a function hypothesis, programming recommendations, and (when applicable) a crisis plan.
53
 
54
+ The dataset was produced by a **taxonomy-driven generator** whose controlled vocabulary is grounded in the canonical ABA literature (Cooper, Heron, & Heward 2020; VB-MAPP; AFLS; key JABA papers). Every example carries full **provenance metadata** — the exact taxonomy cells that were sampled to produce it. Clinical accuracy was iterated via practitioner-in-the-loop ad-hoc review.
55
 
56
+ **Intended use.** Research. TRACE is designed for fine-tuning small language models (e.g., 4-bit Gemma 4 E2B with QLoRA) on ABA-flavored instruction-following, as a substrate for research into clinical-NLP data pipelines, taxonomy-driven synthetic generation, and small-LM evaluation.
 
 
 
57
 
58
+ **Not for:** autonomous clinical decisions; training on or combining with real client data; medical diagnosis; legal or insurance documentation. TRACE has not been clinically validated and is not a clinical tool. See section 6 for the responsibility disclaimer.
59
 
60
+ ---
 
 
 
 
 
61
 
62
+ ## 2. Dataset Composition
63
+
64
+ ### 2.1 Splits
65
+
66
+ | Split | Examples | Fraction | Purpose |
67
+ |---|---:|---:|---|
68
+ | `train.jsonl` | 2,549 | 85.0% | LoRA fine-tuning |
69
+ | `valid.jsonl` | 149 | 4.97% | Periodic validation loss during training |
70
+ | `test.jsonl` | 281 | 9.37% | Held-out evaluation (headline metrics) |
71
+ | `sanity.jsonl` | 20 | 0.67% | Training smoke-test (tiny stratified subset) |
72
+ | **Total** | **2,999** | 100% | |
73
+
74
+ Splits are **stratified by task × category** (method for teaching programs; pattern_class for session interpretation) so each split mirrors the corpus distribution. The test set is the full curation pool minus a 20-example stratified sanity carveout.
75
+
76
+ ### 2.2 Per-area breakdown
77
+
78
+ | Area | Count | Task type | Primary source |
79
+ |---|---:|---|---|
80
+ | DTT | 800 | teaching_program | VB-MAPP (array-based discrete-response domains) |
81
+ | NET | 500 | teaching_program | VB-MAPP (mand, social, spontaneous vocal, intraverbal) |
82
+ | Task Analysis | 500 | teaching_program | AFLS (basic_living, home, community, vocational, independent_living) |
83
+ | Session Interpretation | 1,200 | session_interpretation | 12 clinical trajectory patterns |
84
+
85
+ ### 2.3 DTT skill-domain distribution (800 total)
86
+
87
+ | VB-MAPP domain | Count |
88
+ |---|---:|
89
+ | Reading | 131 |
90
+ | LRFFC (Listener Responding by Feature/Function/Class) | 126 |
91
+ | Math | 120 |
92
+ | Visual Perceptual / Matching-to-Sample | 115 |
93
+ | Listener Responding | 111 |
94
+ | Tact | 106 |
95
+ | Writing | 91 |
96
+
97
+ Sampled across VB-MAPP Levels 1 (≈45%), 2 (≈40%), and 3 (≈15%).
98
+
99
+ ### 2.4 NET skill-domain distribution (500 total)
100
+
101
+ | VB-MAPP domain | Count |
102
+ |---|---:|
103
+ | Spontaneous Vocal | 143 |
104
+ | Mand (including bathroom, break, all-done) | 141 |
105
+ | Social Behavior & Play | 131 |
106
+ | Intraverbal | 85 |
107
+
108
+ Each NET program carries a Motivating Operation arrangement matched to the skill (deprivation, missing-item, break opportunity, completion opportunity, bathroom opportunity, peer presence, reciprocal conversation, routine lead-in) and is embedded in a natural context (snack, free play, transition, arrival, etc.).
109
+
110
+ ### 2.5 Task Analysis distribution (500 total)
111
+
112
+ | AFLS module | Count | | Program type | Count |
113
+ |---|---:|---|---|---:|
114
+ | Basic Living | 172 | | Independence | 413 |
115
+ | Home | 96 | | Toleration (systematic desensitization) | 87 |
116
+ | Community | 94 | | | |
117
+ | Vocational | 76 | | | |
118
+ | Independent Living | 62 | | | |
119
+
120
+ **Toleration programs** are a distinct program type for learners whose clinical goal is to *allow* a caregiver-delivered routine (tooth brushing, hair washing, nail clipping, haircuts, showering, medical exam) rather than to perform it independently. They use a shaping progression with duration targets rather than a step chain.
121
+
122
+ ### 2.6 Session Interpretation distribution (1,200 total)
123
+
124
+ Twelve trajectory patterns, roughly uniform (84–113 each):
125
+
126
+ | Pattern | Count |
127
+ |---|---:|
128
+ | regression | 113 |
129
+ | prompt_dependency | 109 |
130
+ | setting_event_trigger | 107 |
131
+ | rapid_acquisition | 106 |
132
+ | motivating_operation_shift | 104 |
133
+ | generalization_failure | 103 |
134
+ | mastery_progression | 100 |
135
+ | skill_loss_after_break | 100 |
136
+ | plateau | 96 |
137
+ | frustration_pattern | 91 |
138
+ | variable_performance | 87 |
139
+ | extinction_burst | 84 |
140
+
141
+ **Target behaviors** sampled into logs (presence per log; a log carries 0–3 behaviors):
142
+
143
+ | Behavior | Logs | Measurement shape |
144
+ |---|---:|---|
145
+ | Aggression | 95 | freq |
146
+ | Toileting (urine + BM, in-toilet + accidents) | 89 | `urine: X in-toilet / Y accidents; BM: P in-toilet / Q accidents` |
147
+ | Pica | 81 | `attempts N (X unsuccessful; Y successful)` |
148
+ | Self-Injurious Behavior (SIB) | 79 | freq |
149
+ | Verbal Aggression | 79 | freq |
150
+ | Fecal Smearing (scatolia) | 78 | `attempts N (X intercepted; Y completed)` |
151
+ | Property Destruction | 75 | freq |
152
+ | Elopement | 75 | freq |
153
+ | Non-compliance | 70 | freq |
154
+ | Tantrum | 66 | `freq N, duration Mm total` |
155
+ | Mouthing | 56 | `freq N; PIR P%` |
156
+ | Motor Stereotypy | 50 | `freq N; PIR P%` |
157
+ | Vocal Stereotypy | 48 | `freq N; PIR P%` |
158
+
159
+ ---
160
+
161
+ ## 3. Data Format
162
+
163
+ ### 3.1 Wire format
164
+
165
+ Each example is one JSONL line:
166
+
167
+ ```json
168
+ {
169
+ "messages": [
170
+ {"role": "system", "content": "<ABA clinical-assistant system prompt>"},
171
+ {"role": "user", "content": "<task-specific prompt>"},
172
+ {"role": "assistant", "content": "<structured clinical response>"}
173
+ ],
174
+ "meta": {
175
+ "task_type": "teaching_program" | "session_interpretation",
176
+ "example_id": "<deterministic hash, 16-hex>",
177
+ "gold_labels": { ... task-specific labels ... },
178
+ "provenance": {
179
+ "layer": 1,
180
+ "area": "dtt" | "net" | "task_analysis" | "session_interpretation",
181
+ "template_id": "...",
182
+ "taxonomy_cells": { ... exact sampled values ... },
183
+ "teacher_model": null,
184
+ "seed_tag": "...",
185
+ "generated_at": "..."
186
+ }
187
+ }
188
+ }
189
  ```
190
 
191
+ Only `messages` is used for training (mask_prompt: true). `meta` is preserved for evaluation and provenance tracking.
192
 
193
+ ### 3.2 Gold labels per task
194
 
195
+ **Teaching program:**
196
+ ```
197
+ {
198
+ "method": "dtt" | "net" | "task_analysis",
199
+ "domain": "VB-MAPP.<domain>" | "AFLS.<module>",
200
+ "level": "L1" | "L2" | "L3" | ..., # VB-MAPP only
201
+ "learner_profile": "early" | "school_age" | "adolescent" | "adult",
202
+ "mastery_state": "emerging" | "developing" | "approaching" | "near" | "mastered" | "generalization",
203
+ "program_type": "independence" | "toleration", # Task Analysis only
204
+ "chain_type": "forward" | "backward" | "total_task" # Task Analysis only
205
+ }
206
+ ```
207
+
208
+ **Session interpretation:**
209
+ ```
210
+ {
211
+ "pattern_class": "<one of 12 patterns>",
212
+ "behavior_functions": { "<behavior_name>": "escape"|"attention"|"tangible"|"automatic"|"unknown" },
213
+ "escalation_level": 1 | 2 | 3 | 4,
214
+ "confidence": "high" | "moderate" | "low",
215
+ "crisis_plan_required": true | false
216
+ }
217
  ```
218
 
219
+ ### 3.3 Provenance
220
 
221
+ Every sampled choice is recorded in `meta.provenance.taxonomy_cells`. For teaching programs this includes the skill target, prompt hierarchy, reinforcement schedule, error correction, and mastery criterion. For session interpretation it includes the pattern, number of sessions, behaviors sampled, functions inferred, and whether IOA and ABC data are present. This enables:
222
 
223
+ - **Traceability:** any clinical issue in a generated example can be traced back to the exact taxonomy cell that produced it.
224
+ - **Reproducibility:** the dataset can be regenerated deterministically from the configs and seed.
225
+ - **Stratification:** splits can be regenerated with different stratification keys without regenerating the corpus.
226
+ - **Ablation:** subsets can be constructed by filtering on provenance cells.
227
+
228
+ ---
229
+
230
+ ## 4. How It Was Built
231
+
232
+ ### 4.1 Architecture
233
 
234
  ```
235
+ configs/
236
+ ├── shared/ # cross-area primitives (learner profiles, mastery states, prompt types)
237
+ ├── dtt/ # DTT area: taxonomy + template + compatibility
238
+ ├── net/ # NET area
239
+ ├── task_analysis/ # Chaining area (independence + toleration templates)
240
+ ── session_interpretation/ # Session interp area:
241
+ # taxonomy + compatibility + trajectory_rules
242
+ # + recommendations (per-pattern bullets) + template
243
+ src/generators/
244
+ ├── aba_dtt.py # per-area generator
245
+ ├── aba_net.py
246
+ ├── aba_task_analysis.py
247
+ └── aba_session_interp.py
248
+ src/generate.py # orchestrator
 
 
 
 
 
 
 
 
 
 
249
  ```
250
 
251
+ ### 4.2 Generation loop
252
+
253
+ For each example:
254
+ 1. Sample a clinical configuration from the taxonomy, weighted by realistic clinical frequency (level weights, module weights, pattern weights).
255
+ 2. Apply compatibility rules (e.g., DTT errorless error correction pairs only with most-to-least prompting; certain patterns have bias toward certain behavior functions).
256
+ 3. Compute template slots — current-prompt-level guidance from mastery state; MO arrangement from skill keywords; mastery criterion; reinforcement schedule.
257
+ 4. Render `user_content` from a random user-variant.
258
+ 5. Render `assistant_content` by filling `{slots}` in the assistant template.
259
+ 6. Stamp `meta.gold_labels` and `meta.provenance`.
260
+ 7. Write as one JSONL line.
261
 
262
+ ### 4.3 Grounding
 
 
 
 
 
 
 
 
263
 
264
+ - **Skill curricula** VB-MAPP milestones (Sundberg 2008) for verbal-behavior domains; AFLS (Partington & Mueller) for adaptive-living domains.
265
+ - **Teaching methods** — DTT (Lovaas 1987; Smith 2001); NET (Hart & Risley 1975 in CHH Ch. 18); Task Analysis / chaining (CHH Ch. 20).
266
+ - **Operational definitions of target behaviors** — Cooper/Heron/Heward Ch. 3, 27; key JABA papers (Iwata et al. 1994 for SIB and functional analysis; Carr & Durand 1985 for FCT; Hanley, Iwata, & McCord 2003 for FBA).
267
+ - **Session patterns** — derived from CHH Ch. 6–7 (analyzing behavior change) and Stokes & Baer 1977 (generalization).
268
+ - **Crisis plans** — BACB Ethics Code (2020) section 3.05; ABAI Position Statement on Restraint and Seclusion (2010). Physical-intervention procedures are left vague on purpose because they vary by training program (Safety-Care, CPI, PMT, TCI) and jurisdiction; the dataset emphasizes verbal de-escalation, environmental safety, BIP authorization, and contraindications.
269
 
270
+ ### 4.4 Clinical-accuracy pipeline
 
271
 
272
+ Initial generation produced the structural skeleton. The corpus was then iterated via **practitioner-in-the-loop review** a full-text render of the held-out candidate pool was browsed by a reviewer with ABA practitioner exposure, and each flagged clinical inaccuracy was traced to the responsible taxonomy cell and fixed with a single targeted edit plus a full regeneration. Because every example records its sampling provenance, a single cell-level edit propagates to every example that sampled the affected cells — so flagging one example systematically corrects a class of examples.
273
+
274
+ ---
275
+
276
+ ## 5. Intended Uses
277
+
278
+ ### 5.1 Direct use
279
+ - Instruction-tuning a small language model (recommended: Gemma 4 E2B 4-bit with QLoRA) to draft ABA teaching programs and interpret session logs.
280
+ - Evaluation of task-specific competencies using the held-out `test.jsonl` (281 examples).
281
+ - Research on taxonomy-driven synthetic data generation for clinical decision support.
282
+
283
+ ### 5.2 Downstream use
284
+ - Research on small-LM drafting assistants in structured clinical-documentation domains.
285
+ - Comparison baselines for future ABA-specific LLM work (Kumar et al. 2024 "Personalized-ABA" is the closest direct predecessor; the present dataset extends to structured program generation and session-log interpretation).
286
+
287
+ ### 5.3 Out-of-scope (do NOT use for)
288
+ - Autonomous clinical decisions.
289
+ - Writing final Behavior Intervention Plans without BCBA review.
290
+ - Training models on or combined with real client records (the pipeline and schema are explicitly designed to avoid this).
291
+ - Legal or insurance documentation.
292
+ - Medical diagnosis.
293
+
294
+ ---
295
+
296
+ ## 6. Ethics & Risks
297
+
298
+ ### 6.1 Provenance
299
+ Every example is synthetic. No real client data, no real session notes, no real identifiers were used at any step. Learner references use synthetic IDs (`SYN-####`); dates fall in the range 2026-01-01 to 2026-12-31.
300
+
301
+ ### 6.2 Clinical-risk framing
302
+ The dataset is designed around a **draft-and-review** authoring pattern. Assistant responses are structured so that a reviewer can quickly see the method, the stimulus arrangement, the prompt hierarchy, the reinforcement plan, the error-correction procedure, the mastery criterion, and the generalization plan — each as a distinct, scannable section. Session-interpretation responses surface a confidence level (high / moderate / low) and an escalation level (1–4) as structured fields. These are design choices that support auditability; they are not clinical advice, and TRACE's responsibility disclaimer applies.
303
+
304
+ ### 6.3 Crisis-plan sensitivity
305
+ Crisis plans were written against the ABAI 2010 Position Statement on Restraint and Seclusion and BACB Ethics Code 2020 section 3.05. The dataset references facility crisis-prevention frameworks (Safety-Care, CPI, PMT, TCI) only as examples and **deliberately avoids specifying restraint procedures** because those procedures are (a) jurisdiction-dependent, (b) training-certification-gated, and (c) learner-specific (many learners have contraindications). The dataset embeds explicit text in every crisis-plan bullet that physical intervention is used only when specifically authorized in the learner's BIP and only by staff currently certified in the facility's training program.
306
+
307
+ ### 6.4 Population representation
308
+ Learner profiles are intentionally abstract (early / school-age / adolescent / adult). The dataset does not encode demographic categories (race, socioeconomic status, gender identity) and does not attempt to characterize clinical presentations by such categories. This is a deliberate choice for a first release; future versions may add representation if grounded in published demographic work.
309
+
310
+ ### 6.5 Known limitations
311
+ - **English only.** Teaching method terminology, curriculum targets, and session-log conventions are rendered in English.
312
+ - **Synthetic distributions.** Pattern frequencies are approximately uniform for learnability; real clinical practice has different frequencies (mastery-progression is far more common than frustration-pattern in a healthy caseload). The dataset is explicitly a teaching set, not an epidemiological sample.
313
+ - **VB-MAPP + AFLS only.** Other curricula (ABLLS-R, Essential for Living, PEAK) are not covered. Practitioners using those curricula should adapt.
314
+ - **No longitudinal data.** Sessions within a log are temporally ordered but the pipeline does not model real continuity over months or years.
315
+ - **Toleration covers hygiene only.** Other toleration programs (e.g., wearing glasses, riding in a car seat) are not represented.
316
+ - **Toilet-training acquisition is out of scope.** Accidents are tracked in session logs and bathroom-requesting is taught as a NET mand, but the full Azrin & Foxx 1971 rapid toilet-training acquisition protocol is not included as a task-analysis program.
317
+
318
+ ### 6.6 License
319
+ **Data:** CC BY-NC 4.0 — research and non-commercial use with attribution. **Code:** MIT.
320
 
321
  **Responsibility.** TRACE is a research artifact. It is not a clinical tool, has not been clinically validated, and carries no clinical endorsement. Anyone who chooses to deploy TRACE — or any model derived from it — in a clinical setting does so entirely at their own responsibility and under their facility's own oversight. The authors and Pombo Labs make no representation of clinical suitability and accept no liability for clinical outcomes.
322
 
323
+ ---
324
 
325
+ ## 7. Reproducibility
 
326
 
327
+ The corpus is regenerated deterministically from:
328
+ - `configs/` (all YAMLs)
329
+ - `configs/generation.yaml` (seed and per-area counts)
330
+ - `src/generators/*.py` (generator code)
331
 
332
+ ```bash
333
+ uv run python src/generate.py --all # regenerate 3000 examples
334
+ uv run python src/split_data.py # stratified split
335
+ uv run python src/prepare_curation.py # browseable review.md
336
+ uv run python src/compile_curation.py # test.jsonl + sanity.jsonl
 
 
 
 
 
337
  ```
338
 
339
+ The dataset version is `v1.0.0`; the matching git tag pins the exact configs and generator code that produced the published JSONL splits.
340
+
341
+ ---
342
 
343
+ ## 8. Citation
344
 
345
+ Please cite as:
346
 
347
+ > Kahunla, F. (2026). *TRACE: Taxonomy-Grounded Synthetic Data for Teaching Program Generation and Session Interpretation in Applied Behavior Analysis.* Pombo Labs. https://github.com/Pombo-Labs/TRACE
348
 
349
+ Machine-readable metadata: `CITATION.cff`.
350
+
351
+ ---
352
 
353
+ ## 9. Appendices
354
 
355
+ - **Datasheet** (Gebru et al. 2021 format): `datasheet.md`
356
+ - **Data statement** (Bender & Friedman 2018 format): `data-statement.md`
357
+ - **Taxonomy reference** (operational definitions + citations): `taxonomy-v1.md`
358
+ - **Schema reference** (wire format + slot specifications): `schema-v1.md`