sys1bench 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sys1bench-0.3.0/LICENSE +202 -0
- sys1bench-0.3.0/PKG-INFO +195 -0
- sys1bench-0.3.0/README.md +143 -0
- sys1bench-0.3.0/pyproject.toml +73 -0
- sys1bench-0.3.0/setup.cfg +4 -0
- sys1bench-0.3.0/src/sys1bench/__init__.py +3 -0
- sys1bench-0.3.0/src/sys1bench/adapters/__init__.py +19 -0
- sys1bench-0.3.0/src/sys1bench/adapters/base.py +159 -0
- sys1bench-0.3.0/src/sys1bench/adapters/embed_knn.py +61 -0
- sys1bench-0.3.0/src/sys1bench/adapters/encoder_finetuned.py +114 -0
- sys1bench-0.3.0/src/sys1bench/adapters/generic_http.py +161 -0
- sys1bench-0.3.0/src/sys1bench/adapters/hybrid_router.py +49 -0
- sys1bench-0.3.0/src/sys1bench/adapters/jev_openrouter.py +172 -0
- sys1bench-0.3.0/src/sys1bench/adapters/jev_typesafe.py +165 -0
- sys1bench-0.3.0/src/sys1bench/adapters/laya_local.py +192 -0
- sys1bench-0.3.0/src/sys1bench/adapters/llm_constrained.py +104 -0
- sys1bench-0.3.0/src/sys1bench/adapters/majority_prior.py +53 -0
- sys1bench-0.3.0/src/sys1bench/adapters/mock.py +77 -0
- sys1bench-0.3.0/src/sys1bench/adapters/nli_zeroshot.py +50 -0
- sys1bench-0.3.0/src/sys1bench/adapters/regex_keyword.py +70 -0
- sys1bench-0.3.0/src/sys1bench/analysis/__init__.py +4 -0
- sys1bench-0.3.0/src/sys1bench/analysis/arms.py +46 -0
- sys1bench-0.3.0/src/sys1bench/analysis/decision_value.py +43 -0
- sys1bench-0.3.0/src/sys1bench/analysis/decomposition.py +47 -0
- sys1bench-0.3.0/src/sys1bench/analysis/meta_eval.py +67 -0
- sys1bench-0.3.0/src/sys1bench/analysis/stats.py +76 -0
- sys1bench-0.3.0/src/sys1bench/cli.py +434 -0
- sys1bench-0.3.0/src/sys1bench/data/__init__.py +37 -0
- sys1bench-0.3.0/src/sys1bench/data/canary/canary.jsonl +200 -0
- sys1bench-0.3.0/src/sys1bench/data/framings/guardrail_intent.yaml +21 -0
- sys1bench-0.3.0/src/sys1bench/data/framings/log_triage.yaml +20 -0
- sys1bench-0.3.0/src/sys1bench/data/framings/phishing_email.yaml +25 -0
- sys1bench-0.3.0/src/sys1bench/data/framings/policy_compliance.yaml +18 -0
- sys1bench-0.3.0/src/sys1bench/data/framings/support_tickets.yaml +41 -0
- sys1bench-0.3.0/src/sys1bench/framing/__init__.py +10 -0
- sys1bench-0.3.0/src/sys1bench/framing/expand.py +214 -0
- sys1bench-0.3.0/src/sys1bench/framing/perturb.py +67 -0
- sys1bench-0.3.0/src/sys1bench/generators/__init__.py +10 -0
- sys1bench-0.3.0/src/sys1bench/generators/base.py +105 -0
- sys1bench-0.3.0/src/sys1bench/generators/guardrail_intent.py +95 -0
- sys1bench-0.3.0/src/sys1bench/generators/log_triage.py +100 -0
- sys1bench-0.3.0/src/sys1bench/generators/multilingual_tickets.py +84 -0
- sys1bench-0.3.0/src/sys1bench/generators/phishing_email.py +127 -0
- sys1bench-0.3.0/src/sys1bench/generators/policy_compliance.py +90 -0
- sys1bench-0.3.0/src/sys1bench/generators/rag_relevance.py +122 -0
- sys1bench-0.3.0/src/sys1bench/generators/support_tickets.py +212 -0
- sys1bench-0.3.0/src/sys1bench/metrics/__init__.py +9 -0
- sys1bench-0.3.0/src/sys1bench/metrics/calibration.py +164 -0
- sys1bench-0.3.0/src/sys1bench/metrics/consistency.py +71 -0
- sys1bench-0.3.0/src/sys1bench/metrics/decision_value.py +43 -0
- sys1bench-0.3.0/src/sys1bench/metrics/efficiency.py +35 -0
- sys1bench-0.3.0/src/sys1bench/metrics/ordinal.py +80 -0
- sys1bench-0.3.0/src/sys1bench/metrics/robustness.py +46 -0
- sys1bench-0.3.0/src/sys1bench/metrics/selective.py +67 -0
- sys1bench-0.3.0/src/sys1bench/report/__init__.py +1 -0
- sys1bench-0.3.0/src/sys1bench/report/dashboard.py +177 -0
- sys1bench-0.3.0/src/sys1bench/report/latex.py +40 -0
- sys1bench-0.3.0/src/sys1bench/report/plots.py +143 -0
- sys1bench-0.3.0/src/sys1bench/report/results_doc.py +237 -0
- sys1bench-0.3.0/src/sys1bench/report/scorecard.py +170 -0
- sys1bench-0.3.0/src/sys1bench/runners/__init__.py +2 -0
- sys1bench-0.3.0/src/sys1bench/runners/benchmark_runner.py +149 -0
- sys1bench-0.3.0/src/sys1bench/runners/cache.py +53 -0
- sys1bench-0.3.0/src/sys1bench/runners/canary.py +43 -0
- sys1bench-0.3.0/src/sys1bench/runners/hybrid_sweep.py +37 -0
- sys1bench-0.3.0/src/sys1bench/runners/noul_consistency.py +121 -0
- sys1bench-0.3.0/src/sys1bench/runners/ordinal_probes.py +90 -0
- sys1bench-0.3.0/src/sys1bench/runners/robustness.py +112 -0
- sys1bench-0.3.0/src/sys1bench/runners/suite.py +183 -0
- sys1bench-0.3.0/src/sys1bench/runners/sweeps.py +190 -0
- sys1bench-0.3.0/src/sys1bench/schemas.py +274 -0
- sys1bench-0.3.0/src/sys1bench.egg-info/PKG-INFO +195 -0
- sys1bench-0.3.0/src/sys1bench.egg-info/SOURCES.txt +78 -0
- sys1bench-0.3.0/src/sys1bench.egg-info/dependency_links.txt +1 -0
- sys1bench-0.3.0/src/sys1bench.egg-info/entry_points.txt +2 -0
- sys1bench-0.3.0/src/sys1bench.egg-info/requires.txt +29 -0
- sys1bench-0.3.0/src/sys1bench.egg-info/top_level.txt +1 -0
- sys1bench-0.3.0/tests/test_generators_framing.py +110 -0
- sys1bench-0.3.0/tests/test_metrics.py +97 -0
- sys1bench-0.3.0/tests/test_runner_end_to_end.py +309 -0
sys1bench-0.3.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
sys1bench-0.3.0/PKG-INFO
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sys1bench
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: Benchmark harness for typed System One decision models (choice / score / noul): calibration vs noise floor, framing sensitivity, selective prediction, ordinal fidelity, interference, robustness.
|
|
5
|
+
Author-email: Rahul Sharma <rsharma@rptu.de>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/rssr25/system-one-bench
|
|
8
|
+
Project-URL: Documentation, https://github.com/rssr25/system-one-bench/blob/main/docs/SPEC_v2.md
|
|
9
|
+
Project-URL: Results, https://github.com/rssr25/system-one-bench/blob/main/docs/RESULTS_2026-09-22_narrative.md
|
|
10
|
+
Project-URL: Issues, https://github.com/rssr25/system-one-bench/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/rssr25/system-one-bench/blob/main/CHANGELOG.md
|
|
12
|
+
Keywords: benchmark,calibration,system-one,decision-models,jev,laya,evaluation,llm
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
|
+
Classifier: Topic :: Software Development :: Testing
|
|
22
|
+
Classifier: Operating System :: OS Independent
|
|
23
|
+
Classifier: Typing :: Typed
|
|
24
|
+
Requires-Python: >=3.11
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: numpy>=1.26
|
|
28
|
+
Requires-Dist: scipy>=1.11
|
|
29
|
+
Requires-Dist: pandas>=2.0
|
|
30
|
+
Requires-Dist: pydantic>=2.5
|
|
31
|
+
Requires-Dist: httpx>=0.27
|
|
32
|
+
Requires-Dist: pyyaml>=6.0
|
|
33
|
+
Requires-Dist: typer>=0.12
|
|
34
|
+
Provides-Extra: plots
|
|
35
|
+
Requires-Dist: matplotlib>=3.8; extra == "plots"
|
|
36
|
+
Provides-Extra: local
|
|
37
|
+
Requires-Dist: torch>=2.4; extra == "local"
|
|
38
|
+
Requires-Dist: transformers>=4.45; extra == "local"
|
|
39
|
+
Requires-Dist: sentence-transformers>=3.0; extra == "local"
|
|
40
|
+
Provides-Extra: laya
|
|
41
|
+
Requires-Dist: laya>=0.3; extra == "laya"
|
|
42
|
+
Provides-Extra: llm
|
|
43
|
+
Requires-Dist: vllm>=0.6; extra == "llm"
|
|
44
|
+
Requires-Dist: outlines>=0.1; extra == "llm"
|
|
45
|
+
Provides-Extra: dev
|
|
46
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
47
|
+
Requires-Dist: ruff>=0.6; extra == "dev"
|
|
48
|
+
Requires-Dist: matplotlib>=3.8; extra == "dev"
|
|
49
|
+
Requires-Dist: build>=1.2; extra == "dev"
|
|
50
|
+
Requires-Dist: twine>=5.0; extra == "dev"
|
|
51
|
+
Dynamic: license-file
|
|
52
|
+
|
|
53
|
+
<p align="center">
|
|
54
|
+
<img src="docs/assets/logo.svg" alt="sys1bench" width="520">
|
|
55
|
+
</p>
|
|
56
|
+
|
|
57
|
+
<p align="center">
|
|
58
|
+
<a href="https://pypi.org/project/sys1bench/"><img alt="PyPI" src="https://img.shields.io/pypi/v/sys1bench?color=4F46E5&label=PyPI"></a>
|
|
59
|
+
<a href="https://pypi.org/project/sys1bench/"><img alt="Python" src="https://img.shields.io/pypi/pyversions/sys1bench?color=06B6D4"></a>
|
|
60
|
+
<a href="https://github.com/rssr25/system-one-bench/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/rssr25/system-one-bench/actions/workflows/ci.yml/badge.svg"></a>
|
|
61
|
+
<a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-blue.svg"></a>
|
|
62
|
+
<img alt="Tests" src="https://img.shields.io/badge/tests-31%20passing-brightgreen">
|
|
63
|
+
<img alt="Status" src="https://img.shields.io/badge/status-alpha-orange">
|
|
64
|
+
<a href="docs/RESULTS_2026-09-22_narrative.md"><img alt="Results" src="https://img.shields.io/badge/results-Jev%201.13%20%7C%20Laya%200.3-4F46E5"></a>
|
|
65
|
+
</p>
|
|
66
|
+
|
|
67
|
+
**sys1bench** benchmarks *System One decision models*: non-autoregressive models that read a block of state plus typed questions (`choice`, `score`, `noul`) and return a calibrated probability distribution in one forward pass, instead of generating text. The first two such models are TypeSafe's hosted **Jev** and Convai's open-weight **Laya**; the harness is model-agnostic so the next ones plug in through an adapter or a YAML file.
|
|
68
|
+
|
|
69
|
+
It answers the questions a vendor scorecard does not: whether the model beats trivial baselines on the same items, whether its accuracy depends on how the question is worded, whether its probabilities mean anything and in which direction they are wrong, whether confidence can gate actions, how it degrades with option count, state length, noise and out-of-scope inputs, whether batching questions changes answers or only cost, and what all of it costs per 100k decisions.
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Why another benchmark
|
|
74
|
+
|
|
75
|
+
| Existing practice | sys1bench |
|
|
76
|
+
|---|---|
|
|
77
|
+
| Public datasets the models may have trained on | Generated items whose label follows a **stated policy** the model must apply, plus paired control arms (unknowable, label-noise, distractor, none-of-the-above) |
|
|
78
|
+
| One accuracy number per task | Accuracy as the **median over five paraphrases and three criteria variants**, with the range shown |
|
|
79
|
+
| Raw ECE at one binning | ECE **divided by its resampled noise floor**, smooth CE, Brier decomposition, clipped NLL, quantisation report, per-half temperature refit |
|
|
80
|
+
| Hosted and local latency on one axis | Separate sections; device recorded on every row; a local model that lands on CPU when CUDA was requested **aborts the run** |
|
|
81
|
+
| Seeds as the unit of variance | Item-level paired bootstrap, McNemar, cluster bootstrap over framing groups |
|
|
82
|
+
| Silent fixes | Renormalisation, truncation, abstention and vendor rejections are **recorded as rates**, never patched over |
|
|
83
|
+
|
|
84
|
+
## Install
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
pip install sys1bench # core: numpy, scipy, pandas, pydantic, httpx, typer
|
|
88
|
+
pip install "sys1bench[plots]" # + matplotlib for reliability / risk-coverage / framing plots
|
|
89
|
+
pip install "sys1bench[laya]" # + the laya package (needs torch; GPU recommended)
|
|
90
|
+
pip install "sys1bench[local]" # + torch, transformers, sentence-transformers baselines
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
From source: `git clone https://github.com/rssr25/system-one-bench && cd system-one-bench && uv pip install -e ".[dev]"`.
|
|
94
|
+
|
|
95
|
+
## Quickstart (offline, two minutes)
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
sys1bench generate support_tickets tickets.jsonl --n 200 --seed 42
|
|
99
|
+
sys1bench run tickets.jsonl preds.jsonl --adapter mock --framings support_tickets --permutations 3 --corruption --short-circuit
|
|
100
|
+
sys1bench run tickets.jsonl prior.jsonl --adapter majority_prior
|
|
101
|
+
sys1bench score preds.jsonl prior.jsonl --out summary.json
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
```
|
|
105
|
+
| model | acc (median) | acc range | ECE/floor | ECE15 | Brier | AURC | cov@5% | T | perm JSD | p50 ms |
|
|
106
|
+
|-------------------|--------------|----------------|-----------|-------|-------|-------|--------|-------|----------|--------|
|
|
107
|
+
| mock-v1 / queue | 0.783 | [0.783, 0.795] | 2.736 | 0.124 | 0.387 | 0.214 | 0.000 | 1.070 | 0.182 | 5.9 |
|
|
108
|
+
| mock-v1 / priority| 0.750 | [0.750, 0.752] | 3.614 | 0.096 | 0.438 | 0.195 | 0.004 | 1.271 | – | 5.9 |
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Run it on a real model
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
# Jev (hosted, first-party API)
|
|
115
|
+
echo 'TypeSafe_API_KEY=...' > .env
|
|
116
|
+
sys1bench canary jev_typesafe --model jev-1.13.0 # 200 fixed items; drift baseline
|
|
117
|
+
sys1bench suite all results/jev --config configs/models/jev_1.13.yaml --n 500 --concurrency 4
|
|
118
|
+
|
|
119
|
+
# Laya (local; same manifests as Jev so the comparison is item-for-item)
|
|
120
|
+
sys1bench suite all results/laya --config configs/models/laya_en.yaml --manifests-from results/jev --budget
|
|
121
|
+
|
|
122
|
+
# Report, LaTeX tables, HTML dashboard and plots for everything under results/
|
|
123
|
+
sys1bench report results --latex results/tables.tex --html results/dashboard.html
|
|
124
|
+
sys1bench plots results
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
`suite` takes any subset of `A C D E F G I` (or `all`) and writes into `results/<name>/` and `results/<name>_sweeps/`; every request is cached, so re-running is free, and a local model that lands on CPU when CUDA was requested aborts and is retried rather than silently measured. The `scripts/` directory keeps shell equivalents.
|
|
128
|
+
|
|
129
|
+
`results/REPORT.md` contains, per model: the headline table above, ordinal fidelity for `score` questions, the framing table (paraphrases, label-only, with negatives, vague, swapped descriptions), decomposition, control arms and audits, then the sweep tables (cardinality, length, interference, robustness, prior shift, option budget), and cost. `results/plots/` overlays every model on the same reliability, risk-coverage and framing-range axes.
|
|
130
|
+
|
|
131
|
+
### Adding your model
|
|
132
|
+
|
|
133
|
+
| Your model | What to do |
|
|
134
|
+
|---|---|
|
|
135
|
+
| Hosted, conventional JSON decisions API | Copy [`configs/models/example_future_vendor.yaml`](configs/models/example_future_vendor.yaml), fill in URL, auth env var and field names. No code. |
|
|
136
|
+
| Anything else | Subclass `BaseAdapter`: declare `capabilities` (primitives, max options, state tokens, native abstain, batching) and implement `decide` (state + typed questions in, one probability vector per question out). Register with `@register("my_model")` or the `sys1bench.adapters` entry-point group from your own package. |
|
|
137
|
+
|
|
138
|
+
Capability limits are declared, then measured: a request outside them is recorded as a `capability_issue` or `rejected_by_vendor` row, never a crash.
|
|
139
|
+
|
|
140
|
+
## Suites
|
|
141
|
+
|
|
142
|
+
| Suite | Question it answers | Key outputs |
|
|
143
|
+
|---|---|---|
|
|
144
|
+
| **A** Calibration & selective prediction | Do the probabilities mean what they say? Can confidence gate actions? | ECE/floor, smooth CE, Brier, NLL, temperature refit, AURC, coverage@risk, abstention, unknowable arm |
|
|
145
|
+
| **B** Framing sensitivity | Is the accuracy a property of the model or of the wording? | median [min, max] over paraphrases, criteria variants, corruption drop, decomposition gain |
|
|
146
|
+
| **C** Scaling | How does it behave with 2 to 255 options, 128 to 32k tokens, and (Laya) option budgets? | accuracy / ECE / latency curves, rejection kinds |
|
|
147
|
+
| **D** Robustness | Distractors, casing, typos, homoglyphs, out-of-scope inputs, prior shift | Δ accuracy, JSD to clean, AUROC of confidence, abstention with vs without the option, P(yes) vs base rate |
|
|
148
|
+
| **E** Interference | Does co-asking other questions change an answer? What does batching cost? | JSD vs alone, flip rate, latency and cost per question vs Q |
|
|
149
|
+
| **F** Ordinal probes | Does `score` behave like an ordinal scale? | monotonicity along severity ladders, 3/5/10-level scale invariance |
|
|
150
|
+
| **G** Noul consistency | Is P(yes) a probability? | complement consistency under negation, choice-vs-noul agreement, threshold portability across tasks |
|
|
151
|
+
| **I** Decision value | What does calibration buy downstream? | cost per 10k decisions under argmax / Bayes / escalate policies from the manifests' cost matrices |
|
|
152
|
+
| Audits | Is the benchmark itself sound? | state-only / options-only short circuits, leakage, positional bias, label-noise control |
|
|
153
|
+
|
|
154
|
+
## First results
|
|
155
|
+
|
|
156
|
+
Jev 1.13.0 and Laya 0.3.4 (english and typed-decisions) on identical Tier G manifests, n=500, 22 September 2026. Findings F1 to F9 with caveats: [`docs/RESULTS_2026-09-22_narrative.md`](docs/RESULTS_2026-09-22_narrative.md); generated tables: [`docs/RESULTS_2026-09-22.md`](docs/RESULTS_2026-09-22.md).
|
|
157
|
+
|
|
158
|
+
<p align="center">
|
|
159
|
+
<img src="docs/figures/framing_tickets_priority.png" alt="accuracy across framings, ticket priority" width="46%">
|
|
160
|
+
<img src="docs/figures/reliability_tickets_priority.png" alt="reliability diagram, ticket priority" width="36%">
|
|
161
|
+
</p>
|
|
162
|
+
|
|
163
|
+
Headline: both models saturate the easy choice and noul questions; the policy-following `score` questions are where they separate. Jev is more accurate on every choice and noul question, reads lookup tables and numbered policies at 1.00, is language-independent, and keeps answers independent of co-asked questions, but it is strongly over-confident on scores (refit temperature 3.8 to 4.1), its ticket-priority accuracy moves from 0.39 to 0.53 with wording alone, and under a 20:1 cost matrix acting on its probabilities is *worse* than argmax. Laya is under-confident on scores, beats Jev on 4-level urgency (typed-decisions 0.79 vs 0.48), has a cleaner out-of-scope signal, but collapses with option count, on JSON records, on Devanagari, and under negation, and its latency grows linearly with batched questions. A fine-tuned DistilBERT trained on a disjoint seed scores 1.00 on every question, so every current label is learnable from surface features; the System One models' failures are failures to apply stated policies zero-shot. Sixteen findings with numbers are in the narrative.
|
|
164
|
+
|
|
165
|
+
## Documentation
|
|
166
|
+
|
|
167
|
+
- [`docs/SPEC_v2.md`](docs/SPEC_v2.md): the benchmark specification (contract, data tiers, suites, statistics, audits, future-model rules)
|
|
168
|
+
- [`docs/REVIEW_v1.md`](docs/REVIEW_v1.md): review of the original plan against the public state of the art
|
|
169
|
+
- [`CHANGELOG.md`](CHANGELOG.md)
|
|
170
|
+
|
|
171
|
+
## Layout
|
|
172
|
+
|
|
173
|
+
```
|
|
174
|
+
src/sys1bench/
|
|
175
|
+
schemas.py manifest v2, DecisionRequest/Response contract, ModelCapabilities
|
|
176
|
+
adapters/ mock, jev_typesafe, jev_openrouter, laya_local, generic_http, hybrid_router, encoder_finetuned, baselines
|
|
177
|
+
metrics/ calibration, selective, ordinal, consistency, robustness, efficiency, decision_value
|
|
178
|
+
generators/ support_tickets, phishing_email, rag_relevance, log_triage, policy_compliance, guardrail_intent,
|
|
179
|
+
multilingual_tickets (paired control arms, regex rules, cost matrices)
|
|
180
|
+
framing/ paraphrase / criteria expansion, corruption, permutation, short-circuit, decomposition, perturbations, prior shift
|
|
181
|
+
runners/ cached runner (reparse-from-raw), canary, sweeps, robustness
|
|
182
|
+
analysis/ paired bootstrap, McNemar, Holm; audits; decomposition; control arms
|
|
183
|
+
report/ scorecards, results document, plots
|
|
184
|
+
data/ packaged framing sets and the 200-item drift canary
|
|
185
|
+
cli.py suite | generate | run | score | canary | sweep-* | interference | robustness | noul-consistency |
|
|
186
|
+
ordinal-probes | decision-value | hybrid-sweep | report (--latex, --html) | plots
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
## Citing
|
|
190
|
+
|
|
191
|
+
If you use sys1bench, please cite the repository and the results document with the model versions and date; the vendor models move, so the version string returned by the provider is part of every row.
|
|
192
|
+
|
|
193
|
+
## License
|
|
194
|
+
|
|
195
|
+
Apache 2.0. Generated data, framing sets and results are released under the same license.
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="docs/assets/logo.svg" alt="sys1bench" width="520">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://pypi.org/project/sys1bench/"><img alt="PyPI" src="https://img.shields.io/pypi/v/sys1bench?color=4F46E5&label=PyPI"></a>
|
|
7
|
+
<a href="https://pypi.org/project/sys1bench/"><img alt="Python" src="https://img.shields.io/pypi/pyversions/sys1bench?color=06B6D4"></a>
|
|
8
|
+
<a href="https://github.com/rssr25/system-one-bench/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/rssr25/system-one-bench/actions/workflows/ci.yml/badge.svg"></a>
|
|
9
|
+
<a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/license-Apache--2.0-blue.svg"></a>
|
|
10
|
+
<img alt="Tests" src="https://img.shields.io/badge/tests-31%20passing-brightgreen">
|
|
11
|
+
<img alt="Status" src="https://img.shields.io/badge/status-alpha-orange">
|
|
12
|
+
<a href="docs/RESULTS_2026-09-22_narrative.md"><img alt="Results" src="https://img.shields.io/badge/results-Jev%201.13%20%7C%20Laya%200.3-4F46E5"></a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
**sys1bench** benchmarks *System One decision models*: non-autoregressive models that read a block of state plus typed questions (`choice`, `score`, `noul`) and return a calibrated probability distribution in one forward pass, instead of generating text. The first two such models are TypeSafe's hosted **Jev** and Convai's open-weight **Laya**; the harness is model-agnostic so the next ones plug in through an adapter or a YAML file.
|
|
16
|
+
|
|
17
|
+
It answers the questions a vendor scorecard does not: whether the model beats trivial baselines on the same items, whether its accuracy depends on how the question is worded, whether its probabilities mean anything and in which direction they are wrong, whether confidence can gate actions, how it degrades with option count, state length, noise and out-of-scope inputs, whether batching questions changes answers or only cost, and what all of it costs per 100k decisions.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Why another benchmark
|
|
22
|
+
|
|
23
|
+
| Existing practice | sys1bench |
|
|
24
|
+
|---|---|
|
|
25
|
+
| Public datasets the models may have trained on | Generated items whose label follows a **stated policy** the model must apply, plus paired control arms (unknowable, label-noise, distractor, none-of-the-above) |
|
|
26
|
+
| One accuracy number per task | Accuracy as the **median over five paraphrases and three criteria variants**, with the range shown |
|
|
27
|
+
| Raw ECE at one binning | ECE **divided by its resampled noise floor**, smooth CE, Brier decomposition, clipped NLL, quantisation report, per-half temperature refit |
|
|
28
|
+
| Hosted and local latency on one axis | Separate sections; device recorded on every row; a local model that lands on CPU when CUDA was requested **aborts the run** |
|
|
29
|
+
| Seeds as the unit of variance | Item-level paired bootstrap, McNemar, cluster bootstrap over framing groups |
|
|
30
|
+
| Silent fixes | Renormalisation, truncation, abstention and vendor rejections are **recorded as rates**, never patched over |
|
|
31
|
+
|
|
32
|
+
## Install
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pip install sys1bench # core: numpy, scipy, pandas, pydantic, httpx, typer
|
|
36
|
+
pip install "sys1bench[plots]" # + matplotlib for reliability / risk-coverage / framing plots
|
|
37
|
+
pip install "sys1bench[laya]" # + the laya package (needs torch; GPU recommended)
|
|
38
|
+
pip install "sys1bench[local]" # + torch, transformers, sentence-transformers baselines
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
From source: `git clone https://github.com/rssr25/system-one-bench && cd system-one-bench && uv pip install -e ".[dev]"`.
|
|
42
|
+
|
|
43
|
+
## Quickstart (offline, two minutes)
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
sys1bench generate support_tickets tickets.jsonl --n 200 --seed 42
|
|
47
|
+
sys1bench run tickets.jsonl preds.jsonl --adapter mock --framings support_tickets --permutations 3 --corruption --short-circuit
|
|
48
|
+
sys1bench run tickets.jsonl prior.jsonl --adapter majority_prior
|
|
49
|
+
sys1bench score preds.jsonl prior.jsonl --out summary.json
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
| model | acc (median) | acc range | ECE/floor | ECE15 | Brier | AURC | cov@5% | T | perm JSD | p50 ms |
|
|
54
|
+
|-------------------|--------------|----------------|-----------|-------|-------|-------|--------|-------|----------|--------|
|
|
55
|
+
| mock-v1 / queue | 0.783 | [0.783, 0.795] | 2.736 | 0.124 | 0.387 | 0.214 | 0.000 | 1.070 | 0.182 | 5.9 |
|
|
56
|
+
| mock-v1 / priority| 0.750 | [0.750, 0.752] | 3.614 | 0.096 | 0.438 | 0.195 | 0.004 | 1.271 | – | 5.9 |
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Run it on a real model
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# Jev (hosted, first-party API)
|
|
63
|
+
echo 'TypeSafe_API_KEY=...' > .env
|
|
64
|
+
sys1bench canary jev_typesafe --model jev-1.13.0 # 200 fixed items; drift baseline
|
|
65
|
+
sys1bench suite all results/jev --config configs/models/jev_1.13.yaml --n 500 --concurrency 4
|
|
66
|
+
|
|
67
|
+
# Laya (local; same manifests as Jev so the comparison is item-for-item)
|
|
68
|
+
sys1bench suite all results/laya --config configs/models/laya_en.yaml --manifests-from results/jev --budget
|
|
69
|
+
|
|
70
|
+
# Report, LaTeX tables, HTML dashboard and plots for everything under results/
|
|
71
|
+
sys1bench report results --latex results/tables.tex --html results/dashboard.html
|
|
72
|
+
sys1bench plots results
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
`suite` takes any subset of `A C D E F G I` (or `all`) and writes into `results/<name>/` and `results/<name>_sweeps/`; every request is cached, so re-running is free, and a local model that lands on CPU when CUDA was requested aborts and is retried rather than silently measured. The `scripts/` directory keeps shell equivalents.
|
|
76
|
+
|
|
77
|
+
`results/REPORT.md` contains, per model: the headline table above, ordinal fidelity for `score` questions, the framing table (paraphrases, label-only, with negatives, vague, swapped descriptions), decomposition, control arms and audits, then the sweep tables (cardinality, length, interference, robustness, prior shift, option budget), and cost. `results/plots/` overlays every model on the same reliability, risk-coverage and framing-range axes.
|
|
78
|
+
|
|
79
|
+
### Adding your model
|
|
80
|
+
|
|
81
|
+
| Your model | What to do |
|
|
82
|
+
|---|---|
|
|
83
|
+
| Hosted, conventional JSON decisions API | Copy [`configs/models/example_future_vendor.yaml`](configs/models/example_future_vendor.yaml), fill in URL, auth env var and field names. No code. |
|
|
84
|
+
| Anything else | Subclass `BaseAdapter`: declare `capabilities` (primitives, max options, state tokens, native abstain, batching) and implement `decide` (state + typed questions in, one probability vector per question out). Register with `@register("my_model")` or the `sys1bench.adapters` entry-point group from your own package. |
|
|
85
|
+
|
|
86
|
+
Capability limits are declared, then measured: a request outside them is recorded as a `capability_issue` or `rejected_by_vendor` row, never a crash.
|
|
87
|
+
|
|
88
|
+
## Suites
|
|
89
|
+
|
|
90
|
+
| Suite | Question it answers | Key outputs |
|
|
91
|
+
|---|---|---|
|
|
92
|
+
| **A** Calibration & selective prediction | Do the probabilities mean what they say? Can confidence gate actions? | ECE/floor, smooth CE, Brier, NLL, temperature refit, AURC, coverage@risk, abstention, unknowable arm |
|
|
93
|
+
| **B** Framing sensitivity | Is the accuracy a property of the model or of the wording? | median [min, max] over paraphrases, criteria variants, corruption drop, decomposition gain |
|
|
94
|
+
| **C** Scaling | How does it behave with 2 to 255 options, 128 to 32k tokens, and (Laya) option budgets? | accuracy / ECE / latency curves, rejection kinds |
|
|
95
|
+
| **D** Robustness | Distractors, casing, typos, homoglyphs, out-of-scope inputs, prior shift | Δ accuracy, JSD to clean, AUROC of confidence, abstention with vs without the option, P(yes) vs base rate |
|
|
96
|
+
| **E** Interference | Does co-asking other questions change an answer? What does batching cost? | JSD vs alone, flip rate, latency and cost per question vs Q |
|
|
97
|
+
| **F** Ordinal probes | Does `score` behave like an ordinal scale? | monotonicity along severity ladders, 3/5/10-level scale invariance |
|
|
98
|
+
| **G** Noul consistency | Is P(yes) a probability? | complement consistency under negation, choice-vs-noul agreement, threshold portability across tasks |
|
|
99
|
+
| **I** Decision value | What does calibration buy downstream? | cost per 10k decisions under argmax / Bayes / escalate policies from the manifests' cost matrices |
|
|
100
|
+
| Audits | Is the benchmark itself sound? | state-only / options-only short circuits, leakage, positional bias, label-noise control |
|
|
101
|
+
|
|
102
|
+
## First results
|
|
103
|
+
|
|
104
|
+
Jev 1.13.0 and Laya 0.3.4 (english and typed-decisions) on identical Tier G manifests, n=500, 22 September 2026. Findings F1 to F9 with caveats: [`docs/RESULTS_2026-09-22_narrative.md`](docs/RESULTS_2026-09-22_narrative.md); generated tables: [`docs/RESULTS_2026-09-22.md`](docs/RESULTS_2026-09-22.md).
|
|
105
|
+
|
|
106
|
+
<p align="center">
|
|
107
|
+
<img src="docs/figures/framing_tickets_priority.png" alt="accuracy across framings, ticket priority" width="46%">
|
|
108
|
+
<img src="docs/figures/reliability_tickets_priority.png" alt="reliability diagram, ticket priority" width="36%">
|
|
109
|
+
</p>
|
|
110
|
+
|
|
111
|
+
Headline: both models saturate the easy choice and noul questions; the policy-following `score` questions are where they separate. Jev is more accurate on every choice and noul question, reads lookup tables and numbered policies at 1.00, is language-independent, and keeps answers independent of co-asked questions, but it is strongly over-confident on scores (refit temperature 3.8 to 4.1), its ticket-priority accuracy moves from 0.39 to 0.53 with wording alone, and under a 20:1 cost matrix acting on its probabilities is *worse* than argmax. Laya is under-confident on scores, beats Jev on 4-level urgency (typed-decisions 0.79 vs 0.48), has a cleaner out-of-scope signal, but collapses with option count, on JSON records, on Devanagari, and under negation, and its latency grows linearly with batched questions. A fine-tuned DistilBERT trained on a disjoint seed scores 1.00 on every question, so every current label is learnable from surface features; the System One models' failures are failures to apply stated policies zero-shot. Sixteen findings with numbers are in the narrative.
|
|
112
|
+
|
|
113
|
+
## Documentation
|
|
114
|
+
|
|
115
|
+
- [`docs/SPEC_v2.md`](docs/SPEC_v2.md): the benchmark specification (contract, data tiers, suites, statistics, audits, future-model rules)
|
|
116
|
+
- [`docs/REVIEW_v1.md`](docs/REVIEW_v1.md): review of the original plan against the public state of the art
|
|
117
|
+
- [`CHANGELOG.md`](CHANGELOG.md)
|
|
118
|
+
|
|
119
|
+
## Layout
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
src/sys1bench/
|
|
123
|
+
schemas.py manifest v2, DecisionRequest/Response contract, ModelCapabilities
|
|
124
|
+
adapters/ mock, jev_typesafe, jev_openrouter, laya_local, generic_http, hybrid_router, encoder_finetuned, baselines
|
|
125
|
+
metrics/ calibration, selective, ordinal, consistency, robustness, efficiency, decision_value
|
|
126
|
+
generators/ support_tickets, phishing_email, rag_relevance, log_triage, policy_compliance, guardrail_intent,
|
|
127
|
+
multilingual_tickets (paired control arms, regex rules, cost matrices)
|
|
128
|
+
framing/ paraphrase / criteria expansion, corruption, permutation, short-circuit, decomposition, perturbations, prior shift
|
|
129
|
+
runners/ cached runner (reparse-from-raw), canary, sweeps, robustness
|
|
130
|
+
analysis/ paired bootstrap, McNemar, Holm; audits; decomposition; control arms
|
|
131
|
+
report/ scorecards, results document, plots
|
|
132
|
+
data/ packaged framing sets and the 200-item drift canary
|
|
133
|
+
cli.py suite | generate | run | score | canary | sweep-* | interference | robustness | noul-consistency |
|
|
134
|
+
ordinal-probes | decision-value | hybrid-sweep | report (--latex, --html) | plots
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Citing
|
|
138
|
+
|
|
139
|
+
If you use sys1bench, please cite the repository and the results document with the model versions and date; the vendor models move, so the version string returned by the provider is part of every row.
|
|
140
|
+
|
|
141
|
+
## License
|
|
142
|
+
|
|
143
|
+
Apache 2.0. Generated data, framing sets and results are released under the same license.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "sys1bench"
|
|
3
|
+
version = "0.3.0"
|
|
4
|
+
description = "Benchmark harness for typed System One decision models (choice / score / noul): calibration vs noise floor, framing sensitivity, selective prediction, ordinal fidelity, interference, robustness."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.11"
|
|
7
|
+
license = "Apache-2.0"
|
|
8
|
+
license-files = ["LICENSE"]
|
|
9
|
+
authors = [{ name = "Rahul Sharma", email = "rsharma@rptu.de" }]
|
|
10
|
+
keywords = ["benchmark", "calibration", "system-one", "decision-models", "jev", "laya", "evaluation", "llm"]
|
|
11
|
+
classifiers = [
|
|
12
|
+
"Development Status :: 3 - Alpha",
|
|
13
|
+
"Intended Audience :: Science/Research",
|
|
14
|
+
"Intended Audience :: Developers",
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Programming Language :: Python :: 3.11",
|
|
17
|
+
"Programming Language :: Python :: 3.12",
|
|
18
|
+
"Programming Language :: Python :: 3.13",
|
|
19
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
20
|
+
"Topic :: Software Development :: Testing",
|
|
21
|
+
"Operating System :: OS Independent",
|
|
22
|
+
"Typing :: Typed",
|
|
23
|
+
]
|
|
24
|
+
dependencies = [
|
|
25
|
+
"numpy>=1.26",
|
|
26
|
+
"scipy>=1.11",
|
|
27
|
+
"pandas>=2.0",
|
|
28
|
+
"pydantic>=2.5",
|
|
29
|
+
"httpx>=0.27",
|
|
30
|
+
"pyyaml>=6.0",
|
|
31
|
+
"typer>=0.12",
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
[project.optional-dependencies]
|
|
35
|
+
plots = ["matplotlib>=3.8"]
|
|
36
|
+
local = ["torch>=2.4", "transformers>=4.45", "sentence-transformers>=3.0"]
|
|
37
|
+
laya = ["laya>=0.3"]
|
|
38
|
+
llm = ["vllm>=0.6", "outlines>=0.1"]
|
|
39
|
+
dev = ["pytest>=8.0", "ruff>=0.6", "matplotlib>=3.8", "build>=1.2", "twine>=5.0"]
|
|
40
|
+
|
|
41
|
+
[project.urls]
|
|
42
|
+
Homepage = "https://github.com/rssr25/system-one-bench"
|
|
43
|
+
Documentation = "https://github.com/rssr25/system-one-bench/blob/main/docs/SPEC_v2.md"
|
|
44
|
+
Results = "https://github.com/rssr25/system-one-bench/blob/main/docs/RESULTS_2026-09-22_narrative.md"
|
|
45
|
+
Issues = "https://github.com/rssr25/system-one-bench/issues"
|
|
46
|
+
Changelog = "https://github.com/rssr25/system-one-bench/blob/main/CHANGELOG.md"
|
|
47
|
+
|
|
48
|
+
[project.scripts]
|
|
49
|
+
sys1bench = "sys1bench.cli:app"
|
|
50
|
+
|
|
51
|
+
# Third-party model adapters register here so future models plug in without touching this repo.
|
|
52
|
+
[project.entry-points."sys1bench.adapters"]
|
|
53
|
+
|
|
54
|
+
[build-system]
|
|
55
|
+
requires = ["setuptools>=68"]
|
|
56
|
+
build-backend = "setuptools.build_meta"
|
|
57
|
+
|
|
58
|
+
[tool.setuptools.packages.find]
|
|
59
|
+
where = ["src"]
|
|
60
|
+
|
|
61
|
+
[tool.setuptools.package-data]
|
|
62
|
+
"sys1bench.data" = ["framings/*.yaml", "canary/*.jsonl"]
|
|
63
|
+
|
|
64
|
+
[tool.pytest.ini_options]
|
|
65
|
+
testpaths = ["tests"]
|
|
66
|
+
|
|
67
|
+
[tool.ruff]
|
|
68
|
+
line-length = 140
|
|
69
|
+
target-version = "py311"
|
|
70
|
+
|
|
71
|
+
[tool.ruff.lint]
|
|
72
|
+
select = ["E", "F", "W", "I"]
|
|
73
|
+
ignore = ["E731", "E741", "E501"]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""Model adapters. Register new models with `@register("id")` or via the
|
|
2
|
+
`sys1bench.adapters` entry-point group so future models need no changes here."""
|
|
3
|
+
|
|
4
|
+
from . import ( # noqa: F401
|
|
5
|
+
generic_http,
|
|
6
|
+
hybrid_router,
|
|
7
|
+
jev_openrouter,
|
|
8
|
+
jev_typesafe,
|
|
9
|
+
laya_local,
|
|
10
|
+
majority_prior,
|
|
11
|
+
mock,
|
|
12
|
+
regex_keyword,
|
|
13
|
+
)
|
|
14
|
+
from .base import BaseAdapter, get_adapter, list_adapters, register # noqa: F401
|
|
15
|
+
|
|
16
|
+
try: # optional heavy deps
|
|
17
|
+
from . import embed_knn, encoder_finetuned, llm_constrained, nli_zeroshot # noqa: F401
|
|
18
|
+
except Exception: # pragma: no cover
|
|
19
|
+
pass
|