KrithikV commited on
Commit
46a1097
·
verified ·
1 Parent(s): c4cb53f

Release MedDistract benchmark v1.0.0

Browse files
LICENSE ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ Creative Commons Attribution 4.0 International (CC BY 4.0)
2
+ https://creativecommons.org/licenses/by/4.0/legalcode
3
+
4
+ See README.md for source attribution and modifications.
README.md ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: cc-by-4.0
5
+ tags:
6
+ - medical
7
+ - robustness
8
+ - benchmark
9
+ - arxiv:2610.08585
10
+ pretty_name: MedDistractNotes
11
+ configs:
12
+ - config_name: pairs
13
+ data_files:
14
+ - split: test
15
+ path: data/ambient/pairs_v3.parquet
16
+ default: true
17
+ - config_name: insertions
18
+ data_files:
19
+ - split: test
20
+ path: data/ambient/insertions_v3.parquet
21
+ - config_name: organ_systems
22
+ data_files:
23
+ - split: test
24
+ path: data/ambient/encounter_systems.parquet
25
+ - config_name: notes
26
+ data_files:
27
+ - split: test
28
+ path: results/raw_v3/amb_notes.parquet
29
+ - config_name: judgments
30
+ data_files:
31
+ - split: test
32
+ path: results/raw_v3/amb_judgments.parquet
33
+ - config_name: attribution
34
+ data_files:
35
+ - split: test
36
+ path: results/raw_v3/amb_attribution.parquet
37
+ - config_name: single_note_judgments
38
+ data_files:
39
+ - split: test
40
+ path: results/judge_control/judgments.parquet
41
+ - config_name: failure_modes
42
+ data_files:
43
+ - split: test
44
+ path: results/v3/amb_failure_notes.parquet
45
+ ---
46
+
47
+ # MedDistractNotes
48
+
49
+ MedDistractNotes tests whether incidental conversation enters clinical notes. It contains **1,152 clean–distracted transcript pairs from 576 encounters**, with one bystander and one nonliteral aside per encounter. The clean and distracted transcripts differ only by the inserted exchange. Use the paired inputs to evaluate your own note-generation model; the additional configurations contain the frozen study outputs.
50
+
51
+ ```python
52
+ from datasets import load_dataset
53
+ pairs = load_dataset("NYU-OLAB/MedDistractNotes", "pairs", split="test")
54
+ row = pairs[0]
55
+ print(row["clean_transcript"], row["distracted_transcript"])
56
+ ```
57
+
58
+ The `test` split is the entire evaluation benchmark. `source_dataset` preserves the original corpus split; these are not new training/development partitions. The same encounter appears in both perturbation families, so split by encounter if making your own partitions.
59
+
60
+ ## Contents and keys
61
+
62
+ | Configuration | Rows | Contents |
63
+ |---|---:|---|
64
+ | pairs | 1,152 | Clean/distracted transcripts, reference note, inserted exchange, target summary and insertion position |
65
+ | insertions | 1,152 | Frozen GPT-generated exchanges, assigned content, organ system and generation metadata |
66
+ | organ_systems | 577 | Labels/rationales for the original cohort, including the one excluded single-speaker encounter |
67
+ | notes | 18,432 | Saved clean/distracted notes from eight models |
68
+ | judgments | 18,432 | Paired contamination/severity judgments and note-quality scores |
69
+ | attribution | 3,921 | Attribution and clinical-use classifications for flagged notes |
70
+ | single_note_judgments | 18,432 | Matched single-note control scores and explanations |
71
+ | failure_modes | 9,216 | Frozen outcome, failure-mode and section-location annotations for distracted notes |
72
+
73
+ Pair keys are `source_dataset`, `item_id`, `distractor_type`. Add `model` and `condition` to join per-note results. `model` retains the identifiers used in the frozen runs. Judge explanations are model-generated, not clinical adjudications. Two empty saved note records remain in the primary denominator; absent and unresolved attribution classifications are retained. Missing scores must not be treated as zero.
74
+
75
+ `protocol/prompts.json` contains the generation and scoring templates. Source data, outputs and scores are unchanged from the checked submission archive; only provider bookkeeping was removed from the single-note control export. `release_manifest.json` records content hashes and `data_schema.json` describes every column. The toolkit supports downloading these files into the expected analysis paths.
76
+
77
+ ## Sources and license
78
+
79
+ Derived from [ACI-Bench](https://github.com/wyim/aci-bench) (Yim et al., 2023) and [MTS-Dialog](https://github.com/abachaa/MTS-Dialog) (Ben Abacha et al., 2023), both under CC BY 4.0. The released cohort uses 77 ACI-Bench encounters and 499 MTS-Dialog excerpts. The original transcripts and reference notes are retained; the changes are generated incidental exchanges and the associated model outputs/annotations. Cite the source corpora as well as this benchmark. This release uses CC BY 4.0 with source attribution retained.
80
+
81
+ ## Intended use and limitations
82
+
83
+ For research on contamination, attribution and robustness in note generation. The asides are synthetic and the reference notes come from the source corpora. The scores are automated judgments, not clinician-validated safety labels. High general note-quality scores do not establish that a note is free of contamination. Do not use the benchmark as patient-care guidance.
84
+
85
+ Code: https://github.com/nyuolab/llm_distract (the public toolkit release is being prepared).
86
+
87
+ ## Citation
88
+
89
+ [Paper](https://arxiv.org/abs/2610.08585). The citation below uses the publicly posted v1 title; the authors have submitted a revised title. The scientific data are frozen to the submitted study.
90
+
91
+ ```bibtex
92
+ @misc{vishwanath2026incidental,
93
+ title={Incidental information contaminates patient notes and disrupts clinical reasoning in large language models},
94
+ author={Vishwanath, Krithik and Ye, Brandon and Alyakin, Anton and Markert, John E. and Hsieh, Aaron and Mańkowski, Michał and Oermann, Eric K.},
95
+ year={2026}, eprint={2610.08585}, archivePrefix={arXiv}, primaryClass={cs.CL},
96
+ url={https://arxiv.org/abs/2610.08585}
97
+ }
98
+ ```
data/ambient/encounter_systems.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30465d8b6e0f073ee069f815b543617303caacd547bac3385fbda83890bf1652
3
+ size 24579
data/ambient/insertions_v3.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03b908525decf30395ba660f7162f9f014d4eb6b9f69c15469440fd9d5feb20c
3
+ size 146785
data/ambient/pairs_v3.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c406efc2534829a4b1bc78b7a469e9c69f92cb0aec1fa33f23376ce60a4d2d45
3
+ size 1126980
data_schema.json ADDED
@@ -0,0 +1,433 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "missing_values": "Retained from frozen inputs; missing does not mean negative or zero.",
3
+ "configs": {
4
+ "pairs": {
5
+ "rows": 1152,
6
+ "split": "test",
7
+ "columns": {
8
+ "source_dataset": {
9
+ "type": "large_string",
10
+ "description": "Original corpus and split identifier."
11
+ },
12
+ "family": {
13
+ "type": "large_string",
14
+ "description": "Source corpus family."
15
+ },
16
+ "item_id": {
17
+ "type": "large_string",
18
+ "description": "Encounter identifier within source_dataset."
19
+ },
20
+ "distractor_type": {
21
+ "type": "large_string",
22
+ "description": "Perturbation family or audio donor/level identifier; clean for unmodified audio."
23
+ },
24
+ "clean_transcript": {
25
+ "type": "large_string",
26
+ "description": "Unmodified source transcript (Notes) or saved ASR of clean recording (Audio)."
27
+ },
28
+ "distracted_transcript": {
29
+ "type": "large_string",
30
+ "description": "Transcript with inserted conversation (Notes) or saved ASR of mixed recording (Audio)."
31
+ },
32
+ "reference_note": {
33
+ "type": "large_string",
34
+ "description": "Reference clinical note supplied by original source corpus."
35
+ },
36
+ "distractor_conversation": {
37
+ "type": "large_string",
38
+ "description": "Inserted exchange or human-transcribed donor speech."
39
+ },
40
+ "insert_after_turn": {
41
+ "type": "int64",
42
+ "description": "One-based speaker-turn insertion position."
43
+ },
44
+ "distractor_summary": {
45
+ "type": "large_string",
46
+ "description": "Target content supplied to the contamination judge."
47
+ },
48
+ "distractor_topic": {
49
+ "type": "large_string",
50
+ "description": "Generated aside topic or audio donor-content label."
51
+ },
52
+ "generation_model": {
53
+ "type": "large_string",
54
+ "description": "Identifier of insertion-generation model."
55
+ }
56
+ }
57
+ },
58
+ "insertions": {
59
+ "rows": 1152,
60
+ "split": "test",
61
+ "columns": {
62
+ "source_dataset": {
63
+ "type": "large_string",
64
+ "description": "Original corpus and split identifier."
65
+ },
66
+ "item_id": {
67
+ "type": "large_string",
68
+ "description": "Encounter identifier within source_dataset."
69
+ },
70
+ "distractor_type": {
71
+ "type": "large_string",
72
+ "description": "Perturbation family or audio donor/level identifier; clean for unmodified audio."
73
+ },
74
+ "distractor_topic": {
75
+ "type": "large_string",
76
+ "description": "Generated aside topic or audio donor-content label."
77
+ },
78
+ "distractor_conversation": {
79
+ "type": "large_string",
80
+ "description": "Inserted exchange or human-transcribed donor speech."
81
+ },
82
+ "distractor_summary": {
83
+ "type": "large_string",
84
+ "description": "Target content supplied to the contamination judge."
85
+ },
86
+ "insert_after_turn": {
87
+ "type": "int64",
88
+ "description": "One-based speaker-turn insertion position."
89
+ },
90
+ "assigned_content": {
91
+ "type": "large_string",
92
+ "description": "Clinical content assigned to the insertion generator."
93
+ },
94
+ "style": {
95
+ "type": "large_string",
96
+ "description": "Assigned insertion style."
97
+ },
98
+ "attempts": {
99
+ "type": "int64",
100
+ "description": "Number of insertion generation attempts."
101
+ },
102
+ "body_system": {
103
+ "type": "large_string",
104
+ "description": "Organ system label for the underlying encounter."
105
+ },
106
+ "generation_model": {
107
+ "type": "large_string",
108
+ "description": "Identifier of insertion-generation model."
109
+ },
110
+ "timestamp": {
111
+ "type": "large_string",
112
+ "description": "Saved generation timestamp."
113
+ }
114
+ }
115
+ },
116
+ "organ_systems": {
117
+ "rows": 577,
118
+ "split": "test",
119
+ "columns": {
120
+ "source_dataset": {
121
+ "type": "large_string",
122
+ "description": "Original corpus and split identifier."
123
+ },
124
+ "item_id": {
125
+ "type": "large_string",
126
+ "description": "Encounter identifier within source_dataset."
127
+ },
128
+ "body_system": {
129
+ "type": "large_string",
130
+ "description": "Organ system label for the underlying encounter."
131
+ },
132
+ "rationale": {
133
+ "type": "large_string",
134
+ "description": "Model-generated explanation of organ-system label."
135
+ },
136
+ "labeller": {
137
+ "type": "large_string",
138
+ "description": "Model used to label the encounter."
139
+ }
140
+ }
141
+ },
142
+ "notes": {
143
+ "rows": 18432,
144
+ "split": "test",
145
+ "columns": {
146
+ "source_dataset": {
147
+ "type": "large_string",
148
+ "description": "Original corpus and split identifier."
149
+ },
150
+ "item_id": {
151
+ "type": "large_string",
152
+ "description": "Encounter identifier within source_dataset."
153
+ },
154
+ "family": {
155
+ "type": "large_string",
156
+ "description": "Source corpus family."
157
+ },
158
+ "model": {
159
+ "type": "large_string",
160
+ "description": "Note-generation model identifier used in saved experiment."
161
+ },
162
+ "distractor_type": {
163
+ "type": "large_string",
164
+ "description": "Perturbation family or audio donor/level identifier; clean for unmodified audio."
165
+ },
166
+ "condition": {
167
+ "type": "large_string",
168
+ "description": "clean or distracted."
169
+ },
170
+ "note": {
171
+ "type": "large_string",
172
+ "description": "Generated clinical note; empty saved records are retained."
173
+ },
174
+ "note_chars": {
175
+ "type": "int64",
176
+ "description": "Character count of saved note."
177
+ },
178
+ "transcript_chars": {
179
+ "type": "int64",
180
+ "description": "Character count of note-generation input."
181
+ }
182
+ }
183
+ },
184
+ "judgments": {
185
+ "rows": 18432,
186
+ "split": "test",
187
+ "columns": {
188
+ "source_dataset": {
189
+ "type": "large_string",
190
+ "description": "Original corpus and split identifier."
191
+ },
192
+ "item_id": {
193
+ "type": "large_string",
194
+ "description": "Encounter identifier within source_dataset."
195
+ },
196
+ "family": {
197
+ "type": "large_string",
198
+ "description": "Source corpus family."
199
+ },
200
+ "model": {
201
+ "type": "large_string",
202
+ "description": "Note-generation model identifier used in saved experiment."
203
+ },
204
+ "distractor_type": {
205
+ "type": "large_string",
206
+ "description": "Perturbation family or audio donor/level identifier; clean for unmodified audio."
207
+ },
208
+ "condition": {
209
+ "type": "large_string",
210
+ "description": "clean or distracted."
211
+ },
212
+ "contamination_v3": {
213
+ "type": "int8",
214
+ "description": "Primary paired-judge binary target contamination flag."
215
+ },
216
+ "severity_v3": {
217
+ "type": "int8",
218
+ "description": "Primary paired-judge severity 0–3 (absent to clinically consequential incorporation)."
219
+ },
220
+ "judge_reasoning_v3": {
221
+ "type": "large_string",
222
+ "description": "Model-generated primary paired-judge explanation."
223
+ },
224
+ "judge_protocol": {
225
+ "type": "large_string",
226
+ "description": "Scoring protocol identifier."
227
+ },
228
+ "clinical_correctness": {
229
+ "type": "int8",
230
+ "description": "Automated quality score, 1–5, higher is better."
231
+ },
232
+ "completeness": {
233
+ "type": "int8",
234
+ "description": "Automated completeness score, 1–5, higher is better."
235
+ },
236
+ "succinctness": {
237
+ "type": "int8",
238
+ "description": "Automated concision score, 1–5, higher is better."
239
+ },
240
+ "hallucination": {
241
+ "type": "int8",
242
+ "description": "Automated binary flag for findings unsupported by the transcript."
243
+ },
244
+ "overall_quality": {
245
+ "type": "int8",
246
+ "description": "Automated overall quality score, 1–5, higher is better."
247
+ },
248
+ "contamination_v2_gpt": {
249
+ "type": "int8",
250
+ "description": "Legacy single-note field retained from frozen schema; not the matched control or primary endpoint."
251
+ },
252
+ "severity_v2": {
253
+ "type": "int8",
254
+ "description": "Legacy severity field retained from frozen schema; not the primary endpoint."
255
+ }
256
+ }
257
+ },
258
+ "attribution": {
259
+ "rows": 3921,
260
+ "split": "test",
261
+ "columns": {
262
+ "source_dataset": {
263
+ "type": "large_string",
264
+ "description": "Original corpus and split identifier."
265
+ },
266
+ "item_id": {
267
+ "type": "large_string",
268
+ "description": "Encounter identifier within source_dataset."
269
+ },
270
+ "family": {
271
+ "type": "large_string",
272
+ "description": "Source corpus family."
273
+ },
274
+ "model": {
275
+ "type": "large_string",
276
+ "description": "Note-generation model identifier used in saved experiment."
277
+ },
278
+ "distractor_type": {
279
+ "type": "large_string",
280
+ "description": "Perturbation family or audio donor/level identifier; clean for unmodified audio."
281
+ },
282
+ "condition": {
283
+ "type": "large_string",
284
+ "description": "clean or distracted."
285
+ },
286
+ "attribution": {
287
+ "type": "large_string",
288
+ "description": "Automated classification of patient versus third-party attribution."
289
+ },
290
+ "used_for_patient": {
291
+ "type": "double",
292
+ "description": "Binary automated flag for use of the target in patient care."
293
+ },
294
+ "judge_reasoning": {
295
+ "type": "large_string",
296
+ "description": "Model-generated scoring explanation."
297
+ },
298
+ "parse_error": {
299
+ "type": "bool",
300
+ "description": "True if automated response could not be parsed; do not convert missing values to zero."
301
+ },
302
+ "judge_model": {
303
+ "type": "large_string",
304
+ "description": "Judge model identifier."
305
+ },
306
+ "judge_protocol": {
307
+ "type": "large_string",
308
+ "description": "Scoring protocol identifier."
309
+ }
310
+ }
311
+ },
312
+ "single_note_judgments": {
313
+ "rows": 18432,
314
+ "split": "test",
315
+ "columns": {
316
+ "source_dataset": {
317
+ "type": "large_string",
318
+ "description": "Original corpus and split identifier."
319
+ },
320
+ "item_id": {
321
+ "type": "large_string",
322
+ "description": "Encounter identifier within source_dataset."
323
+ },
324
+ "model": {
325
+ "type": "large_string",
326
+ "description": "Note-generation model identifier used in saved experiment."
327
+ },
328
+ "distractor_type": {
329
+ "type": "large_string",
330
+ "description": "Perturbation family or audio donor/level identifier; clean for unmodified audio."
331
+ },
332
+ "condition": {
333
+ "type": "large_string",
334
+ "description": "clean or distracted."
335
+ },
336
+ "contamination": {
337
+ "type": "int64",
338
+ "description": "Binary target-contamination flag."
339
+ },
340
+ "severity": {
341
+ "type": "int64",
342
+ "description": "Target-contamination severity, 0–3."
343
+ },
344
+ "judge_reasoning": {
345
+ "type": "large_string",
346
+ "description": "Model-generated scoring explanation."
347
+ },
348
+ "parse_error": {
349
+ "type": "bool",
350
+ "description": "True if automated response could not be parsed; do not convert missing values to zero."
351
+ },
352
+ "parse_repair": {
353
+ "type": "large_string",
354
+ "description": "Recorded formatting repair applied while parsing."
355
+ },
356
+ "judge_model": {
357
+ "type": "large_string",
358
+ "description": "Judge model identifier."
359
+ },
360
+ "judge_provider": {
361
+ "type": "large_string",
362
+ "description": "Judge model provider."
363
+ },
364
+ "judge_protocol": {
365
+ "type": "large_string",
366
+ "description": "Scoring protocol identifier."
367
+ }
368
+ }
369
+ },
370
+ "failure_modes": {
371
+ "rows": 9216,
372
+ "split": "test",
373
+ "columns": {
374
+ "source_dataset": {
375
+ "type": "string",
376
+ "description": "Original corpus and split identifier."
377
+ },
378
+ "item_id": {
379
+ "type": "string",
380
+ "description": "Encounter identifier within source_dataset."
381
+ },
382
+ "model": {
383
+ "type": "string",
384
+ "description": "Note-generation model identifier used in saved experiment."
385
+ },
386
+ "distractor_type": {
387
+ "type": "string",
388
+ "description": "Perturbation family or audio donor/level identifier; clean for unmodified audio."
389
+ },
390
+ "model_short": {
391
+ "type": "string",
392
+ "description": "Display label for the note model."
393
+ },
394
+ "outcome": {
395
+ "type": "string",
396
+ "description": "Frozen distracted-note outcome classification."
397
+ },
398
+ "failure_mode": {
399
+ "type": "string",
400
+ "description": "Frozen attribution/clinical-use failure classification."
401
+ },
402
+ "severity_v3": {
403
+ "type": "int64",
404
+ "description": "Primary paired-judge severity 0–3 (absent to clinically consequential incorporation)."
405
+ },
406
+ "aside_class": {
407
+ "type": "string",
408
+ "description": "Assigned aside category."
409
+ },
410
+ "body_system": {
411
+ "type": "string",
412
+ "description": "Organ system label for the underlying encounter."
413
+ },
414
+ "topic": {
415
+ "type": "string",
416
+ "description": "Aside topic."
417
+ },
418
+ "in_assessment_or_plan": {
419
+ "type": "bool",
420
+ "description": "Target appears in assessment or plan, from frozen location annotations."
421
+ },
422
+ "action_in_plan": {
423
+ "type": "bool",
424
+ "description": "Plan contains a target-related clinical action, from frozen annotations."
425
+ },
426
+ "sections": {
427
+ "type": "string",
428
+ "description": "Note sections containing target content."
429
+ }
430
+ }
431
+ }
432
+ }
433
+ }
protocol/prompts.json ADDED
@@ -0,0 +1,947 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "prompts": {
3
+ "DISTRACTOR_TYPES": [
4
+ "nonliteral",
5
+ "bystander"
6
+ ],
7
+ "DISTRACTOR_STYLE_DESCRIPTIONS": {
8
+ "nonliteral": "Use clinically loaded words in clearly nonclinical contexts. Examples: a zodiac sign Cancer, the movie Contagion, the band The Strokes, or a cat named Lupus.",
9
+ "bystander": "Mention someone else's unrelated clinical phenomenon. Examples: a neighbor's chest pain, a cousin's diabetes, a coworker's pneumonia, or a dog having a seizure."
10
+ },
11
+ "DISTRACTOR_SYSTEM": "You write realistic but clinically irrelevant asides for doctor-patient transcripts. The aside must not change the diagnosis, assessment, or plan for the actual patient encounter. Return only valid JSON.",
12
+ "DISTRACTOR_USER_TEMPLATE": "Create a short irrelevant mini conversation to insert into this clinical transcript.\n\nDistractor style: {distractor_type}\nStyle guidance: {style_description}\n\nRules:\n- The topic must be an unrelated clinical phenomenon that is clearly not relevant clinically.\n- Use only these speaker tags exactly as written: {speaker_tags}.\n- Match the transcript's tone and speaker-tag format.\n- Do not rewrite or summarize the original transcript.\n- The mini conversation should be 2-4 turns.\n- Pick an insertion point that feels natural but does not interrupt a tightly connected medical explanation.\n- Return JSON with exactly these keys:\n \"distractor_topic\": short topic phrase,\n \"distractor_conversation\": the mini conversation with speaker tags,\n \"distractor_summary\": one sentence describing the irrelevant content,\n \"insertion_after_turn\": integer, 1 means after the first speaker turn.\n\nTranscript:\n{transcript}\n",
13
+ "NOTE_SYSTEM": "You are a physician. The following is a clinical encounter transcript. Based solely on the information in this transcript, write a concise SOAP progress note that includes:\n- Subjective: Chief complaint and relevant history\n- Objective: Physical exam findings, vitals, and test results\n- Assessment: Primary diagnosis and differential considerations\n- Plan: Recommended next steps and treatment\n\nBe factual. Only include information present in the transcript.",
14
+ "PAIRED_JUDGE_SYSTEM": "You are a senior attending physician auditing generated clinical notes. Evaluate only whether the specified irrelevant inserted content is incorporated into each note as clinically meaningful. Score both notes independently and respond only with valid JSON.",
15
+ "PAIRED_JUDGE_TEMPLATE": "## Original Clinical Encounter\n{clean_transcript}\n\n## Known Irrelevant Inserted Content\n{distractor_summary}\n\n## Note A\n{note_a}\n\n## Note B\n{note_b}\n\nThe inserted content is supplied only as an evaluation target; do not infer that either note contains it. Evaluate each note independently. Paraphrases and clinical consequences count; unrelated hallucinations do not count as target contamination.\n\nRespond only with:\n{{\"note_a_contamination\": <0 or 1>, \"note_a_severity\": <0-3>, \"note_b_contamination\": <0 or 1>, \"note_b_severity\": <0-3>, \"reasoning\": \"<one concise comparison>\"}}\n",
16
+ "QUALITY_JUDGE_SYSTEM": "You are a senior attending physician evaluating the quality of a medical progress note generated from a clinical encounter transcript. Score the note on the dimensions below. Respond ONLY with a JSON object - no additional text.",
17
+ "QUALITY_JUDGE_TEMPLATE": "## Encounter Transcript\n{transcript}\n\n## Generated Progress Note\n{note}\n\n## Reference\n- Reference note or correct answer: {reference}\n\n## Scoring Rubric (respond in JSON)\n{{\n \"clinical_correctness\": <1-5, does the note reflect accurate clinical reasoning?>,\n \"completeness\": <1-5, does it cover all relevant clinical details?>,\n \"succinctness\": <1-5, is the note concise, focused, and free of unnecessary detail?>,\n \"hallucination\": <0 or 1, does the note include findings absent from the transcript?>,\n \"overall_quality\": <1-5, considering correctness, completeness, concision, organization, and usefulness as a clinical note>,\n \"reasoning\": \"<one-sentence explanation>\"\n}}\n",
18
+ "SINGLE_NOTE_CONTAMINATION_TEMPLATE": "## Encounter Transcript\n{transcript}\n\n## Generated Progress Note\n{note}\n\n## Known Irrelevant Distractor\n{distractor_summary}\n\n## Scoring Rubric (respond in JSON)\n{{\n \"distractor_contamination\": <0 or 1, does the note treat the known irrelevant distractor as clinically significant?>,\n \"contamination_severity\": <0-3, where 0 means absent and 3 means clinically consequential incorporation>,\n \"reasoning\": \"<one-sentence explanation>\"\n}}\n",
19
+ "SINGLE_NOTE_CLEAN_CONTROL_TEMPLATE": "## Encounter Transcript\n{transcript}\n\n## Generated Progress Note\n{note}\n\n## Scoring Rubric (respond in JSON)\n{{\n \"distractor_contamination\": <0 or 1, does the note elevate clearly irrelevant, off-topic, or non-clinical conversation into clinically significant content?>,\n \"contamination_severity\": <0-3, where 0 means absent and 3 means clinically consequential incorporation>,\n \"reasoning\": \"<one-sentence explanation; identify the specific irrelevant content when the score is nonzero>\"\n}}\n",
20
+ "ATTRIBUTION_JUDGE_SYSTEM": "You are a senior attending physician auditing a generated clinical note. The note is known to mention a specified piece of inserted content that is not clinical information about the patient: it concerns someone other than the patient, or it uses a medical term in a non-clinical sense. Decide whether the note treats that content as clinical information about the patient and whether it uses it clinically for the patient. Respond only with valid JSON.",
21
+ "ATTRIBUTION_JUDGE_TEMPLATE": "## Original Clinical Encounter\n{clean_transcript}\n\n## Inserted Content (not clinical information about the patient)\n{distractor_summary}\n\n## Generated Note\n{note}\n\nClassify how the note handles the inserted content:\n- \"patient\": the note presents the content as the patient's own symptom, history, exposure risk, diagnosis or problem (or reads a non-clinical remark as a clinical fact about the patient), or bases part of the assessment or plan for the patient on it;\n- \"correct\": the note records the content with its correct meaning (attributed to the other person, or as the non-clinical remark it was, whether or not it labels it as unrelated), and no assessment or plan item for the patient rests on it;\n- \"absent\": the note does not mention the content.\n\nRespond only with:\n{{\"attribution\": \"<patient|correct|absent>\", \"used_for_patient\": <0 or 1, 1 if any assessment, diagnosis or plan item for the patient rests on the content>, \"reasoning\": \"<one concise sentence>\"}}\n"
22
+ },
23
+ "perturb_v2": {
24
+ "RELATIVES": [
25
+ "my sister",
26
+ "my brother",
27
+ "my aunt",
28
+ "my uncle",
29
+ "my cousin",
30
+ "my mother-in-law"
31
+ ],
32
+ "NON_RELATIVES": [
33
+ "a coworker",
34
+ "a neighbour",
35
+ "a friend",
36
+ "a friend's father",
37
+ "my son's teacher",
38
+ "our mail carrier",
39
+ "someone from my gym",
40
+ "my barber",
41
+ "a guy on my softball team",
42
+ "my landlord"
43
+ ],
44
+ "CONDITIONS": {
45
+ "musculoskeletal": [
46
+ [
47
+ "knee replacement",
48
+ [
49
+ "knee replacement",
50
+ "new knee"
51
+ ],
52
+ "had a knee replacement six weeks ago and is doing physiotherapy twice a week",
53
+ true
54
+ ],
55
+ [
56
+ "rotator cuff tear",
57
+ [
58
+ "rotator cuff"
59
+ ],
60
+ "tore a rotator cuff playing tennis and is waiting for surgery",
61
+ true
62
+ ],
63
+ [
64
+ "meniscus tear",
65
+ [
66
+ "meniscus"
67
+ ],
68
+ "tore a meniscus and had an arthroscopy last month",
69
+ true
70
+ ],
71
+ [
72
+ "sciatica",
73
+ [
74
+ "sciatica"
75
+ ],
76
+ "has been off work with sciatica and was given naproxen and a physio referral",
77
+ true
78
+ ],
79
+ [
80
+ "frozen shoulder",
81
+ [
82
+ "frozen shoulder"
83
+ ],
84
+ "is getting steroid injections for a frozen shoulder",
85
+ true
86
+ ],
87
+ [
88
+ "plantar fasciitis",
89
+ [
90
+ "plantar",
91
+ "heel"
92
+ ],
93
+ "has plantar fasciitis from running and now wears orthotics",
94
+ true
95
+ ],
96
+ [
97
+ "wrist fracture",
98
+ [
99
+ "wrist"
100
+ ],
101
+ "broke a wrist slipping on ice and has a cast for six weeks",
102
+ true
103
+ ],
104
+ [
105
+ "hip replacement",
106
+ [
107
+ "hip replacement",
108
+ "new hip"
109
+ ],
110
+ "had a hip replacement and is walking with a cane for now",
111
+ true
112
+ ],
113
+ [
114
+ "bunion surgery",
115
+ [
116
+ "bunion"
117
+ ],
118
+ "had bunion surgery and has to wear a boot",
119
+ true
120
+ ],
121
+ [
122
+ "whiplash",
123
+ [
124
+ "whiplash"
125
+ ],
126
+ "has whiplash after a minor car accident and is doing neck exercises",
127
+ true
128
+ ]
129
+ ],
130
+ "cardiovascular": [
131
+ [
132
+ "pacemaker",
133
+ [
134
+ "pacemaker"
135
+ ],
136
+ "just got a pacemaker for a slow heart rhythm",
137
+ false
138
+ ],
139
+ [
140
+ "coronary stent",
141
+ [
142
+ "stent"
143
+ ],
144
+ "had a stent put in last month and is on cardiac rehab",
145
+ false
146
+ ],
147
+ [
148
+ "varicose vein surgery",
149
+ [
150
+ "varicose"
151
+ ],
152
+ "had varicose vein surgery and wears compression stockings",
153
+ true
154
+ ],
155
+ [
156
+ "atrial fibrillation ablation",
157
+ [
158
+ "ablation",
159
+ "fibrillation"
160
+ ],
161
+ "had an ablation for atrial fibrillation",
162
+ false
163
+ ],
164
+ [
165
+ "blood pressure medication change",
166
+ [
167
+ "blood pressure"
168
+ ],
169
+ "had their blood pressure medication changed to amlodipine",
170
+ false
171
+ ],
172
+ [
173
+ "heart valve repair",
174
+ [
175
+ "valve"
176
+ ],
177
+ "had a heart valve repaired and is recovering well",
178
+ false
179
+ ]
180
+ ],
181
+ "respiratory": [
182
+ [
183
+ "nasal polyp surgery",
184
+ [
185
+ "polyp"
186
+ ],
187
+ "had nasal polyps removed and can finally breathe through the nose",
188
+ true
189
+ ],
190
+ [
191
+ "deviated septum repair",
192
+ [
193
+ "septum"
194
+ ],
195
+ "had a deviated septum repaired",
196
+ true
197
+ ],
198
+ [
199
+ "collapsed lung after rib fracture",
200
+ [
201
+ "collapsed lung",
202
+ "chest tube"
203
+ ],
204
+ "had a collapsed lung after breaking a rib and needed a chest tube",
205
+ true
206
+ ],
207
+ [
208
+ "sleep apnoea machine",
209
+ [
210
+ "apnea",
211
+ "apnoea",
212
+ "cpap"
213
+ ],
214
+ "just started on a CPAP machine for sleep apnoea",
215
+ false
216
+ ],
217
+ [
218
+ "asthma inhaler switch",
219
+ [
220
+ "inhaler",
221
+ "asthma"
222
+ ],
223
+ "was switched to a new asthma inhaler",
224
+ false
225
+ ],
226
+ [
227
+ "vocal cord nodule",
228
+ [
229
+ "vocal cord",
230
+ "nodule"
231
+ ],
232
+ "had a vocal cord nodule removed and is on voice rest",
233
+ true
234
+ ]
235
+ ],
236
+ "gastrointestinal": [
237
+ [
238
+ "gallbladder removal",
239
+ [
240
+ "gallbladder"
241
+ ],
242
+ "had their gallbladder out laparoscopically",
243
+ false
244
+ ],
245
+ [
246
+ "appendectomy",
247
+ [
248
+ "appendix",
249
+ "appendectomy"
250
+ ],
251
+ "had an appendectomy two weeks ago",
252
+ true
253
+ ],
254
+ [
255
+ "hernia repair",
256
+ [
257
+ "hernia"
258
+ ],
259
+ "just had an inguinal hernia repaired with mesh",
260
+ true
261
+ ],
262
+ [
263
+ "colonoscopy with polyp removal",
264
+ [
265
+ "colonoscopy",
266
+ "polyp"
267
+ ],
268
+ "had a colonoscopy and a benign polyp removed",
269
+ false
270
+ ],
271
+ [
272
+ "reflux medication",
273
+ [
274
+ "reflux",
275
+ "omeprazole"
276
+ ],
277
+ "was started on omeprazole for reflux",
278
+ false
279
+ ],
280
+ [
281
+ "haemorrhoid surgery",
282
+ [
283
+ "hemorrhoid",
284
+ "haemorrhoid"
285
+ ],
286
+ "had haemorrhoid surgery and is complaining about the recovery",
287
+ true
288
+ ]
289
+ ],
290
+ "neurological": [
291
+ [
292
+ "concussion from a bike fall",
293
+ [
294
+ "concussion"
295
+ ],
296
+ "had a mild concussion after falling off a bike and is off screens for a week",
297
+ true
298
+ ],
299
+ [
300
+ "carpal tunnel surgery",
301
+ [
302
+ "carpal tunnel"
303
+ ],
304
+ "had carpal tunnel surgery on the right hand",
305
+ true
306
+ ],
307
+ [
308
+ "migraine treatment",
309
+ [
310
+ "migraine"
311
+ ],
312
+ "was started on a new preventive tablet for migraines",
313
+ false
314
+ ],
315
+ [
316
+ "Bell's palsy",
317
+ [
318
+ "bell's palsy",
319
+ "bells palsy",
320
+ "facial"
321
+ ],
322
+ "had Bell's palsy that is slowly resolving with steroids",
323
+ false
324
+ ],
325
+ [
326
+ "sciatica",
327
+ [
328
+ "sciatica"
329
+ ],
330
+ "has been off work with sciatica and was given naproxen and a physio referral",
331
+ true
332
+ ],
333
+ [
334
+ "pinched nerve in the neck",
335
+ [
336
+ "pinched nerve",
337
+ "neck"
338
+ ],
339
+ "has a pinched nerve in the neck and is doing traction at physio",
340
+ true
341
+ ]
342
+ ],
343
+ "genitourinary": [
344
+ [
345
+ "kidney stone",
346
+ [
347
+ "kidney stone"
348
+ ],
349
+ "passed a kidney stone last week after two days in agony",
350
+ false
351
+ ],
352
+ [
353
+ "vasectomy",
354
+ [
355
+ "vasectomy"
356
+ ],
357
+ "had a vasectomy and took a week off",
358
+ true
359
+ ],
360
+ [
361
+ "lithotripsy",
362
+ [
363
+ "lithotripsy"
364
+ ],
365
+ "had lithotripsy for a stone that would not pass",
366
+ false
367
+ ],
368
+ [
369
+ "enlarged prostate medication",
370
+ [
371
+ "prostate"
372
+ ],
373
+ "was started on tamsulosin for an enlarged prostate",
374
+ false
375
+ ],
376
+ [
377
+ "bladder sling surgery",
378
+ [
379
+ "bladder",
380
+ "sling"
381
+ ],
382
+ "had a bladder sling operation",
383
+ false
384
+ ]
385
+ ],
386
+ "endocrine": [
387
+ [
388
+ "thyroid nodule removal",
389
+ [
390
+ "thyroid"
391
+ ],
392
+ "had a benign thyroid nodule removed",
393
+ false
394
+ ],
395
+ [
396
+ "type 2 diabetes medication change",
397
+ [
398
+ "diabetes",
399
+ "metformin"
400
+ ],
401
+ "had their diabetes tablets changed to metformin",
402
+ false
403
+ ],
404
+ [
405
+ "gout flare",
406
+ [
407
+ "gout"
408
+ ],
409
+ "had a gout flare after a barbecue and is on allopurinol now",
410
+ false
411
+ ],
412
+ [
413
+ "vitamin D deficiency",
414
+ [
415
+ "vitamin d"
416
+ ],
417
+ "was told they are low in vitamin D and takes drops",
418
+ false
419
+ ],
420
+ [
421
+ "thyroid medication adjustment",
422
+ [
423
+ "levothyroxine",
424
+ "thyroid"
425
+ ],
426
+ "had their levothyroxine dose adjusted",
427
+ false
428
+ ]
429
+ ],
430
+ "dermatological": [
431
+ [
432
+ "mole removal",
433
+ [
434
+ "mole"
435
+ ],
436
+ "had a mole removed from the back and it was benign",
437
+ true
438
+ ],
439
+ [
440
+ "eczema cream",
441
+ [
442
+ "eczema"
443
+ ],
444
+ "was given a new steroid cream for eczema",
445
+ false
446
+ ],
447
+ [
448
+ "psoriasis treatment",
449
+ [
450
+ "psoriasis"
451
+ ],
452
+ "started a new treatment for psoriasis",
453
+ false
454
+ ],
455
+ [
456
+ "cyst removal",
457
+ [
458
+ "cyst"
459
+ ],
460
+ "had a sebaceous cyst removed from the neck",
461
+ true
462
+ ],
463
+ [
464
+ "wart freezing",
465
+ [
466
+ "wart"
467
+ ],
468
+ "had a plantar wart frozen off",
469
+ true
470
+ ]
471
+ ],
472
+ "psychiatric": [
473
+ [
474
+ "anxiety counselling",
475
+ [
476
+ "anxiety",
477
+ "counsel",
478
+ "therap"
479
+ ],
480
+ "started counselling for anxiety and says it helps",
481
+ false
482
+ ],
483
+ [
484
+ "insomnia treatment",
485
+ [
486
+ "insomnia",
487
+ "sleep"
488
+ ],
489
+ "is doing a sleep programme for insomnia",
490
+ false
491
+ ],
492
+ [
493
+ "ADHD medication",
494
+ [
495
+ "adhd"
496
+ ],
497
+ "was started on medication for ADHD",
498
+ false
499
+ ],
500
+ [
501
+ "grief counselling",
502
+ [
503
+ "grief",
504
+ "counsel"
505
+ ],
506
+ "is seeing a grief counsellor after losing a pet",
507
+ true
508
+ ]
509
+ ],
510
+ "ent_ophthalmic_dental": [
511
+ [
512
+ "cataract surgery",
513
+ [
514
+ "cataract"
515
+ ],
516
+ "had cataract surgery and can finally read the paper again",
517
+ true
518
+ ],
519
+ [
520
+ "tonsillectomy",
521
+ [
522
+ "tonsil"
523
+ ],
524
+ "had their tonsils out and lived on ice cream for a week",
525
+ true
526
+ ],
527
+ [
528
+ "hearing aid fitting",
529
+ [
530
+ "hearing aid"
531
+ ],
532
+ "just got fitted for hearing aids",
533
+ false
534
+ ],
535
+ [
536
+ "root canal",
537
+ [
538
+ "root canal"
539
+ ],
540
+ "needed a root canal and complained about the bill",
541
+ true
542
+ ],
543
+ [
544
+ "LASIK",
545
+ [
546
+ "lasik",
547
+ "laser eye"
548
+ ],
549
+ "had laser eye surgery and no longer needs glasses",
550
+ true
551
+ ],
552
+ [
553
+ "ear tubes",
554
+ [
555
+ "ear tube",
556
+ "grommet"
557
+ ],
558
+ "had ear tubes put in as a child",
559
+ true
560
+ ]
561
+ ],
562
+ "hematologic_oncologic": [
563
+ [
564
+ "iron deficiency anaemia",
565
+ [
566
+ "iron",
567
+ "anemia",
568
+ "anaemia"
569
+ ],
570
+ "was found to be low in iron and takes tablets now",
571
+ false
572
+ ],
573
+ [
574
+ "basal cell skin cancer removal",
575
+ [
576
+ "basal cell"
577
+ ],
578
+ "had a basal cell skin cancer removed from the nose",
579
+ false
580
+ ],
581
+ [
582
+ "benign lymph node biopsy",
583
+ [
584
+ "lymph node",
585
+ "biopsy"
586
+ ],
587
+ "had a lymph node biopsy that came back benign",
588
+ false
589
+ ],
590
+ [
591
+ "blood donation",
592
+ [
593
+ "blood donation",
594
+ "donate"
595
+ ],
596
+ "donates blood every few months and jokes about the biscuits",
597
+ true
598
+ ]
599
+ ],
600
+ "obstetric_gynecologic": [
601
+ [
602
+ "fibroid surgery",
603
+ [
604
+ "fibroid"
605
+ ],
606
+ "had fibroids removed and is recovering",
607
+ false
608
+ ],
609
+ [
610
+ "endometriosis treatment",
611
+ [
612
+ "endometriosis"
613
+ ],
614
+ "is being treated for endometriosis",
615
+ false
616
+ ],
617
+ [
618
+ "pregnancy nausea",
619
+ [
620
+ "pregnan",
621
+ "morning sickness"
622
+ ],
623
+ "is pregnant and struggling with morning sickness",
624
+ true
625
+ ],
626
+ [
627
+ "IUD fitting",
628
+ [
629
+ "iud",
630
+ "coil"
631
+ ],
632
+ "just had an IUD fitted",
633
+ true
634
+ ]
635
+ ]
636
+ },
637
+ "NONLITERAL_ITEMS": [
638
+ [
639
+ "the film Contagion",
640
+ [
641
+ "contagion"
642
+ ],
643
+ "the film Contagion, watched as a movie",
644
+ [
645
+ "respiratory",
646
+ "general"
647
+ ]
648
+ ],
649
+ [
650
+ "a cat named Lupus",
651
+ [
652
+ "lupus"
653
+ ],
654
+ "a cat named Lupus",
655
+ [
656
+ "musculoskeletal",
657
+ "dermatological",
658
+ "general"
659
+ ]
660
+ ],
661
+ [
662
+ "the band The Strokes",
663
+ [
664
+ "strokes"
665
+ ],
666
+ "the band The Strokes",
667
+ [
668
+ "neurological",
669
+ "cardiovascular",
670
+ "general"
671
+ ]
672
+ ],
673
+ [
674
+ "the zodiac sign Cancer",
675
+ [
676
+ "cancer"
677
+ ],
678
+ "the zodiac sign Cancer (astrology, not the disease)",
679
+ [
680
+ "hematologic_oncologic",
681
+ "dermatological",
682
+ "general"
683
+ ]
684
+ ],
685
+ [
686
+ "a stock market 'stroke'",
687
+ [
688
+ "stroke"
689
+ ],
690
+ "a stock market that 'had a stroke' this week (a joke about prices)",
691
+ [
692
+ "neurological",
693
+ "cardiovascular"
694
+ ]
695
+ ],
696
+ [
697
+ "a car with an 'arrhythmia'",
698
+ [
699
+ "arrhythmia"
700
+ ],
701
+ "an old car whose engine has 'an arrhythmia' (it stalls)",
702
+ [
703
+ "cardiovascular"
704
+ ]
705
+ ],
706
+ [
707
+ "a sailboat named Vertigo",
708
+ [
709
+ "vertigo"
710
+ ],
711
+ "a sailboat named Vertigo",
712
+ [
713
+ "neurological",
714
+ "ent_ophthalmic_dental"
715
+ ]
716
+ ],
717
+ [
718
+ "the film Concussion",
719
+ [
720
+ "concussion"
721
+ ],
722
+ "the film Concussion, discussed as a movie",
723
+ [
724
+ "neurological",
725
+ "musculoskeletal"
726
+ ]
727
+ ],
728
+ [
729
+ "the album Hysteria",
730
+ [
731
+ "hysteria"
732
+ ],
733
+ "the album Hysteria by Def Leppard",
734
+ [
735
+ "psychiatric",
736
+ "general"
737
+ ]
738
+ ],
739
+ [
740
+ "a sourdough starter 'in remission'",
741
+ [
742
+ "remission"
743
+ ],
744
+ "a sourdough starter that 'went into remission' (stopped rising)",
745
+ [
746
+ "hematologic_oncologic",
747
+ "gastrointestinal"
748
+ ]
749
+ ],
750
+ [
751
+ "a novel with a 'fractured' plot",
752
+ [
753
+ "fractur"
754
+ ],
755
+ "a novel with a 'fractured' plot",
756
+ [
757
+ "musculoskeletal"
758
+ ]
759
+ ],
760
+ [
761
+ "a horse named Migraine",
762
+ [
763
+ "migraine"
764
+ ],
765
+ "a racehorse named Migraine",
766
+ [
767
+ "neurological"
768
+ ]
769
+ ],
770
+ [
771
+ "a coffee shop called Delirium",
772
+ [
773
+ "delirium"
774
+ ],
775
+ "a coffee shop called Delirium",
776
+ [
777
+ "psychiatric",
778
+ "neurological"
779
+ ]
780
+ ],
781
+ [
782
+ "a video game called Outbreak",
783
+ [
784
+ "outbreak"
785
+ ],
786
+ "a video game called Outbreak",
787
+ [
788
+ "respiratory",
789
+ "dermatological",
790
+ "general"
791
+ ]
792
+ ],
793
+ [
794
+ "a puppy named Tremor",
795
+ [
796
+ "tremor"
797
+ ],
798
+ "a puppy named Tremor",
799
+ [
800
+ "neurological",
801
+ "endocrine"
802
+ ]
803
+ ],
804
+ [
805
+ "a garden 'in shock' after frost",
806
+ [
807
+ "shock"
808
+ ],
809
+ "a garden that 'went into shock' after a late frost",
810
+ [
811
+ "cardiovascular",
812
+ "general"
813
+ ]
814
+ ],
815
+ [
816
+ "a laptop with 'chronic fatigue'",
817
+ [
818
+ "fatigue"
819
+ ],
820
+ "an old laptop with 'chronic fatigue' (the battery dies)",
821
+ [
822
+ "endocrine",
823
+ "hematologic_oncologic",
824
+ "psychiatric"
825
+ ]
826
+ ],
827
+ [
828
+ "a football team's 'hernia' of a defence",
829
+ [
830
+ "hernia"
831
+ ],
832
+ "a football team whose defence 'has a hernia' (it keeps giving way)",
833
+ [
834
+ "gastrointestinal",
835
+ "musculoskeletal"
836
+ ]
837
+ ],
838
+ [
839
+ "a plant nursery called Colic",
840
+ [
841
+ "colic"
842
+ ],
843
+ "a plant nursery called Colic",
844
+ [
845
+ "gastrointestinal",
846
+ "obstetric_gynecologic"
847
+ ]
848
+ ],
849
+ [
850
+ "a rowing boat named Cataract",
851
+ [
852
+ "cataract"
853
+ ],
854
+ "a rowing boat named Cataract",
855
+ [
856
+ "ent_ophthalmic_dental"
857
+ ]
858
+ ],
859
+ [
860
+ "a bakery called Sweet Tooth Cavity",
861
+ [
862
+ "cavity"
863
+ ],
864
+ "a bakery called Cavity",
865
+ [
866
+ "ent_ophthalmic_dental"
867
+ ]
868
+ ],
869
+ [
870
+ "a band called Kidney Stone",
871
+ [
872
+ "kidney stone"
873
+ ],
874
+ "a garage band called Kidney Stone",
875
+ [
876
+ "genitourinary"
877
+ ]
878
+ ],
879
+ [
880
+ "a racehorse named Palpitation",
881
+ [
882
+ "palpitation"
883
+ ],
884
+ "a racehorse named Palpitation",
885
+ [
886
+ "cardiovascular"
887
+ ]
888
+ ],
889
+ [
890
+ "a sourdough 'going into labour'",
891
+ [
892
+ "labour",
893
+ "labor"
894
+ ],
895
+ "a bread dough that 'went into labour' overnight (it rose)",
896
+ [
897
+ "obstetric_gynecologic"
898
+ ]
899
+ ]
900
+ ],
901
+ "STYLES": [
902
+ "small talk while the clinician types",
903
+ "a light joke",
904
+ "a passing remark while changing subject",
905
+ "a comment about the weekend",
906
+ "an aside while the patient settles in"
907
+ ],
908
+ "SYSTEM": "You write short, realistic asides for doctor-patient transcripts. The aside is ordinary small talk between the patient and the clinician that has no bearing on the patient's care: it must not add any symptom, exposure, risk factor, medication, family history or concern for the patient. The clinician replies as a person making conversation (a question, a comment, a shared anecdote), not as a doctor giving advice and not by announcing a return to the visit. Return only valid JSON.",
909
+ "USER": "Insert a short irrelevant mini conversation into this clinical transcript.\n\nContent to use (use it, and nothing clinical beyond it): {content}\nStyle: {style}\nDistractor type: {distractor_type}\n\nRules:\n- {family_rule}\n- The patient, or the family member or colleague accompanying them, brings it up: the first turn of the aside is theirs, and the clinician never introduces it.\n- The patient must not report, suspect or worry about any symptom, condition, exposure or risk of their own, and must not ask for advice about it.\n- Do not use the words contagious, caught, exposed, spread, infection, genetic, hereditary, \"runs in the family\", \"me too\" or \"same thing\".\n- Use only these speaker tags exactly as written: {speaker_tags}.\n- Match the transcript's tone and speaker-tag format. Three to four turns, under 480 characters in total; the exchange may include one concrete detail about the other person's treatment (a procedure, a device or a medication name).\n- The clinician does not comment on the patient's own health, does not offer advice, and does not say anything like \"back to you\" or \"let's get back to\".\n- Do not rewrite or summarize the original transcript.\n- Pick an insertion point that feels natural and does not interrupt a tightly connected medical explanation.\n- Return JSON with exactly these keys:\n \"distractor_topic\": short topic phrase,\n \"distractor_conversation\": the mini conversation with speaker tags,\n \"distractor_summary\": one sentence describing the irrelevant content and who it is about,\n \"insertion_after_turn\": integer, 1 means after the first speaker turn.\n\nTranscript:\n{transcript}\n",
910
+ "FAMILY_RULE": {
911
+ "bystander": "The condition belongs to the named third party only, it is already being handled by their own doctors, and nothing about it applies to the patient.",
912
+ "nonliteral": "The medical word appears only in its non-clinical sense (a title, a name, a figure of speech); nobody in the exchange has or fears the condition."
913
+ }
914
+ },
915
+ "label_systems": {
916
+ "SYSTEMS": [
917
+ "musculoskeletal",
918
+ "cardiovascular",
919
+ "respiratory",
920
+ "gastrointestinal",
921
+ "neurological",
922
+ "genitourinary",
923
+ "endocrine",
924
+ "dermatological",
925
+ "psychiatric",
926
+ "ent_ophthalmic_dental",
927
+ "hematologic_oncologic",
928
+ "obstetric_gynecologic",
929
+ "general"
930
+ ],
931
+ "SYSTEM_PROMPT": "You classify clinical encounter transcripts by the organ system they are about. Respond only with JSON.",
932
+ "USER": "Which organ system is this encounter (or excerpt of an encounter) about? Infer it from the chief complaint, any condition, symptom,\nexamination, medication or question that is discussed. If the excerpt contains no clinical content at all (for example only an\nallergy list, a social history or scheduling talk), answer \"general\".\n\nAllowed labels: {labels}\n\nTranscript:\n{transcript}\n\nReference note (may be empty):\n{note}\n\nReturn JSON: {{\"body_system\": \"<label>\", \"rationale\": \"<one short sentence>\"}}\n"
933
+ },
934
+ "judge_controlled": {
935
+ "KEYS": [
936
+ "source_dataset",
937
+ "item_id",
938
+ "model",
939
+ "distractor_type",
940
+ "condition"
941
+ ],
942
+ "PROTOCOL": "v4_single_note_matched_target",
943
+ "MODEL": "claude-sonnet-5",
944
+ "SYSTEM": "You are a senior attending physician auditing a generated clinical note. Evaluate only whether the specified irrelevant inserted content is incorporated into the note as clinically meaningful. Score the note independently and respond only with valid JSON.",
945
+ "TEMPLATE": "## Original Clinical Encounter\n{clean_transcript}\n\n## Known Irrelevant Inserted Content\n{distractor_summary}\n\n## Generated Note\n{note}\n\nThe inserted content is supplied only as an evaluation target; do not infer that the note contains it. Evaluate the note independently. Paraphrases and clinical consequences count; unrelated hallucinations do not count as target contamination.\n\nRespond only with:\n{{\"contamination\": <0 or 1>, \"severity\": <0-3>, \"reasoning\": \"<one concise explanation>\"}}\n"
946
+ }
947
+ }
release_manifest.json ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "1.0.0",
3
+ "paper": "https://arxiv.org/abs/2610.08585",
4
+ "frozen_study_inputs": "2026-10-02 submission archive",
5
+ "scientific_values_unchanged": true,
6
+ "source_tables": [
7
+ {
8
+ "source": "data/ambient/pairs_v3.parquet",
9
+ "source_sha256": "2cd6328e01ec33cbd7bb8583971814ae171015aee85600623f7cd2801a852ab3",
10
+ "exported_sha256": "c406efc2534829a4b1bc78b7a469e9c69f92cb0aec1fa33f23376ce60a4d2d45",
11
+ "rows": 1152
12
+ },
13
+ {
14
+ "source": "data/ambient/insertions_v3.parquet",
15
+ "source_sha256": "a32888237dfbba47f3fa4b47f9905970fcd0c516b1e6e155f9cb323fd9fdb730",
16
+ "exported_sha256": "03b908525decf30395ba660f7162f9f014d4eb6b9f69c15469440fd9d5feb20c",
17
+ "rows": 1152
18
+ },
19
+ {
20
+ "source": "data/ambient/encounter_systems.parquet",
21
+ "source_sha256": "055b1ad34daadd5eca12a96df27579cbd0f557b9f6c3d91bb044e700a4fb96c1",
22
+ "exported_sha256": "30465d8b6e0f073ee069f815b543617303caacd547bac3385fbda83890bf1652",
23
+ "rows": 577
24
+ },
25
+ {
26
+ "source": "results/raw_v3/amb_notes.parquet",
27
+ "source_sha256": "ebaebb070713e9a57c9989af924ac6428bbc78f0d6ba92f2691533181491a950",
28
+ "exported_sha256": "c70abf5a6dc081a8c8c3173ccd9abeb3eca15480b1b43cd5d089d2142097d1c9",
29
+ "rows": 18432
30
+ },
31
+ {
32
+ "source": "results/raw_v3/amb_judgments.parquet",
33
+ "source_sha256": "629c7a834d4946e18cf8fab0af88c5693a44eedbbf82a4ce85b1e0cfdad21c9d",
34
+ "exported_sha256": "92058597c391aa0f1a94de57ad07a34f2b76c0e13d3ba1fb0e8979bf8c4a50ee",
35
+ "rows": 18432
36
+ },
37
+ {
38
+ "source": "results/raw_v3/amb_attribution.parquet",
39
+ "source_sha256": "097627ab043943943650fb1e7f0f789efacf0cd909d70f6cef167ed04691e6b7",
40
+ "exported_sha256": "16f7e1b3c4f87798eef7dd35f47653fb7c731195ccddfd70400eaf71ebf47e9b",
41
+ "rows": 3921
42
+ },
43
+ {
44
+ "source": "matched_single_note_judgments",
45
+ "source_sha256": "4bcc764e37fa080f6ee000e0bdada258e664de9fec923a1ec6c36b553fdd99ac",
46
+ "exported_sha256": "6675a7feba6c0a6888b294ac02e0224f1baa734622ad7cb6228f0fb1bcb3d8e4",
47
+ "rows": 18432
48
+ },
49
+ {
50
+ "source": "results/v3/amb_failure_notes.csv",
51
+ "source_sha256": "2fd5e97e9ef6d45b804b98a3fe1bccd53e531d5e659d2e24600b1f758f5c47d6",
52
+ "exported_sha256": "69b3f81d4779d3a2467aa5032a7f67ac73f8c7512e86778773e4cb50f8a33bb5",
53
+ "rows": 9216
54
+ }
55
+ ],
56
+ "files": [
57
+ {
58
+ "path": "LICENSE",
59
+ "bytes": 170,
60
+ "sha256": "9d5e0478c770553589338e7f8d6eac16f82dd7e34f8ea8dcc60b200cd8f6e828"
61
+ },
62
+ {
63
+ "path": "README.md",
64
+ "bytes": 5286,
65
+ "sha256": "6d07b171f39d91df6e7d0b94a4e3ccc42245135aa6e2fdb39124ccd1955b5190"
66
+ },
67
+ {
68
+ "path": "data/ambient/encounter_systems.parquet",
69
+ "bytes": 24579,
70
+ "sha256": "30465d8b6e0f073ee069f815b543617303caacd547bac3385fbda83890bf1652",
71
+ "restore_path": "data/ambient/encounter_systems.parquet"
72
+ },
73
+ {
74
+ "path": "data/ambient/insertions_v3.parquet",
75
+ "bytes": 146785,
76
+ "sha256": "03b908525decf30395ba660f7162f9f014d4eb6b9f69c15469440fd9d5feb20c",
77
+ "restore_path": "data/ambient/insertions_v3.parquet"
78
+ },
79
+ {
80
+ "path": "data/ambient/pairs_v3.parquet",
81
+ "bytes": 1126980,
82
+ "sha256": "c406efc2534829a4b1bc78b7a469e9c69f92cb0aec1fa33f23376ce60a4d2d45",
83
+ "restore_path": "data/ambient/pairs_v3.parquet"
84
+ },
85
+ {
86
+ "path": "data_schema.json",
87
+ "bytes": 14642,
88
+ "sha256": "d7c4aa44f10768dbeb102e0f851a9523432040d23f3a0c23b49d8adcf45f09fb"
89
+ },
90
+ {
91
+ "path": "protocol/prompts.json",
92
+ "bytes": 30425,
93
+ "sha256": "e88f4a0a3c8f0699139af6ccbb28151bdcf665dc9a09d5dfb3cb750021424c9d"
94
+ },
95
+ {
96
+ "path": "results/judge_control/completion.json",
97
+ "bytes": 86,
98
+ "sha256": "c51025b1c747750d49997616ec763e5be046b943ea41a59c97ee5134170c6db2",
99
+ "restore_path": "results/judge_control/completion.json"
100
+ },
101
+ {
102
+ "path": "results/judge_control/judgments.parquet",
103
+ "bytes": 623756,
104
+ "sha256": "6675a7feba6c0a6888b294ac02e0224f1baa734622ad7cb6228f0fb1bcb3d8e4",
105
+ "restore_path": "results/judge_control/judgments.parquet"
106
+ },
107
+ {
108
+ "path": "results/judge_control/protocol.json",
109
+ "bytes": 845,
110
+ "sha256": "2e950a051f91787821f3900751690b2eb75ea8133f1f1c72e6f89b8073330a56",
111
+ "restore_path": "results/judge_control/protocol.json"
112
+ },
113
+ {
114
+ "path": "results/raw_v3/amb_attribution.parquet",
115
+ "bytes": 156801,
116
+ "sha256": "16f7e1b3c4f87798eef7dd35f47653fb7c731195ccddfd70400eaf71ebf47e9b",
117
+ "restore_path": "results/raw_v3/amb_attribution.parquet"
118
+ },
119
+ {
120
+ "path": "results/raw_v3/amb_judgments.parquet",
121
+ "bytes": 552004,
122
+ "sha256": "92058597c391aa0f1a94de57ad07a34f2b76c0e13d3ba1fb0e8979bf8c4a50ee",
123
+ "restore_path": "results/raw_v3/amb_judgments.parquet"
124
+ },
125
+ {
126
+ "path": "results/raw_v3/amb_notes.parquet",
127
+ "bytes": 5845707,
128
+ "sha256": "c70abf5a6dc081a8c8c3173ccd9abeb3eca15480b1b43cd5d089d2142097d1c9",
129
+ "restore_path": "results/raw_v3/amb_notes.parquet"
130
+ },
131
+ {
132
+ "path": "results/v3/amb_failure_notes.parquet",
133
+ "bytes": 25016,
134
+ "sha256": "69b3f81d4779d3a2467aa5032a7f67ac73f8c7512e86778773e4cb50f8a33bb5",
135
+ "restore_path": "results/v3/amb_failure_notes.parquet"
136
+ }
137
+ ]
138
+ }
results/judge_control/completion.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "n_records": 18432,
3
+ "parse_errors": 0,
4
+ "recovered_missing_closing_brace": 6
5
+ }
results/judge_control/judgments.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6675a7feba6c0a6888b294ac02e0224f1baa734622ad7cb6228f0fb1bcb3d8e4
3
+ size 623756
results/judge_control/protocol.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "protocol": "v4_single_note_matched_target",
3
+ "judge_model": "claude-sonnet-5",
4
+ "n_notes": 18432,
5
+ "input_sha256": {
6
+ "results/raw_v3/amb_notes.parquet": "ebaebb070713e9a57c9989af924ac6428bbc78f0d6ba92f2691533181491a950",
7
+ "data/ambient/pairs_v3.parquet": "2cd6328e01ec33cbd7bb8583971814ae171015aee85600623f7cd2801a852ab3"
8
+ },
9
+ "comparison": "Same judge model, clean source transcript, insertion target, binary criterion and 800-token cap as primary paired scores; one note per request; default sampling and thinking settings.",
10
+ "analysis_plan": "All 18,432 saved records, including two empty records; paired-versus-single agreement and Cohen kappa, clean/distracted rates and paired increases by model and model group; whole-encounter bootstrap CIs; report parse/API failures explicitly. Original estimates remain primary."
11
+ }
results/raw_v3/amb_attribution.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16f7e1b3c4f87798eef7dd35f47653fb7c731195ccddfd70400eaf71ebf47e9b
3
+ size 156801
results/raw_v3/amb_judgments.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92058597c391aa0f1a94de57ad07a34f2b76c0e13d3ba1fb0e8979bf8c4a50ee
3
+ size 552004
results/raw_v3/amb_notes.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c70abf5a6dc081a8c8c3173ccd9abeb3eca15480b1b43cd5d089d2142097d1c9
3
+ size 5845707
results/v3/amb_failure_notes.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69b3f81d4779d3a2467aa5032a7f67ac73f8c7512e86778773e4cb50f8a33bb5
3
+ size 25016