Remove failed requests from benchmark tables
#41
by jfbrown95 - opened
- README.md +80 -80
- assets/bug-tradeoff.svg +27 -27
- assets/lint-tradeoff.svg +26 -26
- assets/security-tradeoff.svg +25 -25
- test_tradeoff.py +5 -5
- tradeoff.py +49 -16
README.md
CHANGED
|
@@ -46,38 +46,38 @@ Failed requests count as incorrect decisions: a failed issue is a miss; a failed
|
|
| 46 |
|
| 47 |
### Public — 2,220 pairs
|
| 48 |
|
| 49 |
-
| Model | Recall | False-positive rate | Youden’s J |
|
| 50 |
-
| --- | ---: | ---: | ---: | ---: |
|
| 51 |
-
| [GPT-6 Luna Decisions](https://developers.openai.com/api/docs/guides/decisions) | 48.7% | 38.7% | **10.0%** |
|
| 52 |
-
| [DiffusionGemma Jev](https://github.com/razorback16/openjev) | 33.4% | 27.1% | 6.3% |
|
| 53 |
-
| [Microsoft-Decision-1](https://openrouter.ai/microsoft/microsoft-decision-1) | 24.0% | 18.8% | 5.1% |
|
| 54 |
-
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | 17.7% | 12.7% | 5.0% |
|
| 55 |
-
| [SemiF](https://github.com/TheoLeeCJ/SemIf) | 43.0% | 39.7% | 3.3% |
|
| 56 |
-
| [Mercury Decide](https://openrouter.ai/inception/mercury-decide) | 8.8% | 5.6% | 3.2% |
|
| 57 |
-
| [TypeLLM](https://typellm.ai/docs) | 8.3% | 5.5% | 2.7% |
|
| 58 |
-
| [Span-01](https://www.respan.ai/docs/documentation/span-01/concept) | 25.3% | 22.6% | 2.7% |
|
| 59 |
-
| [Liquid d1](https://openrouter.ai/liquid/d1) | 5.4% | 3.6% | 1.8% |
|
| 60 |
-
| [CodeQL](https://codeql.github.com/)* | 5.3% | 4.2% | 1.1% | — |
|
| 61 |
-
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B) | **81.9%** | 80.9% | 1.0% |
|
| 62 |
-
| [GLiNER-2.5-Decide](https://huggingface.co/fastino/GLiNER2.5-Decide) | 2.3% | **2.1%** | 0.2% | **
|
| 63 |
|
| 64 |
\* CodeQL scored 682 pairs in Python, JavaScript, TypeScript, C and C++; 255 additional pairs could not be scored because source recovery, source verification or analysis failed. [Details](CODEQL.md) · [Method decisions](codeql-comparison/)
|
| 65 |
|
| 66 |
### Private — 498 pairs
|
| 67 |
|
| 68 |
-
| Model | Recall | False-positive rate | Youden’s J |
|
| 69 |
-
| --- | ---: | ---: | ---: | ---: |
|
| 70 |
-
| [GPT-6 Luna Decisions](https://developers.openai.com/api/docs/guides/decisions) | 52.4% | 41.3% | **11.1%** |
|
| 71 |
-
| [DiffusionGemma Jev](https://github.com/razorback16/openjev) | 35.8% | 27.3% | 8.6% |
|
| 72 |
-
| [TypeLLM](https://typellm.ai/docs) | 11.3% | 5.8% | 5.6% |
|
| 73 |
-
| [Microsoft-Decision-1](https://openrouter.ai/microsoft/microsoft-decision-1) | 25.5% | 20.6% | 4.8% |
|
| 74 |
-
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | 20.0% | 15.6% | 4.5% |
|
| 75 |
-
| [Mercury Decide](https://openrouter.ai/inception/mercury-decide) | 9.4% | 5.1% | 4.4% |
|
| 76 |
-
| [Span-01](https://www.respan.ai/docs/documentation/span-01/concept) | 28.5% | 24.3% | 4.2% |
|
| 77 |
-
| [SemiF](https://github.com/TheoLeeCJ/SemIf) | 44.3% | 41.8% | 2.6% |
|
| 78 |
-
| [Liquid d1](https://openrouter.ai/liquid/d1) | 6.6% | 4.2% | 2.4% |
|
| 79 |
-
| [GLiNER-2.5-Decide](https://huggingface.co/fastino/GLiNER2.5-Decide) | 1.7% | **2.1%** | -0.4% | **
|
| 80 |
-
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B) | **79.5%** | 80.1% | -0.6% |
|
| 81 |
|
| 82 |
## Security
|
| 83 |
|
|
@@ -87,38 +87,38 @@ Failed requests count as incorrect decisions: a failed issue is a miss; a failed
|
|
| 87 |
|
| 88 |
### Public — 1,311 pairs
|
| 89 |
|
| 90 |
-
| Model | Recall | False-positive rate | Youden’s J |
|
| 91 |
-
| --- | ---: | ---: | ---: | ---: |
|
| 92 |
-
| [Liquid d1](https://openrouter.ai/liquid/d1) | 52.3% | 40.7% | **11.5%** |
|
| 93 |
-
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | 34.6% | 23.6% | 11.0% |
|
| 94 |
-
| [TypeLLM](https://typellm.ai/docs) | 27.8% | 17.4% | 10.5% |
|
| 95 |
-
| [GPT-6 Luna Decisions](https://developers.openai.com/api/docs/guides/decisions) | 54.1% | 44.5% | 9.7% |
|
| 96 |
-
| [Mercury Decide](https://openrouter.ai/inception/mercury-decide) | 27.1% | 17.8% | 9.3% | **
|
| 97 |
-
| [DiffusionGemma Jev](https://github.com/razorback16/openjev) | 33.1% | 25.8% | 7.3% |
|
| 98 |
-
| [Microsoft-Decision-1](https://openrouter.ai/microsoft/microsoft-decision-1) | 43.9% | 38.2% | 5.6% |
|
| 99 |
-
| [Span-01](https://www.respan.ai/docs/documentation/span-01/concept) | 21.0% | 17.2% | 3.9% |
|
| 100 |
-
| [CodeQL](https://codeql.github.com/)* | 4.8% | 1.5% | 3.3% | — |
|
| 101 |
-
| [GLiNER-2.5-Decide](https://huggingface.co/fastino/GLiNER2.5-Decide) | 2.1% | **1.6%** | 0.5% |
|
| 102 |
-
| [SemiF](https://github.com/TheoLeeCJ/SemIf) | **100.0%** | 99.9% | 0.1% |
|
| 103 |
-
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B) | **100.0%** | 100.0% | 0.0% |
|
| 104 |
|
| 105 |
\* CodeQL scored 305 pairs in Python, JavaScript, TypeScript, C and C++; 18 additional pairs could not be scored because source recovery, source verification or analysis failed. [Details](CODEQL.md) · [Method decisions](codeql-comparison/)
|
| 106 |
|
| 107 |
### Private — 439 pairs
|
| 108 |
|
| 109 |
-
| Model | Recall | False-positive rate | Youden’s J |
|
| 110 |
-
| --- | ---: | ---: | ---: | ---: |
|
| 111 |
-
| [GPT-6 Luna Decisions](https://developers.openai.com/api/docs/guides/decisions) | 40.5% | 31.5% | **9.0%** |
|
| 112 |
-
| [Liquid d1](https://openrouter.ai/liquid/d1) | 34.7% | 29.4% | 5.3% |
|
| 113 |
-
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | 20.6% | 16.7% | 3.9% |
|
| 114 |
-
| [DiffusionGemma Jev](https://github.com/razorback16/openjev) | 21.9% | 18.5% | 3.3% |
|
| 115 |
-
| [TypeLLM](https://typellm.ai/docs) | 8.8% | 6.2% | 2.5% |
|
| 116 |
-
| [Mercury Decide](https://openrouter.ai/inception/mercury-decide) | 11.1% | 9.0% | 2.1% | **
|
| 117 |
-
| [Microsoft-Decision-1](https://openrouter.ai/microsoft/microsoft-decision-1) | 18.1% | 16.7% | 1.4% |
|
| 118 |
-
| [GLiNER-2.5-Decide](https://huggingface.co/fastino/GLiNER2.5-Decide) | 2.0% | **1.5%** | 0.6% |
|
| 119 |
-
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B) | **100.0%** | 100.0% | 0.0% |
|
| 120 |
-
| [SemiF](https://github.com/TheoLeeCJ/SemIf) | **100.0%** | 100.0% | 0.0% |
|
| 121 |
-
| [Span-01](https://www.respan.ai/docs/documentation/span-01/concept) | 8.0% | 8.1% | -0.1% |
|
| 122 |
|
| 123 |
## Perch Lint Bench
|
| 124 |
|
|
@@ -128,35 +128,35 @@ Failed requests count as incorrect decisions: a failed issue is a miss; a failed
|
|
| 128 |
|
| 129 |
### Public — 214 pairs
|
| 130 |
|
| 131 |
-
| Model | Recall | False-positive rate | Youden’s J |
|
| 132 |
-
| --- | ---: | ---: | ---: | ---: |
|
| 133 |
-
| [Mercury Decide](https://openrouter.ai/inception/mercury-decide) | **81.8%** | 6.5% | **75.2%** |
|
| 134 |
-
| [GPT-6 Luna Decisions](https://developers.openai.com/api/docs/guides/decisions) | 76.6% | 4.7% | 72.0% |
|
| 135 |
-
| [TypeLLM](https://typellm.ai/docs) | 61.7% | 2.8% | 58.9% |
|
| 136 |
-
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | 50.0% | 0.5% | 49.5% |
|
| 137 |
-
| [DiffusionGemma Jev](https://github.com/razorback16/openjev) | 52.8% | 5.1% | 47.7% |
|
| 138 |
-
| [Liquid d1](https://openrouter.ai/liquid/d1) | 40.7% | 0.5% | 40.2% |
|
| 139 |
-
| [Span-01](https://www.respan.ai/docs/documentation/span-01/concept) | 50.0% | 11.2% | 38.8% |
|
| 140 |
-
| [Microsoft-Decision-1](https://openrouter.ai/microsoft/microsoft-decision-1) | 38.3% | 1.9% | 36.4% |
|
| 141 |
-
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B) | 38.8% | 37.4% | 1.4% | **
|
| 142 |
-
| [SemiF](https://github.com/TheoLeeCJ/SemIf) | 32.2% | 31.3% | 0.9% |
|
| 143 |
-
| [GLiNER-2.5-Decide](https://huggingface.co/fastino/GLiNER2.5-Decide) | 0.0% | **0.0%** | 0.0% | **
|
| 144 |
|
| 145 |
### Private — 71 pairs
|
| 146 |
|
| 147 |
-
| Model | Recall | False-positive rate | Youden’s J |
|
| 148 |
-
| --- | ---: | ---: | ---: | ---: |
|
| 149 |
-
| [Mercury Decide](https://openrouter.ai/inception/mercury-decide) | **87.3%** | 8.5% | **78.9%** |
|
| 150 |
-
| [GPT-6 Luna Decisions](https://developers.openai.com/api/docs/guides/decisions) | 84.5% | 7.0% | 77.5% |
|
| 151 |
-
| [TypeLLM](https://typellm.ai/docs) | 59.2% | 5.6% | 53.5% |
|
| 152 |
-
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | 53.5% | 1.4% | 52.1% |
|
| 153 |
-
| [DiffusionGemma Jev](https://github.com/razorback16/openjev) | 53.5% | 8.5% | 45.1% |
|
| 154 |
-
| [Microsoft-Decision-1](https://openrouter.ai/microsoft/microsoft-decision-1) | 43.7% | 1.4% | 42.3% |
|
| 155 |
-
| [Liquid d1](https://openrouter.ai/liquid/d1) | 40.8% | 1.4% | 39.4% |
|
| 156 |
-
| [Span-01](https://www.respan.ai/docs/documentation/span-01/concept) | 45.1% | 8.5% | 36.6% |
|
| 157 |
-
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B) | 50.7% | 49.3% | 1.4% | **
|
| 158 |
-
| [GLiNER-2.5-Decide](https://huggingface.co/fastino/GLiNER2.5-Decide) | 0.0% | **0.0%** | 0.0% |
|
| 159 |
-
| [SemiF](https://github.com/TheoLeeCJ/SemIf) | 42.3% | 45.1% | -2.8% |
|
| 160 |
|
| 161 |
<!-- END TRADEOFF_RESULTS -->
|
| 162 |
|
|
|
|
| 46 |
|
| 47 |
### Public — 2,220 pairs
|
| 48 |
|
| 49 |
+
| Model | Recall | False-positive rate | Youden’s J | Inference cost |
|
| 50 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 51 |
+
| [GPT-6 Luna Decisions](https://developers.openai.com/api/docs/guides/decisions) | 48.7% | 38.7% | **10.0%** | $1.102 |
|
| 52 |
+
| [DiffusionGemma Jev](https://github.com/razorback16/openjev) | 33.4% | 27.1% | 6.3% | $0.239 |
|
| 53 |
+
| [Microsoft-Decision-1](https://openrouter.ai/microsoft/microsoft-decision-1) | 24.0% | 18.8% | 5.1% | $0.481 |
|
| 54 |
+
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | 17.7% | 12.7% | 5.0% | $0.551 |
|
| 55 |
+
| [SemiF](https://github.com/TheoLeeCJ/SemIf) | 43.0% | 39.7% | 3.3% | $0.239 |
|
| 56 |
+
| [Mercury Decide](https://openrouter.ai/inception/mercury-decide) | 8.8% | 5.6% | 3.2% | $0.224 |
|
| 57 |
+
| [TypeLLM](https://typellm.ai/docs) | 8.3% | 5.5% | 2.7% | $0.576 |
|
| 58 |
+
| [Span-01](https://www.respan.ai/docs/documentation/span-01/concept) | 25.3% | 22.6% | 2.7% | $0.182 |
|
| 59 |
+
| [Liquid d1](https://openrouter.ai/liquid/d1) | 5.4% | 3.6% | 1.8% | $0.875 |
|
| 60 |
+
| [CodeQL](https://codeql.github.com/)* | 5.3% | 4.2% | 1.1% | — |
|
| 61 |
+
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B) | **81.9%** | 80.9% | 1.0% | ~$0.210 |
|
| 62 |
+
| [GLiNER-2.5-Decide](https://huggingface.co/fastino/GLiNER2.5-Decide) | 2.3% | **2.1%** | 0.2% | **$0.175** |
|
| 63 |
|
| 64 |
\* CodeQL scored 682 pairs in Python, JavaScript, TypeScript, C and C++; 255 additional pairs could not be scored because source recovery, source verification or analysis failed. [Details](CODEQL.md) · [Method decisions](codeql-comparison/)
|
| 65 |
|
| 66 |
### Private — 498 pairs
|
| 67 |
|
| 68 |
+
| Model | Recall | False-positive rate | Youden’s J | Inference cost |
|
| 69 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 70 |
+
| [GPT-6 Luna Decisions](https://developers.openai.com/api/docs/guides/decisions) | 52.4% | 41.3% | **11.1%** | $0.247 |
|
| 71 |
+
| [DiffusionGemma Jev](https://github.com/razorback16/openjev) | 35.8% | 27.3% | 8.6% | $0.054 |
|
| 72 |
+
| [TypeLLM](https://typellm.ai/docs) | 11.3% | 5.8% | 5.6% | $0.129 |
|
| 73 |
+
| [Microsoft-Decision-1](https://openrouter.ai/microsoft/microsoft-decision-1) | 25.5% | 20.6% | 4.8% | $0.108 |
|
| 74 |
+
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | 20.0% | 15.6% | 4.5% | $0.123 |
|
| 75 |
+
| [Mercury Decide](https://openrouter.ai/inception/mercury-decide) | 9.4% | 5.1% | 4.4% | $0.050 |
|
| 76 |
+
| [Span-01](https://www.respan.ai/docs/documentation/span-01/concept) | 28.5% | 24.3% | 4.2% | $0.040 |
|
| 77 |
+
| [SemiF](https://github.com/TheoLeeCJ/SemIf) | 44.3% | 41.8% | 2.6% | $0.054 |
|
| 78 |
+
| [Liquid d1](https://openrouter.ai/liquid/d1) | 6.6% | 4.2% | 2.4% | $0.197 |
|
| 79 |
+
| [GLiNER-2.5-Decide](https://huggingface.co/fastino/GLiNER2.5-Decide) | 1.7% | **2.1%** | -0.4% | **$0.039** |
|
| 80 |
+
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B) | **79.5%** | 80.1% | -0.6% | ~$0.047 |
|
| 81 |
|
| 82 |
## Security
|
| 83 |
|
|
|
|
| 87 |
|
| 88 |
### Public — 1,311 pairs
|
| 89 |
|
| 90 |
+
| Model | Recall | False-positive rate | Youden’s J | Inference cost |
|
| 91 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 92 |
+
| [Liquid d1](https://openrouter.ai/liquid/d1) | 52.3% | 40.7% | **11.5%** | $6.132 |
|
| 93 |
+
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | 34.6% | 23.6% | 11.0% | $0.507 |
|
| 94 |
+
| [TypeLLM](https://typellm.ai/docs) | 27.8% | 17.4% | 10.5% | $0.566 |
|
| 95 |
+
| [GPT-6 Luna Decisions](https://developers.openai.com/api/docs/guides/decisions) | 54.1% | 44.5% | 9.7% | $1.469 |
|
| 96 |
+
| [Mercury Decide](https://openrouter.ai/inception/mercury-decide) | 27.1% | 17.8% | 9.3% | **$0.131** |
|
| 97 |
+
| [DiffusionGemma Jev](https://github.com/razorback16/openjev) | 33.1% | 25.8% | 7.3% | $0.208 |
|
| 98 |
+
| [Microsoft-Decision-1](https://openrouter.ai/microsoft/microsoft-decision-1) | 43.9% | 38.2% | 5.6% | $0.455 |
|
| 99 |
+
| [Span-01](https://www.respan.ai/docs/documentation/span-01/concept) | 21.0% | 17.2% | 3.9% | $0.251 |
|
| 100 |
+
| [CodeQL](https://codeql.github.com/)* | 4.8% | 1.5% | 3.3% | — |
|
| 101 |
+
| [GLiNER-2.5-Decide](https://huggingface.co/fastino/GLiNER2.5-Decide) | 2.1% | **1.6%** | 0.5% | $0.434 |
|
| 102 |
+
| [SemiF](https://github.com/TheoLeeCJ/SemIf) | **100.0%** | 99.9% | 0.1% | $0.208 |
|
| 103 |
+
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B) | **100.0%** | 100.0% | 0.0% | ~$1.432 |
|
| 104 |
|
| 105 |
\* CodeQL scored 305 pairs in Python, JavaScript, TypeScript, C and C++; 18 additional pairs could not be scored because source recovery, source verification or analysis failed. [Details](CODEQL.md) · [Method decisions](codeql-comparison/)
|
| 106 |
|
| 107 |
### Private — 439 pairs
|
| 108 |
|
| 109 |
+
| Model | Recall | False-positive rate | Youden’s J | Inference cost |
|
| 110 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 111 |
+
| [GPT-6 Luna Decisions](https://developers.openai.com/api/docs/guides/decisions) | 40.5% | 31.5% | **9.0%** | $0.530 |
|
| 112 |
+
| [Liquid d1](https://openrouter.ai/liquid/d1) | 34.7% | 29.4% | 5.3% | $2.362 |
|
| 113 |
+
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | 20.6% | 16.7% | 3.9% | $0.182 |
|
| 114 |
+
| [DiffusionGemma Jev](https://github.com/razorback16/openjev) | 21.9% | 18.5% | 3.3% | $0.074 |
|
| 115 |
+
| [TypeLLM](https://typellm.ai/docs) | 8.8% | 6.2% | 2.5% | $0.203 |
|
| 116 |
+
| [Mercury Decide](https://openrouter.ai/inception/mercury-decide) | 11.1% | 9.0% | 2.1% | **$0.047** |
|
| 117 |
+
| [Microsoft-Decision-1](https://openrouter.ai/microsoft/microsoft-decision-1) | 18.1% | 16.7% | 1.4% | $0.163 |
|
| 118 |
+
| [GLiNER-2.5-Decide](https://huggingface.co/fastino/GLiNER2.5-Decide) | 2.0% | **1.5%** | 0.6% | $0.142 |
|
| 119 |
+
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B) | **100.0%** | 100.0% | 0.0% | ~$0.528 |
|
| 120 |
+
| [SemiF](https://github.com/TheoLeeCJ/SemIf) | **100.0%** | 100.0% | 0.0% | $0.074 |
|
| 121 |
+
| [Span-01](https://www.respan.ai/docs/documentation/span-01/concept) | 8.0% | 8.1% | -0.1% | $0.091 |
|
| 122 |
|
| 123 |
## Perch Lint Bench
|
| 124 |
|
|
|
|
| 128 |
|
| 129 |
### Public — 214 pairs
|
| 130 |
|
| 131 |
+
| Model | Recall | False-positive rate | Youden’s J | Inference cost |
|
| 132 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 133 |
+
| [Mercury Decide](https://openrouter.ai/inception/mercury-decide) | **81.8%** | 6.5% | **75.2%** | $0.020 |
|
| 134 |
+
| [GPT-6 Luna Decisions](https://developers.openai.com/api/docs/guides/decisions) | 76.6% | 4.7% | 72.0% | $0.093 |
|
| 135 |
+
| [TypeLLM](https://typellm.ai/docs) | 61.7% | 2.8% | 58.9% | $0.050 |
|
| 136 |
+
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | 50.0% | 0.5% | 49.5% | $0.048 |
|
| 137 |
+
| [DiffusionGemma Jev](https://github.com/razorback16/openjev) | 52.8% | 5.1% | 47.7% | $0.018 |
|
| 138 |
+
| [Liquid d1](https://openrouter.ai/liquid/d1) | 40.7% | 0.5% | 40.2% | $0.039 |
|
| 139 |
+
| [Span-01](https://www.respan.ai/docs/documentation/span-01/concept) | 50.0% | 11.2% | 38.8% | $0.014 |
|
| 140 |
+
| [Microsoft-Decision-1](https://openrouter.ai/microsoft/microsoft-decision-1) | 38.3% | 1.9% | 36.4% | $0.041 |
|
| 141 |
+
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B) | 38.8% | 37.4% | 1.4% | **~$0.010** |
|
| 142 |
+
| [SemiF](https://github.com/TheoLeeCJ/SemIf) | 32.2% | 31.3% | 0.9% | $0.018 |
|
| 143 |
+
| [GLiNER-2.5-Decide](https://huggingface.co/fastino/GLiNER2.5-Decide) | 0.0% | **0.0%** | 0.0% | **$0.010** |
|
| 144 |
|
| 145 |
### Private — 71 pairs
|
| 146 |
|
| 147 |
+
| Model | Recall | False-positive rate | Youden’s J | Inference cost |
|
| 148 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 149 |
+
| [Mercury Decide](https://openrouter.ai/inception/mercury-decide) | **87.3%** | 8.5% | **78.9%** | $0.006 |
|
| 150 |
+
| [GPT-6 Luna Decisions](https://developers.openai.com/api/docs/guides/decisions) | 84.5% | 7.0% | 77.5% | $0.030 |
|
| 151 |
+
| [TypeLLM](https://typellm.ai/docs) | 59.2% | 5.6% | 53.5% | $0.016 |
|
| 152 |
+
| [Jev](https://typesafe.ai/blog/introducing-system-one-models-and-jev) | 53.5% | 1.4% | 52.1% | $0.016 |
|
| 153 |
+
| [DiffusionGemma Jev](https://github.com/razorback16/openjev) | 53.5% | 8.5% | 45.1% | $0.006 |
|
| 154 |
+
| [Microsoft-Decision-1](https://openrouter.ai/microsoft/microsoft-decision-1) | 43.7% | 1.4% | 42.3% | $0.013 |
|
| 155 |
+
| [Liquid d1](https://openrouter.ai/liquid/d1) | 40.8% | 1.4% | 39.4% | $0.012 |
|
| 156 |
+
| [Span-01](https://www.respan.ai/docs/documentation/span-01/concept) | 45.1% | 8.5% | 36.6% | $0.005 |
|
| 157 |
+
| [CLM-v0.1-8B](https://huggingface.co/Contrastive-LM/CLM-v0.1-8B) | 50.7% | 49.3% | 1.4% | **~$0.003** |
|
| 158 |
+
| [GLiNER-2.5-Decide](https://huggingface.co/fastino/GLiNER2.5-Decide) | 0.0% | **0.0%** | 0.0% | $0.004 |
|
| 159 |
+
| [SemiF](https://github.com/TheoLeeCJ/SemIf) | 42.3% | 45.1% | -2.8% | $0.006 |
|
| 160 |
|
| 161 |
<!-- END TRADEOFF_RESULTS -->
|
| 162 |
|
assets/bug-tradeoff.svg
CHANGED
|
|
|
|
assets/lint-tradeoff.svg
CHANGED
|
|
|
|
assets/security-tradeoff.svg
CHANGED
|
|
|
|
test_tradeoff.py
CHANGED
|
@@ -19,7 +19,7 @@ class GraphTests(unittest.TestCase):
|
|
| 19 |
return ET.fromstring(output.read_text())
|
| 20 |
|
| 21 |
def dots(self, root):
|
| 22 |
-
return {e.attrib['data-model']: e for e in root.
|
| 23 |
if 'data-model' in e.attrib}
|
| 24 |
|
| 25 |
def test_points_use_recorded_cost_and_youden_j(self):
|
|
@@ -30,9 +30,9 @@ class GraphTests(unittest.TestCase):
|
|
| 30 |
self.assertAlmostEqual(float(dot.attrib['data-j']), .6)
|
| 31 |
low,high=float(root.attrib['data-cost-low']),float(root.attrib['data-cost-high'])
|
| 32 |
y_min,y_max=float(root.attrib['data-j-min']),float(root.attrib['data-j-max'])
|
| 33 |
-
self.assertAlmostEqual((float(dot.attrib['
|
| 34 |
(math.log10(.05)-math.log10(low))/(math.log10(high)-math.log10(low)),places=4)
|
| 35 |
-
self.assertAlmostEqual((float(dot.attrib['
|
| 36 |
labels=[e.text for e in root.findall('{http://www.w3.org/2000/svg}text')]
|
| 37 |
self.assertIn('Run cost (USD, log scale)', labels)
|
| 38 |
self.assertIn('Youden’s J (recall − false-positive rate)', labels)
|
|
@@ -40,8 +40,8 @@ class GraphTests(unittest.TestCase):
|
|
| 40 |
def test_more_false_positives_reduce_j_at_same_cost(self):
|
| 41 |
current=self.rows();current['typellm']['confusion']={'tp':7,'fn':3,'fp':10,'tn':10}
|
| 42 |
dots=self.dots(self.render(current))
|
| 43 |
-
self.assertEqual(dots['jev'].attrib['
|
| 44 |
-
self.assertLess(float(dots['jev'].attrib['
|
| 45 |
|
| 46 |
def test_frontier_excludes_strictly_dominated_models_and_keeps_ties(self):
|
| 47 |
def row(cost,tp,fp):
|
|
|
|
| 19 |
return ET.fromstring(output.read_text())
|
| 20 |
|
| 21 |
def dots(self, root):
|
| 22 |
+
return {e.attrib['data-model']: e for e in root.iter()
|
| 23 |
if 'data-model' in e.attrib}
|
| 24 |
|
| 25 |
def test_points_use_recorded_cost_and_youden_j(self):
|
|
|
|
| 30 |
self.assertAlmostEqual(float(dot.attrib['data-j']), .6)
|
| 31 |
low,high=float(root.attrib['data-cost-low']),float(root.attrib['data-cost-high'])
|
| 32 |
y_min,y_max=float(root.attrib['data-j-min']),float(root.attrib['data-j-max'])
|
| 33 |
+
self.assertAlmostEqual((float(dot.attrib['data-x'])-100)/1130,
|
| 34 |
(math.log10(.05)-math.log10(low))/(math.log10(high)-math.log10(low)),places=4)
|
| 35 |
+
self.assertAlmostEqual((float(dot.attrib['data-y'])-175)/400,(y_max-60)/(y_max-y_min),places=4)
|
| 36 |
labels=[e.text for e in root.findall('{http://www.w3.org/2000/svg}text')]
|
| 37 |
self.assertIn('Run cost (USD, log scale)', labels)
|
| 38 |
self.assertIn('Youden’s J (recall − false-positive rate)', labels)
|
|
|
|
| 40 |
def test_more_false_positives_reduce_j_at_same_cost(self):
|
| 41 |
current=self.rows();current['typellm']['confusion']={'tp':7,'fn':3,'fp':10,'tn':10}
|
| 42 |
dots=self.dots(self.render(current))
|
| 43 |
+
self.assertEqual(dots['jev'].attrib['data-x'],dots['typellm'].attrib['data-x'])
|
| 44 |
+
self.assertLess(float(dots['jev'].attrib['data-y']),float(dots['typellm'].attrib['data-y']))
|
| 45 |
|
| 46 |
def test_frontier_excludes_strictly_dominated_models_and_keeps_ties(self):
|
| 47 |
def row(cost,tp,fp):
|
tradeoff.py
CHANGED
|
@@ -11,7 +11,7 @@ import argparse
|
|
| 11 |
from collections import defaultdict
|
| 12 |
import html
|
| 13 |
import json
|
| 14 |
-
from math import ceil, floor, isfinite, log10
|
| 15 |
from pathlib import Path
|
| 16 |
from tempfile import TemporaryDirectory
|
| 17 |
from urllib.request import urlopen
|
|
@@ -36,14 +36,20 @@ NAMES = {
|
|
| 36 |
"mercury-decide": ("Mercury Decide", "https://openrouter.ai/inception/mercury-decide"),
|
| 37 |
"openai-decisions": ("GPT-6 Luna Decisions", "https://developers.openai.com/api/docs/guides/decisions"),
|
| 38 |
}
|
|
|
|
| 39 |
COLORS = {
|
| 40 |
-
"
|
| 41 |
-
"
|
| 42 |
-
"
|
| 43 |
-
"
|
| 44 |
-
"
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
}
|
| 48 |
ORDER = tuple(NAMES)
|
| 49 |
OLD_PACK_SHA = "bb53c8a6ca30920140e2bf33b2905d159e7b1709b29d1ea896637905dbf9047d"
|
|
@@ -186,15 +192,14 @@ def results_table(rows: list[dict]) -> str:
|
|
| 186 |
best_recall = max(round(metrics[row["model_id"]][0] * 100, 1) for row in full_rows)
|
| 187 |
best_false_positive_rate = min(round(metrics[row["model_id"]][1] * 100, 1) for row in full_rows)
|
| 188 |
best_net_recall = max(round(metrics[row["model_id"]][2] * 100, 1) for row in full_rows)
|
| 189 |
-
best_failures = min(row.get("failed_methods", 0) for row in full_rows)
|
| 190 |
priced_costs = [round(row["inference_cost_usd"], 3) for row in full_rows if row.get("inference_cost_usd") is not None]
|
| 191 |
best_priced_cost = min(priced_costs) if priced_costs else None
|
| 192 |
|
| 193 |
def mark(value: str, winner: bool) -> str:
|
| 194 |
return f"**{value}**" if winner else value
|
| 195 |
|
| 196 |
-
table = ["| Model | Recall | False-positive rate | Youden’s J |
|
| 197 |
-
"| --- | ---: | ---: | ---: | ---: |
|
| 198 |
for row in ordered:
|
| 199 |
recall, false_positive_rate, j = metrics[row["model_id"]]
|
| 200 |
cost = row.get("inference_cost_usd")
|
|
@@ -207,7 +212,6 @@ def results_table(rows: list[dict]) -> str:
|
|
| 207 |
mark(percent(recall), not is_codeql and round(recall * 100, 1) == best_recall),
|
| 208 |
mark(percent(false_positive_rate), not is_codeql and round(false_positive_rate * 100, 1) == best_false_positive_rate),
|
| 209 |
mark(percent(j), not is_codeql and round(j * 100, 1) == best_net_recall),
|
| 210 |
-
"—" if is_codeql else mark(str(row.get("failed_methods", 0)), row.get("failed_methods", 0) == best_failures),
|
| 211 |
"—" if is_codeql else mark(money(row), cost is not None and round(cost, 3) == best_priced_cost),
|
| 212 |
)) + " |")
|
| 213 |
return "\n".join(table)
|
|
@@ -257,6 +261,34 @@ def plot_axes(current: dict[str, dict]) -> tuple[float, float, list[float], floa
|
|
| 257 |
return low, high, ticks, bottom, top, step
|
| 258 |
|
| 259 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 260 |
def svg(domain: str, current: dict[str, dict], output: Path) -> None:
|
| 261 |
width, height = 1280, 690
|
| 262 |
left, right, top, bottom = 100, 50, 175, 115
|
|
@@ -282,7 +314,7 @@ def svg(domain: str, current: dict[str, dict], output: Path) -> None:
|
|
| 282 |
for i, model in enumerate(models):
|
| 283 |
col, row = i % 4, i // 4
|
| 284 |
lx, ly = left + col * 280, 102 + row * 23
|
| 285 |
-
out += [
|
| 286 |
f'<text x="{lx + 24}" y="{ly + 5}" fill="#e1e7ef" font-family="Arial,sans-serif" font-size="15">{html.escape(NAMES[model][0])}</text>']
|
| 287 |
for value in cost_ticks:
|
| 288 |
px = x(value)
|
|
@@ -303,10 +335,11 @@ def svg(domain: str, current: dict[str, dict], output: Path) -> None:
|
|
| 303 |
row = current[model]; cost = plot_cost(row)
|
| 304 |
recall, fpr, score = operating_metrics(row)
|
| 305 |
px, py = x(cost), y(score)
|
| 306 |
-
tooltip =
|
| 307 |
if model in frontier:
|
| 308 |
-
out.append(f'<circle cx="{px:.2f}" cy="{py:.2f}" r="
|
| 309 |
-
|
|
|
|
| 310 |
footer = 'CLM cost: GPU runtime estimate'
|
| 311 |
if 'codeql' in current:
|
| 312 |
footer += ' · CodeQL cost: unrecorded'
|
|
|
|
| 11 |
from collections import defaultdict
|
| 12 |
import html
|
| 13 |
import json
|
| 14 |
+
from math import ceil, cos, floor, isfinite, log10, pi, sin
|
| 15 |
from pathlib import Path
|
| 16 |
from tempfile import TemporaryDirectory
|
| 17 |
from urllib.request import urlopen
|
|
|
|
| 36 |
"mercury-decide": ("Mercury Decide", "https://openrouter.ai/inception/mercury-decide"),
|
| 37 |
"openai-decisions": ("GPT-6 Luna Decisions", "https://developers.openai.com/api/docs/guides/decisions"),
|
| 38 |
}
|
| 39 |
+
# Shapes distinguish models independently of color, including in grayscale.
|
| 40 |
COLORS = {
|
| 41 |
+
"jev": "#56b4e9", "typellm": "#ff63b5", "liquid-d1": "#b98aff",
|
| 42 |
+
"diffusiongemma": "#ff9234", "span01": "#00c49a", "clm": "#a0a8b5",
|
| 43 |
+
"semif": "#ef5b5b", "gliner25-decide": "#ffe05b",
|
| 44 |
+
"microsoft-decision-1": "#f5f5f5", "mercury-decide": "#6e8fff",
|
| 45 |
+
"openai-decisions": "#b8e186",
|
| 46 |
+
}
|
| 47 |
+
MARKERS = {
|
| 48 |
+
"jev": "circle", "typellm": "diamond", "liquid-d1": "triangle",
|
| 49 |
+
"diffusiongemma": "square", "span01": "triangle-down", "clm": "hexagon",
|
| 50 |
+
"semif": "cross", "gliner25-decide": "pentagon",
|
| 51 |
+
"microsoft-decision-1": "plus", "mercury-decide": "star",
|
| 52 |
+
"openai-decisions": "ring",
|
| 53 |
}
|
| 54 |
ORDER = tuple(NAMES)
|
| 55 |
OLD_PACK_SHA = "bb53c8a6ca30920140e2bf33b2905d159e7b1709b29d1ea896637905dbf9047d"
|
|
|
|
| 192 |
best_recall = max(round(metrics[row["model_id"]][0] * 100, 1) for row in full_rows)
|
| 193 |
best_false_positive_rate = min(round(metrics[row["model_id"]][1] * 100, 1) for row in full_rows)
|
| 194 |
best_net_recall = max(round(metrics[row["model_id"]][2] * 100, 1) for row in full_rows)
|
|
|
|
| 195 |
priced_costs = [round(row["inference_cost_usd"], 3) for row in full_rows if row.get("inference_cost_usd") is not None]
|
| 196 |
best_priced_cost = min(priced_costs) if priced_costs else None
|
| 197 |
|
| 198 |
def mark(value: str, winner: bool) -> str:
|
| 199 |
return f"**{value}**" if winner else value
|
| 200 |
|
| 201 |
+
table = ["| Model | Recall | False-positive rate | Youden’s J | Inference cost |",
|
| 202 |
+
"| --- | ---: | ---: | ---: | ---: |"]
|
| 203 |
for row in ordered:
|
| 204 |
recall, false_positive_rate, j = metrics[row["model_id"]]
|
| 205 |
cost = row.get("inference_cost_usd")
|
|
|
|
| 212 |
mark(percent(recall), not is_codeql and round(recall * 100, 1) == best_recall),
|
| 213 |
mark(percent(false_positive_rate), not is_codeql and round(false_positive_rate * 100, 1) == best_false_positive_rate),
|
| 214 |
mark(percent(j), not is_codeql and round(j * 100, 1) == best_net_recall),
|
|
|
|
| 215 |
"—" if is_codeql else mark(money(row), cost is not None and round(cost, 3) == best_priced_cost),
|
| 216 |
)) + " |")
|
| 217 |
return "\n".join(table)
|
|
|
|
| 261 |
return low, high, ticks, bottom, top, step
|
| 262 |
|
| 263 |
|
| 264 |
+
def marker(model: str, x: float, y: float, size: float = 7,
|
| 265 |
+
attributes: str = "", title: str = "") -> str:
|
| 266 |
+
shape, color = MARKERS[model], COLORS[model]
|
| 267 |
+
style = f'fill="{color}" stroke="#101318" stroke-width="1.2" stroke-linejoin="round"'
|
| 268 |
+
if shape == "circle":
|
| 269 |
+
element = f'<circle r="{size}" {style}/>'
|
| 270 |
+
elif shape == "ring":
|
| 271 |
+
element = f'<circle r="{size-1}" fill="#101318" stroke="{color}" stroke-width="3"/>'
|
| 272 |
+
elif shape == "square":
|
| 273 |
+
element = f'<rect x="{-size}" y="{-size}" width="{size*2}" height="{size*2}" {style}/>'
|
| 274 |
+
elif shape in ("plus", "cross"):
|
| 275 |
+
thickness = size * .35
|
| 276 |
+
path = f'M {-thickness} {-size} H {thickness} V {-thickness} H {size} V {thickness} H {thickness} V {size} H {-thickness} V {thickness} H {-size} V {-thickness} H {-thickness} Z'
|
| 277 |
+
element = f'<path d="{path}" {style}' + (' transform="rotate(45)"' if shape == "cross" else '') + '/>'
|
| 278 |
+
else:
|
| 279 |
+
sides = {"diamond": 4, "triangle": 3, "triangle-down": 3,
|
| 280 |
+
"hexagon": 6, "pentagon": 5, "star": 10}[shape]
|
| 281 |
+
angle = pi/2 if shape == "triangle-down" else -pi/2
|
| 282 |
+
points = []
|
| 283 |
+
for i in range(sides):
|
| 284 |
+
radius = size * (.45 if shape == "star" and i % 2 else 1.15)
|
| 285 |
+
theta = angle + i * 2*pi/sides
|
| 286 |
+
points.append(f'{radius*cos(theta):.2f},{radius*sin(theta):.2f}')
|
| 287 |
+
element = f'<polygon points="{" ".join(points)}" {style}/>'
|
| 288 |
+
tooltip = f'<title>{html.escape(title)}</title>' if title else ''
|
| 289 |
+
return f'<g transform="translate({x:.2f} {y:.2f})" data-marker="{shape}" {attributes}>{tooltip}{element}</g>'
|
| 290 |
+
|
| 291 |
+
|
| 292 |
def svg(domain: str, current: dict[str, dict], output: Path) -> None:
|
| 293 |
width, height = 1280, 690
|
| 294 |
left, right, top, bottom = 100, 50, 175, 115
|
|
|
|
| 314 |
for i, model in enumerate(models):
|
| 315 |
col, row = i % 4, i // 4
|
| 316 |
lx, ly = left + col * 280, 102 + row * 23
|
| 317 |
+
out += [marker(model, lx + 8, ly, size=6),
|
| 318 |
f'<text x="{lx + 24}" y="{ly + 5}" fill="#e1e7ef" font-family="Arial,sans-serif" font-size="15">{html.escape(NAMES[model][0])}</text>']
|
| 319 |
for value in cost_ticks:
|
| 320 |
px = x(value)
|
|
|
|
| 335 |
row = current[model]; cost = plot_cost(row)
|
| 336 |
recall, fpr, score = operating_metrics(row)
|
| 337 |
px, py = x(cost), y(score)
|
| 338 |
+
tooltip = f'{NAMES[model][0]}: Youden’s J {score:.1%}; recall {recall:.1%}; false-positive rate {fpr:.1%}; run cost ${cost:.4f}' + (' (GPU estimate)' if model == 'clm' else '')
|
| 339 |
if model in frontier:
|
| 340 |
+
out.append(f'<circle cx="{px:.2f}" cy="{py:.2f}" r="13" fill="#101318" stroke="#ffb454" stroke-width="2"/>')
|
| 341 |
+
attributes = f'data-model="{model}" data-cost="{cost}" data-j="{score}" data-frontier="{str(model in frontier).lower()}" data-x="{px:.2f}" data-y="{py:.2f}"'
|
| 342 |
+
out.append(marker(model, px, py, attributes=attributes, title=tooltip))
|
| 343 |
footer = 'CLM cost: GPU runtime estimate'
|
| 344 |
if 'codeql' in current:
|
| 345 |
footer += ' · CodeQL cost: unrecorded'
|