Zero-shot results on the real Guardian data
Browse files- .gitattributes +2 -0
- README.md +6 -1
- results_zeroshot/NOTE.md +61 -0
- results_zeroshot/plots/qwen3b-zeroshot_cal.png +3 -0
- results_zeroshot/plots/qwen3b-zeroshot_cal_ood.png +3 -0
- results_zeroshot/report.md +74 -0
- results_zeroshot/results.json +746 -0
- results_zeroshot/scores.csv +0 -0
- scripts/merge_scores.py +58 -0
.gitattributes
CHANGED
|
@@ -35,3 +35,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
results_synthetic/plots/synthetic-judge_cal.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
results_synthetic/plots/synthetic-judge_cal_ood.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
results_synthetic/plots/synthetic-judge_cal.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
results_synthetic/plots/synthetic-judge_cal_ood.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
results_zeroshot/plots/qwen3b-zeroshot_cal.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
results_zeroshot/plots/qwen3b-zeroshot_cal_ood.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -20,7 +20,12 @@ Every metric has a 95% CI from a bootstrap that resamples **whole tasks**, becau
|
|
| 20 |
|
| 21 |
- Pipeline, confidence layer, metrics and report: implemented, 17 tests passing, verified end to end on synthetic scores (`results_synthetic/`). Synthetic numbers are a pipeline check, not a result.
|
| 22 |
- Adapter verified against the **real** Guardian datasets (field names, path layouts, frame counts, task cardinality), which corrected three defects that would have produced plausible but meaningless numbers — see Data below.
|
| 23 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
## Data
|
| 26 |
|
|
|
|
| 20 |
|
| 21 |
- Pipeline, confidence layer, metrics and report: implemented, 17 tests passing, verified end to end on synthetic scores (`results_synthetic/`). Synthetic numbers are a pipeline check, not a result.
|
| 22 |
- Adapter verified against the **real** Guardian datasets (field names, path layouts, frame counts, task cardinality), which corrected three defects that would have produced plausible but meaningless numbers — see Data below.
|
| 23 |
+
- **Zero-shot real-data results: in** (`results_zeroshot/`). 6,742 episodes on a Kaggle T4.
|
| 24 |
+
Headline: the auto-accept rate is **0.000 in every condition** — no confidence threshold lets this
|
| 25 |
+
judge's verdicts be auto-accepted at a 5% error target. In-domain AUROC 0.588 [0.562, 0.620] over
|
| 26 |
+
96 held-out tasks. Per-class conformal coverage holds in-domain but the success class falls to
|
| 27 |
+
0.800 on the new robot (target 0.90), and refitting on a small labelled slice of it repairs that.
|
| 28 |
+
- LoRA fine-tuning: **not yet run**, so the zero-shot vs fine-tuned comparison is still open.
|
| 29 |
|
| 30 |
## Data
|
| 31 |
|
results_zeroshot/NOTE.md
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Zero-shot Qwen2.5-VL-3B on the real Guardian data
|
| 2 |
+
|
| 3 |
+
Kaggle T4, 4-bit, 6,742 episodes scored in 2.3 h. In-domain = RLBench-Fail (sim) +
|
| 4 |
+
BridgeDataV2-Fail (real WidowX), task-disjoint; OOD = UR5-Fail (real UR5), never trained or
|
| 5 |
+
calibrated on except the small `cal_ood` slice used for the refit. CIs resample whole tasks.
|
| 6 |
+
|
| 7 |
+
## The judge is weak, and the confidence layer says so rather than hiding it
|
| 8 |
+
|
| 9 |
+
| split | n | tasks | AUROC | bal. acc | failure recall (raw) |
|
| 10 |
+
|---|---|---|---|---|---|
|
| 11 |
+
| `test_id` | 3,064 | 96 | 0.588 [0.562, 0.620] | 0.523 [0.512, 0.536] | 0.097 [0.066, 0.143] |
|
| 12 |
+
| `test_ood` | 435 | 24 | 0.649 [0.573, 0.722] | 0.600 [0.531, 0.648] | 0.400 [0.207, 0.560] |
|
| 13 |
+
|
| 14 |
+
An AUROC of 0.588 on 96 held-out tasks is barely above chance, and raw failure recall of 0.097 means
|
| 15 |
+
the zero-shot judge waves through roughly nine of every ten failures at a threshold of 0.
|
| 16 |
+
|
| 17 |
+
## The headline: no automation is safe at the 5% target
|
| 18 |
+
|
| 19 |
+
**The auto-accept rate is 0.000 in every condition** — both splits, all three calibrators, whether
|
| 20 |
+
the confidence layer is fitted in-domain or refitted on the new robot. There is no confidence
|
| 21 |
+
threshold at which this judge's verdicts can be auto-accepted at a 5% error target. Not "automation
|
| 22 |
+
is low": it is zero.
|
| 23 |
+
|
| 24 |
+
This is a real finding and not a stuck value. The same code on the n=24 smoke run produced
|
| 25 |
+
`auto_rate` of 0.958 and 1.0, so the threshold search does return non-zero when the scores support
|
| 26 |
+
it. At full n it correctly finds that nothing does.
|
| 27 |
+
|
| 28 |
+
## Per-class conformal coverage breaks on the new robot, in the success class
|
| 29 |
+
|
| 30 |
+
Mondrian conformal, alpha = 0.1, so the target is 0.90 per class.
|
| 31 |
+
|
| 32 |
+
| fitted on | split | coverage, failures | coverage, successes |
|
| 33 |
+
|---|---|---|---|
|
| 34 |
+
| `cal` (in-domain) | `test_id` | 0.927 | 0.950 |
|
| 35 |
+
| `cal` (in-domain) | `test_ood` | 0.976 | **0.800** |
|
| 36 |
+
| `cal_ood` (refit) | `test_ood` | 0.943 | 0.960 |
|
| 37 |
+
|
| 38 |
+
Calibrated in-domain, both classes hold in-domain. Moved to UR5, failures are *over*-covered (0.976)
|
| 39 |
+
while successes fall to 0.800, well under target — the exchangeability assumption breaking in
|
| 40 |
+
exactly the way a cross-robot split predicts. Refitting on a small labelled slice of the new robot
|
| 41 |
+
repairs it, which is the "customer sends back corrections" path the protocol was built to measure.
|
| 42 |
+
|
| 43 |
+
Set sizes make the same point: 0.82 of verdicts are ambiguous (both labels) on both splits. The
|
| 44 |
+
judge rarely commits.
|
| 45 |
+
|
| 46 |
+
## Two things not to over-read
|
| 47 |
+
|
| 48 |
+
- **OOD AUROC (0.649) is higher than in-domain (0.588).** That inverts the expected direction, but
|
| 49 |
+
the CIs overlap substantially, `test_ood` has 24 task clusters against `test_id`'s 96, and "OOD"
|
| 50 |
+
here differs from in-domain in task difficulty as well as robot. This is not evidence of
|
| 51 |
+
robustness to deployment shift; it is a reason to be careful about what the in-domain pool
|
| 52 |
+
contains.
|
| 53 |
+
- **Recalibration does not move AUROC, conformal sets, or the ranking.** It is monotone, exactly as
|
| 54 |
+
the design notes say. What Platt does move is the operating point: raw failure recall 0.097 → 0.499
|
| 55 |
+
on `test_id` and 0.400 → 0.781 on `test_ood`, at a cost in balanced accuracy. ECE improves from
|
| 56 |
+
0.070 to 0.014 in-domain.
|
| 57 |
+
|
| 58 |
+
## Not yet run
|
| 59 |
+
|
| 60 |
+
LoRA fine-tuning, and therefore the zero-shot vs fine-tuned comparison that the repo's first
|
| 61 |
+
question asks. This file covers the zero-shot arm only.
|
results_zeroshot/plots/qwen3b-zeroshot_cal.png
ADDED
|
Git LFS Details
|
results_zeroshot/plots/qwen3b-zeroshot_cal_ood.png
ADDED
|
Git LFS Details
|
results_zeroshot/report.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Judge evaluation report (confidence layer fitted on `cal`)
|
| 2 |
+
|
| 3 |
+
Confidence layer fitted on `cal` only. 95% CIs from a bootstrap that resamples whole tasks. Conformal: Mondrian (per-class), alpha = 0.1, so the target is 90% coverage for failures and successes separately. Selective policy: threshold chosen on `cal` for 5% error on auto-accepted verdicts.
|
| 4 |
+
|
| 5 |
+
## qwen3b-zeroshot
|
| 6 |
+
|
| 7 |
+
### split: `test_id` (n = 3064, failures = 1511, tasks = 96)
|
| 8 |
+
|
| 9 |
+
| calibrator | AUROC | bal. acc | failure recall | ECE | Brier | AURC |
|
| 10 |
+
|---|---|---|---|---|---|---|
|
| 11 |
+
| raw | 0.588 [0.562, 0.620] | 0.523 [0.512, 0.536] | 0.097 [0.066, 0.143] | 0.070 [0.049, 0.097] | 0.250 [0.244, 0.256] | 0.406 |
|
| 12 |
+
| temperature | 0.588 [0.562, 0.620] | 0.523 [0.512, 0.536] | 0.097 [0.066, 0.143] | 0.041 [0.023, 0.066] | 0.247 [0.245, 0.249] | 0.406 |
|
| 13 |
+
| platt | 0.588 [0.562, 0.620] | 0.558 [0.529, 0.589] | 0.499 [0.354, 0.644] | 0.014 [0.013, 0.048] | 0.244 [0.241, 0.248] | 0.388 |
|
| 14 |
+
|
| 15 |
+
| calibrator | coverage | cov. failures | cov. successes | singleton | ambiguous | empty | auto-accept rate | auto-accept error | failures auto-passed |
|
| 16 |
+
|---|---|---|---|---|---|---|---|---|---|
|
| 17 |
+
| raw | 0.939 | 0.927 | 0.950 | 0.181 | 0.819 | 0.000 | 0.000 | nan | 0/1511 |
|
| 18 |
+
| temperature | 0.939 | 0.927 | 0.950 | 0.181 | 0.819 | 0.000 | 0.000 | nan | 0/1511 |
|
| 19 |
+
| platt | 0.939 | 0.927 | 0.950 | 0.181 | 0.819 | 0.000 | 0.000 | nan | 0/1511 |
|
| 20 |
+
|
| 21 |
+
### split: `test_ood` (n = 435, failures = 210, tasks = 24)
|
| 22 |
+
|
| 23 |
+
| calibrator | AUROC | bal. acc | failure recall | ECE | Brier | AURC |
|
| 24 |
+
|---|---|---|---|---|---|---|
|
| 25 |
+
| raw | 0.649 [0.573, 0.722] | 0.600 [0.531, 0.648] | 0.400 [0.207, 0.560] | 0.062 [0.038, 0.120] | 0.236 [0.222, 0.248] | 0.328 |
|
| 26 |
+
| temperature | 0.649 [0.573, 0.722] | 0.600 [0.531, 0.648] | 0.400 [0.207, 0.560] | 0.075 [0.029, 0.138] | 0.241 [0.234, 0.247] | 0.327 |
|
| 27 |
+
| platt | 0.649 [0.573, 0.722] | 0.584 [0.525, 0.647] | 0.781 [0.637, 0.890] | 0.049 [0.031, 0.125] | 0.239 [0.228, 0.248] | 0.350 |
|
| 28 |
+
|
| 29 |
+
| calibrator | coverage | cov. failures | cov. successes | singleton | ambiguous | empty | auto-accept rate | auto-accept error | failures auto-passed |
|
| 30 |
+
|---|---|---|---|---|---|---|---|---|---|
|
| 31 |
+
| raw | 0.885 | 0.976 | 0.800 | 0.352 | 0.648 | 0.000 | 0.000 | nan | 0/210 |
|
| 32 |
+
| temperature | 0.885 | 0.976 | 0.800 | 0.352 | 0.648 | 0.000 | 0.000 | nan | 0/210 |
|
| 33 |
+
| platt | 0.885 | 0.976 | 0.800 | 0.352 | 0.648 | 0.000 | 0.000 | nan | 0/210 |
|
| 34 |
+
|
| 35 |
+
Fitted calibrator parameters: `{'temperature': {'T': 2.302276181772167}, 'platt': {'a': 0.8318281581001736, 'b': -0.2557617121123847}}`
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
---
|
| 39 |
+
|
| 40 |
+
# Judge evaluation report (confidence layer fitted on `cal_ood`)
|
| 41 |
+
|
| 42 |
+
Confidence layer fitted on `cal_ood` only. 95% CIs from a bootstrap that resamples whole tasks. Conformal: Mondrian (per-class), alpha = 0.1, so the target is 90% coverage for failures and successes separately. Selective policy: threshold chosen on `cal_ood` for 5% error on auto-accepted verdicts.
|
| 43 |
+
|
| 44 |
+
## qwen3b-zeroshot
|
| 45 |
+
|
| 46 |
+
### split: `test_id` (n = 3064, failures = 1511, tasks = 96)
|
| 47 |
+
|
| 48 |
+
| calibrator | AUROC | bal. acc | failure recall | ECE | Brier | AURC |
|
| 49 |
+
|---|---|---|---|---|---|---|
|
| 50 |
+
| raw | 0.588 [0.562, 0.620] | 0.523 [0.512, 0.536] | 0.097 [0.066, 0.143] | 0.070 [0.049, 0.097] | 0.250 [0.244, 0.256] | 0.406 |
|
| 51 |
+
| temperature | 0.588 [0.562, 0.620] | 0.523 [0.512, 0.536] | 0.097 [0.066, 0.143] | 0.049 [0.033, 0.076] | 0.248 [0.244, 0.251] | 0.405 |
|
| 52 |
+
| platt | 0.588 [0.562, 0.620] | 0.558 [0.529, 0.589] | 0.499 [0.354, 0.644] | 0.022 [0.016, 0.055] | 0.244 [0.239, 0.250] | 0.388 |
|
| 53 |
+
|
| 54 |
+
| calibrator | coverage | cov. failures | cov. successes | singleton | ambiguous | empty | auto-accept rate | auto-accept error | failures auto-passed |
|
| 55 |
+
|---|---|---|---|---|---|---|---|---|---|
|
| 56 |
+
| raw | 0.905 | 0.822 | 0.986 | 0.256 | 0.744 | 0.000 | 0.000 | nan | 0/1511 |
|
| 57 |
+
| temperature | 0.905 | 0.822 | 0.986 | 0.256 | 0.744 | 0.000 | 0.000 | nan | 0/1511 |
|
| 58 |
+
| platt | 0.905 | 0.822 | 0.986 | 0.256 | 0.744 | 0.000 | 0.000 | nan | 0/1511 |
|
| 59 |
+
|
| 60 |
+
### split: `test_ood` (n = 435, failures = 210, tasks = 24)
|
| 61 |
+
|
| 62 |
+
| calibrator | AUROC | bal. acc | failure recall | ECE | Brier | AURC |
|
| 63 |
+
|---|---|---|---|---|---|---|
|
| 64 |
+
| raw | 0.649 [0.573, 0.722] | 0.600 [0.531, 0.648] | 0.400 [0.207, 0.560] | 0.062 [0.038, 0.120] | 0.236 [0.222, 0.248] | 0.328 |
|
| 65 |
+
| temperature | 0.649 [0.573, 0.722] | 0.600 [0.531, 0.648] | 0.400 [0.207, 0.560] | 0.052 [0.031, 0.116] | 0.238 [0.227, 0.247] | 0.327 |
|
| 66 |
+
| platt | 0.649 [0.573, 0.722] | 0.584 [0.525, 0.647] | 0.781 [0.637, 0.890] | 0.064 [0.051, 0.126] | 0.241 [0.223, 0.254] | 0.363 |
|
| 67 |
+
|
| 68 |
+
| calibrator | coverage | cov. failures | cov. successes | singleton | ambiguous | empty | auto-accept rate | auto-accept error | failures auto-passed |
|
| 69 |
+
|---|---|---|---|---|---|---|---|---|---|
|
| 70 |
+
| raw | 0.952 | 0.943 | 0.960 | 0.182 | 0.818 | 0.000 | 0.000 | nan | 0/210 |
|
| 71 |
+
| temperature | 0.952 | 0.943 | 0.960 | 0.182 | 0.818 | 0.000 | 0.000 | nan | 0/210 |
|
| 72 |
+
| platt | 0.952 | 0.943 | 0.960 | 0.182 | 0.818 | 0.000 | 0.000 | nan | 0/210 |
|
| 73 |
+
|
| 74 |
+
Fitted calibrator parameters: `{'temperature': {'T': 1.350585502551474}, 'platt': {'a': 1.3042553405376198, 'b': -0.4588611181412279}}`
|
results_zeroshot/results.json
ADDED
|
@@ -0,0 +1,746 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cal": {
|
| 3 |
+
"qwen3b-zeroshot": {
|
| 4 |
+
"raw": {
|
| 5 |
+
"params": {},
|
| 6 |
+
"splits": {
|
| 7 |
+
"test_id": {
|
| 8 |
+
"n": 3064,
|
| 9 |
+
"n_fail": 1511,
|
| 10 |
+
"n_tasks": 96,
|
| 11 |
+
"auroc": [
|
| 12 |
+
0.5881081129455041,
|
| 13 |
+
0.5615584876140401,
|
| 14 |
+
0.620453293513658,
|
| 15 |
+
2000
|
| 16 |
+
],
|
| 17 |
+
"bal_acc": [
|
| 18 |
+
0.52319969078443,
|
| 19 |
+
0.5122780550688059,
|
| 20 |
+
0.5360388428825837,
|
| 21 |
+
2000
|
| 22 |
+
],
|
| 23 |
+
"fail_recall": [
|
| 24 |
+
0.09662475181998677,
|
| 25 |
+
0.06570930286842333,
|
| 26 |
+
0.14286571428571423,
|
| 27 |
+
2000
|
| 28 |
+
],
|
| 29 |
+
"ece": [
|
| 30 |
+
0.07013558626126982,
|
| 31 |
+
0.0492139903255565,
|
| 32 |
+
0.09686979776193873,
|
| 33 |
+
2000
|
| 34 |
+
],
|
| 35 |
+
"brier": [
|
| 36 |
+
0.25016195179469763,
|
| 37 |
+
0.24448700705703538,
|
| 38 |
+
0.25558803372828165,
|
| 39 |
+
2000
|
| 40 |
+
],
|
| 41 |
+
"nll": [
|
| 42 |
+
0.6936304163132704,
|
| 43 |
+
0.6817907519778228,
|
| 44 |
+
0.7049684043220722,
|
| 45 |
+
2000
|
| 46 |
+
],
|
| 47 |
+
"aurc": 0.4062771020381949,
|
| 48 |
+
"conformal": {
|
| 49 |
+
"coverage": 0.9386422976501305,
|
| 50 |
+
"cov_failures": 0.9272005294506949,
|
| 51 |
+
"cov_successes": 0.9497746297488732,
|
| 52 |
+
"singleton_rate": 0.1814621409921671,
|
| 53 |
+
"ambiguous_rate": 0.8185378590078329,
|
| 54 |
+
"empty_rate": 0.0,
|
| 55 |
+
"singleton_acc": 0.6618705035971223
|
| 56 |
+
},
|
| 57 |
+
"selective": {
|
| 58 |
+
"threshold": 1.01,
|
| 59 |
+
"auto_rate": 0.0,
|
| 60 |
+
"auto_risk": NaN,
|
| 61 |
+
"missed_failures_auto": 0,
|
| 62 |
+
"n_failures": 1511
|
| 63 |
+
}
|
| 64 |
+
},
|
| 65 |
+
"test_ood": {
|
| 66 |
+
"n": 435,
|
| 67 |
+
"n_fail": 210,
|
| 68 |
+
"n_tasks": 24,
|
| 69 |
+
"auroc": [
|
| 70 |
+
0.6492698412698412,
|
| 71 |
+
0.5731300802934178,
|
| 72 |
+
0.7216137075606696,
|
| 73 |
+
2000
|
| 74 |
+
],
|
| 75 |
+
"bal_acc": [
|
| 76 |
+
0.6000000000000001,
|
| 77 |
+
0.5309873040738532,
|
| 78 |
+
0.6477282357844689,
|
| 79 |
+
2000
|
| 80 |
+
],
|
| 81 |
+
"fail_recall": [
|
| 82 |
+
0.4,
|
| 83 |
+
0.20651742581090407,
|
| 84 |
+
0.5603186534606768,
|
| 85 |
+
2000
|
| 86 |
+
],
|
| 87 |
+
"ece": [
|
| 88 |
+
0.06242687245138015,
|
| 89 |
+
0.03834151261073173,
|
| 90 |
+
0.11960657478341974,
|
| 91 |
+
2000
|
| 92 |
+
],
|
| 93 |
+
"brier": [
|
| 94 |
+
0.23550880716303288,
|
| 95 |
+
0.22156962284512688,
|
| 96 |
+
0.2475120745142879,
|
| 97 |
+
2000
|
| 98 |
+
],
|
| 99 |
+
"nll": [
|
| 100 |
+
0.6634765624866273,
|
| 101 |
+
0.6347583718419573,
|
| 102 |
+
0.6881070513315676,
|
| 103 |
+
2000
|
| 104 |
+
],
|
| 105 |
+
"aurc": 0.327978420654553,
|
| 106 |
+
"conformal": {
|
| 107 |
+
"coverage": 0.8850574712643678,
|
| 108 |
+
"cov_failures": 0.9761904761904762,
|
| 109 |
+
"cov_successes": 0.8,
|
| 110 |
+
"singleton_rate": 0.35172413793103446,
|
| 111 |
+
"ambiguous_rate": 0.6482758620689655,
|
| 112 |
+
"empty_rate": 0.0,
|
| 113 |
+
"singleton_acc": 0.673202614379085
|
| 114 |
+
},
|
| 115 |
+
"selective": {
|
| 116 |
+
"threshold": 1.01,
|
| 117 |
+
"auto_rate": 0.0,
|
| 118 |
+
"auto_risk": NaN,
|
| 119 |
+
"missed_failures_auto": 0,
|
| 120 |
+
"n_failures": 210
|
| 121 |
+
}
|
| 122 |
+
}
|
| 123 |
+
}
|
| 124 |
+
},
|
| 125 |
+
"temperature": {
|
| 126 |
+
"params": {
|
| 127 |
+
"T": 2.302276181772167
|
| 128 |
+
},
|
| 129 |
+
"splits": {
|
| 130 |
+
"test_id": {
|
| 131 |
+
"n": 3064,
|
| 132 |
+
"n_fail": 1511,
|
| 133 |
+
"n_tasks": 96,
|
| 134 |
+
"auroc": [
|
| 135 |
+
0.5881081129455041,
|
| 136 |
+
0.5615584876140401,
|
| 137 |
+
0.620453293513658,
|
| 138 |
+
2000
|
| 139 |
+
],
|
| 140 |
+
"bal_acc": [
|
| 141 |
+
0.52319969078443,
|
| 142 |
+
0.5122780550688059,
|
| 143 |
+
0.5360388428825837,
|
| 144 |
+
2000
|
| 145 |
+
],
|
| 146 |
+
"fail_recall": [
|
| 147 |
+
0.09662475181998677,
|
| 148 |
+
0.06570930286842333,
|
| 149 |
+
0.14286571428571423,
|
| 150 |
+
2000
|
| 151 |
+
],
|
| 152 |
+
"ece": [
|
| 153 |
+
0.04089279168019316,
|
| 154 |
+
0.022998249133055454,
|
| 155 |
+
0.06610074738343233,
|
| 156 |
+
2000
|
| 157 |
+
],
|
| 158 |
+
"brier": [
|
| 159 |
+
0.24688715708091669,
|
| 160 |
+
0.24462157682014538,
|
| 161 |
+
0.24875152190672947,
|
| 162 |
+
2000
|
| 163 |
+
],
|
| 164 |
+
"nll": [
|
| 165 |
+
0.6868614546943289,
|
| 166 |
+
0.6822873033455699,
|
| 167 |
+
0.690618442443978,
|
| 168 |
+
2000
|
| 169 |
+
],
|
| 170 |
+
"aurc": 0.40587132633582124,
|
| 171 |
+
"conformal": {
|
| 172 |
+
"coverage": 0.9386422976501305,
|
| 173 |
+
"cov_failures": 0.9272005294506949,
|
| 174 |
+
"cov_successes": 0.9497746297488732,
|
| 175 |
+
"singleton_rate": 0.1814621409921671,
|
| 176 |
+
"ambiguous_rate": 0.8185378590078329,
|
| 177 |
+
"empty_rate": 0.0,
|
| 178 |
+
"singleton_acc": 0.6618705035971223
|
| 179 |
+
},
|
| 180 |
+
"selective": {
|
| 181 |
+
"threshold": 1.01,
|
| 182 |
+
"auto_rate": 0.0,
|
| 183 |
+
"auto_risk": NaN,
|
| 184 |
+
"missed_failures_auto": 0,
|
| 185 |
+
"n_failures": 1511
|
| 186 |
+
}
|
| 187 |
+
},
|
| 188 |
+
"test_ood": {
|
| 189 |
+
"n": 435,
|
| 190 |
+
"n_fail": 210,
|
| 191 |
+
"n_tasks": 24,
|
| 192 |
+
"auroc": [
|
| 193 |
+
0.6492698412698412,
|
| 194 |
+
0.5731300802934178,
|
| 195 |
+
0.7216137075606696,
|
| 196 |
+
2000
|
| 197 |
+
],
|
| 198 |
+
"bal_acc": [
|
| 199 |
+
0.6000000000000001,
|
| 200 |
+
0.5309873040738532,
|
| 201 |
+
0.6477282357844689,
|
| 202 |
+
2000
|
| 203 |
+
],
|
| 204 |
+
"fail_recall": [
|
| 205 |
+
0.4,
|
| 206 |
+
0.20651742581090407,
|
| 207 |
+
0.5603186534606768,
|
| 208 |
+
2000
|
| 209 |
+
],
|
| 210 |
+
"ece": [
|
| 211 |
+
0.07469414676711765,
|
| 212 |
+
0.02851228452582731,
|
| 213 |
+
0.13785159324174676,
|
| 214 |
+
2000
|
| 215 |
+
],
|
| 216 |
+
"brier": [
|
| 217 |
+
0.2414382709347963,
|
| 218 |
+
0.2344511454740798,
|
| 219 |
+
0.24696394414160605,
|
| 220 |
+
2000
|
| 221 |
+
],
|
| 222 |
+
"nll": [
|
| 223 |
+
0.6759175865523669,
|
| 224 |
+
0.661840587922183,
|
| 225 |
+
0.6870680395125128,
|
| 226 |
+
2000
|
| 227 |
+
],
|
| 228 |
+
"aurc": 0.32725661347370577,
|
| 229 |
+
"conformal": {
|
| 230 |
+
"coverage": 0.8850574712643678,
|
| 231 |
+
"cov_failures": 0.9761904761904762,
|
| 232 |
+
"cov_successes": 0.8,
|
| 233 |
+
"singleton_rate": 0.35172413793103446,
|
| 234 |
+
"ambiguous_rate": 0.6482758620689655,
|
| 235 |
+
"empty_rate": 0.0,
|
| 236 |
+
"singleton_acc": 0.673202614379085
|
| 237 |
+
},
|
| 238 |
+
"selective": {
|
| 239 |
+
"threshold": 1.01,
|
| 240 |
+
"auto_rate": 0.0,
|
| 241 |
+
"auto_risk": NaN,
|
| 242 |
+
"missed_failures_auto": 0,
|
| 243 |
+
"n_failures": 210
|
| 244 |
+
}
|
| 245 |
+
}
|
| 246 |
+
}
|
| 247 |
+
},
|
| 248 |
+
"platt": {
|
| 249 |
+
"params": {
|
| 250 |
+
"a": 0.8318281581001736,
|
| 251 |
+
"b": -0.2557617121123847
|
| 252 |
+
},
|
| 253 |
+
"splits": {
|
| 254 |
+
"test_id": {
|
| 255 |
+
"n": 3064,
|
| 256 |
+
"n_fail": 1511,
|
| 257 |
+
"n_tasks": 96,
|
| 258 |
+
"auroc": [
|
| 259 |
+
0.5881081129455041,
|
| 260 |
+
0.5615584876140401,
|
| 261 |
+
0.620453293513658,
|
| 262 |
+
2000
|
| 263 |
+
],
|
| 264 |
+
"bal_acc": [
|
| 265 |
+
0.5582608840173137,
|
| 266 |
+
0.5293926100030732,
|
| 267 |
+
0.589269384663828,
|
| 268 |
+
2000
|
| 269 |
+
],
|
| 270 |
+
"fail_recall": [
|
| 271 |
+
0.4990072799470549,
|
| 272 |
+
0.3541347212817693,
|
| 273 |
+
0.6441889392294154,
|
| 274 |
+
2000
|
| 275 |
+
],
|
| 276 |
+
"ece": [
|
| 277 |
+
0.013891003347815463,
|
| 278 |
+
0.013261808948733574,
|
| 279 |
+
0.04751720060950554,
|
| 280 |
+
2000
|
| 281 |
+
],
|
| 282 |
+
"brier": [
|
| 283 |
+
0.2442306787021024,
|
| 284 |
+
0.24069196247478822,
|
| 285 |
+
0.24760390092703666,
|
| 286 |
+
2000
|
| 287 |
+
],
|
| 288 |
+
"nll": [
|
| 289 |
+
0.6815600922740651,
|
| 290 |
+
0.6743420936069058,
|
| 291 |
+
0.6885663937768228,
|
| 292 |
+
2000
|
| 293 |
+
],
|
| 294 |
+
"aurc": 0.38849615881965,
|
| 295 |
+
"conformal": {
|
| 296 |
+
"coverage": 0.9386422976501305,
|
| 297 |
+
"cov_failures": 0.9272005294506949,
|
| 298 |
+
"cov_successes": 0.9497746297488732,
|
| 299 |
+
"singleton_rate": 0.1814621409921671,
|
| 300 |
+
"ambiguous_rate": 0.8185378590078329,
|
| 301 |
+
"empty_rate": 0.0,
|
| 302 |
+
"singleton_acc": 0.6618705035971223
|
| 303 |
+
},
|
| 304 |
+
"selective": {
|
| 305 |
+
"threshold": 1.01,
|
| 306 |
+
"auto_rate": 0.0,
|
| 307 |
+
"auto_risk": NaN,
|
| 308 |
+
"missed_failures_auto": 0,
|
| 309 |
+
"n_failures": 1511
|
| 310 |
+
}
|
| 311 |
+
},
|
| 312 |
+
"test_ood": {
|
| 313 |
+
"n": 435,
|
| 314 |
+
"n_fail": 210,
|
| 315 |
+
"n_tasks": 24,
|
| 316 |
+
"auroc": [
|
| 317 |
+
0.6492698412698412,
|
| 318 |
+
0.5731300802934178,
|
| 319 |
+
0.7216137075606696,
|
| 320 |
+
2000
|
| 321 |
+
],
|
| 322 |
+
"bal_acc": [
|
| 323 |
+
0.5838095238095238,
|
| 324 |
+
0.524885207247456,
|
| 325 |
+
0.6470678891433621,
|
| 326 |
+
2000
|
| 327 |
+
],
|
| 328 |
+
"fail_recall": [
|
| 329 |
+
0.780952380952381,
|
| 330 |
+
0.6367424242424242,
|
| 331 |
+
0.8902004549111839,
|
| 332 |
+
2000
|
| 333 |
+
],
|
| 334 |
+
"ece": [
|
| 335 |
+
0.04852613779381342,
|
| 336 |
+
0.031479767609847276,
|
| 337 |
+
0.12515811867306947,
|
| 338 |
+
2000
|
| 339 |
+
],
|
| 340 |
+
"brier": [
|
| 341 |
+
0.23923191716170467,
|
| 342 |
+
0.22825175735156644,
|
| 343 |
+
0.2481914572306815,
|
| 344 |
+
2000
|
| 345 |
+
],
|
| 346 |
+
"nll": [
|
| 347 |
+
0.6714613211516874,
|
| 348 |
+
0.649056359388267,
|
| 349 |
+
0.6899884522312677,
|
| 350 |
+
2000
|
| 351 |
+
],
|
| 352 |
+
"aurc": 0.3497175102507539,
|
| 353 |
+
"conformal": {
|
| 354 |
+
"coverage": 0.8850574712643678,
|
| 355 |
+
"cov_failures": 0.9761904761904762,
|
| 356 |
+
"cov_successes": 0.8,
|
| 357 |
+
"singleton_rate": 0.35172413793103446,
|
| 358 |
+
"ambiguous_rate": 0.6482758620689655,
|
| 359 |
+
"empty_rate": 0.0,
|
| 360 |
+
"singleton_acc": 0.673202614379085
|
| 361 |
+
},
|
| 362 |
+
"selective": {
|
| 363 |
+
"threshold": 1.01,
|
| 364 |
+
"auto_rate": 0.0,
|
| 365 |
+
"auto_risk": NaN,
|
| 366 |
+
"missed_failures_auto": 0,
|
| 367 |
+
"n_failures": 210
|
| 368 |
+
}
|
| 369 |
+
}
|
| 370 |
+
}
|
| 371 |
+
}
|
| 372 |
+
}
|
| 373 |
+
},
|
| 374 |
+
"cal_ood": {
|
| 375 |
+
"qwen3b-zeroshot": {
|
| 376 |
+
"raw": {
|
| 377 |
+
"params": {},
|
| 378 |
+
"splits": {
|
| 379 |
+
"test_id": {
|
| 380 |
+
"n": 3064,
|
| 381 |
+
"n_fail": 1511,
|
| 382 |
+
"n_tasks": 96,
|
| 383 |
+
"auroc": [
|
| 384 |
+
0.5881081129455041,
|
| 385 |
+
0.5615584876140401,
|
| 386 |
+
0.620453293513658,
|
| 387 |
+
2000
|
| 388 |
+
],
|
| 389 |
+
"bal_acc": [
|
| 390 |
+
0.52319969078443,
|
| 391 |
+
0.5122780550688059,
|
| 392 |
+
0.5360388428825837,
|
| 393 |
+
2000
|
| 394 |
+
],
|
| 395 |
+
"fail_recall": [
|
| 396 |
+
0.09662475181998677,
|
| 397 |
+
0.06570930286842333,
|
| 398 |
+
0.14286571428571423,
|
| 399 |
+
2000
|
| 400 |
+
],
|
| 401 |
+
"ece": [
|
| 402 |
+
0.07013558626126982,
|
| 403 |
+
0.0492139903255565,
|
| 404 |
+
0.09686979776193873,
|
| 405 |
+
2000
|
| 406 |
+
],
|
| 407 |
+
"brier": [
|
| 408 |
+
0.25016195179469763,
|
| 409 |
+
0.24448700705703538,
|
| 410 |
+
0.25558803372828165,
|
| 411 |
+
2000
|
| 412 |
+
],
|
| 413 |
+
"nll": [
|
| 414 |
+
0.6936304163132704,
|
| 415 |
+
0.6817907519778228,
|
| 416 |
+
0.7049684043220722,
|
| 417 |
+
2000
|
| 418 |
+
],
|
| 419 |
+
"aurc": 0.4062771020381949,
|
| 420 |
+
"conformal": {
|
| 421 |
+
"coverage": 0.9050261096605744,
|
| 422 |
+
"cov_failures": 0.8219722038385175,
|
| 423 |
+
"cov_successes": 0.9858338699291693,
|
| 424 |
+
"singleton_rate": 0.2558746736292428,
|
| 425 |
+
"ambiguous_rate": 0.7441253263707572,
|
| 426 |
+
"empty_rate": 0.0,
|
| 427 |
+
"singleton_acc": 0.6288265306122449
|
| 428 |
+
},
|
| 429 |
+
"selective": {
|
| 430 |
+
"threshold": 1.01,
|
| 431 |
+
"auto_rate": 0.0,
|
| 432 |
+
"auto_risk": NaN,
|
| 433 |
+
"missed_failures_auto": 0,
|
| 434 |
+
"n_failures": 1511
|
| 435 |
+
}
|
| 436 |
+
},
|
| 437 |
+
"test_ood": {
|
| 438 |
+
"n": 435,
|
| 439 |
+
"n_fail": 210,
|
| 440 |
+
"n_tasks": 24,
|
| 441 |
+
"auroc": [
|
| 442 |
+
0.6492698412698412,
|
| 443 |
+
0.5731300802934178,
|
| 444 |
+
0.7216137075606696,
|
| 445 |
+
2000
|
| 446 |
+
],
|
| 447 |
+
"bal_acc": [
|
| 448 |
+
0.6000000000000001,
|
| 449 |
+
0.5309873040738532,
|
| 450 |
+
0.6477282357844689,
|
| 451 |
+
2000
|
| 452 |
+
],
|
| 453 |
+
"fail_recall": [
|
| 454 |
+
0.4,
|
| 455 |
+
0.20651742581090407,
|
| 456 |
+
0.5603186534606768,
|
| 457 |
+
2000
|
| 458 |
+
],
|
| 459 |
+
"ece": [
|
| 460 |
+
0.06242687245138015,
|
| 461 |
+
0.03834151261073173,
|
| 462 |
+
0.11960657478341974,
|
| 463 |
+
2000
|
| 464 |
+
],
|
| 465 |
+
"brier": [
|
| 466 |
+
0.23550880716303288,
|
| 467 |
+
0.22156962284512688,
|
| 468 |
+
0.2475120745142879,
|
| 469 |
+
2000
|
| 470 |
+
],
|
| 471 |
+
"nll": [
|
| 472 |
+
0.6634765624866273,
|
| 473 |
+
0.6347583718419573,
|
| 474 |
+
0.6881070513315676,
|
| 475 |
+
2000
|
| 476 |
+
],
|
| 477 |
+
"aurc": 0.327978420654553,
|
| 478 |
+
"conformal": {
|
| 479 |
+
"coverage": 0.9517241379310345,
|
| 480 |
+
"cov_failures": 0.9428571428571428,
|
| 481 |
+
"cov_successes": 0.96,
|
| 482 |
+
"singleton_rate": 0.18160919540229886,
|
| 483 |
+
"ambiguous_rate": 0.8183908045977012,
|
| 484 |
+
"empty_rate": 0.0,
|
| 485 |
+
"singleton_acc": 0.7341772151898734
|
| 486 |
+
},
|
| 487 |
+
"selective": {
|
| 488 |
+
"threshold": 1.01,
|
| 489 |
+
"auto_rate": 0.0,
|
| 490 |
+
"auto_risk": NaN,
|
| 491 |
+
"missed_failures_auto": 0,
|
| 492 |
+
"n_failures": 210
|
| 493 |
+
}
|
| 494 |
+
}
|
| 495 |
+
}
|
| 496 |
+
},
|
| 497 |
+
"temperature": {
|
| 498 |
+
"params": {
|
| 499 |
+
"T": 1.350585502551474
|
| 500 |
+
},
|
| 501 |
+
"splits": {
|
| 502 |
+
"test_id": {
|
| 503 |
+
"n": 3064,
|
| 504 |
+
"n_fail": 1511,
|
| 505 |
+
"n_tasks": 96,
|
| 506 |
+
"auroc": [
|
| 507 |
+
0.5881081129455041,
|
| 508 |
+
0.5615584876140401,
|
| 509 |
+
0.620453293513658,
|
| 510 |
+
2000
|
| 511 |
+
],
|
| 512 |
+
"bal_acc": [
|
| 513 |
+
0.52319969078443,
|
| 514 |
+
0.5122780550688059,
|
| 515 |
+
0.5360388428825837,
|
| 516 |
+
2000
|
| 517 |
+
],
|
| 518 |
+
"fail_recall": [
|
| 519 |
+
0.09662475181998677,
|
| 520 |
+
0.06570930286842333,
|
| 521 |
+
0.14286571428571423,
|
| 522 |
+
2000
|
| 523 |
+
],
|
| 524 |
+
"ece": [
|
| 525 |
+
0.04934903746952459,
|
| 526 |
+
0.032913436735470834,
|
| 527 |
+
0.07565283269204379,
|
| 528 |
+
2000
|
| 529 |
+
],
|
| 530 |
+
"brier": [
|
| 531 |
+
0.2477172864523674,
|
| 532 |
+
0.24370083799779305,
|
| 533 |
+
0.25140488827212826,
|
| 534 |
+
2000
|
| 535 |
+
],
|
| 536 |
+
"nll": [
|
| 537 |
+
0.6884904282300599,
|
| 538 |
+
0.6802768183584917,
|
| 539 |
+
0.6960192931793051,
|
| 540 |
+
2000
|
| 541 |
+
],
|
| 542 |
+
"aurc": 0.40546215467715163,
|
| 543 |
+
"conformal": {
|
| 544 |
+
"coverage": 0.9050261096605744,
|
| 545 |
+
"cov_failures": 0.8219722038385175,
|
| 546 |
+
"cov_successes": 0.9858338699291693,
|
| 547 |
+
"singleton_rate": 0.2558746736292428,
|
| 548 |
+
"ambiguous_rate": 0.7441253263707572,
|
| 549 |
+
"empty_rate": 0.0,
|
| 550 |
+
"singleton_acc": 0.6288265306122449
|
| 551 |
+
},
|
| 552 |
+
"selective": {
|
| 553 |
+
"threshold": 1.01,
|
| 554 |
+
"auto_rate": 0.0,
|
| 555 |
+
"auto_risk": NaN,
|
| 556 |
+
"missed_failures_auto": 0,
|
| 557 |
+
"n_failures": 1511
|
| 558 |
+
}
|
| 559 |
+
},
|
| 560 |
+
"test_ood": {
|
| 561 |
+
"n": 435,
|
| 562 |
+
"n_fail": 210,
|
| 563 |
+
"n_tasks": 24,
|
| 564 |
+
"auroc": [
|
| 565 |
+
0.6492698412698412,
|
| 566 |
+
0.5731300802934178,
|
| 567 |
+
0.7216137075606696,
|
| 568 |
+
2000
|
| 569 |
+
],
|
| 570 |
+
"bal_acc": [
|
| 571 |
+
0.6000000000000001,
|
| 572 |
+
0.5309873040738532,
|
| 573 |
+
0.6477282357844689,
|
| 574 |
+
2000
|
| 575 |
+
],
|
| 576 |
+
"fail_recall": [
|
| 577 |
+
0.4,
|
| 578 |
+
0.20651742581090407,
|
| 579 |
+
0.5603186534606768,
|
| 580 |
+
2000
|
| 581 |
+
],
|
| 582 |
+
"ece": [
|
| 583 |
+
0.05249099670449449,
|
| 584 |
+
0.03146412411664827,
|
| 585 |
+
0.11581026831895216,
|
| 586 |
+
2000
|
| 587 |
+
],
|
| 588 |
+
"brier": [
|
| 589 |
+
0.2375322497166688,
|
| 590 |
+
0.22652405023646874,
|
| 591 |
+
0.24665033140761136,
|
| 592 |
+
2000
|
| 593 |
+
],
|
| 594 |
+
"nll": [
|
| 595 |
+
0.6678240964549935,
|
| 596 |
+
0.6453237570904331,
|
| 597 |
+
0.686328200417129,
|
| 598 |
+
2000
|
| 599 |
+
],
|
| 600 |
+
"aurc": 0.3272118802383265,
|
| 601 |
+
"conformal": {
|
| 602 |
+
"coverage": 0.9517241379310345,
|
| 603 |
+
"cov_failures": 0.9428571428571428,
|
| 604 |
+
"cov_successes": 0.96,
|
| 605 |
+
"singleton_rate": 0.18160919540229886,
|
| 606 |
+
"ambiguous_rate": 0.8183908045977012,
|
| 607 |
+
"empty_rate": 0.0,
|
| 608 |
+
"singleton_acc": 0.7341772151898734
|
| 609 |
+
},
|
| 610 |
+
"selective": {
|
| 611 |
+
"threshold": 1.01,
|
| 612 |
+
"auto_rate": 0.0,
|
| 613 |
+
"auto_risk": NaN,
|
| 614 |
+
"missed_failures_auto": 0,
|
| 615 |
+
"n_failures": 210
|
| 616 |
+
}
|
| 617 |
+
}
|
| 618 |
+
}
|
| 619 |
+
},
|
| 620 |
+
"platt": {
|
| 621 |
+
"params": {
|
| 622 |
+
"a": 1.3042553405376198,
|
| 623 |
+
"b": -0.4588611181412279
|
| 624 |
+
},
|
| 625 |
+
"splits": {
|
| 626 |
+
"test_id": {
|
| 627 |
+
"n": 3064,
|
| 628 |
+
"n_fail": 1511,
|
| 629 |
+
"n_tasks": 96,
|
| 630 |
+
"auroc": [
|
| 631 |
+
0.5881081129455041,
|
| 632 |
+
0.5615584876140401,
|
| 633 |
+
0.620453293513658,
|
| 634 |
+
2000
|
| 635 |
+
],
|
| 636 |
+
"bal_acc": [
|
| 637 |
+
0.5582608840173137,
|
| 638 |
+
0.5293926100030732,
|
| 639 |
+
0.589269384663828,
|
| 640 |
+
2000
|
| 641 |
+
],
|
| 642 |
+
"fail_recall": [
|
| 643 |
+
0.4990072799470549,
|
| 644 |
+
0.3541347212817693,
|
| 645 |
+
0.6441889392294154,
|
| 646 |
+
2000
|
| 647 |
+
],
|
| 648 |
+
"ece": [
|
| 649 |
+
0.02171679518526829,
|
| 650 |
+
0.016024362618616825,
|
| 651 |
+
0.05481003550880384,
|
| 652 |
+
2000
|
| 653 |
+
],
|
| 654 |
+
"brier": [
|
| 655 |
+
0.24431282058145876,
|
| 656 |
+
0.23906801850623124,
|
| 657 |
+
0.24994230089819744,
|
| 658 |
+
2000
|
| 659 |
+
],
|
| 660 |
+
"nll": [
|
| 661 |
+
0.6822103333078446,
|
| 662 |
+
0.6708861345111907,
|
| 663 |
+
0.6945533333249818,
|
| 664 |
+
2000
|
| 665 |
+
],
|
| 666 |
+
"aurc": 0.3882078434780706,
|
| 667 |
+
"conformal": {
|
| 668 |
+
"coverage": 0.9050261096605744,
|
| 669 |
+
"cov_failures": 0.8219722038385175,
|
| 670 |
+
"cov_successes": 0.9858338699291693,
|
| 671 |
+
"singleton_rate": 0.2558746736292428,
|
| 672 |
+
"ambiguous_rate": 0.7441253263707572,
|
| 673 |
+
"empty_rate": 0.0,
|
| 674 |
+
"singleton_acc": 0.6288265306122449
|
| 675 |
+
},
|
| 676 |
+
"selective": {
|
| 677 |
+
"threshold": 1.01,
|
| 678 |
+
"auto_rate": 0.0,
|
| 679 |
+
"auto_risk": NaN,
|
| 680 |
+
"missed_failures_auto": 0,
|
| 681 |
+
"n_failures": 1511
|
| 682 |
+
}
|
| 683 |
+
},
|
| 684 |
+
"test_ood": {
|
| 685 |
+
"n": 435,
|
| 686 |
+
"n_fail": 210,
|
| 687 |
+
"n_tasks": 24,
|
| 688 |
+
"auroc": [
|
| 689 |
+
0.6492698412698412,
|
| 690 |
+
0.5731300802934178,
|
| 691 |
+
0.7216137075606696,
|
| 692 |
+
2000
|
| 693 |
+
],
|
| 694 |
+
"bal_acc": [
|
| 695 |
+
0.5838095238095238,
|
| 696 |
+
0.524885207247456,
|
| 697 |
+
0.6470678891433621,
|
| 698 |
+
2000
|
| 699 |
+
],
|
| 700 |
+
"fail_recall": [
|
| 701 |
+
0.780952380952381,
|
| 702 |
+
0.6367424242424242,
|
| 703 |
+
0.8902004549111839,
|
| 704 |
+
2000
|
| 705 |
+
],
|
| 706 |
+
"ece": [
|
| 707 |
+
0.06402905057605768,
|
| 708 |
+
0.050728169274638,
|
| 709 |
+
0.12589445460558268,
|
| 710 |
+
2000
|
| 711 |
+
],
|
| 712 |
+
"brier": [
|
| 713 |
+
0.24060302747490447,
|
| 714 |
+
0.22300926771732832,
|
| 715 |
+
0.2540140879802668,
|
| 716 |
+
2000
|
| 717 |
+
],
|
| 718 |
+
"nll": [
|
| 719 |
+
0.6749975342788578,
|
| 720 |
+
0.6380761877905141,
|
| 721 |
+
0.7041629135890062,
|
| 722 |
+
2000
|
| 723 |
+
],
|
| 724 |
+
"aurc": 0.3627541879846478,
|
| 725 |
+
"conformal": {
|
| 726 |
+
"coverage": 0.9517241379310345,
|
| 727 |
+
"cov_failures": 0.9428571428571428,
|
| 728 |
+
"cov_successes": 0.96,
|
| 729 |
+
"singleton_rate": 0.18160919540229886,
|
| 730 |
+
"ambiguous_rate": 0.8183908045977012,
|
| 731 |
+
"empty_rate": 0.0,
|
| 732 |
+
"singleton_acc": 0.7341772151898734
|
| 733 |
+
},
|
| 734 |
+
"selective": {
|
| 735 |
+
"threshold": 1.01,
|
| 736 |
+
"auto_rate": 0.0,
|
| 737 |
+
"auto_risk": NaN,
|
| 738 |
+
"missed_failures_auto": 0,
|
| 739 |
+
"n_failures": 210
|
| 740 |
+
}
|
| 741 |
+
}
|
| 742 |
+
}
|
| 743 |
+
}
|
| 744 |
+
}
|
| 745 |
+
}
|
| 746 |
+
}
|
results_zeroshot/scores.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
scripts/merge_scores.py
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Merge scores CSVs from separate scoring runs, then report.
|
| 2 |
+
|
| 3 |
+
The full grid is split across two Kaggle kernels (zero-shot; LoRA) because together they overrun a
|
| 4 |
+
single session. Each writes only its own model's rows, so the combined report is built from the
|
| 5 |
+
union. evaluate.py is CPU-only, so this step runs anywhere.
|
| 6 |
+
|
| 7 |
+
python scripts/merge_scores.py --out results/scores.csv \
|
| 8 |
+
runs/zeroshot/scores.csv runs/lora/scores.csv
|
| 9 |
+
python scripts/evaluate.py --scores results/scores.csv --out results/
|
| 10 |
+
"""
|
| 11 |
+
import argparse
|
| 12 |
+
import csv
|
| 13 |
+
from collections import Counter
|
| 14 |
+
from pathlib import Path
|
| 15 |
+
|
| 16 |
+
FIELDS = ["uid", "model", "split", "domain", "task", "label", "logit"]
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def main():
|
| 20 |
+
ap = argparse.ArgumentParser()
|
| 21 |
+
ap.add_argument("inputs", nargs="+")
|
| 22 |
+
ap.add_argument("--out", required=True)
|
| 23 |
+
a = ap.parse_args()
|
| 24 |
+
|
| 25 |
+
rows, seen = [], set()
|
| 26 |
+
for p in a.inputs:
|
| 27 |
+
with open(p) as f:
|
| 28 |
+
for r in csv.DictReader(f):
|
| 29 |
+
# (model, split, uid) is the identity of a score. A duplicate means the same episode
|
| 30 |
+
# was scored twice by the same model -- usually a kernel rerun appending to an
|
| 31 |
+
# existing file -- and silently keeping both would double-weight it in every metric.
|
| 32 |
+
key = (r["model"], r["split"], r["uid"])
|
| 33 |
+
if key in seen:
|
| 34 |
+
continue
|
| 35 |
+
seen.add(key)
|
| 36 |
+
rows.append(r)
|
| 37 |
+
|
| 38 |
+
Path(a.out).parent.mkdir(parents=True, exist_ok=True)
|
| 39 |
+
with open(a.out, "w", newline="") as f:
|
| 40 |
+
w = csv.DictWriter(f, fieldnames=FIELDS)
|
| 41 |
+
w.writeheader()
|
| 42 |
+
w.writerows({k: r[k] for k in FIELDS} for r in rows)
|
| 43 |
+
|
| 44 |
+
per = Counter((r["model"], r["split"]) for r in rows)
|
| 45 |
+
print(f"wrote {a.out}: {len(rows)} rows, {len({r['model'] for r in rows})} models")
|
| 46 |
+
for (m, s), n in sorted(per.items()):
|
| 47 |
+
print(f" {m:20s} {s:10s} n={n}")
|
| 48 |
+
|
| 49 |
+
# Every model must cover the same splits, or a cross-model comparison is reading different data.
|
| 50 |
+
models = sorted({r["model"] for r in rows})
|
| 51 |
+
splits = {m: {s for (mm, s) in per if mm == m} for m in models}
|
| 52 |
+
if len(models) > 1 and len({frozenset(v) for v in splits.values()}) > 1:
|
| 53 |
+
print("WARNING: models do not cover the same splits:",
|
| 54 |
+
{m: sorted(v) for m, v in splits.items()})
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
if __name__ == "__main__":
|
| 58 |
+
main()
|