Dylennnn commited on
Commit
9a5883b
·
verified ·
1 Parent(s): ec9e56b

Add RobustLens experimental LoRA adapters (all rejected on measurement)

Browse files
README.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - image-classification
5
+ - ai-generated-image-detection
6
+ - lora
7
+ - robustlens
8
+ - techjam-2026
9
+ library_name: pytorch
10
+ ---
11
+
12
+ # RobustLens — experimental LoRA adapters
13
+
14
+ Adapters produced while building **RobustLens**, a transformation-resistant
15
+ AI-generated-image detector for TikTok TechJam 2026 Track 5.
16
+
17
+ > ## ⚠️ None of these adapters were adopted
18
+ >
19
+ > Every adapter here comes from an experiment that was **rejected on
20
+ > measurement**. They are published for reproducibility and provenance — so a
21
+ > collaborator can verify the rejections rather than take them on trust.
22
+ >
23
+ > **The production RobustLens system does not use any of them.** It runs the
24
+ > unmodified base checkpoint. If you want to *use* RobustLens, you do not need
25
+ > anything in this repository.
26
+
27
+ ## What the production system actually uses
28
+
29
+ The base detector, unmodified:
30
+
31
+ - **[Bombek1/ai-image-detector-siglip-dinov2](https://huggingface.co/Bombek1/ai-image-detector-siglip-dinov2)**
32
+ — SigLIP2-SO400M + DINOv2-Large with LoRA, 740,371,777 parameters
33
+ - SHA-256 `caae0c005d8e37e7aa086aa241d1c9445d296ef77649004655c14f5c81130d4b`
34
+ - Frozen calibrated threshold **0.69**
35
+
36
+ ## Contents
37
+
38
+ Each directory holds `adapter_config.json`, `adapter_model.safetensors`
39
+ (existing LoRA tensors only — no full backbone weights) and
40
+ `classifier_head.pt`. About 32 MB each.
41
+
42
+ | Adapter | Experiment | Outcome |
43
+ |---|---|---|
44
+ | `local_edit_smoke` | Head-only fine-tune on local AI edits | **Rejected** — held-out AUROC fell 0.510 → 0.354 |
45
+ | `consistency_classification_only` | Ablation baseline, BCE loss only | Reference arm |
46
+ | `consistency_consistency_mse` | + logit-MSE transformation-consistency loss | **Rejected** — no gain (F1 0.7500, AUROC 0.4375) |
47
+ | `consistency_consistency_kl` | + symmetric-KL consistency loss | **Rejected** — no gain (F1 0.7500, AUROC 0.4479) |
48
+
49
+ All four are `head_only` mode: 1,250,561 trainable parameters against
50
+ 739,121,216 frozen. **No second LoRA adapter was added** — the existing adapter
51
+ tensors in the base checkpoint were reused.
52
+
53
+ ## Why they were rejected
54
+
55
+ **Local-edit fine-tune.** Pre-registered rule: adopt only if local-edit recall or
56
+ F1 improves by ≥0.01 without authentic FPR rising more than 0.05. Held out
57
+ (n=20, threshold 0.5):
58
+
59
+ | Metric | Original | Fine-tuned | Δ |
60
+ |---|---:|---:|---:|
61
+ | Accuracy | 0.6000 | 0.6000 | +0.0000 |
62
+ | F1 | 0.7500 | 0.7500 | +0.0000 |
63
+ | Recall | 1.0000 | 1.0000 | +0.0000 |
64
+ | **AUROC** | 0.5104 | **0.3542** | **−0.1562** |
65
+
66
+ Ranking quality fell and nothing improved, so the adapter was not adopted.
67
+
68
+ **Consistency loss.** Three runs differing only in the loss; all variants saw
69
+ identical paired transformed views. No variant met the +0.01 bar, so
70
+ classification-only training was kept and the consistency loss ships disabled.
71
+
72
+ ## Important limitation
73
+
74
+ These adapters were trained on **68 training images** and evaluated on **20 test
75
+ images**. That is enough to demonstrate the pipeline runs end to end and nowhere
76
+ near enough to conclude anything about fine-tuning as a method. Treat every
77
+ number above as a smoke test, not evidence about the approach.
78
+
79
+ Threshold 0.5 was used for the comparison rather than the production 0.69,
80
+ because a calibration fitted for one model does not transfer to another.
81
+
82
+ ## Using an adapter
83
+
84
+ Adapters load onto a model restored from the **base checkpoint** — they are not
85
+ standalone models.
86
+
87
+ ```bash
88
+ # fetch into models/adapters/
89
+ python scripts/download_adapters.py --adapter local_edit_smoke
90
+
91
+ python scripts/run_inference.py \
92
+ --input-dir path/to/images \
93
+ --adapter-dir models/adapters/local_edit_smoke \
94
+ --no-calibration \
95
+ --output outputs/predictions.json
96
+ ```
97
+
98
+ `--no-calibration` matters: the shipped calibration and the 0.69 threshold were
99
+ fitted for the base checkpoint and do not apply to an adapted model.
100
+
101
+ ## Source
102
+
103
+ Code, evaluation protocol and full results:
104
+ [RobustLens](https://github.com/) — see `FINAL_RESULTS.md` and `AUDIT.md`.
adapters/consistency_classification_only/adapter_config.json ADDED
@@ -0,0 +1,614 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architecture": "bombek_siglip2_dinov2",
3
+ "base_model_names": {
4
+ "dinov2": "vit_large_patch14_dinov2.lvd142m",
5
+ "siglip": "google/siglip2-so400m-patch14-384"
6
+ },
7
+ "best_epoch": 1,
8
+ "best_validation_metrics": {
9
+ "accuracy": 0.5294117647058824,
10
+ "auroc": 0.5138888888888888,
11
+ "balanced_accuracy": 0.5,
12
+ "consistency_loss": 0.0,
13
+ "f1": 0.6923076923076924,
14
+ "fpr": 1.0,
15
+ "loss": 0.7337046828534868,
16
+ "precision": 0.5294117647058824,
17
+ "recall": 1.0,
18
+ "subgroups": {
19
+ "authentic": {
20
+ "count": 8,
21
+ "metrics": {
22
+ "accuracy": 0.0,
23
+ "auroc": null,
24
+ "balanced_accuracy": 0.0,
25
+ "f1": 0.0,
26
+ "fpr": 1.0,
27
+ "loss": NaN,
28
+ "precision": 0.0,
29
+ "recall": 0.0,
30
+ "threshold": 0.5
31
+ },
32
+ "negatives": 8,
33
+ "positives": 0
34
+ },
35
+ "minor_edit": {
36
+ "count": 9,
37
+ "metrics": {
38
+ "accuracy": 1.0,
39
+ "auroc": null,
40
+ "balanced_accuracy": 0.5,
41
+ "f1": 1.0,
42
+ "fpr": 0.0,
43
+ "loss": NaN,
44
+ "precision": 1.0,
45
+ "recall": 1.0,
46
+ "threshold": 0.5
47
+ },
48
+ "negatives": 0,
49
+ "positives": 9
50
+ },
51
+ "moderate_edit": {
52
+ "count": 0,
53
+ "metrics": null
54
+ },
55
+ "synthetic": {
56
+ "count": 0,
57
+ "metrics": null
58
+ },
59
+ "transformed": {
60
+ "count": 0,
61
+ "metrics": null
62
+ }
63
+ },
64
+ "threshold": 0.5
65
+ },
66
+ "bias": "none",
67
+ "consistency": {
68
+ "enabled": false,
69
+ "method": "mse",
70
+ "same_label_pairs_only": true,
71
+ "weight": 0.0
72
+ },
73
+ "dataset_summary": {
74
+ "configured_subgroups": {
75
+ "authentic": {
76
+ "directory": null,
77
+ "label": 0
78
+ },
79
+ "minor_edit": {
80
+ "directory": null,
81
+ "label": 1
82
+ },
83
+ "moderate_edit": {
84
+ "directory": null,
85
+ "label": 1
86
+ },
87
+ "synthetic": {
88
+ "directory": null,
89
+ "label": 1
90
+ },
91
+ "transformed": {
92
+ "directory": null,
93
+ "label": 1
94
+ }
95
+ },
96
+ "data_quality": {
97
+ "conflicting_labels_excluded": {
98
+ "test": 2,
99
+ "train": 10,
100
+ "validation": 0
101
+ },
102
+ "conflicting_labels_excluded_total": 12,
103
+ "include_conflicting_labels": false,
104
+ "quarantine": {
105
+ "path": "/Users/liren/Desktop/TechJam/outputs/data_quality/quarantine.json",
106
+ "source": "manifest"
107
+ }
108
+ },
109
+ "group_limit": {
110
+ "configured": {
111
+ "test": 8,
112
+ "train": 24,
113
+ "validation": 8
114
+ },
115
+ "records_excluded": {
116
+ "test": 2519,
117
+ "train": 20279,
118
+ "validation": 2439
119
+ },
120
+ "seed": 42
121
+ },
122
+ "synthetic_mixture": {
123
+ "available": 120,
124
+ "enabled": true,
125
+ "realized_fraction": 0.25,
126
+ "requested": 17,
127
+ "requested_fraction": 0.25,
128
+ "seed": 42,
129
+ "selected": 17,
130
+ "source": "/Users/liren/Desktop/TechJam/data/synthetic_mixture",
131
+ "train_only": true
132
+ },
133
+ "test": {
134
+ "class_balance": {
135
+ "ai_edited_fraction": 0.6,
136
+ "authentic_fraction": 0.4,
137
+ "imbalance_ratio": 1.5
138
+ },
139
+ "class_counts": {
140
+ "ai_edited": 12,
141
+ "authentic": 8
142
+ },
143
+ "corrupted_images": 0,
144
+ "group_count": 8,
145
+ "missing_masks": 2541,
146
+ "root": "/Users/liren/Desktop/TechJam/data/local_edits/test",
147
+ "split": "test",
148
+ "subgroup_counts": {
149
+ "authentic": 8,
150
+ "minor_edit": 12,
151
+ "moderate_edit": 0,
152
+ "synthetic": 0,
153
+ "transformed": 0
154
+ },
155
+ "total_images": 2541,
156
+ "valid_images": 20
157
+ },
158
+ "train": {
159
+ "class_balance": {
160
+ "ai_edited_fraction": 0.6470588235294118,
161
+ "authentic_fraction": 0.35294117647058826,
162
+ "imbalance_ratio": 1.8333333333333333
163
+ },
164
+ "class_counts": {
165
+ "ai_edited": 44,
166
+ "authentic": 24
167
+ },
168
+ "corrupted_images": 0,
169
+ "group_count": 25,
170
+ "missing_masks": 20340,
171
+ "root": "/Users/liren/Desktop/TechJam/data/local_edits/train",
172
+ "split": "train",
173
+ "subgroup_counts": {
174
+ "authentic": 24,
175
+ "minor_edit": 27,
176
+ "moderate_edit": 0,
177
+ "synthetic": 17,
178
+ "transformed": 0
179
+ },
180
+ "total_images": 20340,
181
+ "valid_images": 68
182
+ },
183
+ "validation": {
184
+ "class_balance": {
185
+ "ai_edited_fraction": 0.5294117647058824,
186
+ "authentic_fraction": 0.47058823529411764,
187
+ "imbalance_ratio": 1.125
188
+ },
189
+ "class_counts": {
190
+ "ai_edited": 9,
191
+ "authentic": 8
192
+ },
193
+ "corrupted_images": 0,
194
+ "group_count": 8,
195
+ "missing_masks": 2456,
196
+ "root": "/Users/liren/Desktop/TechJam/data/local_edits/validation",
197
+ "split": "validation",
198
+ "subgroup_counts": {
199
+ "authentic": 8,
200
+ "minor_edit": 9,
201
+ "moderate_edit": 0,
202
+ "synthetic": 0,
203
+ "transformed": 0
204
+ },
205
+ "total_images": 2456,
206
+ "valid_images": 17
207
+ },
208
+ "views_per_training_image": 2
209
+ },
210
+ "format": "robustlens_existing_lora",
211
+ "lora_alpha": 64,
212
+ "lora_dropout": 0.1,
213
+ "mode": "head_only",
214
+ "original_vs_fine_tuned": {
215
+ "fine_tuned": {
216
+ "test": {
217
+ "accuracy": 0.6,
218
+ "auroc": 0.4479166666666667,
219
+ "balanced_accuracy": 0.5,
220
+ "consistency_loss": 0.0,
221
+ "f1": 0.7499999999999999,
222
+ "fpr": 1.0,
223
+ "loss": 0.699380099773407,
224
+ "precision": 0.6,
225
+ "recall": 1.0,
226
+ "subgroups": {
227
+ "authentic": {
228
+ "count": 8,
229
+ "metrics": {
230
+ "accuracy": 0.0,
231
+ "auroc": null,
232
+ "balanced_accuracy": 0.0,
233
+ "f1": 0.0,
234
+ "fpr": 1.0,
235
+ "loss": NaN,
236
+ "precision": 0.0,
237
+ "recall": 0.0,
238
+ "threshold": 0.5
239
+ },
240
+ "negatives": 8,
241
+ "positives": 0
242
+ },
243
+ "minor_edit": {
244
+ "count": 12,
245
+ "metrics": {
246
+ "accuracy": 1.0,
247
+ "auroc": null,
248
+ "balanced_accuracy": 0.5,
249
+ "f1": 1.0,
250
+ "fpr": 0.0,
251
+ "loss": NaN,
252
+ "precision": 1.0,
253
+ "recall": 1.0,
254
+ "threshold": 0.5
255
+ },
256
+ "negatives": 0,
257
+ "positives": 12
258
+ },
259
+ "moderate_edit": {
260
+ "count": 0,
261
+ "metrics": null
262
+ },
263
+ "synthetic": {
264
+ "count": 0,
265
+ "metrics": null
266
+ },
267
+ "transformed": {
268
+ "count": 0,
269
+ "metrics": null
270
+ }
271
+ },
272
+ "threshold": 0.5
273
+ },
274
+ "validation": {
275
+ "accuracy": 0.5294117647058824,
276
+ "auroc": 0.5138888888888888,
277
+ "balanced_accuracy": 0.5,
278
+ "consistency_loss": 0.0,
279
+ "f1": 0.6923076923076924,
280
+ "fpr": 1.0,
281
+ "loss": 0.7337046828534868,
282
+ "precision": 0.5294117647058824,
283
+ "recall": 1.0,
284
+ "subgroups": {
285
+ "authentic": {
286
+ "count": 8,
287
+ "metrics": {
288
+ "accuracy": 0.0,
289
+ "auroc": null,
290
+ "balanced_accuracy": 0.0,
291
+ "f1": 0.0,
292
+ "fpr": 1.0,
293
+ "loss": NaN,
294
+ "precision": 0.0,
295
+ "recall": 0.0,
296
+ "threshold": 0.5
297
+ },
298
+ "negatives": 8,
299
+ "positives": 0
300
+ },
301
+ "minor_edit": {
302
+ "count": 9,
303
+ "metrics": {
304
+ "accuracy": 1.0,
305
+ "auroc": null,
306
+ "balanced_accuracy": 0.5,
307
+ "f1": 1.0,
308
+ "fpr": 0.0,
309
+ "loss": NaN,
310
+ "precision": 1.0,
311
+ "recall": 1.0,
312
+ "threshold": 0.5
313
+ },
314
+ "negatives": 0,
315
+ "positives": 9
316
+ },
317
+ "moderate_edit": {
318
+ "count": 0,
319
+ "metrics": null
320
+ },
321
+ "synthetic": {
322
+ "count": 0,
323
+ "metrics": null
324
+ },
325
+ "transformed": {
326
+ "count": 0,
327
+ "metrics": null
328
+ }
329
+ },
330
+ "threshold": 0.5
331
+ }
332
+ },
333
+ "original": {
334
+ "test": {
335
+ "accuracy": 0.6,
336
+ "auroc": 0.5104166666666666,
337
+ "balanced_accuracy": 0.5,
338
+ "consistency_loss": 0.0,
339
+ "f1": 0.7499999999999999,
340
+ "fpr": 1.0,
341
+ "loss": 2.2257189441355876,
342
+ "precision": 0.6,
343
+ "recall": 1.0,
344
+ "subgroups": {
345
+ "authentic": {
346
+ "count": 8,
347
+ "metrics": {
348
+ "accuracy": 0.0,
349
+ "auroc": null,
350
+ "balanced_accuracy": 0.0,
351
+ "f1": 0.0,
352
+ "fpr": 1.0,
353
+ "loss": NaN,
354
+ "precision": 0.0,
355
+ "recall": 0.0,
356
+ "threshold": 0.5
357
+ },
358
+ "negatives": 8,
359
+ "positives": 0
360
+ },
361
+ "minor_edit": {
362
+ "count": 12,
363
+ "metrics": {
364
+ "accuracy": 1.0,
365
+ "auroc": null,
366
+ "balanced_accuracy": 0.5,
367
+ "f1": 1.0,
368
+ "fpr": 0.0,
369
+ "loss": NaN,
370
+ "precision": 1.0,
371
+ "recall": 1.0,
372
+ "threshold": 0.5
373
+ },
374
+ "negatives": 0,
375
+ "positives": 12
376
+ },
377
+ "moderate_edit": {
378
+ "count": 0,
379
+ "metrics": null
380
+ },
381
+ "synthetic": {
382
+ "count": 0,
383
+ "metrics": null
384
+ },
385
+ "transformed": {
386
+ "count": 0,
387
+ "metrics": null
388
+ }
389
+ },
390
+ "threshold": 0.5
391
+ },
392
+ "validation": {
393
+ "accuracy": 0.5294117647058824,
394
+ "auroc": 0.5694444444444444,
395
+ "balanced_accuracy": 0.5,
396
+ "consistency_loss": 0.0,
397
+ "f1": 0.6923076923076924,
398
+ "fpr": 1.0,
399
+ "loss": 2.4070196401379587,
400
+ "precision": 0.5294117647058824,
401
+ "recall": 1.0,
402
+ "subgroups": {
403
+ "authentic": {
404
+ "count": 8,
405
+ "metrics": {
406
+ "accuracy": 0.0,
407
+ "auroc": null,
408
+ "balanced_accuracy": 0.0,
409
+ "f1": 0.0,
410
+ "fpr": 1.0,
411
+ "loss": NaN,
412
+ "precision": 0.0,
413
+ "recall": 0.0,
414
+ "threshold": 0.5
415
+ },
416
+ "negatives": 8,
417
+ "positives": 0
418
+ },
419
+ "minor_edit": {
420
+ "count": 9,
421
+ "metrics": {
422
+ "accuracy": 1.0,
423
+ "auroc": null,
424
+ "balanced_accuracy": 0.5,
425
+ "f1": 1.0,
426
+ "fpr": 0.0,
427
+ "loss": NaN,
428
+ "precision": 1.0,
429
+ "recall": 1.0,
430
+ "threshold": 0.5
431
+ },
432
+ "negatives": 0,
433
+ "positives": 9
434
+ },
435
+ "moderate_edit": {
436
+ "count": 0,
437
+ "metrics": null
438
+ },
439
+ "synthetic": {
440
+ "count": 0,
441
+ "metrics": null
442
+ },
443
+ "transformed": {
444
+ "count": 0,
445
+ "metrics": null
446
+ }
447
+ },
448
+ "threshold": 0.5
449
+ }
450
+ },
451
+ "test_delta": {
452
+ "accuracy": 0.0,
453
+ "auroc": -0.062499999999999944,
454
+ "balanced_accuracy": 0.0,
455
+ "f1": 0.0,
456
+ "precision": 0.0,
457
+ "recall": 0.0
458
+ },
459
+ "threshold": 0.5,
460
+ "threshold_note": "The original and fine-tuned checkpoints are compared at the same fixed pre-training selection threshold; no test-set threshold fitting occurred."
461
+ },
462
+ "parameter_counts": {
463
+ "frozen": 739121216,
464
+ "total": 740371777,
465
+ "trainable": 1250561
466
+ },
467
+ "peft_type": "LORA",
468
+ "r": 32,
469
+ "seed": 42,
470
+ "selection_metric": "f1",
471
+ "target_module_names": [
472
+ "siglip.base_model.model.encoder.layers.0.self_attn.v_proj",
473
+ "siglip.base_model.model.encoder.layers.0.self_attn.q_proj",
474
+ "siglip.base_model.model.encoder.layers.1.self_attn.v_proj",
475
+ "siglip.base_model.model.encoder.layers.1.self_attn.q_proj",
476
+ "siglip.base_model.model.encoder.layers.2.self_attn.v_proj",
477
+ "siglip.base_model.model.encoder.layers.2.self_attn.q_proj",
478
+ "siglip.base_model.model.encoder.layers.3.self_attn.v_proj",
479
+ "siglip.base_model.model.encoder.layers.3.self_attn.q_proj",
480
+ "siglip.base_model.model.encoder.layers.4.self_attn.v_proj",
481
+ "siglip.base_model.model.encoder.layers.4.self_attn.q_proj",
482
+ "siglip.base_model.model.encoder.layers.5.self_attn.v_proj",
483
+ "siglip.base_model.model.encoder.layers.5.self_attn.q_proj",
484
+ "siglip.base_model.model.encoder.layers.6.self_attn.v_proj",
485
+ "siglip.base_model.model.encoder.layers.6.self_attn.q_proj",
486
+ "siglip.base_model.model.encoder.layers.7.self_attn.v_proj",
487
+ "siglip.base_model.model.encoder.layers.7.self_attn.q_proj",
488
+ "siglip.base_model.model.encoder.layers.8.self_attn.v_proj",
489
+ "siglip.base_model.model.encoder.layers.8.self_attn.q_proj",
490
+ "siglip.base_model.model.encoder.layers.9.self_attn.v_proj",
491
+ "siglip.base_model.model.encoder.layers.9.self_attn.q_proj",
492
+ "siglip.base_model.model.encoder.layers.10.self_attn.v_proj",
493
+ "siglip.base_model.model.encoder.layers.10.self_attn.q_proj",
494
+ "siglip.base_model.model.encoder.layers.11.self_attn.v_proj",
495
+ "siglip.base_model.model.encoder.layers.11.self_attn.q_proj",
496
+ "siglip.base_model.model.encoder.layers.12.self_attn.v_proj",
497
+ "siglip.base_model.model.encoder.layers.12.self_attn.q_proj",
498
+ "siglip.base_model.model.encoder.layers.13.self_attn.v_proj",
499
+ "siglip.base_model.model.encoder.layers.13.self_attn.q_proj",
500
+ "siglip.base_model.model.encoder.layers.14.self_attn.v_proj",
501
+ "siglip.base_model.model.encoder.layers.14.self_attn.q_proj",
502
+ "siglip.base_model.model.encoder.layers.15.self_attn.v_proj",
503
+ "siglip.base_model.model.encoder.layers.15.self_attn.q_proj",
504
+ "siglip.base_model.model.encoder.layers.16.self_attn.v_proj",
505
+ "siglip.base_model.model.encoder.layers.16.self_attn.q_proj",
506
+ "siglip.base_model.model.encoder.layers.17.self_attn.v_proj",
507
+ "siglip.base_model.model.encoder.layers.17.self_attn.q_proj",
508
+ "siglip.base_model.model.encoder.layers.18.self_attn.v_proj",
509
+ "siglip.base_model.model.encoder.layers.18.self_attn.q_proj",
510
+ "siglip.base_model.model.encoder.layers.19.self_attn.v_proj",
511
+ "siglip.base_model.model.encoder.layers.19.self_attn.q_proj",
512
+ "siglip.base_model.model.encoder.layers.20.self_attn.v_proj",
513
+ "siglip.base_model.model.encoder.layers.20.self_attn.q_proj",
514
+ "siglip.base_model.model.encoder.layers.21.self_attn.v_proj",
515
+ "siglip.base_model.model.encoder.layers.21.self_attn.q_proj",
516
+ "siglip.base_model.model.encoder.layers.22.self_attn.v_proj",
517
+ "siglip.base_model.model.encoder.layers.22.self_attn.q_proj",
518
+ "siglip.base_model.model.encoder.layers.23.self_attn.v_proj",
519
+ "siglip.base_model.model.encoder.layers.23.self_attn.q_proj",
520
+ "siglip.base_model.model.encoder.layers.24.self_attn.v_proj",
521
+ "siglip.base_model.model.encoder.layers.24.self_attn.q_proj",
522
+ "siglip.base_model.model.encoder.layers.25.self_attn.v_proj",
523
+ "siglip.base_model.model.encoder.layers.25.self_attn.q_proj",
524
+ "siglip.base_model.model.encoder.layers.26.self_attn.v_proj",
525
+ "siglip.base_model.model.encoder.layers.26.self_attn.q_proj",
526
+ "dinov2.blocks.0.attn.qkv",
527
+ "dinov2.blocks.1.attn.qkv",
528
+ "dinov2.blocks.2.attn.qkv",
529
+ "dinov2.blocks.3.attn.qkv",
530
+ "dinov2.blocks.4.attn.qkv",
531
+ "dinov2.blocks.5.attn.qkv",
532
+ "dinov2.blocks.6.attn.qkv",
533
+ "dinov2.blocks.7.attn.qkv",
534
+ "dinov2.blocks.8.attn.qkv",
535
+ "dinov2.blocks.9.attn.qkv",
536
+ "dinov2.blocks.10.attn.qkv",
537
+ "dinov2.blocks.11.attn.qkv",
538
+ "dinov2.blocks.12.attn.qkv",
539
+ "dinov2.blocks.13.attn.qkv",
540
+ "dinov2.blocks.14.attn.qkv",
541
+ "dinov2.blocks.15.attn.qkv",
542
+ "dinov2.blocks.16.attn.qkv",
543
+ "dinov2.blocks.17.attn.qkv",
544
+ "dinov2.blocks.18.attn.qkv",
545
+ "dinov2.blocks.19.attn.qkv",
546
+ "dinov2.blocks.20.attn.qkv",
547
+ "dinov2.blocks.21.attn.qkv",
548
+ "dinov2.blocks.22.attn.qkv",
549
+ "dinov2.blocks.23.attn.qkv"
550
+ ],
551
+ "target_modules": [
552
+ "q_proj",
553
+ "qkv",
554
+ "v_proj"
555
+ ],
556
+ "test_metrics": {
557
+ "accuracy": 0.6,
558
+ "auroc": 0.4479166666666667,
559
+ "balanced_accuracy": 0.5,
560
+ "consistency_loss": 0.0,
561
+ "f1": 0.7499999999999999,
562
+ "fpr": 1.0,
563
+ "loss": 0.699380099773407,
564
+ "precision": 0.6,
565
+ "recall": 1.0,
566
+ "subgroups": {
567
+ "authentic": {
568
+ "count": 8,
569
+ "metrics": {
570
+ "accuracy": 0.0,
571
+ "auroc": null,
572
+ "balanced_accuracy": 0.0,
573
+ "f1": 0.0,
574
+ "fpr": 1.0,
575
+ "loss": NaN,
576
+ "precision": 0.0,
577
+ "recall": 0.0,
578
+ "threshold": 0.5
579
+ },
580
+ "negatives": 8,
581
+ "positives": 0
582
+ },
583
+ "minor_edit": {
584
+ "count": 12,
585
+ "metrics": {
586
+ "accuracy": 1.0,
587
+ "auroc": null,
588
+ "balanced_accuracy": 0.5,
589
+ "f1": 1.0,
590
+ "fpr": 0.0,
591
+ "loss": NaN,
592
+ "precision": 1.0,
593
+ "recall": 1.0,
594
+ "threshold": 0.5
595
+ },
596
+ "negatives": 0,
597
+ "positives": 12
598
+ },
599
+ "moderate_edit": {
600
+ "count": 0,
601
+ "metrics": null
602
+ },
603
+ "synthetic": {
604
+ "count": 0,
605
+ "metrics": null
606
+ },
607
+ "transformed": {
608
+ "count": 0,
609
+ "metrics": null
610
+ }
611
+ },
612
+ "threshold": 0.5
613
+ }
614
+ }
adapters/consistency_classification_only/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6312820e0f553ae7aa69238588215ce2125830452c0ea12843da8134c09b37ed
3
+ size 28529808
adapters/consistency_classification_only/classifier_head.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8fdfd896c9608c9febda1abe102e161f26ce40e9d9007418ef33b1ebac4fa51
3
+ size 5005757
adapters/consistency_consistency_kl/adapter_config.json ADDED
@@ -0,0 +1,614 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architecture": "bombek_siglip2_dinov2",
3
+ "base_model_names": {
4
+ "dinov2": "vit_large_patch14_dinov2.lvd142m",
5
+ "siglip": "google/siglip2-so400m-patch14-384"
6
+ },
7
+ "best_epoch": 1,
8
+ "best_validation_metrics": {
9
+ "accuracy": 0.5294117647058824,
10
+ "auroc": 0.5138888888888888,
11
+ "balanced_accuracy": 0.5,
12
+ "consistency_loss": 0.0,
13
+ "f1": 0.6923076923076924,
14
+ "fpr": 1.0,
15
+ "loss": 0.73371136519644,
16
+ "precision": 0.5294117647058824,
17
+ "recall": 1.0,
18
+ "subgroups": {
19
+ "authentic": {
20
+ "count": 8,
21
+ "metrics": {
22
+ "accuracy": 0.0,
23
+ "auroc": null,
24
+ "balanced_accuracy": 0.0,
25
+ "f1": 0.0,
26
+ "fpr": 1.0,
27
+ "loss": NaN,
28
+ "precision": 0.0,
29
+ "recall": 0.0,
30
+ "threshold": 0.5
31
+ },
32
+ "negatives": 8,
33
+ "positives": 0
34
+ },
35
+ "minor_edit": {
36
+ "count": 9,
37
+ "metrics": {
38
+ "accuracy": 1.0,
39
+ "auroc": null,
40
+ "balanced_accuracy": 0.5,
41
+ "f1": 1.0,
42
+ "fpr": 0.0,
43
+ "loss": NaN,
44
+ "precision": 1.0,
45
+ "recall": 1.0,
46
+ "threshold": 0.5
47
+ },
48
+ "negatives": 0,
49
+ "positives": 9
50
+ },
51
+ "moderate_edit": {
52
+ "count": 0,
53
+ "metrics": null
54
+ },
55
+ "synthetic": {
56
+ "count": 0,
57
+ "metrics": null
58
+ },
59
+ "transformed": {
60
+ "count": 0,
61
+ "metrics": null
62
+ }
63
+ },
64
+ "threshold": 0.5
65
+ },
66
+ "bias": "none",
67
+ "consistency": {
68
+ "enabled": true,
69
+ "method": "kl",
70
+ "same_label_pairs_only": true,
71
+ "weight": 0.5
72
+ },
73
+ "dataset_summary": {
74
+ "configured_subgroups": {
75
+ "authentic": {
76
+ "directory": null,
77
+ "label": 0
78
+ },
79
+ "minor_edit": {
80
+ "directory": null,
81
+ "label": 1
82
+ },
83
+ "moderate_edit": {
84
+ "directory": null,
85
+ "label": 1
86
+ },
87
+ "synthetic": {
88
+ "directory": null,
89
+ "label": 1
90
+ },
91
+ "transformed": {
92
+ "directory": null,
93
+ "label": 1
94
+ }
95
+ },
96
+ "data_quality": {
97
+ "conflicting_labels_excluded": {
98
+ "test": 2,
99
+ "train": 10,
100
+ "validation": 0
101
+ },
102
+ "conflicting_labels_excluded_total": 12,
103
+ "include_conflicting_labels": false,
104
+ "quarantine": {
105
+ "path": "/Users/liren/Desktop/TechJam/outputs/data_quality/quarantine.json",
106
+ "source": "manifest"
107
+ }
108
+ },
109
+ "group_limit": {
110
+ "configured": {
111
+ "test": 8,
112
+ "train": 24,
113
+ "validation": 8
114
+ },
115
+ "records_excluded": {
116
+ "test": 2519,
117
+ "train": 20279,
118
+ "validation": 2439
119
+ },
120
+ "seed": 42
121
+ },
122
+ "synthetic_mixture": {
123
+ "available": 120,
124
+ "enabled": true,
125
+ "realized_fraction": 0.25,
126
+ "requested": 17,
127
+ "requested_fraction": 0.25,
128
+ "seed": 42,
129
+ "selected": 17,
130
+ "source": "/Users/liren/Desktop/TechJam/data/synthetic_mixture",
131
+ "train_only": true
132
+ },
133
+ "test": {
134
+ "class_balance": {
135
+ "ai_edited_fraction": 0.6,
136
+ "authentic_fraction": 0.4,
137
+ "imbalance_ratio": 1.5
138
+ },
139
+ "class_counts": {
140
+ "ai_edited": 12,
141
+ "authentic": 8
142
+ },
143
+ "corrupted_images": 0,
144
+ "group_count": 8,
145
+ "missing_masks": 2541,
146
+ "root": "/Users/liren/Desktop/TechJam/data/local_edits/test",
147
+ "split": "test",
148
+ "subgroup_counts": {
149
+ "authentic": 8,
150
+ "minor_edit": 12,
151
+ "moderate_edit": 0,
152
+ "synthetic": 0,
153
+ "transformed": 0
154
+ },
155
+ "total_images": 2541,
156
+ "valid_images": 20
157
+ },
158
+ "train": {
159
+ "class_balance": {
160
+ "ai_edited_fraction": 0.6470588235294118,
161
+ "authentic_fraction": 0.35294117647058826,
162
+ "imbalance_ratio": 1.8333333333333333
163
+ },
164
+ "class_counts": {
165
+ "ai_edited": 44,
166
+ "authentic": 24
167
+ },
168
+ "corrupted_images": 0,
169
+ "group_count": 25,
170
+ "missing_masks": 20340,
171
+ "root": "/Users/liren/Desktop/TechJam/data/local_edits/train",
172
+ "split": "train",
173
+ "subgroup_counts": {
174
+ "authentic": 24,
175
+ "minor_edit": 27,
176
+ "moderate_edit": 0,
177
+ "synthetic": 17,
178
+ "transformed": 0
179
+ },
180
+ "total_images": 20340,
181
+ "valid_images": 68
182
+ },
183
+ "validation": {
184
+ "class_balance": {
185
+ "ai_edited_fraction": 0.5294117647058824,
186
+ "authentic_fraction": 0.47058823529411764,
187
+ "imbalance_ratio": 1.125
188
+ },
189
+ "class_counts": {
190
+ "ai_edited": 9,
191
+ "authentic": 8
192
+ },
193
+ "corrupted_images": 0,
194
+ "group_count": 8,
195
+ "missing_masks": 2456,
196
+ "root": "/Users/liren/Desktop/TechJam/data/local_edits/validation",
197
+ "split": "validation",
198
+ "subgroup_counts": {
199
+ "authentic": 8,
200
+ "minor_edit": 9,
201
+ "moderate_edit": 0,
202
+ "synthetic": 0,
203
+ "transformed": 0
204
+ },
205
+ "total_images": 2456,
206
+ "valid_images": 17
207
+ },
208
+ "views_per_training_image": 2
209
+ },
210
+ "format": "robustlens_existing_lora",
211
+ "lora_alpha": 64,
212
+ "lora_dropout": 0.1,
213
+ "mode": "head_only",
214
+ "original_vs_fine_tuned": {
215
+ "fine_tuned": {
216
+ "test": {
217
+ "accuracy": 0.6,
218
+ "auroc": 0.4479166666666667,
219
+ "balanced_accuracy": 0.5,
220
+ "consistency_loss": 0.0,
221
+ "f1": 0.7499999999999999,
222
+ "fpr": 1.0,
223
+ "loss": 0.6993773221969605,
224
+ "precision": 0.6,
225
+ "recall": 1.0,
226
+ "subgroups": {
227
+ "authentic": {
228
+ "count": 8,
229
+ "metrics": {
230
+ "accuracy": 0.0,
231
+ "auroc": null,
232
+ "balanced_accuracy": 0.0,
233
+ "f1": 0.0,
234
+ "fpr": 1.0,
235
+ "loss": NaN,
236
+ "precision": 0.0,
237
+ "recall": 0.0,
238
+ "threshold": 0.5
239
+ },
240
+ "negatives": 8,
241
+ "positives": 0
242
+ },
243
+ "minor_edit": {
244
+ "count": 12,
245
+ "metrics": {
246
+ "accuracy": 1.0,
247
+ "auroc": null,
248
+ "balanced_accuracy": 0.5,
249
+ "f1": 1.0,
250
+ "fpr": 0.0,
251
+ "loss": NaN,
252
+ "precision": 1.0,
253
+ "recall": 1.0,
254
+ "threshold": 0.5
255
+ },
256
+ "negatives": 0,
257
+ "positives": 12
258
+ },
259
+ "moderate_edit": {
260
+ "count": 0,
261
+ "metrics": null
262
+ },
263
+ "synthetic": {
264
+ "count": 0,
265
+ "metrics": null
266
+ },
267
+ "transformed": {
268
+ "count": 0,
269
+ "metrics": null
270
+ }
271
+ },
272
+ "threshold": 0.5
273
+ },
274
+ "validation": {
275
+ "accuracy": 0.5294117647058824,
276
+ "auroc": 0.5138888888888888,
277
+ "balanced_accuracy": 0.5,
278
+ "consistency_loss": 0.0,
279
+ "f1": 0.6923076923076924,
280
+ "fpr": 1.0,
281
+ "loss": 0.73371136519644,
282
+ "precision": 0.5294117647058824,
283
+ "recall": 1.0,
284
+ "subgroups": {
285
+ "authentic": {
286
+ "count": 8,
287
+ "metrics": {
288
+ "accuracy": 0.0,
289
+ "auroc": null,
290
+ "balanced_accuracy": 0.0,
291
+ "f1": 0.0,
292
+ "fpr": 1.0,
293
+ "loss": NaN,
294
+ "precision": 0.0,
295
+ "recall": 0.0,
296
+ "threshold": 0.5
297
+ },
298
+ "negatives": 8,
299
+ "positives": 0
300
+ },
301
+ "minor_edit": {
302
+ "count": 9,
303
+ "metrics": {
304
+ "accuracy": 1.0,
305
+ "auroc": null,
306
+ "balanced_accuracy": 0.5,
307
+ "f1": 1.0,
308
+ "fpr": 0.0,
309
+ "loss": NaN,
310
+ "precision": 1.0,
311
+ "recall": 1.0,
312
+ "threshold": 0.5
313
+ },
314
+ "negatives": 0,
315
+ "positives": 9
316
+ },
317
+ "moderate_edit": {
318
+ "count": 0,
319
+ "metrics": null
320
+ },
321
+ "synthetic": {
322
+ "count": 0,
323
+ "metrics": null
324
+ },
325
+ "transformed": {
326
+ "count": 0,
327
+ "metrics": null
328
+ }
329
+ },
330
+ "threshold": 0.5
331
+ }
332
+ },
333
+ "original": {
334
+ "test": {
335
+ "accuracy": 0.6,
336
+ "auroc": 0.5104166666666666,
337
+ "balanced_accuracy": 0.5,
338
+ "consistency_loss": 0.0,
339
+ "f1": 0.7499999999999999,
340
+ "fpr": 1.0,
341
+ "loss": 2.2257189441355876,
342
+ "precision": 0.6,
343
+ "recall": 1.0,
344
+ "subgroups": {
345
+ "authentic": {
346
+ "count": 8,
347
+ "metrics": {
348
+ "accuracy": 0.0,
349
+ "auroc": null,
350
+ "balanced_accuracy": 0.0,
351
+ "f1": 0.0,
352
+ "fpr": 1.0,
353
+ "loss": NaN,
354
+ "precision": 0.0,
355
+ "recall": 0.0,
356
+ "threshold": 0.5
357
+ },
358
+ "negatives": 8,
359
+ "positives": 0
360
+ },
361
+ "minor_edit": {
362
+ "count": 12,
363
+ "metrics": {
364
+ "accuracy": 1.0,
365
+ "auroc": null,
366
+ "balanced_accuracy": 0.5,
367
+ "f1": 1.0,
368
+ "fpr": 0.0,
369
+ "loss": NaN,
370
+ "precision": 1.0,
371
+ "recall": 1.0,
372
+ "threshold": 0.5
373
+ },
374
+ "negatives": 0,
375
+ "positives": 12
376
+ },
377
+ "moderate_edit": {
378
+ "count": 0,
379
+ "metrics": null
380
+ },
381
+ "synthetic": {
382
+ "count": 0,
383
+ "metrics": null
384
+ },
385
+ "transformed": {
386
+ "count": 0,
387
+ "metrics": null
388
+ }
389
+ },
390
+ "threshold": 0.5
391
+ },
392
+ "validation": {
393
+ "accuracy": 0.5294117647058824,
394
+ "auroc": 0.5694444444444444,
395
+ "balanced_accuracy": 0.5,
396
+ "consistency_loss": 0.0,
397
+ "f1": 0.6923076923076924,
398
+ "fpr": 1.0,
399
+ "loss": 2.4070196401379587,
400
+ "precision": 0.5294117647058824,
401
+ "recall": 1.0,
402
+ "subgroups": {
403
+ "authentic": {
404
+ "count": 8,
405
+ "metrics": {
406
+ "accuracy": 0.0,
407
+ "auroc": null,
408
+ "balanced_accuracy": 0.0,
409
+ "f1": 0.0,
410
+ "fpr": 1.0,
411
+ "loss": NaN,
412
+ "precision": 0.0,
413
+ "recall": 0.0,
414
+ "threshold": 0.5
415
+ },
416
+ "negatives": 8,
417
+ "positives": 0
418
+ },
419
+ "minor_edit": {
420
+ "count": 9,
421
+ "metrics": {
422
+ "accuracy": 1.0,
423
+ "auroc": null,
424
+ "balanced_accuracy": 0.5,
425
+ "f1": 1.0,
426
+ "fpr": 0.0,
427
+ "loss": NaN,
428
+ "precision": 1.0,
429
+ "recall": 1.0,
430
+ "threshold": 0.5
431
+ },
432
+ "negatives": 0,
433
+ "positives": 9
434
+ },
435
+ "moderate_edit": {
436
+ "count": 0,
437
+ "metrics": null
438
+ },
439
+ "synthetic": {
440
+ "count": 0,
441
+ "metrics": null
442
+ },
443
+ "transformed": {
444
+ "count": 0,
445
+ "metrics": null
446
+ }
447
+ },
448
+ "threshold": 0.5
449
+ }
450
+ },
451
+ "test_delta": {
452
+ "accuracy": 0.0,
453
+ "auroc": -0.062499999999999944,
454
+ "balanced_accuracy": 0.0,
455
+ "f1": 0.0,
456
+ "precision": 0.0,
457
+ "recall": 0.0
458
+ },
459
+ "threshold": 0.5,
460
+ "threshold_note": "The original and fine-tuned checkpoints are compared at the same fixed pre-training selection threshold; no test-set threshold fitting occurred."
461
+ },
462
+ "parameter_counts": {
463
+ "frozen": 739121216,
464
+ "total": 740371777,
465
+ "trainable": 1250561
466
+ },
467
+ "peft_type": "LORA",
468
+ "r": 32,
469
+ "seed": 42,
470
+ "selection_metric": "f1",
471
+ "target_module_names": [
472
+ "siglip.base_model.model.encoder.layers.0.self_attn.v_proj",
473
+ "siglip.base_model.model.encoder.layers.0.self_attn.q_proj",
474
+ "siglip.base_model.model.encoder.layers.1.self_attn.v_proj",
475
+ "siglip.base_model.model.encoder.layers.1.self_attn.q_proj",
476
+ "siglip.base_model.model.encoder.layers.2.self_attn.v_proj",
477
+ "siglip.base_model.model.encoder.layers.2.self_attn.q_proj",
478
+ "siglip.base_model.model.encoder.layers.3.self_attn.v_proj",
479
+ "siglip.base_model.model.encoder.layers.3.self_attn.q_proj",
480
+ "siglip.base_model.model.encoder.layers.4.self_attn.v_proj",
481
+ "siglip.base_model.model.encoder.layers.4.self_attn.q_proj",
482
+ "siglip.base_model.model.encoder.layers.5.self_attn.v_proj",
483
+ "siglip.base_model.model.encoder.layers.5.self_attn.q_proj",
484
+ "siglip.base_model.model.encoder.layers.6.self_attn.v_proj",
485
+ "siglip.base_model.model.encoder.layers.6.self_attn.q_proj",
486
+ "siglip.base_model.model.encoder.layers.7.self_attn.v_proj",
487
+ "siglip.base_model.model.encoder.layers.7.self_attn.q_proj",
488
+ "siglip.base_model.model.encoder.layers.8.self_attn.v_proj",
489
+ "siglip.base_model.model.encoder.layers.8.self_attn.q_proj",
490
+ "siglip.base_model.model.encoder.layers.9.self_attn.v_proj",
491
+ "siglip.base_model.model.encoder.layers.9.self_attn.q_proj",
492
+ "siglip.base_model.model.encoder.layers.10.self_attn.v_proj",
493
+ "siglip.base_model.model.encoder.layers.10.self_attn.q_proj",
494
+ "siglip.base_model.model.encoder.layers.11.self_attn.v_proj",
495
+ "siglip.base_model.model.encoder.layers.11.self_attn.q_proj",
496
+ "siglip.base_model.model.encoder.layers.12.self_attn.v_proj",
497
+ "siglip.base_model.model.encoder.layers.12.self_attn.q_proj",
498
+ "siglip.base_model.model.encoder.layers.13.self_attn.v_proj",
499
+ "siglip.base_model.model.encoder.layers.13.self_attn.q_proj",
500
+ "siglip.base_model.model.encoder.layers.14.self_attn.v_proj",
501
+ "siglip.base_model.model.encoder.layers.14.self_attn.q_proj",
502
+ "siglip.base_model.model.encoder.layers.15.self_attn.v_proj",
503
+ "siglip.base_model.model.encoder.layers.15.self_attn.q_proj",
504
+ "siglip.base_model.model.encoder.layers.16.self_attn.v_proj",
505
+ "siglip.base_model.model.encoder.layers.16.self_attn.q_proj",
506
+ "siglip.base_model.model.encoder.layers.17.self_attn.v_proj",
507
+ "siglip.base_model.model.encoder.layers.17.self_attn.q_proj",
508
+ "siglip.base_model.model.encoder.layers.18.self_attn.v_proj",
509
+ "siglip.base_model.model.encoder.layers.18.self_attn.q_proj",
510
+ "siglip.base_model.model.encoder.layers.19.self_attn.v_proj",
511
+ "siglip.base_model.model.encoder.layers.19.self_attn.q_proj",
512
+ "siglip.base_model.model.encoder.layers.20.self_attn.v_proj",
513
+ "siglip.base_model.model.encoder.layers.20.self_attn.q_proj",
514
+ "siglip.base_model.model.encoder.layers.21.self_attn.v_proj",
515
+ "siglip.base_model.model.encoder.layers.21.self_attn.q_proj",
516
+ "siglip.base_model.model.encoder.layers.22.self_attn.v_proj",
517
+ "siglip.base_model.model.encoder.layers.22.self_attn.q_proj",
518
+ "siglip.base_model.model.encoder.layers.23.self_attn.v_proj",
519
+ "siglip.base_model.model.encoder.layers.23.self_attn.q_proj",
520
+ "siglip.base_model.model.encoder.layers.24.self_attn.v_proj",
521
+ "siglip.base_model.model.encoder.layers.24.self_attn.q_proj",
522
+ "siglip.base_model.model.encoder.layers.25.self_attn.v_proj",
523
+ "siglip.base_model.model.encoder.layers.25.self_attn.q_proj",
524
+ "siglip.base_model.model.encoder.layers.26.self_attn.v_proj",
525
+ "siglip.base_model.model.encoder.layers.26.self_attn.q_proj",
526
+ "dinov2.blocks.0.attn.qkv",
527
+ "dinov2.blocks.1.attn.qkv",
528
+ "dinov2.blocks.2.attn.qkv",
529
+ "dinov2.blocks.3.attn.qkv",
530
+ "dinov2.blocks.4.attn.qkv",
531
+ "dinov2.blocks.5.attn.qkv",
532
+ "dinov2.blocks.6.attn.qkv",
533
+ "dinov2.blocks.7.attn.qkv",
534
+ "dinov2.blocks.8.attn.qkv",
535
+ "dinov2.blocks.9.attn.qkv",
536
+ "dinov2.blocks.10.attn.qkv",
537
+ "dinov2.blocks.11.attn.qkv",
538
+ "dinov2.blocks.12.attn.qkv",
539
+ "dinov2.blocks.13.attn.qkv",
540
+ "dinov2.blocks.14.attn.qkv",
541
+ "dinov2.blocks.15.attn.qkv",
542
+ "dinov2.blocks.16.attn.qkv",
543
+ "dinov2.blocks.17.attn.qkv",
544
+ "dinov2.blocks.18.attn.qkv",
545
+ "dinov2.blocks.19.attn.qkv",
546
+ "dinov2.blocks.20.attn.qkv",
547
+ "dinov2.blocks.21.attn.qkv",
548
+ "dinov2.blocks.22.attn.qkv",
549
+ "dinov2.blocks.23.attn.qkv"
550
+ ],
551
+ "target_modules": [
552
+ "q_proj",
553
+ "qkv",
554
+ "v_proj"
555
+ ],
556
+ "test_metrics": {
557
+ "accuracy": 0.6,
558
+ "auroc": 0.4479166666666667,
559
+ "balanced_accuracy": 0.5,
560
+ "consistency_loss": 0.0,
561
+ "f1": 0.7499999999999999,
562
+ "fpr": 1.0,
563
+ "loss": 0.6993773221969605,
564
+ "precision": 0.6,
565
+ "recall": 1.0,
566
+ "subgroups": {
567
+ "authentic": {
568
+ "count": 8,
569
+ "metrics": {
570
+ "accuracy": 0.0,
571
+ "auroc": null,
572
+ "balanced_accuracy": 0.0,
573
+ "f1": 0.0,
574
+ "fpr": 1.0,
575
+ "loss": NaN,
576
+ "precision": 0.0,
577
+ "recall": 0.0,
578
+ "threshold": 0.5
579
+ },
580
+ "negatives": 8,
581
+ "positives": 0
582
+ },
583
+ "minor_edit": {
584
+ "count": 12,
585
+ "metrics": {
586
+ "accuracy": 1.0,
587
+ "auroc": null,
588
+ "balanced_accuracy": 0.5,
589
+ "f1": 1.0,
590
+ "fpr": 0.0,
591
+ "loss": NaN,
592
+ "precision": 1.0,
593
+ "recall": 1.0,
594
+ "threshold": 0.5
595
+ },
596
+ "negatives": 0,
597
+ "positives": 12
598
+ },
599
+ "moderate_edit": {
600
+ "count": 0,
601
+ "metrics": null
602
+ },
603
+ "synthetic": {
604
+ "count": 0,
605
+ "metrics": null
606
+ },
607
+ "transformed": {
608
+ "count": 0,
609
+ "metrics": null
610
+ }
611
+ },
612
+ "threshold": 0.5
613
+ }
614
+ }
adapters/consistency_consistency_kl/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6312820e0f553ae7aa69238588215ce2125830452c0ea12843da8134c09b37ed
3
+ size 28529808
adapters/consistency_consistency_kl/classifier_head.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3958f1d66b5213620343329e47c353e0fb75289405e5c2a216948a648899f39
3
+ size 5005757
adapters/consistency_consistency_mse/adapter_config.json ADDED
@@ -0,0 +1,614 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architecture": "bombek_siglip2_dinov2",
3
+ "base_model_names": {
4
+ "dinov2": "vit_large_patch14_dinov2.lvd142m",
5
+ "siglip": "google/siglip2-so400m-patch14-384"
6
+ },
7
+ "best_epoch": 1,
8
+ "best_validation_metrics": {
9
+ "accuracy": 0.5294117647058824,
10
+ "auroc": 0.5138888888888888,
11
+ "balanced_accuracy": 0.5,
12
+ "consistency_loss": 0.0,
13
+ "f1": 0.6923076923076924,
14
+ "fpr": 1.0,
15
+ "loss": 0.7337435053454505,
16
+ "precision": 0.5294117647058824,
17
+ "recall": 1.0,
18
+ "subgroups": {
19
+ "authentic": {
20
+ "count": 8,
21
+ "metrics": {
22
+ "accuracy": 0.0,
23
+ "auroc": null,
24
+ "balanced_accuracy": 0.0,
25
+ "f1": 0.0,
26
+ "fpr": 1.0,
27
+ "loss": NaN,
28
+ "precision": 0.0,
29
+ "recall": 0.0,
30
+ "threshold": 0.5
31
+ },
32
+ "negatives": 8,
33
+ "positives": 0
34
+ },
35
+ "minor_edit": {
36
+ "count": 9,
37
+ "metrics": {
38
+ "accuracy": 1.0,
39
+ "auroc": null,
40
+ "balanced_accuracy": 0.5,
41
+ "f1": 1.0,
42
+ "fpr": 0.0,
43
+ "loss": NaN,
44
+ "precision": 1.0,
45
+ "recall": 1.0,
46
+ "threshold": 0.5
47
+ },
48
+ "negatives": 0,
49
+ "positives": 9
50
+ },
51
+ "moderate_edit": {
52
+ "count": 0,
53
+ "metrics": null
54
+ },
55
+ "synthetic": {
56
+ "count": 0,
57
+ "metrics": null
58
+ },
59
+ "transformed": {
60
+ "count": 0,
61
+ "metrics": null
62
+ }
63
+ },
64
+ "threshold": 0.5
65
+ },
66
+ "bias": "none",
67
+ "consistency": {
68
+ "enabled": true,
69
+ "method": "mse",
70
+ "same_label_pairs_only": true,
71
+ "weight": 0.5
72
+ },
73
+ "dataset_summary": {
74
+ "configured_subgroups": {
75
+ "authentic": {
76
+ "directory": null,
77
+ "label": 0
78
+ },
79
+ "minor_edit": {
80
+ "directory": null,
81
+ "label": 1
82
+ },
83
+ "moderate_edit": {
84
+ "directory": null,
85
+ "label": 1
86
+ },
87
+ "synthetic": {
88
+ "directory": null,
89
+ "label": 1
90
+ },
91
+ "transformed": {
92
+ "directory": null,
93
+ "label": 1
94
+ }
95
+ },
96
+ "data_quality": {
97
+ "conflicting_labels_excluded": {
98
+ "test": 2,
99
+ "train": 10,
100
+ "validation": 0
101
+ },
102
+ "conflicting_labels_excluded_total": 12,
103
+ "include_conflicting_labels": false,
104
+ "quarantine": {
105
+ "path": "/Users/liren/Desktop/TechJam/outputs/data_quality/quarantine.json",
106
+ "source": "manifest"
107
+ }
108
+ },
109
+ "group_limit": {
110
+ "configured": {
111
+ "test": 8,
112
+ "train": 24,
113
+ "validation": 8
114
+ },
115
+ "records_excluded": {
116
+ "test": 2519,
117
+ "train": 20279,
118
+ "validation": 2439
119
+ },
120
+ "seed": 42
121
+ },
122
+ "synthetic_mixture": {
123
+ "available": 120,
124
+ "enabled": true,
125
+ "realized_fraction": 0.25,
126
+ "requested": 17,
127
+ "requested_fraction": 0.25,
128
+ "seed": 42,
129
+ "selected": 17,
130
+ "source": "/Users/liren/Desktop/TechJam/data/synthetic_mixture",
131
+ "train_only": true
132
+ },
133
+ "test": {
134
+ "class_balance": {
135
+ "ai_edited_fraction": 0.6,
136
+ "authentic_fraction": 0.4,
137
+ "imbalance_ratio": 1.5
138
+ },
139
+ "class_counts": {
140
+ "ai_edited": 12,
141
+ "authentic": 8
142
+ },
143
+ "corrupted_images": 0,
144
+ "group_count": 8,
145
+ "missing_masks": 2541,
146
+ "root": "/Users/liren/Desktop/TechJam/data/local_edits/test",
147
+ "split": "test",
148
+ "subgroup_counts": {
149
+ "authentic": 8,
150
+ "minor_edit": 12,
151
+ "moderate_edit": 0,
152
+ "synthetic": 0,
153
+ "transformed": 0
154
+ },
155
+ "total_images": 2541,
156
+ "valid_images": 20
157
+ },
158
+ "train": {
159
+ "class_balance": {
160
+ "ai_edited_fraction": 0.6470588235294118,
161
+ "authentic_fraction": 0.35294117647058826,
162
+ "imbalance_ratio": 1.8333333333333333
163
+ },
164
+ "class_counts": {
165
+ "ai_edited": 44,
166
+ "authentic": 24
167
+ },
168
+ "corrupted_images": 0,
169
+ "group_count": 25,
170
+ "missing_masks": 20340,
171
+ "root": "/Users/liren/Desktop/TechJam/data/local_edits/train",
172
+ "split": "train",
173
+ "subgroup_counts": {
174
+ "authentic": 24,
175
+ "minor_edit": 27,
176
+ "moderate_edit": 0,
177
+ "synthetic": 17,
178
+ "transformed": 0
179
+ },
180
+ "total_images": 20340,
181
+ "valid_images": 68
182
+ },
183
+ "validation": {
184
+ "class_balance": {
185
+ "ai_edited_fraction": 0.5294117647058824,
186
+ "authentic_fraction": 0.47058823529411764,
187
+ "imbalance_ratio": 1.125
188
+ },
189
+ "class_counts": {
190
+ "ai_edited": 9,
191
+ "authentic": 8
192
+ },
193
+ "corrupted_images": 0,
194
+ "group_count": 8,
195
+ "missing_masks": 2456,
196
+ "root": "/Users/liren/Desktop/TechJam/data/local_edits/validation",
197
+ "split": "validation",
198
+ "subgroup_counts": {
199
+ "authentic": 8,
200
+ "minor_edit": 9,
201
+ "moderate_edit": 0,
202
+ "synthetic": 0,
203
+ "transformed": 0
204
+ },
205
+ "total_images": 2456,
206
+ "valid_images": 17
207
+ },
208
+ "views_per_training_image": 2
209
+ },
210
+ "format": "robustlens_existing_lora",
211
+ "lora_alpha": 64,
212
+ "lora_dropout": 0.1,
213
+ "mode": "head_only",
214
+ "original_vs_fine_tuned": {
215
+ "fine_tuned": {
216
+ "test": {
217
+ "accuracy": 0.6,
218
+ "auroc": 0.4375,
219
+ "balanced_accuracy": 0.5,
220
+ "consistency_loss": 0.0,
221
+ "f1": 0.7499999999999999,
222
+ "fpr": 1.0,
223
+ "loss": 0.6993387997150421,
224
+ "precision": 0.6,
225
+ "recall": 1.0,
226
+ "subgroups": {
227
+ "authentic": {
228
+ "count": 8,
229
+ "metrics": {
230
+ "accuracy": 0.0,
231
+ "auroc": null,
232
+ "balanced_accuracy": 0.0,
233
+ "f1": 0.0,
234
+ "fpr": 1.0,
235
+ "loss": NaN,
236
+ "precision": 0.0,
237
+ "recall": 0.0,
238
+ "threshold": 0.5
239
+ },
240
+ "negatives": 8,
241
+ "positives": 0
242
+ },
243
+ "minor_edit": {
244
+ "count": 12,
245
+ "metrics": {
246
+ "accuracy": 1.0,
247
+ "auroc": null,
248
+ "balanced_accuracy": 0.5,
249
+ "f1": 1.0,
250
+ "fpr": 0.0,
251
+ "loss": NaN,
252
+ "precision": 1.0,
253
+ "recall": 1.0,
254
+ "threshold": 0.5
255
+ },
256
+ "negatives": 0,
257
+ "positives": 12
258
+ },
259
+ "moderate_edit": {
260
+ "count": 0,
261
+ "metrics": null
262
+ },
263
+ "synthetic": {
264
+ "count": 0,
265
+ "metrics": null
266
+ },
267
+ "transformed": {
268
+ "count": 0,
269
+ "metrics": null
270
+ }
271
+ },
272
+ "threshold": 0.5
273
+ },
274
+ "validation": {
275
+ "accuracy": 0.5294117647058824,
276
+ "auroc": 0.5138888888888888,
277
+ "balanced_accuracy": 0.5,
278
+ "consistency_loss": 0.0,
279
+ "f1": 0.6923076923076924,
280
+ "fpr": 1.0,
281
+ "loss": 0.7337435053454505,
282
+ "precision": 0.5294117647058824,
283
+ "recall": 1.0,
284
+ "subgroups": {
285
+ "authentic": {
286
+ "count": 8,
287
+ "metrics": {
288
+ "accuracy": 0.0,
289
+ "auroc": null,
290
+ "balanced_accuracy": 0.0,
291
+ "f1": 0.0,
292
+ "fpr": 1.0,
293
+ "loss": NaN,
294
+ "precision": 0.0,
295
+ "recall": 0.0,
296
+ "threshold": 0.5
297
+ },
298
+ "negatives": 8,
299
+ "positives": 0
300
+ },
301
+ "minor_edit": {
302
+ "count": 9,
303
+ "metrics": {
304
+ "accuracy": 1.0,
305
+ "auroc": null,
306
+ "balanced_accuracy": 0.5,
307
+ "f1": 1.0,
308
+ "fpr": 0.0,
309
+ "loss": NaN,
310
+ "precision": 1.0,
311
+ "recall": 1.0,
312
+ "threshold": 0.5
313
+ },
314
+ "negatives": 0,
315
+ "positives": 9
316
+ },
317
+ "moderate_edit": {
318
+ "count": 0,
319
+ "metrics": null
320
+ },
321
+ "synthetic": {
322
+ "count": 0,
323
+ "metrics": null
324
+ },
325
+ "transformed": {
326
+ "count": 0,
327
+ "metrics": null
328
+ }
329
+ },
330
+ "threshold": 0.5
331
+ }
332
+ },
333
+ "original": {
334
+ "test": {
335
+ "accuracy": 0.6,
336
+ "auroc": 0.5104166666666666,
337
+ "balanced_accuracy": 0.5,
338
+ "consistency_loss": 0.0,
339
+ "f1": 0.7499999999999999,
340
+ "fpr": 1.0,
341
+ "loss": 2.2257189441355876,
342
+ "precision": 0.6,
343
+ "recall": 1.0,
344
+ "subgroups": {
345
+ "authentic": {
346
+ "count": 8,
347
+ "metrics": {
348
+ "accuracy": 0.0,
349
+ "auroc": null,
350
+ "balanced_accuracy": 0.0,
351
+ "f1": 0.0,
352
+ "fpr": 1.0,
353
+ "loss": NaN,
354
+ "precision": 0.0,
355
+ "recall": 0.0,
356
+ "threshold": 0.5
357
+ },
358
+ "negatives": 8,
359
+ "positives": 0
360
+ },
361
+ "minor_edit": {
362
+ "count": 12,
363
+ "metrics": {
364
+ "accuracy": 1.0,
365
+ "auroc": null,
366
+ "balanced_accuracy": 0.5,
367
+ "f1": 1.0,
368
+ "fpr": 0.0,
369
+ "loss": NaN,
370
+ "precision": 1.0,
371
+ "recall": 1.0,
372
+ "threshold": 0.5
373
+ },
374
+ "negatives": 0,
375
+ "positives": 12
376
+ },
377
+ "moderate_edit": {
378
+ "count": 0,
379
+ "metrics": null
380
+ },
381
+ "synthetic": {
382
+ "count": 0,
383
+ "metrics": null
384
+ },
385
+ "transformed": {
386
+ "count": 0,
387
+ "metrics": null
388
+ }
389
+ },
390
+ "threshold": 0.5
391
+ },
392
+ "validation": {
393
+ "accuracy": 0.5294117647058824,
394
+ "auroc": 0.5694444444444444,
395
+ "balanced_accuracy": 0.5,
396
+ "consistency_loss": 0.0,
397
+ "f1": 0.6923076923076924,
398
+ "fpr": 1.0,
399
+ "loss": 2.4070196401379587,
400
+ "precision": 0.5294117647058824,
401
+ "recall": 1.0,
402
+ "subgroups": {
403
+ "authentic": {
404
+ "count": 8,
405
+ "metrics": {
406
+ "accuracy": 0.0,
407
+ "auroc": null,
408
+ "balanced_accuracy": 0.0,
409
+ "f1": 0.0,
410
+ "fpr": 1.0,
411
+ "loss": NaN,
412
+ "precision": 0.0,
413
+ "recall": 0.0,
414
+ "threshold": 0.5
415
+ },
416
+ "negatives": 8,
417
+ "positives": 0
418
+ },
419
+ "minor_edit": {
420
+ "count": 9,
421
+ "metrics": {
422
+ "accuracy": 1.0,
423
+ "auroc": null,
424
+ "balanced_accuracy": 0.5,
425
+ "f1": 1.0,
426
+ "fpr": 0.0,
427
+ "loss": NaN,
428
+ "precision": 1.0,
429
+ "recall": 1.0,
430
+ "threshold": 0.5
431
+ },
432
+ "negatives": 0,
433
+ "positives": 9
434
+ },
435
+ "moderate_edit": {
436
+ "count": 0,
437
+ "metrics": null
438
+ },
439
+ "synthetic": {
440
+ "count": 0,
441
+ "metrics": null
442
+ },
443
+ "transformed": {
444
+ "count": 0,
445
+ "metrics": null
446
+ }
447
+ },
448
+ "threshold": 0.5
449
+ }
450
+ },
451
+ "test_delta": {
452
+ "accuracy": 0.0,
453
+ "auroc": -0.07291666666666663,
454
+ "balanced_accuracy": 0.0,
455
+ "f1": 0.0,
456
+ "precision": 0.0,
457
+ "recall": 0.0
458
+ },
459
+ "threshold": 0.5,
460
+ "threshold_note": "The original and fine-tuned checkpoints are compared at the same fixed pre-training selection threshold; no test-set threshold fitting occurred."
461
+ },
462
+ "parameter_counts": {
463
+ "frozen": 739121216,
464
+ "total": 740371777,
465
+ "trainable": 1250561
466
+ },
467
+ "peft_type": "LORA",
468
+ "r": 32,
469
+ "seed": 42,
470
+ "selection_metric": "f1",
471
+ "target_module_names": [
472
+ "siglip.base_model.model.encoder.layers.0.self_attn.v_proj",
473
+ "siglip.base_model.model.encoder.layers.0.self_attn.q_proj",
474
+ "siglip.base_model.model.encoder.layers.1.self_attn.v_proj",
475
+ "siglip.base_model.model.encoder.layers.1.self_attn.q_proj",
476
+ "siglip.base_model.model.encoder.layers.2.self_attn.v_proj",
477
+ "siglip.base_model.model.encoder.layers.2.self_attn.q_proj",
478
+ "siglip.base_model.model.encoder.layers.3.self_attn.v_proj",
479
+ "siglip.base_model.model.encoder.layers.3.self_attn.q_proj",
480
+ "siglip.base_model.model.encoder.layers.4.self_attn.v_proj",
481
+ "siglip.base_model.model.encoder.layers.4.self_attn.q_proj",
482
+ "siglip.base_model.model.encoder.layers.5.self_attn.v_proj",
483
+ "siglip.base_model.model.encoder.layers.5.self_attn.q_proj",
484
+ "siglip.base_model.model.encoder.layers.6.self_attn.v_proj",
485
+ "siglip.base_model.model.encoder.layers.6.self_attn.q_proj",
486
+ "siglip.base_model.model.encoder.layers.7.self_attn.v_proj",
487
+ "siglip.base_model.model.encoder.layers.7.self_attn.q_proj",
488
+ "siglip.base_model.model.encoder.layers.8.self_attn.v_proj",
489
+ "siglip.base_model.model.encoder.layers.8.self_attn.q_proj",
490
+ "siglip.base_model.model.encoder.layers.9.self_attn.v_proj",
491
+ "siglip.base_model.model.encoder.layers.9.self_attn.q_proj",
492
+ "siglip.base_model.model.encoder.layers.10.self_attn.v_proj",
493
+ "siglip.base_model.model.encoder.layers.10.self_attn.q_proj",
494
+ "siglip.base_model.model.encoder.layers.11.self_attn.v_proj",
495
+ "siglip.base_model.model.encoder.layers.11.self_attn.q_proj",
496
+ "siglip.base_model.model.encoder.layers.12.self_attn.v_proj",
497
+ "siglip.base_model.model.encoder.layers.12.self_attn.q_proj",
498
+ "siglip.base_model.model.encoder.layers.13.self_attn.v_proj",
499
+ "siglip.base_model.model.encoder.layers.13.self_attn.q_proj",
500
+ "siglip.base_model.model.encoder.layers.14.self_attn.v_proj",
501
+ "siglip.base_model.model.encoder.layers.14.self_attn.q_proj",
502
+ "siglip.base_model.model.encoder.layers.15.self_attn.v_proj",
503
+ "siglip.base_model.model.encoder.layers.15.self_attn.q_proj",
504
+ "siglip.base_model.model.encoder.layers.16.self_attn.v_proj",
505
+ "siglip.base_model.model.encoder.layers.16.self_attn.q_proj",
506
+ "siglip.base_model.model.encoder.layers.17.self_attn.v_proj",
507
+ "siglip.base_model.model.encoder.layers.17.self_attn.q_proj",
508
+ "siglip.base_model.model.encoder.layers.18.self_attn.v_proj",
509
+ "siglip.base_model.model.encoder.layers.18.self_attn.q_proj",
510
+ "siglip.base_model.model.encoder.layers.19.self_attn.v_proj",
511
+ "siglip.base_model.model.encoder.layers.19.self_attn.q_proj",
512
+ "siglip.base_model.model.encoder.layers.20.self_attn.v_proj",
513
+ "siglip.base_model.model.encoder.layers.20.self_attn.q_proj",
514
+ "siglip.base_model.model.encoder.layers.21.self_attn.v_proj",
515
+ "siglip.base_model.model.encoder.layers.21.self_attn.q_proj",
516
+ "siglip.base_model.model.encoder.layers.22.self_attn.v_proj",
517
+ "siglip.base_model.model.encoder.layers.22.self_attn.q_proj",
518
+ "siglip.base_model.model.encoder.layers.23.self_attn.v_proj",
519
+ "siglip.base_model.model.encoder.layers.23.self_attn.q_proj",
520
+ "siglip.base_model.model.encoder.layers.24.self_attn.v_proj",
521
+ "siglip.base_model.model.encoder.layers.24.self_attn.q_proj",
522
+ "siglip.base_model.model.encoder.layers.25.self_attn.v_proj",
523
+ "siglip.base_model.model.encoder.layers.25.self_attn.q_proj",
524
+ "siglip.base_model.model.encoder.layers.26.self_attn.v_proj",
525
+ "siglip.base_model.model.encoder.layers.26.self_attn.q_proj",
526
+ "dinov2.blocks.0.attn.qkv",
527
+ "dinov2.blocks.1.attn.qkv",
528
+ "dinov2.blocks.2.attn.qkv",
529
+ "dinov2.blocks.3.attn.qkv",
530
+ "dinov2.blocks.4.attn.qkv",
531
+ "dinov2.blocks.5.attn.qkv",
532
+ "dinov2.blocks.6.attn.qkv",
533
+ "dinov2.blocks.7.attn.qkv",
534
+ "dinov2.blocks.8.attn.qkv",
535
+ "dinov2.blocks.9.attn.qkv",
536
+ "dinov2.blocks.10.attn.qkv",
537
+ "dinov2.blocks.11.attn.qkv",
538
+ "dinov2.blocks.12.attn.qkv",
539
+ "dinov2.blocks.13.attn.qkv",
540
+ "dinov2.blocks.14.attn.qkv",
541
+ "dinov2.blocks.15.attn.qkv",
542
+ "dinov2.blocks.16.attn.qkv",
543
+ "dinov2.blocks.17.attn.qkv",
544
+ "dinov2.blocks.18.attn.qkv",
545
+ "dinov2.blocks.19.attn.qkv",
546
+ "dinov2.blocks.20.attn.qkv",
547
+ "dinov2.blocks.21.attn.qkv",
548
+ "dinov2.blocks.22.attn.qkv",
549
+ "dinov2.blocks.23.attn.qkv"
550
+ ],
551
+ "target_modules": [
552
+ "q_proj",
553
+ "qkv",
554
+ "v_proj"
555
+ ],
556
+ "test_metrics": {
557
+ "accuracy": 0.6,
558
+ "auroc": 0.4375,
559
+ "balanced_accuracy": 0.5,
560
+ "consistency_loss": 0.0,
561
+ "f1": 0.7499999999999999,
562
+ "fpr": 1.0,
563
+ "loss": 0.6993387997150421,
564
+ "precision": 0.6,
565
+ "recall": 1.0,
566
+ "subgroups": {
567
+ "authentic": {
568
+ "count": 8,
569
+ "metrics": {
570
+ "accuracy": 0.0,
571
+ "auroc": null,
572
+ "balanced_accuracy": 0.0,
573
+ "f1": 0.0,
574
+ "fpr": 1.0,
575
+ "loss": NaN,
576
+ "precision": 0.0,
577
+ "recall": 0.0,
578
+ "threshold": 0.5
579
+ },
580
+ "negatives": 8,
581
+ "positives": 0
582
+ },
583
+ "minor_edit": {
584
+ "count": 12,
585
+ "metrics": {
586
+ "accuracy": 1.0,
587
+ "auroc": null,
588
+ "balanced_accuracy": 0.5,
589
+ "f1": 1.0,
590
+ "fpr": 0.0,
591
+ "loss": NaN,
592
+ "precision": 1.0,
593
+ "recall": 1.0,
594
+ "threshold": 0.5
595
+ },
596
+ "negatives": 0,
597
+ "positives": 12
598
+ },
599
+ "moderate_edit": {
600
+ "count": 0,
601
+ "metrics": null
602
+ },
603
+ "synthetic": {
604
+ "count": 0,
605
+ "metrics": null
606
+ },
607
+ "transformed": {
608
+ "count": 0,
609
+ "metrics": null
610
+ }
611
+ },
612
+ "threshold": 0.5
613
+ }
614
+ }
adapters/consistency_consistency_mse/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6312820e0f553ae7aa69238588215ce2125830452c0ea12843da8134c09b37ed
3
+ size 28529808
adapters/consistency_consistency_mse/classifier_head.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddd9ab6e00581f34e1dd5a3f4f32286dcd1381fa9e1d6cdf6c21dc9ceb71ce1f
3
+ size 5005757
adapters/local_edit_smoke/adapter_config.json ADDED
@@ -0,0 +1,614 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architecture": "bombek_siglip2_dinov2",
3
+ "base_model_names": {
4
+ "dinov2": "vit_large_patch14_dinov2.lvd142m",
5
+ "siglip": "google/siglip2-so400m-patch14-384"
6
+ },
7
+ "best_epoch": 2,
8
+ "best_validation_metrics": {
9
+ "accuracy": 0.5294117647058824,
10
+ "auroc": 0.5416666666666666,
11
+ "balanced_accuracy": 0.5,
12
+ "consistency_loss": 0.0,
13
+ "f1": 0.6923076923076924,
14
+ "fpr": 1.0,
15
+ "loss": 0.7116874390178256,
16
+ "precision": 0.5294117647058824,
17
+ "recall": 1.0,
18
+ "subgroups": {
19
+ "authentic": {
20
+ "count": 8,
21
+ "metrics": {
22
+ "accuracy": 0.0,
23
+ "auroc": null,
24
+ "balanced_accuracy": 0.0,
25
+ "f1": 0.0,
26
+ "fpr": 1.0,
27
+ "loss": NaN,
28
+ "precision": 0.0,
29
+ "recall": 0.0,
30
+ "threshold": 0.5
31
+ },
32
+ "negatives": 8,
33
+ "positives": 0
34
+ },
35
+ "minor_edit": {
36
+ "count": 9,
37
+ "metrics": {
38
+ "accuracy": 1.0,
39
+ "auroc": null,
40
+ "balanced_accuracy": 0.5,
41
+ "f1": 1.0,
42
+ "fpr": 0.0,
43
+ "loss": NaN,
44
+ "precision": 1.0,
45
+ "recall": 1.0,
46
+ "threshold": 0.5
47
+ },
48
+ "negatives": 0,
49
+ "positives": 9
50
+ },
51
+ "moderate_edit": {
52
+ "count": 0,
53
+ "metrics": null
54
+ },
55
+ "synthetic": {
56
+ "count": 0,
57
+ "metrics": null
58
+ },
59
+ "transformed": {
60
+ "count": 0,
61
+ "metrics": null
62
+ }
63
+ },
64
+ "threshold": 0.5
65
+ },
66
+ "bias": "none",
67
+ "consistency": {
68
+ "enabled": false,
69
+ "method": "mse",
70
+ "same_label_pairs_only": true,
71
+ "weight": 0.0
72
+ },
73
+ "dataset_summary": {
74
+ "configured_subgroups": {
75
+ "authentic": {
76
+ "directory": null,
77
+ "label": 0
78
+ },
79
+ "minor_edit": {
80
+ "directory": null,
81
+ "label": 1
82
+ },
83
+ "moderate_edit": {
84
+ "directory": null,
85
+ "label": 1
86
+ },
87
+ "synthetic": {
88
+ "directory": null,
89
+ "label": 1
90
+ },
91
+ "transformed": {
92
+ "directory": null,
93
+ "label": 1
94
+ }
95
+ },
96
+ "data_quality": {
97
+ "conflicting_labels_excluded": {
98
+ "test": 2,
99
+ "train": 10,
100
+ "validation": 0
101
+ },
102
+ "conflicting_labels_excluded_total": 12,
103
+ "include_conflicting_labels": false,
104
+ "quarantine": {
105
+ "path": "/Users/liren/Desktop/TechJam/outputs/data_quality/quarantine.json",
106
+ "source": "manifest"
107
+ }
108
+ },
109
+ "group_limit": {
110
+ "configured": {
111
+ "test": 8,
112
+ "train": 24,
113
+ "validation": 8
114
+ },
115
+ "records_excluded": {
116
+ "test": 2519,
117
+ "train": 20279,
118
+ "validation": 2439
119
+ },
120
+ "seed": 42
121
+ },
122
+ "synthetic_mixture": {
123
+ "available": 120,
124
+ "enabled": true,
125
+ "realized_fraction": 0.25,
126
+ "requested": 17,
127
+ "requested_fraction": 0.25,
128
+ "seed": 42,
129
+ "selected": 17,
130
+ "source": "/Users/liren/Desktop/TechJam/data/synthetic_mixture",
131
+ "train_only": true
132
+ },
133
+ "test": {
134
+ "class_balance": {
135
+ "ai_edited_fraction": 0.6,
136
+ "authentic_fraction": 0.4,
137
+ "imbalance_ratio": 1.5
138
+ },
139
+ "class_counts": {
140
+ "ai_edited": 12,
141
+ "authentic": 8
142
+ },
143
+ "corrupted_images": 0,
144
+ "group_count": 8,
145
+ "missing_masks": 2541,
146
+ "root": "/Users/liren/Desktop/TechJam/data/local_edits/test",
147
+ "split": "test",
148
+ "subgroup_counts": {
149
+ "authentic": 8,
150
+ "minor_edit": 12,
151
+ "moderate_edit": 0,
152
+ "synthetic": 0,
153
+ "transformed": 0
154
+ },
155
+ "total_images": 2541,
156
+ "valid_images": 20
157
+ },
158
+ "train": {
159
+ "class_balance": {
160
+ "ai_edited_fraction": 0.6470588235294118,
161
+ "authentic_fraction": 0.35294117647058826,
162
+ "imbalance_ratio": 1.8333333333333333
163
+ },
164
+ "class_counts": {
165
+ "ai_edited": 44,
166
+ "authentic": 24
167
+ },
168
+ "corrupted_images": 0,
169
+ "group_count": 25,
170
+ "missing_masks": 20340,
171
+ "root": "/Users/liren/Desktop/TechJam/data/local_edits/train",
172
+ "split": "train",
173
+ "subgroup_counts": {
174
+ "authentic": 24,
175
+ "minor_edit": 27,
176
+ "moderate_edit": 0,
177
+ "synthetic": 17,
178
+ "transformed": 0
179
+ },
180
+ "total_images": 20340,
181
+ "valid_images": 68
182
+ },
183
+ "validation": {
184
+ "class_balance": {
185
+ "ai_edited_fraction": 0.5294117647058824,
186
+ "authentic_fraction": 0.47058823529411764,
187
+ "imbalance_ratio": 1.125
188
+ },
189
+ "class_counts": {
190
+ "ai_edited": 9,
191
+ "authentic": 8
192
+ },
193
+ "corrupted_images": 0,
194
+ "group_count": 8,
195
+ "missing_masks": 2456,
196
+ "root": "/Users/liren/Desktop/TechJam/data/local_edits/validation",
197
+ "split": "validation",
198
+ "subgroup_counts": {
199
+ "authentic": 8,
200
+ "minor_edit": 9,
201
+ "moderate_edit": 0,
202
+ "synthetic": 0,
203
+ "transformed": 0
204
+ },
205
+ "total_images": 2456,
206
+ "valid_images": 17
207
+ },
208
+ "views_per_training_image": 1
209
+ },
210
+ "format": "robustlens_existing_lora",
211
+ "lora_alpha": 64,
212
+ "lora_dropout": 0.1,
213
+ "mode": "head_only",
214
+ "original_vs_fine_tuned": {
215
+ "fine_tuned": {
216
+ "test": {
217
+ "accuracy": 0.6,
218
+ "auroc": 0.3541666666666667,
219
+ "balanced_accuracy": 0.5,
220
+ "consistency_loss": 0.0,
221
+ "f1": 0.7499999999999999,
222
+ "fpr": 1.0,
223
+ "loss": 0.6975509583950043,
224
+ "precision": 0.6,
225
+ "recall": 1.0,
226
+ "subgroups": {
227
+ "authentic": {
228
+ "count": 8,
229
+ "metrics": {
230
+ "accuracy": 0.0,
231
+ "auroc": null,
232
+ "balanced_accuracy": 0.0,
233
+ "f1": 0.0,
234
+ "fpr": 1.0,
235
+ "loss": NaN,
236
+ "precision": 0.0,
237
+ "recall": 0.0,
238
+ "threshold": 0.5
239
+ },
240
+ "negatives": 8,
241
+ "positives": 0
242
+ },
243
+ "minor_edit": {
244
+ "count": 12,
245
+ "metrics": {
246
+ "accuracy": 1.0,
247
+ "auroc": null,
248
+ "balanced_accuracy": 0.5,
249
+ "f1": 1.0,
250
+ "fpr": 0.0,
251
+ "loss": NaN,
252
+ "precision": 1.0,
253
+ "recall": 1.0,
254
+ "threshold": 0.5
255
+ },
256
+ "negatives": 0,
257
+ "positives": 12
258
+ },
259
+ "moderate_edit": {
260
+ "count": 0,
261
+ "metrics": null
262
+ },
263
+ "synthetic": {
264
+ "count": 0,
265
+ "metrics": null
266
+ },
267
+ "transformed": {
268
+ "count": 0,
269
+ "metrics": null
270
+ }
271
+ },
272
+ "threshold": 0.5
273
+ },
274
+ "validation": {
275
+ "accuracy": 0.5294117647058824,
276
+ "auroc": 0.5416666666666666,
277
+ "balanced_accuracy": 0.5,
278
+ "consistency_loss": 0.0,
279
+ "f1": 0.6923076923076924,
280
+ "fpr": 1.0,
281
+ "loss": 0.7116874390178256,
282
+ "precision": 0.5294117647058824,
283
+ "recall": 1.0,
284
+ "subgroups": {
285
+ "authentic": {
286
+ "count": 8,
287
+ "metrics": {
288
+ "accuracy": 0.0,
289
+ "auroc": null,
290
+ "balanced_accuracy": 0.0,
291
+ "f1": 0.0,
292
+ "fpr": 1.0,
293
+ "loss": NaN,
294
+ "precision": 0.0,
295
+ "recall": 0.0,
296
+ "threshold": 0.5
297
+ },
298
+ "negatives": 8,
299
+ "positives": 0
300
+ },
301
+ "minor_edit": {
302
+ "count": 9,
303
+ "metrics": {
304
+ "accuracy": 1.0,
305
+ "auroc": null,
306
+ "balanced_accuracy": 0.5,
307
+ "f1": 1.0,
308
+ "fpr": 0.0,
309
+ "loss": NaN,
310
+ "precision": 1.0,
311
+ "recall": 1.0,
312
+ "threshold": 0.5
313
+ },
314
+ "negatives": 0,
315
+ "positives": 9
316
+ },
317
+ "moderate_edit": {
318
+ "count": 0,
319
+ "metrics": null
320
+ },
321
+ "synthetic": {
322
+ "count": 0,
323
+ "metrics": null
324
+ },
325
+ "transformed": {
326
+ "count": 0,
327
+ "metrics": null
328
+ }
329
+ },
330
+ "threshold": 0.5
331
+ }
332
+ },
333
+ "original": {
334
+ "test": {
335
+ "accuracy": 0.6,
336
+ "auroc": 0.5104166666666666,
337
+ "balanced_accuracy": 0.5,
338
+ "consistency_loss": 0.0,
339
+ "f1": 0.7499999999999999,
340
+ "fpr": 1.0,
341
+ "loss": 2.2257189441355876,
342
+ "precision": 0.6,
343
+ "recall": 1.0,
344
+ "subgroups": {
345
+ "authentic": {
346
+ "count": 8,
347
+ "metrics": {
348
+ "accuracy": 0.0,
349
+ "auroc": null,
350
+ "balanced_accuracy": 0.0,
351
+ "f1": 0.0,
352
+ "fpr": 1.0,
353
+ "loss": NaN,
354
+ "precision": 0.0,
355
+ "recall": 0.0,
356
+ "threshold": 0.5
357
+ },
358
+ "negatives": 8,
359
+ "positives": 0
360
+ },
361
+ "minor_edit": {
362
+ "count": 12,
363
+ "metrics": {
364
+ "accuracy": 1.0,
365
+ "auroc": null,
366
+ "balanced_accuracy": 0.5,
367
+ "f1": 1.0,
368
+ "fpr": 0.0,
369
+ "loss": NaN,
370
+ "precision": 1.0,
371
+ "recall": 1.0,
372
+ "threshold": 0.5
373
+ },
374
+ "negatives": 0,
375
+ "positives": 12
376
+ },
377
+ "moderate_edit": {
378
+ "count": 0,
379
+ "metrics": null
380
+ },
381
+ "synthetic": {
382
+ "count": 0,
383
+ "metrics": null
384
+ },
385
+ "transformed": {
386
+ "count": 0,
387
+ "metrics": null
388
+ }
389
+ },
390
+ "threshold": 0.5
391
+ },
392
+ "validation": {
393
+ "accuracy": 0.5294117647058824,
394
+ "auroc": 0.5694444444444444,
395
+ "balanced_accuracy": 0.5,
396
+ "consistency_loss": 0.0,
397
+ "f1": 0.6923076923076924,
398
+ "fpr": 1.0,
399
+ "loss": 2.4070196401379587,
400
+ "precision": 0.5294117647058824,
401
+ "recall": 1.0,
402
+ "subgroups": {
403
+ "authentic": {
404
+ "count": 8,
405
+ "metrics": {
406
+ "accuracy": 0.0,
407
+ "auroc": null,
408
+ "balanced_accuracy": 0.0,
409
+ "f1": 0.0,
410
+ "fpr": 1.0,
411
+ "loss": NaN,
412
+ "precision": 0.0,
413
+ "recall": 0.0,
414
+ "threshold": 0.5
415
+ },
416
+ "negatives": 8,
417
+ "positives": 0
418
+ },
419
+ "minor_edit": {
420
+ "count": 9,
421
+ "metrics": {
422
+ "accuracy": 1.0,
423
+ "auroc": null,
424
+ "balanced_accuracy": 0.5,
425
+ "f1": 1.0,
426
+ "fpr": 0.0,
427
+ "loss": NaN,
428
+ "precision": 1.0,
429
+ "recall": 1.0,
430
+ "threshold": 0.5
431
+ },
432
+ "negatives": 0,
433
+ "positives": 9
434
+ },
435
+ "moderate_edit": {
436
+ "count": 0,
437
+ "metrics": null
438
+ },
439
+ "synthetic": {
440
+ "count": 0,
441
+ "metrics": null
442
+ },
443
+ "transformed": {
444
+ "count": 0,
445
+ "metrics": null
446
+ }
447
+ },
448
+ "threshold": 0.5
449
+ }
450
+ },
451
+ "test_delta": {
452
+ "accuracy": 0.0,
453
+ "auroc": -0.15624999999999994,
454
+ "balanced_accuracy": 0.0,
455
+ "f1": 0.0,
456
+ "precision": 0.0,
457
+ "recall": 0.0
458
+ },
459
+ "threshold": 0.5,
460
+ "threshold_note": "The original and fine-tuned checkpoints are compared at the same fixed pre-training selection threshold; no test-set threshold fitting occurred."
461
+ },
462
+ "parameter_counts": {
463
+ "frozen": 739121216,
464
+ "total": 740371777,
465
+ "trainable": 1250561
466
+ },
467
+ "peft_type": "LORA",
468
+ "r": 32,
469
+ "seed": 42,
470
+ "selection_metric": "f1",
471
+ "target_module_names": [
472
+ "siglip.base_model.model.encoder.layers.0.self_attn.v_proj",
473
+ "siglip.base_model.model.encoder.layers.0.self_attn.q_proj",
474
+ "siglip.base_model.model.encoder.layers.1.self_attn.v_proj",
475
+ "siglip.base_model.model.encoder.layers.1.self_attn.q_proj",
476
+ "siglip.base_model.model.encoder.layers.2.self_attn.v_proj",
477
+ "siglip.base_model.model.encoder.layers.2.self_attn.q_proj",
478
+ "siglip.base_model.model.encoder.layers.3.self_attn.v_proj",
479
+ "siglip.base_model.model.encoder.layers.3.self_attn.q_proj",
480
+ "siglip.base_model.model.encoder.layers.4.self_attn.v_proj",
481
+ "siglip.base_model.model.encoder.layers.4.self_attn.q_proj",
482
+ "siglip.base_model.model.encoder.layers.5.self_attn.v_proj",
483
+ "siglip.base_model.model.encoder.layers.5.self_attn.q_proj",
484
+ "siglip.base_model.model.encoder.layers.6.self_attn.v_proj",
485
+ "siglip.base_model.model.encoder.layers.6.self_attn.q_proj",
486
+ "siglip.base_model.model.encoder.layers.7.self_attn.v_proj",
487
+ "siglip.base_model.model.encoder.layers.7.self_attn.q_proj",
488
+ "siglip.base_model.model.encoder.layers.8.self_attn.v_proj",
489
+ "siglip.base_model.model.encoder.layers.8.self_attn.q_proj",
490
+ "siglip.base_model.model.encoder.layers.9.self_attn.v_proj",
491
+ "siglip.base_model.model.encoder.layers.9.self_attn.q_proj",
492
+ "siglip.base_model.model.encoder.layers.10.self_attn.v_proj",
493
+ "siglip.base_model.model.encoder.layers.10.self_attn.q_proj",
494
+ "siglip.base_model.model.encoder.layers.11.self_attn.v_proj",
495
+ "siglip.base_model.model.encoder.layers.11.self_attn.q_proj",
496
+ "siglip.base_model.model.encoder.layers.12.self_attn.v_proj",
497
+ "siglip.base_model.model.encoder.layers.12.self_attn.q_proj",
498
+ "siglip.base_model.model.encoder.layers.13.self_attn.v_proj",
499
+ "siglip.base_model.model.encoder.layers.13.self_attn.q_proj",
500
+ "siglip.base_model.model.encoder.layers.14.self_attn.v_proj",
501
+ "siglip.base_model.model.encoder.layers.14.self_attn.q_proj",
502
+ "siglip.base_model.model.encoder.layers.15.self_attn.v_proj",
503
+ "siglip.base_model.model.encoder.layers.15.self_attn.q_proj",
504
+ "siglip.base_model.model.encoder.layers.16.self_attn.v_proj",
505
+ "siglip.base_model.model.encoder.layers.16.self_attn.q_proj",
506
+ "siglip.base_model.model.encoder.layers.17.self_attn.v_proj",
507
+ "siglip.base_model.model.encoder.layers.17.self_attn.q_proj",
508
+ "siglip.base_model.model.encoder.layers.18.self_attn.v_proj",
509
+ "siglip.base_model.model.encoder.layers.18.self_attn.q_proj",
510
+ "siglip.base_model.model.encoder.layers.19.self_attn.v_proj",
511
+ "siglip.base_model.model.encoder.layers.19.self_attn.q_proj",
512
+ "siglip.base_model.model.encoder.layers.20.self_attn.v_proj",
513
+ "siglip.base_model.model.encoder.layers.20.self_attn.q_proj",
514
+ "siglip.base_model.model.encoder.layers.21.self_attn.v_proj",
515
+ "siglip.base_model.model.encoder.layers.21.self_attn.q_proj",
516
+ "siglip.base_model.model.encoder.layers.22.self_attn.v_proj",
517
+ "siglip.base_model.model.encoder.layers.22.self_attn.q_proj",
518
+ "siglip.base_model.model.encoder.layers.23.self_attn.v_proj",
519
+ "siglip.base_model.model.encoder.layers.23.self_attn.q_proj",
520
+ "siglip.base_model.model.encoder.layers.24.self_attn.v_proj",
521
+ "siglip.base_model.model.encoder.layers.24.self_attn.q_proj",
522
+ "siglip.base_model.model.encoder.layers.25.self_attn.v_proj",
523
+ "siglip.base_model.model.encoder.layers.25.self_attn.q_proj",
524
+ "siglip.base_model.model.encoder.layers.26.self_attn.v_proj",
525
+ "siglip.base_model.model.encoder.layers.26.self_attn.q_proj",
526
+ "dinov2.blocks.0.attn.qkv",
527
+ "dinov2.blocks.1.attn.qkv",
528
+ "dinov2.blocks.2.attn.qkv",
529
+ "dinov2.blocks.3.attn.qkv",
530
+ "dinov2.blocks.4.attn.qkv",
531
+ "dinov2.blocks.5.attn.qkv",
532
+ "dinov2.blocks.6.attn.qkv",
533
+ "dinov2.blocks.7.attn.qkv",
534
+ "dinov2.blocks.8.attn.qkv",
535
+ "dinov2.blocks.9.attn.qkv",
536
+ "dinov2.blocks.10.attn.qkv",
537
+ "dinov2.blocks.11.attn.qkv",
538
+ "dinov2.blocks.12.attn.qkv",
539
+ "dinov2.blocks.13.attn.qkv",
540
+ "dinov2.blocks.14.attn.qkv",
541
+ "dinov2.blocks.15.attn.qkv",
542
+ "dinov2.blocks.16.attn.qkv",
543
+ "dinov2.blocks.17.attn.qkv",
544
+ "dinov2.blocks.18.attn.qkv",
545
+ "dinov2.blocks.19.attn.qkv",
546
+ "dinov2.blocks.20.attn.qkv",
547
+ "dinov2.blocks.21.attn.qkv",
548
+ "dinov2.blocks.22.attn.qkv",
549
+ "dinov2.blocks.23.attn.qkv"
550
+ ],
551
+ "target_modules": [
552
+ "q_proj",
553
+ "qkv",
554
+ "v_proj"
555
+ ],
556
+ "test_metrics": {
557
+ "accuracy": 0.6,
558
+ "auroc": 0.3541666666666667,
559
+ "balanced_accuracy": 0.5,
560
+ "consistency_loss": 0.0,
561
+ "f1": 0.7499999999999999,
562
+ "fpr": 1.0,
563
+ "loss": 0.6975509583950043,
564
+ "precision": 0.6,
565
+ "recall": 1.0,
566
+ "subgroups": {
567
+ "authentic": {
568
+ "count": 8,
569
+ "metrics": {
570
+ "accuracy": 0.0,
571
+ "auroc": null,
572
+ "balanced_accuracy": 0.0,
573
+ "f1": 0.0,
574
+ "fpr": 1.0,
575
+ "loss": NaN,
576
+ "precision": 0.0,
577
+ "recall": 0.0,
578
+ "threshold": 0.5
579
+ },
580
+ "negatives": 8,
581
+ "positives": 0
582
+ },
583
+ "minor_edit": {
584
+ "count": 12,
585
+ "metrics": {
586
+ "accuracy": 1.0,
587
+ "auroc": null,
588
+ "balanced_accuracy": 0.5,
589
+ "f1": 1.0,
590
+ "fpr": 0.0,
591
+ "loss": NaN,
592
+ "precision": 1.0,
593
+ "recall": 1.0,
594
+ "threshold": 0.5
595
+ },
596
+ "negatives": 0,
597
+ "positives": 12
598
+ },
599
+ "moderate_edit": {
600
+ "count": 0,
601
+ "metrics": null
602
+ },
603
+ "synthetic": {
604
+ "count": 0,
605
+ "metrics": null
606
+ },
607
+ "transformed": {
608
+ "count": 0,
609
+ "metrics": null
610
+ }
611
+ },
612
+ "threshold": 0.5
613
+ }
614
+ }
adapters/local_edit_smoke/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6312820e0f553ae7aa69238588215ce2125830452c0ea12843da8134c09b37ed
3
+ size 28529808
adapters/local_edit_smoke/classifier_head.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:417027cffc48bcda3bb3283fe2185eb120263380d2187539fd0bec79d5ca2437
3
+ size 5005757