Clarify metrics and add inference costs
#16
by jfbrown95 - opened
- README.md +40 -25
- benchmark-costs.json +79 -0
README.md
CHANGED
|
@@ -12,7 +12,11 @@ The pairs come from open-source projects in Rust, JavaScript, TypeScript, Python
|
|
| 12 |
|
| 13 |
## Reading the results
|
| 14 |
|
| 15 |
-
AP (average precision)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
## Bugs
|
| 18 |
|
|
@@ -20,21 +24,25 @@ AP (average precision) measures ranking across score cutoffs. For the other metr
|
|
| 20 |
|
| 21 |
[Download public bug pairs](https://huggingface.co/datasets/perchscan/bug-pairs-public)
|
| 22 |
|
| 23 |
-
| Model | AP | Precision at 0.5 | Recall at 0.5 | F1 at 0.5 | TP | FP | FN | Pair order |
|
| 24 |
-
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 25 |
-
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | **47.6%** | **49.9%** | **22.0%** | **30.6%** | **410** | 412 | **1451** | 42.5% |
|
| 26 |
-
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B)† | 44.0% | 44.9% | 13.9% | 21.2% | 258 | 317 | 1603 | **46.9%** |
|
| 27 |
-
| [JevK5](https://huggingface.co/alibiserikbay/JevK5) | 44.1% | 47.5% | 7.6% | 13.1% | 141 | 156 | 1720 | 32.1% |
|
| 28 |
-
| [jev-lite](https://huggingface.co/vagmi/jev-lite) | 43.7% | 44.8% | 2.3% | 4.4% | 43 | **53** | 1818 | 22.4% |
|
|
|
|
|
|
|
| 29 |
|
| 30 |
### Private — 498 pairs
|
| 31 |
|
| 32 |
-
| Model | AP | Precision at 0.5 | Recall at 0.5 | F1 at 0.5 | TP | FP | FN | Pair order |
|
| 33 |
-
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 34 |
-
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | **48.6%** | 50.7% | **24.1%** | **32.6%** | **102** | 99 | **322** | **43.4%** |
|
| 35 |
-
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B)† | 45.2% | 44.6% | 17.5% | 25.1% | 74 | 92 | 350 | **43.4%** |
|
| 36 |
-
| [JevK5](https://huggingface.co/alibiserikbay/JevK5) | 45.8% | 46.4% | 9.2% | 15.4% | 39 | 45 | 385 | 32.7% |
|
| 37 |
-
| [jev-lite](https://huggingface.co/vagmi/jev-lite) | 45.2% | **60.0%** | 3.5% | 6.7% | 15 | **10** | 409 | 22.7% |
|
|
|
|
|
|
|
| 38 |
|
| 39 |
## Security
|
| 40 |
|
|
@@ -42,29 +50,36 @@ AP (average precision) measures ranking across score cutoffs. For the other metr
|
|
| 42 |
|
| 43 |
[Download public security pairs](https://huggingface.co/datasets/perchscan/security-pairs-public)
|
| 44 |
|
| 45 |
-
| Model | AP | Precision at 0.5 | Recall at 0.5 | F1 at 0.5 | TP | FP | FN | Pair order |
|
| 46 |
-
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 47 |
-
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B)† | 44.0% | 43.6% | **64.9%** | **52.1%** | **741** | 959 | **401** | **41.5%** |
|
| 48 |
-
| [JevK5](https://huggingface.co/alibiserikbay/JevK5) | 44.8% | 46.4% | 12.4% | 19.6% | 142 | 164 | 1000 | 30.6% |
|
| 49 |
-
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | **49.2%** | **54.4%** | 10.2% | 17.2% | 117 | 98 | 1025 | 40.5% |
|
| 50 |
-
| [jev-lite](https://huggingface.co/vagmi/jev-lite) | 43.3% | 36.0% | 3.2% | 5.8% | 36 | **64** | 1106 | 22.9% |
|
|
|
|
|
|
|
| 51 |
|
| 52 |
### Private — 439 pairs
|
| 53 |
|
| 54 |
-
| Model | AP | Precision at 0.5 | Recall at 0.5 | F1 at 0.5 | TP | FP | FN | Pair order |
|
| 55 |
-
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 56 |
-
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B)† | 47.1% | 46.9% | **67.8%** | **55.4%** | **270** | 306 | **128** | **52.8%** |
|
| 57 |
-
| [JevK5](https://huggingface.co/alibiserikbay/JevK5) | 47.4% | 45.0% | 4.5% | 8.2% | 18 | 22 | 380 | 37.9% |
|
| 58 |
-
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | **48.9%** | **52.6%** | 2.5% | 4.8% | 10 | **9** | 388 | 36.2% |
|
| 59 |
-
| [jev-lite](https://huggingface.co/vagmi/jev-lite) | 47.3% | 43.8% | 1.8% | 3.4% | 7 | **9** | 391 | 29.4% |
|
|
|
|
|
|
|
| 60 |
|
| 61 |
† CLM-v0.1-8B uses its choice head with a 6,144-token encoder. All models are scored on the same method sides and labels within each track.
|
| 62 |
|
|
|
|
|
|
|
| 63 |
## Files
|
| 64 |
|
| 65 |
- [`benchmark.py`](https://huggingface.co/datasets/perchscan/benchmark-results/blob/main/benchmark.py): run a model on the public pairs and calculate the metrics in these tables.
|
| 66 |
- [`adapters/`](https://huggingface.co/datasets/perchscan/benchmark-results/tree/main/adapters): example runners for the unmodified open-source models in the tables.
|
| 67 |
- `results.jsonl`: one aggregate report per domain, track, model, and protocol.
|
|
|
|
| 68 |
- `split-summary.json`: split sizes and whole-file SHA-256 values. It contains no private rows or repository list.
|
| 69 |
- `predictions/`: public-pair probabilities for auditing the public scores. No private predictions are included.
|
| 70 |
|
|
|
|
| 12 |
|
| 13 |
## Reading the results
|
| 14 |
|
| 15 |
+
- **AP (average precision):** How well the model ranks issue-bearing methods across all score cutoffs.
|
| 16 |
+
- **0.5 cutoff:** A score of at least 0.5 counts as an alert for precision, recall, F1, TP, FP, and FN.
|
| 17 |
+
- **Precision, recall, and F1:** Precision is the share of alerts that are correct. Recall is the share of actual issues found. F1 combines both into one score.
|
| 18 |
+
- **TP, FP, and FN:** Correct alerts, false alerts, and missed issues, respectively.
|
| 19 |
+
- **Pair order:** The share of eligible before/after pairs where the issue-bearing before method scores higher than the fixed after method. Ties do not count as correct.
|
| 20 |
|
| 21 |
## Bugs
|
| 22 |
|
|
|
|
| 24 |
|
| 25 |
[Download public bug pairs](https://huggingface.co/datasets/perchscan/bug-pairs-public)
|
| 26 |
|
| 27 |
+
| Model | AP | Precision at 0.5 | Recall at 0.5 | F1 at 0.5 | TP | FP | FN | Pair order | Inference cost |
|
| 28 |
+
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 29 |
+
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | **47.6%** | **49.9%** | **22.0%** | **30.6%** | **410** | 412 | **1451** | 42.5% | $0.537 |
|
| 30 |
+
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B)† | 44.0% | 44.9% | 13.9% | 21.2% | 258 | 317 | 1603 | **46.9%** | ~$0.057 |
|
| 31 |
+
| [JevK5](https://huggingface.co/alibiserikbay/JevK5) | 44.1% | 47.5% | 7.6% | 13.1% | 141 | 156 | 1720 | 32.1% | — |
|
| 32 |
+
| [jev-lite](https://huggingface.co/vagmi/jev-lite) | 43.7% | 44.8% | 2.3% | 4.4% | 43 | **53** | 1818 | 22.4% | — |
|
| 33 |
+
|
| 34 |
+
_Sorted by F1 at 0.5. Bold marks the best quality metric in each column; fewer FP and FN are better._
|
| 35 |
|
| 36 |
### Private — 498 pairs
|
| 37 |
|
| 38 |
+
| Model | AP | Precision at 0.5 | Recall at 0.5 | F1 at 0.5 | TP | FP | FN | Pair order | Inference cost |
|
| 39 |
+
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 40 |
+
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | **48.6%** | 50.7% | **24.1%** | **32.6%** | **102** | 99 | **322** | **43.4%** | $0.119 |
|
| 41 |
+
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B)† | 45.2% | 44.6% | 17.5% | 25.1% | 74 | 92 | 350 | **43.4%** | ~$0.013 |
|
| 42 |
+
| [JevK5](https://huggingface.co/alibiserikbay/JevK5) | 45.8% | 46.4% | 9.2% | 15.4% | 39 | 45 | 385 | 32.7% | — |
|
| 43 |
+
| [jev-lite](https://huggingface.co/vagmi/jev-lite) | 45.2% | **60.0%** | 3.5% | 6.7% | 15 | **10** | 409 | 22.7% | — |
|
| 44 |
+
|
| 45 |
+
_Sorted by F1 at 0.5. Bold marks the best quality metric in each column; fewer FP and FN are better._
|
| 46 |
|
| 47 |
## Security
|
| 48 |
|
|
|
|
| 50 |
|
| 51 |
[Download public security pairs](https://huggingface.co/datasets/perchscan/security-pairs-public)
|
| 52 |
|
| 53 |
+
| Model | AP | Precision at 0.5 | Recall at 0.5 | F1 at 0.5 | TP | FP | FN | Pair order | Inference cost |
|
| 54 |
+
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 55 |
+
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B)† | 44.0% | 43.6% | **64.9%** | **52.1%** | **741** | 959 | **401** | **41.5%** | ~$0.033 |
|
| 56 |
+
| [JevK5](https://huggingface.co/alibiserikbay/JevK5) | 44.8% | 46.4% | 12.4% | 19.6% | 142 | 164 | 1000 | 30.6% | — |
|
| 57 |
+
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | **49.2%** | **54.4%** | 10.2% | 17.2% | 117 | 98 | 1025 | 40.5% | $0.312 |
|
| 58 |
+
| [jev-lite](https://huggingface.co/vagmi/jev-lite) | 43.3% | 36.0% | 3.2% | 5.8% | 36 | **64** | 1106 | 22.9% | — |
|
| 59 |
+
|
| 60 |
+
_Sorted by F1 at 0.5. Bold marks the best quality metric in each column; fewer FP and FN are better._
|
| 61 |
|
| 62 |
### Private — 439 pairs
|
| 63 |
|
| 64 |
+
| Model | AP | Precision at 0.5 | Recall at 0.5 | F1 at 0.5 | TP | FP | FN | Pair order | Inference cost |
|
| 65 |
+
| --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 66 |
+
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B)† | 47.1% | 46.9% | **67.8%** | **55.4%** | **270** | 306 | **128** | **52.8%** | ~$0.013 |
|
| 67 |
+
| [JevK5](https://huggingface.co/alibiserikbay/JevK5) | 47.4% | 45.0% | 4.5% | 8.2% | 18 | 22 | 380 | 37.9% | — |
|
| 68 |
+
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | **48.9%** | **52.6%** | 2.5% | 4.8% | 10 | **9** | 388 | 36.2% | $0.112 |
|
| 69 |
+
| [jev-lite](https://huggingface.co/vagmi/jev-lite) | 47.3% | 43.8% | 1.8% | 3.4% | 7 | **9** | 391 | 29.4% | — |
|
| 70 |
+
|
| 71 |
+
_Sorted by F1 at 0.5. Bold marks the best quality metric in each column; fewer FP and FN are better._
|
| 72 |
|
| 73 |
† CLM-v0.1-8B uses its choice head with a 6,144-token encoder. All models are scored on the same method sides and labels within each track.
|
| 74 |
|
| 75 |
+
Inference cost is for scoring the method sides in that table. Jev uses API-reported billable input tokens at [TypeSafe's published $0.042 per million input tokens](https://typesafe.ai/blog/introducing-system-one-models-and-jev); output tokens are free. CLM is an estimated share of 11 minutes 49 seconds of active Runpod GPU time at $0.59/hour, allocated by input tokens; model startup and idle time are excluded. JevK5 and jev-lite ran on a local Mac Studio, so no metered GPU cost was recorded for them. Costs are not ranked.
|
| 76 |
+
|
| 77 |
## Files
|
| 78 |
|
| 79 |
- [`benchmark.py`](https://huggingface.co/datasets/perchscan/benchmark-results/blob/main/benchmark.py): run a model on the public pairs and calculate the metrics in these tables.
|
| 80 |
- [`adapters/`](https://huggingface.co/datasets/perchscan/benchmark-results/tree/main/adapters): example runners for the unmodified open-source models in the tables.
|
| 81 |
- `results.jsonl`: one aggregate report per domain, track, model, and protocol.
|
| 82 |
+
- `benchmark-costs.json`: token usage, GPU timing, rates, and per-track cost calculations.
|
| 83 |
- `split-summary.json`: split sizes and whole-file SHA-256 values. It contains no private rows or repository list.
|
| 84 |
- `predictions/`: public-pair probabilities for auditing the public scores. No private predictions are included.
|
| 85 |
|
benchmark-costs.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"benchmark_sha256": {
|
| 3 |
+
"bug:private": "3df4ade65fedd1128d30bc17c9c9869c8ab9bd526e666156d0e16685e78f8a73",
|
| 4 |
+
"bug:public": "32bc68bc85d5535ad28e103adbfa0c09c73e09d0f53a53f7ca35ec219a96e6e2",
|
| 5 |
+
"security:private": "a4b81728e9e520cf1c6f342974bec369d72f5b7d8aabc1c9cf2aceba966f8051",
|
| 6 |
+
"security:public": "2407059caa3486371749884138b997d89043eec646e548ee8f44ba3ab08514b8"
|
| 7 |
+
},
|
| 8 |
+
"models": {
|
| 9 |
+
"clm-base": {
|
| 10 |
+
"basis": "Observed active benchmark GPU window times $0.59/hour; allocated to tracks by embedded input tokens; excludes model startup and idle time",
|
| 11 |
+
"completed_at_utc": "2026-09-26T04:03:07+00:00",
|
| 12 |
+
"elapsed_seconds": 709,
|
| 13 |
+
"gpu": "RTX PRO 6000 Blackwell MIG",
|
| 14 |
+
"rate_usd_per_hour": 0.59,
|
| 15 |
+
"started_at_utc": "2026-09-26T03:51:18+00:00",
|
| 16 |
+
"total_usd": 0.116197,
|
| 17 |
+
"tracks": {
|
| 18 |
+
"bug:private": {
|
| 19 |
+
"embedded_input_tokens": 1939404,
|
| 20 |
+
"method_sides": 996,
|
| 21 |
+
"usd": 0.012813
|
| 22 |
+
},
|
| 23 |
+
"bug:public": {
|
| 24 |
+
"embedded_input_tokens": 8686196,
|
| 25 |
+
"method_sides": 4440,
|
| 26 |
+
"usd": 0.057386
|
| 27 |
+
},
|
| 28 |
+
"security:private": {
|
| 29 |
+
"embedded_input_tokens": 1903206,
|
| 30 |
+
"method_sides": 878,
|
| 31 |
+
"usd": 0.012574
|
| 32 |
+
},
|
| 33 |
+
"security:public": {
|
| 34 |
+
"embedded_input_tokens": 5059264,
|
| 35 |
+
"method_sides": 2622,
|
| 36 |
+
"usd": 0.033424
|
| 37 |
+
}
|
| 38 |
+
}
|
| 39 |
+
},
|
| 40 |
+
"gemma-jev-lite-base": {
|
| 41 |
+
"basis": "Local Mac Studio run; no metered GPU charge recorded",
|
| 42 |
+
"tracks": {}
|
| 43 |
+
},
|
| 44 |
+
"jev-1.13.0": {
|
| 45 |
+
"basis": "API-reported billable input tokens times published $0.042 per million input tokens; output tokens free",
|
| 46 |
+
"rate_usd_per_million_input_tokens": 0.042,
|
| 47 |
+
"tracks": {
|
| 48 |
+
"bug:private": {
|
| 49 |
+
"input_tokens": 2841996,
|
| 50 |
+
"method_sides": 996,
|
| 51 |
+
"output_tokens": 20916,
|
| 52 |
+
"usd": 0.119364
|
| 53 |
+
},
|
| 54 |
+
"bug:public": {
|
| 55 |
+
"input_tokens": 12780147,
|
| 56 |
+
"method_sides": 4440,
|
| 57 |
+
"output_tokens": 93240,
|
| 58 |
+
"usd": 0.536766
|
| 59 |
+
},
|
| 60 |
+
"security:private": {
|
| 61 |
+
"input_tokens": 2672270,
|
| 62 |
+
"method_sides": 878,
|
| 63 |
+
"output_tokens": 18438,
|
| 64 |
+
"usd": 0.112235
|
| 65 |
+
},
|
| 66 |
+
"security:public": {
|
| 67 |
+
"input_tokens": 7427799,
|
| 68 |
+
"method_sides": 2622,
|
| 69 |
+
"output_tokens": 55062,
|
| 70 |
+
"usd": 0.311968
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
+
},
|
| 74 |
+
"jevk5-base": {
|
| 75 |
+
"basis": "Local Mac Studio run; no metered GPU charge recorded",
|
| 76 |
+
"tracks": {}
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
}
|