vkatg commited on
Commit
83c0f90
·
verified ·
1 Parent(s): 8039179

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +156 -143
README.md CHANGED
@@ -22,6 +22,7 @@ tags:
22
  - benchmark
23
  - evaluation
24
  - synthetic-data
 
25
  size_categories:
26
  - 1K<n<10K
27
  configs:
@@ -89,111 +90,112 @@ The specific gaps this dataset fills:
89
 
90
  ## Risk Timeline
91
 
92
- Risk accumulates as PHI exposure is recorded across events. Patient A (research consent, ceiling: pseudo) and Patient B (standard consent, ceiling: redact) alternate. Dots are colored by the policy applied at each event. The controller escalates masking policy as risk crosses the configured thresholds (0.40, 0.60, 0.80).
93
 
94
- <svg viewBox="0 0 720 310" xmlns="http://www.w3.org/2000/svg" style="font-family: system-ui, sans-serif; background: white;">
95
- <text x="360" y="22" text-anchor="middle" font-size="13" font-weight="600" fill="#374151">Adaptive Risk Score — 34 Live Events</text>
96
  <line x1="65" y1="255" x2="670" y2="255" stroke="#e5e7eb" stroke-width="1"/>
97
  <line x1="65" y1="35" x2="65" y2="255" stroke="#e5e7eb" stroke-width="1"/>
98
  <line x1="65" y1="220.8" x2="670" y2="220.8" stroke="#e5e7eb" stroke-width="1"/>
99
- <text x="59" y="224.8" text-anchor="end" font-size="10" fill="#6b7280">0.4</text>
100
  <line x1="65" y1="186.7" x2="670" y2="186.7" stroke="#e5e7eb" stroke-width="1"/>
101
- <text x="59" y="190.7" text-anchor="end" font-size="10" fill="#6b7280">0.5</text>
102
  <line x1="65" y1="152.5" x2="670" y2="152.5" stroke="#e5e7eb" stroke-width="1"/>
103
- <text x="59" y="156.5" text-anchor="end" font-size="10" fill="#6b7280">0.6</text>
104
  <line x1="65" y1="118.3" x2="670" y2="118.3" stroke="#e5e7eb" stroke-width="1"/>
105
- <text x="59" y="122.3" text-anchor="end" font-size="10" fill="#6b7280">0.7</text>
106
  <line x1="65" y1="84.2" x2="670" y2="84.2" stroke="#e5e7eb" stroke-width="1"/>
107
- <text x="59" y="88.2" text-anchor="end" font-size="10" fill="#6b7280">0.8</text>
108
  <line x1="65" y1="50.0" x2="670" y2="50.0" stroke="#e5e7eb" stroke-width="1"/>
109
- <text x="59" y="54.0" text-anchor="end" font-size="10" fill="#6b7280">0.9</text>
110
- <text x="59" y="39.0" text-anchor="end" font-size="10" fill="#6b7280">1.0</text>
111
  <text x="59" y="259" text-anchor="end" font-size="10" fill="#6b7280">0.3</text>
112
- <line x1="65" y1="220.8" x2="670" y2="220.8" stroke="#fbbf24" stroke-width="1" stroke-dasharray="4 3" opacity="0.7"/>
113
- <text x="674" y="224.8" font-size="9" fill="#fbbf24">0.40</text>
114
- <line x1="65" y1="152.5" x2="670" y2="152.5" stroke="#f97316" stroke-width="1" stroke-dasharray="4 3" opacity="0.7"/>
115
- <text x="674" y="156.5" font-size="9" fill="#f97316">0.60</text>
116
- <line x1="65" y1="84.2" x2="670" y2="84.2" stroke="#ef4444" stroke-width="1" stroke-dasharray="4 3" opacity="0.7"/>
117
- <text x="674" y="88.2" font-size="9" fill="#ef4444">0.80</text>
118
  <polyline points="65.0,179.8 101.7,148.2 138.3,117.8 175.0,93.2 211.7,73.2 248.3,57.1 285.0,89.4 321.7,80.5 358.3,71.9 395.0,64.9 431.7,58.5 468.3,54.6 505.0,50.4 541.7,47.9 578.3,45.5 615.0,43.2 651.7,41.7" fill="none" stroke="#6366f1" stroke-width="2"/>
119
  <polyline points="83.3,197.9 120.0,158.1 156.7,125.8 193.3,103.1 230.0,81.3 266.7,65.9 303.3,53.0 340.0,86.3 376.7,77.8 413.3,70.8 450.0,64.0 486.7,59.2 523.3,54.6 560.0,50.9 596.7,48.3 633.3,46.1 670.0,44.0" fill="none" stroke="#f59e0b" stroke-width="2" stroke-dasharray="5 3"/>
120
  <circle cx="65.0" cy="179.8" r="4" fill="#f59e0b" stroke="white" stroke-width="1.2"/>
121
- <circle cx="101.7" cy="148.2" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
122
- <circle cx="138.3" cy="117.8" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
123
- <circle cx="175.0" cy="93.2" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
124
- <circle cx="211.7" cy="73.2" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
125
- <circle cx="248.3" cy="57.1" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
126
- <circle cx="285.0" cy="89.4" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
127
- <circle cx="321.7" cy="80.5" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
128
- <circle cx="358.3" cy="71.9" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
129
- <circle cx="395.0" cy="64.9" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
130
- <circle cx="431.7" cy="58.5" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
131
- <circle cx="468.3" cy="54.6" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
132
- <circle cx="505.0" cy="50.4" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
133
- <circle cx="541.7" cy="47.9" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
134
- <circle cx="578.3" cy="45.5" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
135
- <circle cx="615.0" cy="43.2" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
136
- <circle cx="651.7" cy="41.7" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
137
  <circle cx="83.3" cy="197.9" r="4" fill="#f59e0b" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
138
  <circle cx="120.0" cy="158.1" r="4" fill="#6366f1" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
139
  <circle cx="156.7" cy="125.8" r="4" fill="#6366f1" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
140
  <circle cx="193.3" cy="103.1" r="4" fill="#6366f1" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
141
  <circle cx="230.0" cy="81.3" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
142
  <circle cx="266.7" cy="65.9" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
143
  <circle cx="303.3" cy="53.0" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
144
  <circle cx="340.0" cy="86.3" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
145
  <circle cx="376.7" cy="77.8" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
146
  <circle cx="413.3" cy="70.8" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
147
  <circle cx="450.0" cy="64.0" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
148
  <circle cx="486.7" cy="59.2" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
149
  <circle cx="523.3" cy="54.6" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
150
  <circle cx="560.0" cy="50.9" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
151
  <circle cx="596.7" cy="48.3" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
152
  <circle cx="633.3" cy="46.1" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
 
153
  <circle cx="670.0" cy="44.0" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
154
- <text x="65.0" y="271" text-anchor="middle" font-size="10" fill="#6b7280">0</text>
155
- <text x="156.7" y="271" text-anchor="middle" font-size="10" fill="#6b7280">5</text>
156
- <text x="248.3" y="271" text-anchor="middle" font-size="10" fill="#6b7280">10</text>
157
- <text x="340.0" y="271" text-anchor="middle" font-size="10" fill="#6b7280">15</text>
158
- <text x="431.7" y="271" text-anchor="middle" font-size="10" fill="#6b7280">20</text>
159
- <text x="523.3" y="271" text-anchor="middle" font-size="10" fill="#6b7280">25</text>
160
- <text x="615.0" y="271" text-anchor="middle" font-size="10" fill="#6b7280">30</text>
161
- <text x="670.0" y="271" text-anchor="middle" font-size="10" fill="#6b7280">33</text>
162
- <text x="367" y="292" text-anchor="middle" font-size="10" fill="#6b7280">Event Index</text>
163
  <text x="14" y="145" text-anchor="middle" font-size="10" fill="#6b7280" transform="rotate(-90 14 145)">Risk Score</text>
164
- <line x1="75" y1="50" x2="95" y2="50" stroke="#6366f1" stroke-width="2"/>
165
- <text x="99" y="54" font-size="10" fill="#374151">Patient A</text>
166
- <line x1="170" y1="50" x2="190" y2="50" stroke="#f59e0b" stroke-width="2" stroke-dasharray="5 3"/>
167
- <text x="194" y="54" font-size="10" fill="#374151">Patient B</text>
168
- <circle cx="280" cy="50" r="4" fill="#f59e0b"/>
169
- <text x="287" y="54" font-size="10" fill="#374151">synthetic</text>
170
- <circle cx="360" cy="50" r="4" fill="#6366f1"/>
171
- <text x="367" y="54" font-size="10" fill="#374151">pseudo</text>
172
- <circle cx="430" cy="50" r="4" fill="#374151"/>
173
- <text x="437" y="54" font-size="10" fill="#374151">redact</text>
174
  </svg>
175
 
176
  ## Re-identification Risk Reduction
177
 
178
- Delta-AUROC measures the reduction in a logistic-regression re-identifier's ability to distinguish patients from masked vs. original text, computed on a rolling 32-event window. Negative values mean the masking is working. The multi-run mean is -0.9167 ± 0.0000 (95% CI, n=10). First non-zero signal appears at event 7, once the buffer reaches 8 samples with 2 distinct patient labels.
179
 
180
- <svg viewBox="0 0 720 310" xmlns="http://www.w3.org/2000/svg" style="font-family: system-ui, sans-serif; background: white;">
181
- <text x="360" y="22" text-anchor="middle" font-size="13" font-weight="600" fill="#374151">Delta-AUROC — Re-identification Risk Reduction</text>
182
  <path d="M 65.0,45.5 L 65.0,45.5 83.3,45.5 101.7,45.5 120.0,45.5 138.3,45.5 156.7,45.5 175.0,45.5 193.3,71.7 211.7,71.7 230.0,71.7 248.3,97.9 266.7,255.0 285.0,80.4 303.3,150.2 321.7,115.3 340.0,220.1 358.3,150.2 376.7,150.2 395.0,71.7 413.3,150.2 431.7,150.2 450.0,228.8 468.3,66.4 486.7,150.2 505.0,66.4 523.3,234.0 541.7,150.2 560.0,150.2 578.3,80.4 596.7,220.1 615.0,150.2 633.3,237.5 651.7,237.5 670.0,237.5 L 670.0,45.5 Z" fill="#6366f1" opacity="0.10"/>
183
- <line x1="65" y1="45.5" x2="670" y2="45.5" stroke="#6b7280" stroke-width="1.5"/>
 
184
  <line x1="65" y1="255" x2="670" y2="255" stroke="#e5e7eb" stroke-width="1"/>
185
  <text x="59" y="259" text-anchor="end" font-size="10" fill="#6b7280">-1.00</text>
186
- <line x1="65" y1="202.8" x2="670" y2="202.8" stroke="#e5e7eb" stroke-width="1"/>
187
- <text x="59" y="206.8" text-anchor="end" font-size="10" fill="#6b7280">-0.75</text>
188
- <line x1="65" y1="150.5" x2="670" y2="150.5" stroke="#e5e7eb" stroke-width="1"/>
189
- <text x="59" y="154.5" text-anchor="end" font-size="10" fill="#6b7280">-0.50</text>
190
- <line x1="65" y1="98.2" x2="670" y2="98.2" stroke="#e5e7eb" stroke-width="1"/>
191
- <text x="59" y="102.2" text-anchor="end" font-size="10" fill="#6b7280">-0.25</text>
192
- <text x="59" y="49.5" text-anchor="end" font-size="10" fill="#6b7280">0.00</text>
193
- <line x1="193.3" y1="30" x2="193.3" y2="71.7" stroke="#fbbf24" stroke-width="1" stroke-dasharray="3 2" opacity="0.7"/>
194
- <text x="196" y="42" font-size="9" fill="#fbbf24">first drop (evt 7)</text>
195
  <polyline points="65.0,45.5 83.3,45.5 101.7,45.5 120.0,45.5 138.3,45.5 156.7,45.5 175.0,45.5 193.3,71.7 211.7,71.7 230.0,71.7 248.3,97.9 266.7,255.0 285.0,80.4 303.3,150.2 321.7,115.3 340.0,220.1 358.3,150.2 376.7,150.2 395.0,71.7 413.3,150.2 431.7,150.2 450.0,228.8 468.3,66.4 486.7,150.2 505.0,66.4 523.3,234.0 541.7,150.2 560.0,150.2 578.3,80.4 596.7,220.1 615.0,150.2 633.3,237.5 651.7,237.5 670.0,237.5" fill="none" stroke="#6366f1" stroke-width="2"/>
196
- <text x="666" y="231" text-anchor="end" font-size="9" fill="#6366f1">final: -0.9167</text>
 
197
  <text x="65.0" y="271" text-anchor="middle" font-size="10" fill="#6b7280">0</text>
198
  <text x="156.7" y="271" text-anchor="middle" font-size="10" fill="#6b7280">5</text>
199
  <text x="248.3" y="271" text-anchor="middle" font-size="10" fill="#6b7280">10</text>
@@ -202,68 +204,77 @@ Delta-AUROC measures the reduction in a logistic-regression re-identifier's abil
202
  <text x="523.3" y="271" text-anchor="middle" font-size="10" fill="#6b7280">25</text>
203
  <text x="615.0" y="271" text-anchor="middle" font-size="10" fill="#6b7280">30</text>
204
  <text x="670.0" y="271" text-anchor="middle" font-size="10" fill="#6b7280">33</text>
205
- <text x="367" y="292" text-anchor="middle" font-size="10" fill="#6b7280">Event Index</text>
206
  <text x="14" y="145" text-anchor="middle" font-size="10" fill="#6b7280" transform="rotate(-90 14 145)">Delta-AUROC</text>
207
- <text x="75" y="40" font-size="10" fill="#6366f1" opacity="0.7">negative = masking reduces re-identification ability</text>
208
  </svg>
209
 
210
- ## Privacy vs Utility
211
-
212
- The bursty workload is the hardest case: the system has to protect high-risk returning patients while preserving utility for newly admitted low-risk ones at the same time. The chart shows where each policy lands in privacy-utility space on that workload. The target region (top-right, shaded green) requires Privacy@HighRisk above 0.85 and Utility@LowRisk above 0.50. No static policy reaches it. Adaptive does.
213
-
214
- <svg viewBox="0 0 700 310" xmlns="http://www.w3.org/2000/svg" style="font-family: system-ui, sans-serif; background: white;">
215
- <text x="350" y="20" text-anchor="middle" font-size="13" font-weight="600" fill="#374151">Privacy vs Utility — Bursty Workload</text>
216
- <rect x="573.1" y="30" width="96.9" height="109.7" fill="#10b981" opacity="0.08"/>
217
- <text x="621.5" y="44" text-anchor="middle" font-size="9" fill="#10b981" opacity="0.9">target region</text>
218
- <line x1="573.1" y1="30" x2="573.1" y2="255" stroke="#10b981" stroke-width="1" stroke-dasharray="4 3" opacity="0.5"/>
219
- <text x="575" y="268" font-size="9" fill="#10b981">utility 0.50</text>
220
- <line x1="60" y1="139.7" x2="670" y2="139.7" stroke="#f97316" stroke-width="1" stroke-dasharray="4 3" opacity="0.5"/>
221
- <text x="62" y="135" font-size="9" fill="#f97316">privacy 0.85</text>
222
- <line x1="60" y1="255" x2="670" y2="255" stroke="#e5e7eb" stroke-width="1"/>
223
- <line x1="60" y1="30" x2="60" y2="255" stroke="#e5e7eb" stroke-width="1"/>
224
- <line x1="60" y1="200.5" x2="670" y2="200.5" stroke="#e5e7eb" stroke-width="1"/>
225
- <line x1="213.8" y1="30" x2="213.8" y2="255" stroke="#e5e7eb" stroke-width="1"/>
226
- <line x1="60" y1="146.0" x2="670" y2="146.0" stroke="#e5e7eb" stroke-width="1"/>
227
- <line x1="367.5" y1="30" x2="367.5" y2="255" stroke="#e5e7eb" stroke-width="1"/>
228
- <line x1="60" y1="91.5" x2="670" y2="91.5" stroke="#e5e7eb" stroke-width="1"/>
229
- <line x1="521.3" y1="30" x2="521.3" y2="255" stroke="#e5e7eb" stroke-width="1"/>
230
- <line x1="670" y1="30" x2="670" y2="255" stroke="#e5e7eb" stroke-width="1"/>
231
- <text x="54" y="259" text-anchor="end" font-size="10" fill="#6b7280">0.00</text>
232
- <text x="213.8" y="268" text-anchor="middle" font-size="10" fill="#6b7280">0.25</text>
233
- <text x="54" y="204.5" text-anchor="end" font-size="10" fill="#6b7280">0.25</text>
234
- <text x="367.5" y="268" text-anchor="middle" font-size="10" fill="#6b7280">0.50</text>
235
- <text x="54" y="150" text-anchor="end" font-size="10" fill="#6b7280">0.50</text>
236
- <text x="521.3" y="268" text-anchor="middle" font-size="10" fill="#6b7280">0.75</text>
237
- <text x="54" y="95.5" text-anchor="end" font-size="10" fill="#6b7280">0.75</text>
238
- <text x="670" y="268" text-anchor="middle" font-size="10" fill="#6b7280">1.00</text>
239
- <text x="54" y="41" text-anchor="end" font-size="10" fill="#6b7280">1.00</text>
240
- <!-- Always-Raw: utility=1.0, privacy=0.0 -->
241
- <circle cx="670" cy="255" r="6" fill="#ef4444" stroke="white" stroke-width="1.5" opacity="0.9"/>
242
- <text x="650" y="248" font-size="10" fill="#ef4444">Raw</text>
243
- <!-- Always-Weak: utility=0.8466, privacy=0.0035 -->
244
- <circle cx="609.6" cy="254.1" r="6" fill="#f97316" stroke="white" stroke-width="1.5" opacity="0.9"/>
245
- <text x="614.6" y="248.1" font-size="10" fill="#f97316">Weak</text>
246
- <!-- Always-Synthetic: utility=0.6755, privacy=0.5642 -->
247
- <circle cx="475.0" cy="114.6" r="6" fill="#f59e0b" stroke="white" stroke-width="1.5" opacity="0.9"/>
248
- <text x="480" y="110" font-size="10" fill="#f59e0b">Synthetic</text>
249
- <!-- Always-Pseudo: utility=0.4399, privacy=0.8547 -->
250
- <circle cx="328.9" cy="67.1" r="6" fill="#6366f1" stroke="white" stroke-width="1.5" opacity="0.9"/>
251
- <text x="268" y="63" font-size="10" fill="#6366f1">Always-Pseudo</text>
252
- <!-- Always-Redact: utility=0.0, privacy=1.0 -->
253
- <circle cx="60" cy="37.0" r="6" fill="#374151" stroke="white" stroke-width="1.5" opacity="0.9"/>
254
- <text x="65" y="32" font-size="10" fill="#374151">Redact</text>
255
- <!-- Adaptive: utility=0.8466, privacy=0.9907 -->
256
- <circle cx="609.6" cy="39.5" r="9" fill="#10b981" stroke="white" stroke-width="2" opacity="0.95"/>
257
- <text x="619.6" y="35.5" font-size="11" fill="#10b981" font-weight="600">Adaptive</text>
258
- <text x="367" y="295" text-anchor="middle" font-size="10" fill="#6b7280">Utility@LowRisk</text>
259
- <text x="14" y="145" text-anchor="middle" font-size="10" fill="#6b7280" transform="rotate(-90 14 145)">Privacy@HighRisk</text>
 
 
 
 
 
 
 
 
 
 
260
  </svg>
261
 
262
  Full Pareto frontier across all three workloads is in `EXPERIMENT_REPORT.md`.
263
 
264
  ## Baseline Policy Comparison
265
 
266
- Three workloads: monotonic (risk accumulates continuously), bursty (new low-risk patients enter every 6 events), mixed (70% routine / 30% high-complexity). Full numbers are in `baseline_comparison.csv`. The two columns that matter are Privacy@HighRisk and Utility@LowRisk, which isolate performance where each dimension actually matters.
267
 
268
  ### Bursty workload (primary claim)
269
 
@@ -294,26 +305,28 @@ Three workloads: monotonic (risk accumulates continuously), bursty (new low-risk
294
 
295
  ## Threshold Sensitivity
296
 
297
- `remask_thresh` controls when the controller triggers pseudonym re-tokenization. Lower values trigger remask more aggressively, trading utility for privacy. The chart shows how Privacy@HighRisk and Utility@LowRisk shift on the bursty workload across a grid of threshold values. The default (0.68, marked) sits at an inflection point: privacy is near its ceiling and utility has not yet dropped. Full data for all three workloads is in `data/threshold_sensitivity.csv`.
298
 
299
- <svg viewBox="0 0 700 310" xmlns="http://www.w3.org/2000/svg" style="font-family: system-ui, sans-serif; background: white;">
300
  <text x="350" y="20" text-anchor="middle" font-size="13" font-weight="600" fill="#374151">remask_thresh Sensitivity — Bursty Workload</text>
 
 
301
  <line x1="65" y1="222.5" x2="630" y2="222.5" stroke="#e5e7eb" stroke-width="1"/>
302
- <text x="59" y="226.5" text-anchor="end" font-size="10" fill="#6b7280">0.70</text>
303
  <line x1="65" y1="195.0" x2="630" y2="195.0" stroke="#e5e7eb" stroke-width="1"/>
304
- <text x="59" y="199.0" text-anchor="end" font-size="10" fill="#6b7280">0.75</text>
305
  <line x1="65" y1="167.5" x2="630" y2="167.5" stroke="#e5e7eb" stroke-width="1"/>
306
- <text x="59" y="171.5" text-anchor="end" font-size="10" fill="#6b7280">0.80</text>
307
  <line x1="65" y1="140.0" x2="630" y2="140.0" stroke="#e5e7eb" stroke-width="1"/>
308
- <text x="59" y="144.0" text-anchor="end" font-size="10" fill="#6b7280">0.85</text>
309
  <line x1="65" y1="112.5" x2="630" y2="112.5" stroke="#e5e7eb" stroke-width="1"/>
310
- <text x="59" y="116.5" text-anchor="end" font-size="10" fill="#6b7280">0.90</text>
311
  <line x1="65" y1="85.0" x2="630" y2="85.0" stroke="#e5e7eb" stroke-width="1"/>
312
- <text x="59" y="89.0" text-anchor="end" font-size="10" fill="#6b7280">0.95</text>
313
  <line x1="65" y1="57.5" x2="630" y2="57.5" stroke="#e5e7eb" stroke-width="1"/>
314
- <text x="59" y="61.5" text-anchor="end" font-size="10" fill="#6b7280">1.00</text>
315
- <line x1="404.0" y1="30" x2="404.0" y2="255" stroke="#6366f1" stroke-width="1.5" stroke-dasharray="4 3" opacity="0.6"/>
316
- <text x="407" y="42" font-size="9" fill="#6366f1">default 0.68</text>
317
  <polyline points="65.0,141.8 159.2,119.8 253.3,97.8 347.5,75.8 404.0,62.6 479.3,57.5 535.8,57.5 630.0,57.5" fill="none" stroke="#6366f1" stroke-width="2"/>
318
  <circle cx="65.0" cy="141.8" r="4" fill="#6366f1" stroke="white" stroke-width="1"/>
319
  <circle cx="159.2" cy="119.8" r="4" fill="#6366f1" stroke="white" stroke-width="1"/>
@@ -332,20 +345,20 @@ Three workloads: monotonic (risk accumulates continuously), bursty (new low-risk
332
  <circle cx="479.3" cy="128.7" r="4" fill="#f59e0b" stroke="white" stroke-width="1"/>
333
  <circle cx="535.8" cy="118.8" r="4" fill="#f59e0b" stroke="white" stroke-width="1"/>
334
  <circle cx="630.0" cy="102.3" r="4" fill="#f59e0b" stroke="white" stroke-width="1"/>
335
- <text x="65.0" y="271" text-anchor="middle" font-size="9" fill="#6b7280">0.50</text>
336
- <text x="159.2" y="271" text-anchor="middle" font-size="9" fill="#6b7280">0.55</text>
337
- <text x="253.3" y="271" text-anchor="middle" font-size="9" fill="#6b7280">0.60</text>
338
- <text x="347.5" y="271" text-anchor="middle" font-size="9" fill="#6b7280">0.65</text>
339
- <text x="404.0" y="271" text-anchor="middle" font-size="9" fill="#6b7280">0.68</text>
340
- <text x="479.3" y="271" text-anchor="middle" font-size="9" fill="#6b7280">0.72</text>
341
- <text x="535.8" y="271" text-anchor="middle" font-size="9" fill="#6b7280">0.75</text>
342
- <text x="630.0" y="271" text-anchor="middle" font-size="9" fill="#6b7280">0.80</text>
343
- <text x="347" y="292" text-anchor="middle" font-size="10" fill="#6b7280">remask_thresh</text>
344
  <text x="14" y="145" text-anchor="middle" font-size="10" fill="#6b7280" transform="rotate(-90 14 145)">Score</text>
345
- <line x1="75" y1="46" x2="93" y2="46" stroke="#6366f1" stroke-width="2"/>
346
- <text x="97" y="50" font-size="10" fill="#374151">Privacy@HighRisk</text>
347
- <line x1="220" y1="46" x2="238" y2="46" stroke="#f59e0b" stroke-width="2" stroke-dasharray="5 3"/>
348
- <text x="242" y="50" font-size="10" fill="#374151">Utility@LowRisk</text>
349
  </svg>
350
 
351
  ## Comparison with Existing PHI Datasets
@@ -362,7 +375,7 @@ Three configs:
362
 
363
  | Config | File | Description |
364
  | --- | --- | --- |
365
- | `default` | `audit_log.jsonl` | Full run log, adaptive policy only |
366
  | `signed` | `audit_log_signed_adaptive.jsonl` | Cryptographically signed adaptive-only events |
367
  | `crossmodal` | `data/crossmodal_train.jsonl` | Cross-modal link benchmark scenarios (A-E) |
368
 
 
22
  - benchmark
23
  - evaluation
24
  - synthetic-data
25
+ - text-classification
26
  size_categories:
27
  - 1K<n<10K
28
  configs:
 
90
 
91
  ## Risk Timeline
92
 
93
+ Risk accumulates as PHI exposure is recorded across events. Patient A (research consent, ceiling: pseudo) and Patient B (standard consent, ceiling: redact) alternate. Dots are colored by the policy applied at each event. The controller escalates as risk crosses 0.40, 0.60, and 0.80.
94
 
95
+ <svg viewBox="0 0 740 300" xmlns="http://www.w3.org/2000/svg" style="font-family: system-ui, sans-serif; background: white;">
96
+ <text x="370" y="20" text-anchor="middle" font-size="13" font-weight="600" fill="#374151">Adaptive Risk Score — 34 Live Events</text>
97
  <line x1="65" y1="255" x2="670" y2="255" stroke="#e5e7eb" stroke-width="1"/>
98
  <line x1="65" y1="35" x2="65" y2="255" stroke="#e5e7eb" stroke-width="1"/>
99
  <line x1="65" y1="220.8" x2="670" y2="220.8" stroke="#e5e7eb" stroke-width="1"/>
100
+ <text x="59" y="225" text-anchor="end" font-size="10" fill="#6b7280">0.4</text>
101
  <line x1="65" y1="186.7" x2="670" y2="186.7" stroke="#e5e7eb" stroke-width="1"/>
102
+ <text x="59" y="191" text-anchor="end" font-size="10" fill="#6b7280">0.5</text>
103
  <line x1="65" y1="152.5" x2="670" y2="152.5" stroke="#e5e7eb" stroke-width="1"/>
104
+ <text x="59" y="157" text-anchor="end" font-size="10" fill="#6b7280">0.6</text>
105
  <line x1="65" y1="118.3" x2="670" y2="118.3" stroke="#e5e7eb" stroke-width="1"/>
106
+ <text x="59" y="123" text-anchor="end" font-size="10" fill="#6b7280">0.7</text>
107
  <line x1="65" y1="84.2" x2="670" y2="84.2" stroke="#e5e7eb" stroke-width="1"/>
108
+ <text x="59" y="89" text-anchor="end" font-size="10" fill="#6b7280">0.8</text>
109
  <line x1="65" y1="50.0" x2="670" y2="50.0" stroke="#e5e7eb" stroke-width="1"/>
110
+ <text x="59" y="54" text-anchor="end" font-size="10" fill="#6b7280">0.9</text>
111
+ <text x="59" y="39" text-anchor="end" font-size="10" fill="#6b7280">1.0</text>
112
  <text x="59" y="259" text-anchor="end" font-size="10" fill="#6b7280">0.3</text>
113
+ <line x1="65" y1="220.8" x2="670" y2="220.8" stroke="#fbbf24" stroke-width="1" stroke-dasharray="4 3" opacity="0.6"/>
114
+ <text x="674" y="225" font-size="9" fill="#fbbf24">0.40</text>
115
+ <line x1="65" y1="152.5" x2="670" y2="152.5" stroke="#f97316" stroke-width="1" stroke-dasharray="4 3" opacity="0.6"/>
116
+ <text x="674" y="157" font-size="9" fill="#f97316">0.60</text>
117
+ <line x1="65" y1="84.2" x2="670" y2="84.2" stroke="#ef4444" stroke-width="1" stroke-dasharray="4 3" opacity="0.6"/>
118
+ <text x="674" y="89" font-size="9" fill="#ef4444">0.80</text>
119
  <polyline points="65.0,179.8 101.7,148.2 138.3,117.8 175.0,93.2 211.7,73.2 248.3,57.1 285.0,89.4 321.7,80.5 358.3,71.9 395.0,64.9 431.7,58.5 468.3,54.6 505.0,50.4 541.7,47.9 578.3,45.5 615.0,43.2 651.7,41.7" fill="none" stroke="#6366f1" stroke-width="2"/>
120
  <polyline points="83.3,197.9 120.0,158.1 156.7,125.8 193.3,103.1 230.0,81.3 266.7,65.9 303.3,53.0 340.0,86.3 376.7,77.8 413.3,70.8 450.0,64.0 486.7,59.2 523.3,54.6 560.0,50.9 596.7,48.3 633.3,46.1 670.0,44.0" fill="none" stroke="#f59e0b" stroke-width="2" stroke-dasharray="5 3"/>
121
  <circle cx="65.0" cy="179.8" r="4" fill="#f59e0b" stroke="white" stroke-width="1.2"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  <circle cx="83.3" cy="197.9" r="4" fill="#f59e0b" stroke="white" stroke-width="1.2" opacity="0.85"/>
123
+ <circle cx="101.7" cy="148.2" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
124
  <circle cx="120.0" cy="158.1" r="4" fill="#6366f1" stroke="white" stroke-width="1.2" opacity="0.85"/>
125
+ <circle cx="138.3" cy="117.8" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
126
  <circle cx="156.7" cy="125.8" r="4" fill="#6366f1" stroke="white" stroke-width="1.2" opacity="0.85"/>
127
+ <circle cx="175.0" cy="93.2" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
128
  <circle cx="193.3" cy="103.1" r="4" fill="#6366f1" stroke="white" stroke-width="1.2" opacity="0.85"/>
129
+ <circle cx="211.7" cy="73.2" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
130
  <circle cx="230.0" cy="81.3" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
131
+ <circle cx="248.3" cy="57.1" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
132
  <circle cx="266.7" cy="65.9" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
133
+ <circle cx="285.0" cy="89.4" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
134
  <circle cx="303.3" cy="53.0" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
135
+ <circle cx="321.7" cy="80.5" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
136
  <circle cx="340.0" cy="86.3" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
137
+ <circle cx="358.3" cy="71.9" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
138
  <circle cx="376.7" cy="77.8" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
139
+ <circle cx="395.0" cy="64.9" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
140
  <circle cx="413.3" cy="70.8" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
141
+ <circle cx="431.7" cy="58.5" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
142
  <circle cx="450.0" cy="64.0" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
143
+ <circle cx="468.3" cy="54.6" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
144
  <circle cx="486.7" cy="59.2" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
145
+ <circle cx="505.0" cy="50.4" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
146
  <circle cx="523.3" cy="54.6" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
147
+ <circle cx="541.7" cy="47.9" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
148
  <circle cx="560.0" cy="50.9" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
149
+ <circle cx="578.3" cy="45.5" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
150
  <circle cx="596.7" cy="48.3" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
151
+ <circle cx="615.0" cy="43.2" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
152
  <circle cx="633.3" cy="46.1" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
153
+ <circle cx="651.7" cy="41.7" r="4" fill="#6366f1" stroke="white" stroke-width="1.2"/>
154
  <circle cx="670.0" cy="44.0" r="4" fill="#374151" stroke="white" stroke-width="1.2" opacity="0.85"/>
155
+ <text x="65.0" y="270" text-anchor="middle" font-size="10" fill="#6b7280">0</text>
156
+ <text x="156.7" y="270" text-anchor="middle" font-size="10" fill="#6b7280">5</text>
157
+ <text x="248.3" y="270" text-anchor="middle" font-size="10" fill="#6b7280">10</text>
158
+ <text x="340.0" y="270" text-anchor="middle" font-size="10" fill="#6b7280">15</text>
159
+ <text x="431.7" y="270" text-anchor="middle" font-size="10" fill="#6b7280">20</text>
160
+ <text x="523.3" y="270" text-anchor="middle" font-size="10" fill="#6b7280">25</text>
161
+ <text x="615.0" y="270" text-anchor="middle" font-size="10" fill="#6b7280">30</text>
162
+ <text x="670.0" y="270" text-anchor="middle" font-size="10" fill="#6b7280">33</text>
163
+ <text x="367" y="290" text-anchor="middle" font-size="10" fill="#6b7280">Event Index</text>
164
  <text x="14" y="145" text-anchor="middle" font-size="10" fill="#6b7280" transform="rotate(-90 14 145)">Risk Score</text>
165
+ <line x1="500" y1="240" x2="518" y2="240" stroke="#6366f1" stroke-width="2"/>
166
+ <text x="522" y="244" font-size="10" fill="#374151">Patient A</text>
167
+ <line x1="580" y1="240" x2="598" y2="240" stroke="#f59e0b" stroke-width="2" stroke-dasharray="5 3"/>
168
+ <text x="602" y="244" font-size="10" fill="#374151">Patient B</text>
169
+ <circle cx="500" cy="228" r="4" fill="#f59e0b"/>
170
+ <text x="507" y="232" font-size="10" fill="#374151">synthetic</text>
171
+ <circle cx="570" cy="228" r="4" fill="#6366f1"/>
172
+ <text x="577" y="232" font-size="10" fill="#374151">pseudo</text>
173
+ <circle cx="630" cy="228" r="4" fill="#374151"/>
174
+ <text x="637" y="232" font-size="10" fill="#374151">redact</text>
175
  </svg>
176
 
177
  ## Re-identification Risk Reduction
178
 
179
+ Delta-AUROC measures the reduction in a logistic-regression re-identifier's ability to distinguish patients from masked vs. original text, computed on a rolling 32-event window. Negative values mean the masking is working. The multi-run mean is -0.9167 ± 0.0000 (95% CI, n=10). First non-zero signal appears at event 7, once the buffer has enough samples with 2 distinct patient labels.
180
 
181
+ <svg viewBox="0 0 740 295" xmlns="http://www.w3.org/2000/svg" style="font-family: system-ui, sans-serif; background: white;">
182
+ <text x="370" y="20" text-anchor="middle" font-size="13" font-weight="600" fill="#374151">Delta-AUROC — Re-identification Risk Reduction</text>
183
  <path d="M 65.0,45.5 L 65.0,45.5 83.3,45.5 101.7,45.5 120.0,45.5 138.3,45.5 156.7,45.5 175.0,45.5 193.3,71.7 211.7,71.7 230.0,71.7 248.3,97.9 266.7,255.0 285.0,80.4 303.3,150.2 321.7,115.3 340.0,220.1 358.3,150.2 376.7,150.2 395.0,71.7 413.3,150.2 431.7,150.2 450.0,228.8 468.3,66.4 486.7,150.2 505.0,66.4 523.3,234.0 541.7,150.2 560.0,150.2 578.3,80.4 596.7,220.1 615.0,150.2 633.3,237.5 651.7,237.5 670.0,237.5 L 670.0,45.5 Z" fill="#6366f1" opacity="0.10"/>
184
+ <line x1="65" y1="45.5" x2="670" y2="45.5" stroke="#9ca3af" stroke-width="1.5"/>
185
+ <text x="59" y="49" text-anchor="end" font-size="10" fill="#6b7280">0.00</text>
186
  <line x1="65" y1="255" x2="670" y2="255" stroke="#e5e7eb" stroke-width="1"/>
187
  <text x="59" y="259" text-anchor="end" font-size="10" fill="#6b7280">-1.00</text>
188
+ <line x1="65" y1="202.9" x2="670" y2="202.9" stroke="#e5e7eb" stroke-width="1"/>
189
+ <text x="59" y="207" text-anchor="end" font-size="10" fill="#6b7280">-0.75</text>
190
+ <line x1="65" y1="150.2" x2="670" y2="150.2" stroke="#e5e7eb" stroke-width="1"/>
191
+ <text x="59" y="154" text-anchor="end" font-size="10" fill="#6b7280">-0.50</text>
192
+ <line x1="65" y1="97.9" x2="670" y2="97.9" stroke="#e5e7eb" stroke-width="1"/>
193
+ <text x="59" y="102" text-anchor="end" font-size="10" fill="#6b7280">-0.25</text>
194
+ <line x1="193.3" y1="35" x2="193.3" y2="71.7" stroke="#fbbf24" stroke-width="1" stroke-dasharray="3 2" opacity="0.7"/>
195
+ <text x="196" y="43" font-size="9" fill="#b45309">first drop (evt 7)</text>
 
196
  <polyline points="65.0,45.5 83.3,45.5 101.7,45.5 120.0,45.5 138.3,45.5 156.7,45.5 175.0,45.5 193.3,71.7 211.7,71.7 230.0,71.7 248.3,97.9 266.7,255.0 285.0,80.4 303.3,150.2 321.7,115.3 340.0,220.1 358.3,150.2 376.7,150.2 395.0,71.7 413.3,150.2 431.7,150.2 450.0,228.8 468.3,66.4 486.7,150.2 505.0,66.4 523.3,234.0 541.7,150.2 560.0,150.2 578.3,80.4 596.7,220.1 615.0,150.2 633.3,237.5 651.7,237.5 670.0,237.5" fill="none" stroke="#6366f1" stroke-width="2"/>
197
+ <circle cx="670.0" cy="237.5" r="4" fill="#6366f1" stroke="white" stroke-width="1.5"/>
198
+ <text x="664" y="230" text-anchor="end" font-size="9" fill="#6366f1">-0.9167</text>
199
  <text x="65.0" y="271" text-anchor="middle" font-size="10" fill="#6b7280">0</text>
200
  <text x="156.7" y="271" text-anchor="middle" font-size="10" fill="#6b7280">5</text>
201
  <text x="248.3" y="271" text-anchor="middle" font-size="10" fill="#6b7280">10</text>
 
204
  <text x="523.3" y="271" text-anchor="middle" font-size="10" fill="#6b7280">25</text>
205
  <text x="615.0" y="271" text-anchor="middle" font-size="10" fill="#6b7280">30</text>
206
  <text x="670.0" y="271" text-anchor="middle" font-size="10" fill="#6b7280">33</text>
207
+ <text x="367" y="288" text-anchor="middle" font-size="10" fill="#6b7280">Event Index</text>
208
  <text x="14" y="145" text-anchor="middle" font-size="10" fill="#6b7280" transform="rotate(-90 14 145)">Delta-AUROC</text>
 
209
  </svg>
210
 
211
+ ## Privacy vs Utility — Bursty Workload
212
+
213
+ The bursty workload is the hardest case: the system has to protect high-risk returning patients while preserving utility for newly admitted low-risk ones at the same time. The target region (top-right, shaded) requires Privacy@HighRisk above 0.85 and Utility@LowRisk above 0.50. No static policy reaches it. Adaptive does.
214
+
215
+ <svg viewBox="0 0 500 420" xmlns="http://www.w3.org/2000/svg" style="font-family: system-ui, sans-serif; background: white;">
216
+ <text x="250" y="22" text-anchor="middle" font-size="13" font-weight="600" fill="#374151">Privacy vs Utility — Bursty Workload</text>
217
+ <!-- axes: x=60-440 (utility 0-1), y=40-360 (privacy 0-1 inverted) -->
218
+ <line x1="60" y1="40" x2="60" y2="360" stroke="#9ca3af" stroke-width="1.5"/>
219
+ <line x1="60" y1="360" x2="440" y2="360" stroke="#9ca3af" stroke-width="1.5"/>
220
+ <!-- grid -->
221
+ <line x1="60" y1="280" x2="440" y2="280" stroke="#e5e7eb" stroke-width="1"/>
222
+ <line x1="60" y1="200" x2="440" y2="200" stroke="#e5e7eb" stroke-width="1"/>
223
+ <line x1="60" y1="120" x2="440" y2="120" stroke="#e5e7eb" stroke-width="1"/>
224
+ <line x1="60" y1="40" x2="440" y2="40" stroke="#e5e7eb" stroke-width="1"/>
225
+ <line x1="155" y1="40" x2="155" y2="360" stroke="#e5e7eb" stroke-width="1"/>
226
+ <line x1="250" y1="40" x2="250" y2="360" stroke="#e5e7eb" stroke-width="1"/>
227
+ <line x1="345" y1="40" x2="345" y2="360" stroke="#e5e7eb" stroke-width="1"/>
228
+ <line x1="440" y1="40" x2="440" y2="360" stroke="#e5e7eb" stroke-width="1"/>
229
+ <!-- axis labels -->
230
+ <text x="54" y="364" text-anchor="end" font-size="10" fill="#6b7280">0.0</text>
231
+ <text x="54" y="284" text-anchor="end" font-size="10" fill="#6b7280">0.25</text>
232
+ <text x="54" y="204" text-anchor="end" font-size="10" fill="#6b7280">0.50</text>
233
+ <text x="54" y="124" text-anchor="end" font-size="10" fill="#6b7280">0.75</text>
234
+ <text x="54" y="44" text-anchor="end" font-size="10" fill="#6b7280">1.00</text>
235
+ <text x="60" y="376" text-anchor="middle" font-size="10" fill="#6b7280">0.0</text>
236
+ <text x="155" y="376" text-anchor="middle" font-size="10" fill="#6b7280">0.25</text>
237
+ <text x="250" y="376" text-anchor="middle" font-size="10" fill="#6b7280">0.50</text>
238
+ <text x="345" y="376" text-anchor="middle" font-size="10" fill="#6b7280">0.75</text>
239
+ <text x="440" y="376" text-anchor="middle" font-size="10" fill="#6b7280">1.00</text>
240
+ <!-- floor lines -->
241
+ <!-- privacy floor 0.85: y = 360 - 0.85*320 = 88 -->
242
+ <line x1="60" y1="88" x2="440" y2="88" stroke="#f97316" stroke-width="1" stroke-dasharray="5 3" opacity="0.6"/>
243
+ <text x="442" y="92" font-size="9" fill="#f97316">privacy 0.85</text>
244
+ <!-- utility floor 0.50: x = 60 + 0.5*380 = 250 -->
245
+ <line x1="250" y1="40" x2="250" y2="360" stroke="#10b981" stroke-width="1" stroke-dasharray="5 3" opacity="0.5"/>
246
+ <!-- target region shading -->
247
+ <rect x="250" y="40" width="190" height="48" fill="#10b981" opacity="0.08"/>
248
+ <text x="345" y="70" text-anchor="middle" font-size="9" fill="#10b981">target region</text>
249
+ <!-- axis titles -->
250
+ <text x="250" y="395" text-anchor="middle" font-size="11" fill="#374151">Utility @ Low Risk</text>
251
+ <text x="14" y="200" text-anchor="middle" font-size="11" fill="#374151" transform="rotate(-90 14 200)">Privacy @ High Risk</text>
252
+ <!-- points: x = 60 + utility*380, y = 360 - privacy*320 -->
253
+ <!-- Raw: utility=1.0, privacy=0.0 => x=440, y=360 -->
254
+ <circle cx="440" cy="360" r="7" fill="none" stroke="#ef4444" stroke-width="2.5"/>
255
+ <text x="430" y="352" text-anchor="end" font-size="10" fill="#ef4444">Raw</text>
256
+ <!-- Weak: utility=0.8466, privacy=0.0035 => x=382.7, y=358.9 -->
257
+ <rect x="377.2" y="353.4" width="11" height="11" fill="#f97316"/>
258
+ <text x="376" y="350" text-anchor="end" font-size="10" fill="#f97316">Weak</text>
259
+ <!-- Synthetic: utility=0.6755, privacy=0.5642 => x=316.7, y=179.5 -->
260
+ <polygon points="316.7,168 325.7,183 307.7,183" fill="#f59e0b"/>
261
+ <text x="328" y="179" font-size="10" fill="#f59e0b">Synthetic</text>
262
+ <!-- Pseudo: utility=0.4399, privacy=0.8547 => x=227.2, y=86.5 -->
263
+ <polygon points="227.2,74 238.7,93 215.7,93" fill="#22c55e"/>
264
+ <text x="200" y="78" text-anchor="end" font-size="10" fill="#22c55e">Pseudo</text>
265
+ <!-- Redact: utility=0.0, privacy=1.0 => x=60, y=40 -->
266
+ <polygon points="60,52 54,40 66,40" fill="#3b82f6"/>
267
+ <text x="72" y="50" font-size="10" fill="#3b82f6">Redact</text>
268
+ <!-- Adaptive: utility=0.8466, privacy=0.9907 => x=382.7, y=43.0 -->
269
+ <circle cx="382.7" cy="43.0" r="9" fill="#7c3aed" stroke="white" stroke-width="2"/>
270
+ <text x="394" y="40" font-size="11" fill="#7c3aed" font-weight="600">Adaptive</text>
271
  </svg>
272
 
273
  Full Pareto frontier across all three workloads is in `EXPERIMENT_REPORT.md`.
274
 
275
  ## Baseline Policy Comparison
276
 
277
+ Three workloads: monotonic (risk accumulates continuously), bursty (new low-risk patients enter every 6 events), mixed (70% routine / 30% high-complexity). Full numbers are in `baseline_comparison.csv`.
278
 
279
  ### Bursty workload (primary claim)
280
 
 
305
 
306
  ## Threshold Sensitivity
307
 
308
+ `remask_thresh` controls when the controller triggers pseudonym re-tokenization. Lower values trigger remask more aggressively. The chart shows how Privacy@HighRisk and Utility@LowRisk shift on the bursty workload across a grid of threshold values. The default (0.68, marked) sits at an inflection point: privacy is near ceiling and utility has not yet dropped. Full data for all three workloads is in `data/threshold_sensitivity.csv`.
309
 
310
+ <svg viewBox="0 0 700 295" xmlns="http://www.w3.org/2000/svg" style="font-family: system-ui, sans-serif; background: white;">
311
  <text x="350" y="20" text-anchor="middle" font-size="13" font-weight="600" fill="#374151">remask_thresh Sensitivity — Bursty Workload</text>
312
+ <line x1="65" y1="255" x2="630" y2="255" stroke="#9ca3af" stroke-width="1.5"/>
313
+ <line x1="65" y1="35" x2="65" y2="255" stroke="#9ca3af" stroke-width="1.5"/>
314
  <line x1="65" y1="222.5" x2="630" y2="222.5" stroke="#e5e7eb" stroke-width="1"/>
315
+ <text x="59" y="227" text-anchor="end" font-size="10" fill="#6b7280">0.70</text>
316
  <line x1="65" y1="195.0" x2="630" y2="195.0" stroke="#e5e7eb" stroke-width="1"/>
317
+ <text x="59" y="199" text-anchor="end" font-size="10" fill="#6b7280">0.75</text>
318
  <line x1="65" y1="167.5" x2="630" y2="167.5" stroke="#e5e7eb" stroke-width="1"/>
319
+ <text x="59" y="172" text-anchor="end" font-size="10" fill="#6b7280">0.80</text>
320
  <line x1="65" y1="140.0" x2="630" y2="140.0" stroke="#e5e7eb" stroke-width="1"/>
321
+ <text x="59" y="144" text-anchor="end" font-size="10" fill="#6b7280">0.85</text>
322
  <line x1="65" y1="112.5" x2="630" y2="112.5" stroke="#e5e7eb" stroke-width="1"/>
323
+ <text x="59" y="117" text-anchor="end" font-size="10" fill="#6b7280">0.90</text>
324
  <line x1="65" y1="85.0" x2="630" y2="85.0" stroke="#e5e7eb" stroke-width="1"/>
325
+ <text x="59" y="89" text-anchor="end" font-size="10" fill="#6b7280">0.95</text>
326
  <line x1="65" y1="57.5" x2="630" y2="57.5" stroke="#e5e7eb" stroke-width="1"/>
327
+ <text x="59" y="62" text-anchor="end" font-size="10" fill="#6b7280">1.00</text>
328
+ <line x1="404.0" y1="35" x2="404.0" y2="255" stroke="#6366f1" stroke-width="1.5" stroke-dasharray="4 3" opacity="0.6"/>
329
+ <text x="407" y="48" font-size="9" fill="#6366f1">default 0.68</text>
330
  <polyline points="65.0,141.8 159.2,119.8 253.3,97.8 347.5,75.8 404.0,62.6 479.3,57.5 535.8,57.5 630.0,57.5" fill="none" stroke="#6366f1" stroke-width="2"/>
331
  <circle cx="65.0" cy="141.8" r="4" fill="#6366f1" stroke="white" stroke-width="1"/>
332
  <circle cx="159.2" cy="119.8" r="4" fill="#6366f1" stroke="white" stroke-width="1"/>
 
345
  <circle cx="479.3" cy="128.7" r="4" fill="#f59e0b" stroke="white" stroke-width="1"/>
346
  <circle cx="535.8" cy="118.8" r="4" fill="#f59e0b" stroke="white" stroke-width="1"/>
347
  <circle cx="630.0" cy="102.3" r="4" fill="#f59e0b" stroke="white" stroke-width="1"/>
348
+ <text x="65.0" y="270" text-anchor="middle" font-size="9" fill="#6b7280">0.50</text>
349
+ <text x="159.2" y="270" text-anchor="middle" font-size="9" fill="#6b7280">0.55</text>
350
+ <text x="253.3" y="270" text-anchor="middle" font-size="9" fill="#6b7280">0.60</text>
351
+ <text x="347.5" y="270" text-anchor="middle" font-size="9" fill="#6b7280">0.65</text>
352
+ <text x="404.0" y="270" text-anchor="middle" font-size="9" fill="#6b7280">0.68</text>
353
+ <text x="479.3" y="270" text-anchor="middle" font-size="9" fill="#6b7280">0.72</text>
354
+ <text x="535.8" y="270" text-anchor="middle" font-size="9" fill="#6b7280">0.75</text>
355
+ <text x="630.0" y="270" text-anchor="middle" font-size="9" fill="#6b7280">0.80</text>
356
+ <text x="347" y="287" text-anchor="middle" font-size="10" fill="#6b7280">remask_thresh</text>
357
  <text x="14" y="145" text-anchor="middle" font-size="10" fill="#6b7280" transform="rotate(-90 14 145)">Score</text>
358
+ <line x1="430" y1="72" x2="448" y2="72" stroke="#6366f1" stroke-width="2"/>
359
+ <text x="452" y="76" font-size="10" fill="#374151">Privacy@HighRisk</text>
360
+ <line x1="430" y1="86" x2="448" y2="86" stroke="#f59e0b" stroke-width="2" stroke-dasharray="5 3"/>
361
+ <text x="452" y="90" font-size="10" fill="#374151">Utility@LowRisk</text>
362
  </svg>
363
 
364
  ## Comparison with Existing PHI Datasets
 
375
 
376
  | Config | File | Description |
377
  | --- | --- | --- |
378
+ | `default` | `audit_log.jsonl` | Full run log, adaptive policy |
379
  | `signed` | `audit_log_signed_adaptive.jsonl` | Cryptographically signed adaptive-only events |
380
  | `crossmodal` | `data/crossmodal_train.jsonl` | Cross-modal link benchmark scenarios (A-E) |
381