chaoliangUNSW commited on
Commit
8fb1fc0
·
verified ·
1 Parent(s): dd503b1

Release Jev-Style v2 with calibrated decision inference and evaluation records

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ Jev-Style-v2-Q8_0-Calibrated.gguf filter=lfs diff=lfs merge=lfs -text
Jev-Style-v2-Q8_0-Calibrated.calibration.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "temperature": 1.0,
3
+ "fitted_temperature_folded": 1.0403540135054734,
4
+ "temperature_folded": true,
5
+ "folded_tensor": "output_norm.weight",
6
+ "source_calibration": {
7
+ "temperature": 1.0403540135054734,
8
+ "calibration_n": 3100,
9
+ "objective": "sample_mean_soft_cross_entropy",
10
+ "bounds": [
11
+ 0.05,
12
+ 20
13
+ ],
14
+ "nll_before": 0.5142612871187658,
15
+ "nll_after": 0.5139652439657095,
16
+ "backend": "gguf",
17
+ "model": "results/Jev-Style-v2-Q8_0.gguf",
18
+ "source_sha256": "2fde7f45dce3440abfde145bb30ad61e2643b1f853866b5760b235685328dc1c"
19
+ },
20
+ "input_sha256": "f659d164d0fed4e645f711cbf56c177ee63c1856e6875f48a27ebac2cfb11175",
21
+ "output_sha256": "5c2aa0d35b24a27f03228b2c62ebaaebd9b5b785844634d4217278d822751494",
22
+ "validation_required": false,
23
+ "validation": {
24
+ "n": 500,
25
+ "argmax_agreement": 0.992,
26
+ "cuda_same_subset": {
27
+ "accuracy": 0.7910177949703642,
28
+ "macro_f1": 0.7760857891780776,
29
+ "nll": 0.6000106706289864,
30
+ "brier": 0.317876961372947,
31
+ "ece": 0.16696329399611096
32
+ },
33
+ "q8_same_subset": {
34
+ "accuracy": 0.7868855635654054,
35
+ "macro_f1": 0.773615445189482,
36
+ "nll": 0.6015417570028033,
37
+ "brier": 0.318930434743987,
38
+ "ece": 0.16630794459650552
39
+ },
40
+ "accuracy_difference": -0.004132231404958775,
41
+ "nll_difference": 0.0015310863738169367,
42
+ "temperature_folded": true,
43
+ "passed": true,
44
+ "practical_deployment_gate_passed": true,
45
+ "initial_strict_accuracy_target_met_on_subset": false,
46
+ "initial_accuracy_loss_target": 0.003,
47
+ "note": "500-example subset check: 99.2% agreement. Observed task-macro loss is 0.413 pp, so the initial 0.3 pp accuracy goal is not met on this subset. Prefer BF16/MLX when accuracy is the priority; this is not a bound on population degradation."
48
+ }
49
+ }
Jev-Style-v2-Q8_0-Calibrated.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c2aa0d35b24a27f03228b2c62ebaaebd9b5b785844634d4217278d822751494
3
+ size 2012004256
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 2026 Alibaba Cloud
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.
README.md ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ library_name: gguf
6
+ pipeline_tag: text-generation
7
+ base_model: chaoliangUNSW/Jev-Style-Qwen3.5-2B-Decision-v2
8
+ base_model_relation: quantized
9
+ tags:
10
+ - decision-model
11
+ - classification
12
+ - calibration
13
+ - qwen3.5
14
+ - jev-style
15
+ - single-prefill
16
+ ---
17
+ # Jev-Style-Qwen3.5-2B-Decision v2 · GGUF Q8_0
18
+
19
+ A compact decision model for classification, routing and typed choices. Give it a state, a question and a list of options; receive a selected option and calibrated probabilities in one prefill.
20
+
21
+ [HF BF16](https://huggingface.co/chaoliangUNSW/Jev-Style-Qwen3.5-2B-Decision-v2) | [GGUF Q8_0](https://huggingface.co/chaoliangUNSW/Jev-Style-Qwen3.5-2B-Decision-v2-GGUF) | [MLX BF16](https://huggingface.co/chaoliangUNSW/Jev-Style-Qwen3.5-2B-Decision-v2-MLX-bf16)
22
+
23
+ ## This release: calibrated Q8_0 GGUF
24
+
25
+ - **2.01 GB** model file, approximately **46.5% smaller** than the BF16 GGUF export.
26
+ - **99.2% choice agreement** with merged CUDA BF16 on the frozen 500-decision deployment subset.
27
+ - Temperature fitted on 3,100 calibration records and already folded into the final normalization tensor.
28
+ - Ready for exact-option inference through llama.cpp, with a Python client and native C++ logit reader included.
29
+
30
+ The deployment subset's real-label task-macro accuracy is **78.69%** for Q8 and **79.10%** for CUDA BF16 on those same cases. The main evaluation table below describes the CUDA reference; the 500-case deployment subset is a separate measurement.
31
+
32
+ ### Download and run
33
+
34
+ ```bash
35
+ python -m pip install -U huggingface_hub
36
+ hf download chaoliangUNSW/Jev-Style-Qwen3.5-2B-Decision-v2-GGUF --local-dir jev-v2-gguf
37
+ cd jev-v2-gguf
38
+ llama-server -m Jev-Style-v2-Q8_0-Calibrated.gguf -c 2048 -ngl 99 --port 8080
39
+ ```
40
+
41
+ In another terminal, from the same directory:
42
+
43
+ ```bash
44
+ python jev_decision_client.py --url http://127.0.0.1:8080 \
45
+ --state "The film was excellent." \
46
+ --question "What is the sentiment of this review?" \
47
+ --options negative positive
48
+ ```
49
+
50
+ Use a llama.cpp build with Qwen3.5 support. Conversion and native evaluation used commit `b29c606e28a01b1bc8c1351026a0fa6e616bf6c4`. The client uses the native `/completion` endpoint, requests complete declared-option log-probabilities and increases the candidate count as needed. The supplied `gguf_logits.cpp` reads all declared-option logits directly through the C API.
51
+
52
+ **Runtime calibration temperature is 1.0** for this file: its fitted temperature has already been incorporated. The accompanying calibration JSON records the exact settings and checksum. Serve the raw decision prompt shown below, with the full declared option list.
53
+
54
+ ## Highlights
55
+
56
+ - **81.27% macro accuracy** for the released merged BF16 model across 11 real-label task groups (3,277 decisions).
57
+ - **9 of 12 task-group accuracy point estimates ahead of English Laya** in the fixed CUDA reference comparison.
58
+ - **+4.53 percentage points over Jev-Style v1** and **+6.12 points over English Laya** in reference macro accuracy on the same evaluation panel.
59
+ - **18.4% lower NLL and 20.0% lower Brier score** than English Laya in the reference comparison.
60
+ - **6.0% option-permutation flip rate**, compared with 9.25% for v1 and 12.0% for English Laya, on 400 Choice/Bool decisions.
61
+ - **One H100 80GB, 36.9 minutes of main training**, with a 2B-class text backbone and rank-32 LoRA.
62
+
63
+ The comparison uses the frozen English task panel and the CUDA reference structure. Deployment variants are measured separately below. The 9/12 count describes task-level point estimates.
64
+
65
+ ## Reference evaluation
66
+
67
+ Real-label results are macro-averaged with equal task weights. All three models use the same calibration records and global temperature-fitting objective.
68
+
69
+ | Metric | Jev-Style v1 | English Laya | Jev-Style v2 reference |
70
+ |---|---:|---:|---:|
71
+ | Accuracy ↑ | 76.68% | 75.09% | **81.20%** |
72
+ | Macro-F1 ↑ | 75.42% | 73.45% | **79.78%** |
73
+ | NLL ↓ | 0.5752 | 0.6318 | **0.5154** |
74
+ | Brier ↓ | 0.3290 | 0.3482 | **0.2787** |
75
+
76
+ Accuracy improvements have paired 95% intervals of **+3.58 to +5.52 points vs v1** and **+4.64 to +7.52 points vs English Laya** within this frozen task panel.
77
+
78
+ The panel covers sentiment, news, natural-language inference, question answering, emotion and email classification. The twelfth task group contains 2,000 teacher-reference typed decisions from 400 states and is reported separately from the real-label macro. Per-task results, all probability metrics, robustness measurements and baseline sensitivity results are supplied in the evaluation files.
79
+
80
+ ## Decision interface
81
+
82
+ Provide an English state, a question, and **2–26 unique options**, within a **1,024-token prompt**. A single prefill produces one logit per declared option. Apply the supplied calibration once and normalize over those options to obtain the decision probabilities.
83
+
84
+ ```text
85
+ You are a decision function. Read the state, then answer the question by choosing exactly one option.
86
+
87
+ [State]
88
+ The film was excellent.
89
+
90
+ [Question]
91
+ What is the sentiment of this review?
92
+
93
+ [Options]
94
+ A. negative
95
+ B. positive
96
+
97
+ Answer:
98
+ ```
99
+
100
+ The supplied clients implement this exact prompt and read the next-position ` A` through ` Z` token scores. Use this decision interface for Choice, Bool and ordered Score tasks; `decide_bool` returns the probability of yes, and `decide_score` also returns the expected zero-based level. For ordered scores, supply options from lowest to highest.
101
+
102
+ ## Training
103
+
104
+ Continued from the uncalibrated Jev-Style v1 text backbone derived from [Qwen3.5-2B-Base](https://huggingface.co/Qwen/Qwen3.5-2B-Base). Training used a BF16 backbone, FP32 rank-32 LoRA (alpha 32), 186 adapted modules and 33,638,400 trainable parameters. Effective batch size was 64 with a 1,024-token budget.
105
+
106
+ The 60,000-record training pool combines original-task replay with emotion, email, typed workflow decisions, label transformations and programmatic threshold rules. A two-stage schedule increases hard-example sampling while retaining approximately 50% original-task replay. Main training completed 1,000 optimizer updates and processed 11,605,632 tokens in 36.9 minutes on one H100 80GB.
107
+
108
+ Development (2,050 records), calibration (3,100 records) and final evaluation (5,277 decisions) were handled separately. Checkpoint selection used development results; calibration used the calibration split. This release records one training seed. The evaluation JSON files document the dataset, rendering and deployment protocols.
109
+
110
+ ## License and attribution
111
+
112
+ Apache-2.0. See [LICENSE](LICENSE). This release builds on Qwen3.5-2B-Base and Jev-Style v1. Training data retain their original source licenses; source and split details are recorded in the data manifest. The release contains model artifacts and aggregate evaluation records.
113
+
114
+ ## Contact
115
+
116
+ I welcome internship, employment, and research collaboration opportunities. Please contact me at [**yanhcaoliang369@gmail.com**](mailto:yanhcaoliang369@gmail.com).
117
+
118
+ 欢迎提供实习、工作及科研合作机会,请邮件联系:[yanhcaoliang369@gmail.com](mailto:yanhcaoliang369@gmail.com)。
SHA256SUMS.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Jev-Style-v2-Q8_0-Calibrated.calibration.json": {
3
+ "bytes": 1807,
4
+ "sha256": "7f3ae96ebf0271483365b8941124f3be9521e9e3ed4c3d62240e51c9b416ebb4"
5
+ },
6
+ "Jev-Style-v2-Q8_0-Calibrated.gguf": {
7
+ "bytes": 2012004256,
8
+ "sha256": "5c2aa0d35b24a27f03228b2c62ebaaebd9b5b785844634d4217278d822751494"
9
+ },
10
+ "LICENSE": {
11
+ "bytes": 11343,
12
+ "sha256": "50cbab8a892c5f2993b8c7351a99182507472def3b1374558308605d99b86b32"
13
+ },
14
+ "README.md": {
15
+ "bytes": 7065,
16
+ "sha256": "09d5aa25952f46b1a2f65702fc94898af22fe4a9734a541ca8ac45b479a906cd"
17
+ },
18
+ "evaluation/baseline_sensitivity.json": {
19
+ "bytes": 2015,
20
+ "sha256": "aadc4566710a397044edbfb9c353ee2e0baf14a6deb5e30f4234eabd66294026"
21
+ },
22
+ "evaluation/data_manifest.json": {
23
+ "bytes": 10680,
24
+ "sha256": "8d03d4bba9400ffe062b248733213a6e67a3d6c187340e9aa796c319f2feef23"
25
+ },
26
+ "evaluation/deployment.json": {
27
+ "bytes": 963,
28
+ "sha256": "a49d48a3c5cd3173dfc6badb11d33a3e22120e9a559b8e4ccbb2bd91653bc757"
29
+ },
30
+ "evaluation/http_smoke.json": {
31
+ "bytes": 542,
32
+ "sha256": "b33c0ea9f7a6cf49bba573b98dcf966c1dbf033ef21e6b9a92c8bc217a46a9f3"
33
+ },
34
+ "evaluation/laya_source.json": {
35
+ "bytes": 97,
36
+ "sha256": "b12ecce8dca6afad9e43c31c2385be255514d78856009ef9a6222bc955ca0757"
37
+ },
38
+ "evaluation/laya_typed_source.json": {
39
+ "bytes": 113,
40
+ "sha256": "c2c2bc4931bb489636c5471f25f2fa31c3baca347c0465f119b8039aac1d3619"
41
+ },
42
+ "evaluation/reference_comparison.json": {
43
+ "bytes": 27042,
44
+ "sha256": "36f56a490fc67e774cbb25b38d4dc9b5e3a42e1f65fcd748af092e127a98eff8"
45
+ },
46
+ "gguf_logits.cpp": {
47
+ "bytes": 3001,
48
+ "sha256": "a29f2dbd608f6448a6d440995baed130c8ae35c1a2bed0e653f5da0d32b6b067"
49
+ },
50
+ "jev_decision_client.py": {
51
+ "bytes": 4113,
52
+ "sha256": "7d02a340b80326ceefc6d20378bdf7c05cb5087b8ee243394eebd4c43eb47b36"
53
+ },
54
+ "requirements.txt": {
55
+ "bytes": 64,
56
+ "sha256": "7265d12f38635b9f592b0e2d62b1cc0a9788ebaa2f37d84eea2212ae16952d7c"
57
+ }
58
+ }
evaluation/baseline_sensitivity.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "protocol": "Post-run MPS sensitivity audit, separate from the original same-CUDA main comparison",
3
+ "selection": {
4
+ "selected_rendering": "semantic",
5
+ "dev_metrics": {
6
+ "neutral": {
7
+ "accuracy": 0.7714285714285715,
8
+ "macro_f1": 0.7459788544523509,
9
+ "nll": 0.6996133521392657,
10
+ "brier": 0.3261039060421592,
11
+ "ece": 0.12216485276160671
12
+ },
13
+ "semantic": {
14
+ "accuracy": 0.7838095238095237,
15
+ "macro_f1": 0.7599396892684371,
16
+ "nll": 0.718921979422934,
17
+ "brier": 0.3180294403591556,
18
+ "ece": 0.12064957876186524
19
+ }
20
+ },
21
+ "criterion": "highest real-label dev macro accuracy, then lower dev NLL",
22
+ "device": "mps",
23
+ "scope": "Post-run sensitivity audit of Laya choice-key formatting, not a new training experiment. No test-based rendering selection."
24
+ },
25
+ "english_semantic_real_macro": {
26
+ "accuracy": 0.7484148342632099,
27
+ "macro_f1": 0.7329973270680202,
28
+ "nll": 0.6309314045108828,
29
+ "brier": 0.3475500737329656,
30
+ "ece": 0.12349987305363984
31
+ },
32
+ "v2_point_wins_vs_english_semantic": 10,
33
+ "typed_native_teacher_metrics": {
34
+ "accuracy": 0.7475,
35
+ "macro_f1": 0.6203131476624142,
36
+ "nll": 0.8965023905846662,
37
+ "brier": 0.06935947732109757,
38
+ "ece": 0.17598656338286872
39
+ },
40
+ "v2_typed_teacher_metrics": {
41
+ "accuracy": 0.7345,
42
+ "macro_f1": 0.5843823268841445,
43
+ "nll": 0.9071323454613555,
44
+ "brier": 0.07585474596137866,
45
+ "ece": 0.13429560744677668
46
+ },
47
+ "native_typed_accuracy_gap_pp": -1.3000000000000012,
48
+ "caveats": [
49
+ "Development rendering selection used real-label macro accuracy, not test results.",
50
+ "This is a device/rendering sensitivity check; do not merge it into the original same-GPU experiment.",
51
+ "The typed checkpoint has upstream training exposure to the public train split from which these calibration examples were drawn.",
52
+ "Teacher agreement is not real-world correctness; probability matching is described by soft NLL/Brier."
53
+ ]
54
+ }
evaluation/data_manifest.json ADDED
@@ -0,0 +1,317 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": "h100-v2-20260923",
3
+ "seed": 20260923,
4
+ "max_length": 1024,
5
+ "sources": [
6
+ {
7
+ "url": "https://huggingface.co/datasets/SetFit/enron_spam/resolve/1916f66c89d52221ae33eb57d44498b4f3a5df22/train.jsonl",
8
+ "path": "source_project/h100_v2/data/sources/enron/train.jsonl",
9
+ "sha256": "b846cf15bcad7676c37ea3535622e39e6bff5c9c004f634513e4f9c2951e5f02",
10
+ "bytes": 101069043
11
+ },
12
+ {
13
+ "url": "https://huggingface.co/datasets/SetFit/enron_spam/resolve/1916f66c89d52221ae33eb57d44498b4f3a5df22/test.jsonl",
14
+ "path": "source_project/h100_v2/data/sources/enron/test.jsonl",
15
+ "sha256": "f07a4cca7bfc1d845d4ff59650e69a0ad31d9b5c0409ddad088219f7fc32bb52",
16
+ "bytes": 6273613
17
+ },
18
+ {
19
+ "url": "https://huggingface.co/datasets/LocalLLaMA/typed-decisions/resolve/c76749ec58bd8c3d2ea706b31c333a9059c38f90/all/train-00000-of-00001.parquet",
20
+ "path": "source_project/h100_v2/data/sources/typed/train-00000-of-00001.parquet",
21
+ "sha256": "46a58d63edfd86e23229c78afe8b72307bb4ca9fb0e8df180cabb3c67ec9dcd5",
22
+ "bytes": 598824
23
+ },
24
+ {
25
+ "url": "https://huggingface.co/datasets/LocalLLaMA/typed-decisions/resolve/c76749ec58bd8c3d2ea706b31c333a9059c38f90/all/test-00000-of-00001.parquet",
26
+ "path": "source_project/h100_v2/data/sources/typed/test-00000-of-00001.parquet",
27
+ "sha256": "4f294f218ea1da27f3efef936359389c62ea4d3973a41457732990f1d31b647c",
28
+ "bytes": 222140
29
+ },
30
+ {
31
+ "url": "https://huggingface.co/datasets/stanfordnlp/imdb/resolve/e6281661ce1c48d982bc483cf8a173c1bbeb5d31/plain_text/test-00000-of-00001.parquet",
32
+ "path": "source_project/h100_v2/data/sources/imdb/test-00000-of-00001.parquet",
33
+ "sha256": "b52e26e2f872d282ffac460bf9770b25ac6f102cda0e6ca7158df98c94e8b3da",
34
+ "bytes": 20470363
35
+ },
36
+ {
37
+ "url": "https://huggingface.co/datasets/facebook/anli/resolve/8e4813d81f46d313dac7892e1c28076917cfcdf9/plain_text/test_r1-00000-of-00001.parquet",
38
+ "path": "source_project/h100_v2/data/sources/anli/test_r1-00000-of-00001.parquet",
39
+ "sha256": "c4a3d304c4671941d6bad5a07632a79713c5a1be485ccf75b81b6df93f61045e",
40
+ "bytes": 353376
41
+ },
42
+ {
43
+ "url": "https://huggingface.co/datasets/facebook/anli/resolve/8e4813d81f46d313dac7892e1c28076917cfcdf9/plain_text/test_r2-00000-of-00001.parquet",
44
+ "path": "source_project/h100_v2/data/sources/anli/test_r2-00000-of-00001.parquet",
45
+ "sha256": "df5daccdd5623cfcaa34be0100721783485f4181a42796b1d0ac0cd7601e7acb",
46
+ "bytes": 361549
47
+ },
48
+ {
49
+ "url": "https://huggingface.co/datasets/facebook/anli/resolve/8e4813d81f46d313dac7892e1c28076917cfcdf9/plain_text/test_r3-00000-of-00001.parquet",
50
+ "path": "source_project/h100_v2/data/sources/anli/test_r3-00000-of-00001.parquet",
51
+ "sha256": "3232c4217979da00b2cd6ed97d099a8a8edf04530193ea52e3c8d69190de92a2",
52
+ "bytes": 434550
53
+ },
54
+ {
55
+ "url": "https://raw.githubusercontent.com/tommccoy1/hans/7299f6f657089ce06a0f98e7e81f8d0f5b7741ce/heuristics_evaluation_set.txt",
56
+ "path": "source_project/h100_v2/data/sources/hans/evaluation.tsv",
57
+ "sha256": "c55b62feef9913070e88f38938dc2492018c945ac81f70139346472494124e79",
58
+ "bytes": 15462062
59
+ },
60
+ {
61
+ "path": "source_project/data/calib.jsonl",
62
+ "sha256": "42097c0b0583e7ae6976d8b882374e9f5d9c0ad517d96866cf2f18fc39b21a6a",
63
+ "purpose": "exclude_v1_calibration_and_ood_from_training"
64
+ },
65
+ {
66
+ "path": "source_project/runs/b2_x4/holdout.jsonl",
67
+ "sha256": "e6e2e5dcc126565ffc88dbf589123522bf3c6b98568d750f00717ee29262db5f",
68
+ "purpose": "exclude_v1_calibration_and_ood_from_training"
69
+ },
70
+ {
71
+ "path": "source_project/data/eval_ood.jsonl",
72
+ "sha256": "0d8e6c82aa7f5701264e1af8423762f1e0bc93593ed47341a1fe0b5de8eba637",
73
+ "purpose": "exclude_v1_calibration_and_ood_from_training"
74
+ },
75
+ {
76
+ "path": "source_cache/huggingface/datasets/nyu-mll___glue/sst2/0.0.0/bcdcba79d07bc864c1c254ccfcedcce55bcc9a8c/glue-train.arrow",
77
+ "sha256": "47387d613631ae60c690f2dd67b8f80d0c39e36d9080ca438eb0f18e1ca4cb4a",
78
+ "task": "sst2"
79
+ },
80
+ {
81
+ "path": "source_cache/huggingface/datasets/nyu-mll___glue/mnli/0.0.0/bcdcba79d07bc864c1c254ccfcedcce55bcc9a8c/glue-train.arrow",
82
+ "sha256": "c53e4467acd3becf55c0f898391de3b453df8f0f4c98cb5e8cc8c4c706ecebca",
83
+ "task": "mnli"
84
+ },
85
+ {
86
+ "path": "source_cache/huggingface/datasets/fancyzhx___ag_news/default/0.0.0/eb185aade064a813bc0b7f42de02595523103ca4/ag_news-train.arrow",
87
+ "sha256": "b3eec28c0aed7d6616f047cf5148d94aba4f475f3b905b3dc9d331fa3435d16d",
88
+ "task": "ag_news"
89
+ },
90
+ {
91
+ "path": "source_cache/huggingface/datasets/google___boolq/default/0.0.0/35b264d03638db9f4ce671b711558bf7ff0f80d5/boolq-train.arrow",
92
+ "sha256": "297dd7c22cfaf5bbdde0467a2ec2eecab261118e8ee34f375a3326fc4ea6486e",
93
+ "task": "boolq"
94
+ },
95
+ {
96
+ "path": "source_cache/huggingface/datasets/SetFit___sst5/default/0.0.0/e51bdcd8cd3a30da231967c1a249ba59361279a3/sst5-train.arrow",
97
+ "sha256": "c3221ca614196a083a72efecd569148782022d434999bbd4a1da73d52e2a64b3",
98
+ "task": "sst5"
99
+ },
100
+ {
101
+ "path": "source_cache/huggingface/datasets/dair-ai___emotion/split/0.0.0/cab853a1dbdf4c42c2b3ef2173804746df8825fe/emotion-train.arrow",
102
+ "sha256": "d362b3fb7dabba0613533182e3e0dce2340972e5f90d9ee02783de28bdf8e095"
103
+ },
104
+ {
105
+ "path": "source_cache/huggingface/datasets/dair-ai___emotion/split/0.0.0/cab853a1dbdf4c42c2b3ef2173804746df8825fe/emotion-test.arrow",
106
+ "sha256": "3b039c3c9f5b0dd907e302b9e2e0c71278d66865883a3de4509841154aeaa115"
107
+ }
108
+ ],
109
+ "group_overlap_counts": {
110
+ "train__dev": 0,
111
+ "train__cal": 0,
112
+ "train__test": 0,
113
+ "train__counterfactual_test": 0,
114
+ "dev__cal": 0,
115
+ "dev__test": 0,
116
+ "dev__counterfactual_test": 0,
117
+ "cal__test": 0,
118
+ "cal__counterfactual_test": 0,
119
+ "test__counterfactual_test": 0
120
+ },
121
+ "sst_subphrases_excluded": 7213,
122
+ "length_audit": {
123
+ "legacy_test": {
124
+ "read": 1777,
125
+ "eligible": 1777,
126
+ "too_long": 0
127
+ },
128
+ "sst2": {
129
+ "read": 60000,
130
+ "eligible": 52933,
131
+ "too_long": 0
132
+ },
133
+ "mnli": {
134
+ "read": 60000,
135
+ "eligible": 59997,
136
+ "too_long": 0
137
+ },
138
+ "ag_news": {
139
+ "read": 60000,
140
+ "eligible": 59953,
141
+ "too_long": 0
142
+ },
143
+ "boolq": {
144
+ "read": 9427,
145
+ "eligible": 9427,
146
+ "too_long": 0
147
+ },
148
+ "sst5": {
149
+ "read": 8544,
150
+ "eligible": 8533,
151
+ "too_long": 0
152
+ },
153
+ "emotion_train": {
154
+ "read": 16000,
155
+ "eligible": 15969,
156
+ "too_long": 0
157
+ },
158
+ "emotion_test": {
159
+ "read": 2000,
160
+ "eligible": 2000,
161
+ "too_long": 0
162
+ },
163
+ "enron_train": {
164
+ "read": 31665,
165
+ "eligible": 26225,
166
+ "too_long": 2532
167
+ },
168
+ "enron_test": {
169
+ "read": 2000,
170
+ "eligible": 1830,
171
+ "too_long": 152
172
+ },
173
+ "imdb": {
174
+ "read": 25000,
175
+ "eligible": 24250,
176
+ "too_long": 551
177
+ },
178
+ "hans": {
179
+ "read": 30000,
180
+ "eligible": 30000,
181
+ "too_long": 0
182
+ },
183
+ "anli": {
184
+ "read": 3200,
185
+ "eligible": 3200,
186
+ "too_long": 0
187
+ },
188
+ "final_test": {
189
+ "read": 5277,
190
+ "eligible": 5277,
191
+ "too_long": 0
192
+ },
193
+ "typed_train": {
194
+ "read": 4000,
195
+ "eligible": 4000,
196
+ "too_long": 0
197
+ },
198
+ "typed_dev": {
199
+ "read": 1000,
200
+ "eligible": 1000,
201
+ "too_long": 0
202
+ },
203
+ "typed_cal": {
204
+ "read": 1000,
205
+ "eligible": 1000,
206
+ "too_long": 0
207
+ },
208
+ "selected_core": {
209
+ "read": 30000,
210
+ "eligible": 30000,
211
+ "too_long": 0
212
+ },
213
+ "selected_new": {
214
+ "read": 18000,
215
+ "eligible": 18000,
216
+ "too_long": 0
217
+ },
218
+ "selected_challenge": {
219
+ "read": 12000,
220
+ "eligible": 12000,
221
+ "too_long": 0
222
+ }
223
+ },
224
+ "files": {
225
+ "train": {
226
+ "path": "train.jsonl",
227
+ "n": 60000,
228
+ "tasks": {
229
+ "enron_spam": 11812,
230
+ "sst2": 3000,
231
+ "emotion": 6000,
232
+ "boolq": 6000,
233
+ "ag_news": 6597,
234
+ "ag_news_verification": 1109,
235
+ "mnli": 13591,
236
+ "mnli_verification": 2330,
237
+ "sst5": 3000,
238
+ "policy_counterfactual": 2000,
239
+ "typed_decisions": 4000,
240
+ "sst2_verification": 561
241
+ },
242
+ "sha256": "07e3395d464794f32fdf4790815af9ee76a8d4eeb28f73313cd4427e0434fdef"
243
+ },
244
+ "dev": {
245
+ "path": "dev.jsonl",
246
+ "n": 2050,
247
+ "tasks": {
248
+ "typed_decisions": 1000,
249
+ "enron_spam": 150,
250
+ "sst2": 150,
251
+ "sst5": 150,
252
+ "emotion": 150,
253
+ "boolq": 150,
254
+ "mnli": 150,
255
+ "ag_news": 150
256
+ },
257
+ "sha256": "d46758f4b71eeb4774dc881136c56aa6a3f42ec715e9e5d40040bccbc13904e6"
258
+ },
259
+ "cal": {
260
+ "path": "cal.jsonl",
261
+ "n": 3100,
262
+ "tasks": {
263
+ "sst5": 300,
264
+ "emotion": 300,
265
+ "typed_decisions": 1000,
266
+ "sst2": 300,
267
+ "enron_spam": 300,
268
+ "mnli": 300,
269
+ "ag_news": 300,
270
+ "boolq": 300
271
+ },
272
+ "sha256": "2fde7f45dce3440abfde145bb30ad61e2643b1f853866b5760b235685328dc1c"
273
+ },
274
+ "test": {
275
+ "path": "test.jsonl",
276
+ "n": 5277,
277
+ "tasks": {
278
+ "ag_news": 300,
279
+ "imdb": 300,
280
+ "anli": 300,
281
+ "typed_decisions": 2000,
282
+ "mnli": 300,
283
+ "emotion": 300,
284
+ "rte": 277,
285
+ "sst5": 300,
286
+ "hans": 300,
287
+ "boolq": 300,
288
+ "enron_spam": 300,
289
+ "sst2": 300
290
+ },
291
+ "sha256": "d5f92e48cf742aecb3c8e40714cb51ddd72fefd176a95dc8b7209523e2daa2bb"
292
+ },
293
+ "counterfactual_test": {
294
+ "path": "counterfactual_test.jsonl",
295
+ "n": 400,
296
+ "tasks": {
297
+ "policy_counterfactual": 400
298
+ },
299
+ "sha256": "a4b4a435a7a91f49a57bcaf4cb758f56fb530eed0aeac3166cd0220dbd4401df"
300
+ }
301
+ },
302
+ "caveats": [
303
+ "This is a new CUDA experiment; prior MLX v2 artifacts remain unchanged.",
304
+ "Legacy five-task and RTE tests are historical regression sets, not unseen benchmark discovery.",
305
+ "OOD is relative to this fine-tuning; base pretraining contamination is unknown.",
306
+ "All source text must fit 1024 tokens; full-length rejection counts are reported, so this is a length-filtered suite.",
307
+ "Challenge gold rows are lexically selected candidates, not yet mined v1 mistakes.",
308
+ "Synthetic counterfactual results describe this generator, not general real-world reasoning.",
309
+ "Typed-decisions targets are teacher distributions and are reported separately.",
310
+ "Training and calibration source licenses remain upstream; this bundle is for the user's experiment, not a dataset republication."
311
+ ],
312
+ "train_pools": {
313
+ "challenge": 12000,
314
+ "core": 30000,
315
+ "new": 18000
316
+ }
317
+ }
evaluation/deployment.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "n": 500,
3
+ "argmax_agreement": 0.992,
4
+ "cuda_same_subset": {
5
+ "accuracy": 0.7910177949703642,
6
+ "macro_f1": 0.7760857891780776,
7
+ "nll": 0.6000106706289864,
8
+ "brier": 0.317876961372947,
9
+ "ece": 0.16696329399611096
10
+ },
11
+ "q8_same_subset": {
12
+ "accuracy": 0.7868855635654054,
13
+ "macro_f1": 0.773615445189482,
14
+ "nll": 0.6015417570028033,
15
+ "brier": 0.318930434743987,
16
+ "ece": 0.16630794459650552
17
+ },
18
+ "accuracy_difference": -0.004132231404958775,
19
+ "nll_difference": 0.0015310863738169367,
20
+ "temperature_folded": true,
21
+ "passed": true,
22
+ "practical_deployment_gate_passed": true,
23
+ "initial_strict_accuracy_target_met_on_subset": false,
24
+ "initial_accuracy_loss_target": 0.003,
25
+ "note": "500-example subset check: 99.2% agreement. Observed task-macro loss is 0.413 pp, so the initial 0.3 pp accuracy goal is not met on this subset. Prefer BF16/MLX when accuracy is the priority; this is not a bound on population degradation."
26
+ }
evaluation/http_smoke.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "passed": true,
3
+ "cases": [
4
+ {
5
+ "options": 2,
6
+ "choice": "positive",
7
+ "candidate_count": 64,
8
+ "max_probability_difference_vs_native": 7.650678379711451e-08
9
+ },
10
+ {
11
+ "options": 4,
12
+ "choice": "science and technology",
13
+ "candidate_count": 64,
14
+ "max_probability_difference_vs_native": 3.4161285047654318e-06
15
+ },
16
+ {
17
+ "options": 5,
18
+ "choice": "neutral",
19
+ "candidate_count": 64,
20
+ "max_probability_difference_vs_native": 6.717687878710077e-05
21
+ }
22
+ ],
23
+ "server": ""
24
+ }
evaluation/laya_source.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "repo": "convaiinnovations/laya",
3
+ "revision": "5e7b2b1b8ca2ecdd3f2322d94069c9b6ce7e844b"
4
+ }
evaluation/laya_typed_source.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "repo": "convaiinnovations/laya-typed-decisions",
3
+ "revision": "dd079950600224fb459af2a0cb1d74e1e57ee9cf"
4
+ }
evaluation/reference_comparison.json ADDED
@@ -0,0 +1,888 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "selection": {
3
+ "passed_id_guard": true,
4
+ "selected": "cloud_run/runs/h100/checkpoints/step-001000",
5
+ "best_dev_nll": 0.3434923910639061,
6
+ "step": 1000
7
+ },
8
+ "english_laya_task_point_estimate_wins": 9,
9
+ "summaries": {
10
+ "v1": {
11
+ "temperature": 1.5364534560220011,
12
+ "by_task": {
13
+ "ag_news": {
14
+ "n": 300,
15
+ "accuracy": 0.8766666666666667,
16
+ "macro_f1": 0.8785087042568024,
17
+ "nll": 0.3288212186160579,
18
+ "brier": 0.17065989210780397,
19
+ "ece": 0.03637787729240994,
20
+ "reference": "label",
21
+ "normalized_score_mae": null
22
+ },
23
+ "anli": {
24
+ "n": 300,
25
+ "accuracy": 0.48,
26
+ "macro_f1": 0.48082817201988187,
27
+ "nll": 1.345594522107734,
28
+ "brier": 0.7635947518392052,
29
+ "ece": 0.26481392729155384,
30
+ "reference": "label",
31
+ "normalized_score_mae": null
32
+ },
33
+ "boolq": {
34
+ "n": 300,
35
+ "accuracy": 0.8266666666666667,
36
+ "macro_f1": 0.8199362851470521,
37
+ "nll": 0.386092244929183,
38
+ "brier": 0.24103588842113643,
39
+ "ece": 0.03688531973385248,
40
+ "reference": "label",
41
+ "normalized_score_mae": null
42
+ },
43
+ "emotion": {
44
+ "n": 300,
45
+ "accuracy": 0.5833333333333334,
46
+ "macro_f1": 0.5269104214377847,
47
+ "nll": 1.10472924334084,
48
+ "brier": 0.5309111092881537,
49
+ "ece": 0.08188870752844603,
50
+ "reference": "label",
51
+ "normalized_score_mae": null
52
+ },
53
+ "enron_spam": {
54
+ "n": 300,
55
+ "accuracy": 0.7733333333333333,
56
+ "macro_f1": 0.7663123167155426,
57
+ "nll": 0.4716031847178109,
58
+ "brier": 0.304713806192544,
59
+ "ece": 0.04452538080141978,
60
+ "reference": "label",
61
+ "normalized_score_mae": null
62
+ },
63
+ "hans": {
64
+ "n": 300,
65
+ "accuracy": 0.68,
66
+ "macro_f1": 0.6483516483516483,
67
+ "nll": 0.7800930922318069,
68
+ "brier": 0.5081508480232925,
69
+ "ece": 0.23496644756044477,
70
+ "reference": "label",
71
+ "normalized_score_mae": null
72
+ },
73
+ "imdb": {
74
+ "n": 300,
75
+ "accuracy": 0.9666666666666667,
76
+ "macro_f1": 0.9665939156385016,
77
+ "nll": 0.11574640839950448,
78
+ "brier": 0.05897405464269712,
79
+ "ece": 0.0223053165075559,
80
+ "reference": "label",
81
+ "normalized_score_mae": null
82
+ },
83
+ "mnli": {
84
+ "n": 300,
85
+ "accuracy": 0.8666666666666667,
86
+ "macro_f1": 0.8665719621181807,
87
+ "nll": 0.3487014769045736,
88
+ "brier": 0.19113681357849138,
89
+ "ece": 0.04962698032414739,
90
+ "reference": "label",
91
+ "normalized_score_mae": null
92
+ },
93
+ "rte": {
94
+ "n": 277,
95
+ "accuracy": 0.8447653429602888,
96
+ "macro_f1": 0.8414593565733605,
97
+ "nll": 0.3921244048911151,
98
+ "brier": 0.2421531176029872,
99
+ "ece": 0.051523040766813605,
100
+ "reference": "label",
101
+ "normalized_score_mae": null
102
+ },
103
+ "sst2": {
104
+ "n": 300,
105
+ "accuracy": 0.9266666666666666,
106
+ "macro_f1": 0.926614481409002,
107
+ "nll": 0.17247762464555924,
108
+ "brier": 0.0977477259340223,
109
+ "ece": 0.031843922574865374,
110
+ "reference": "label",
111
+ "normalized_score_mae": null
112
+ },
113
+ "sst5": {
114
+ "n": 300,
115
+ "accuracy": 0.61,
116
+ "macro_f1": 0.574389202812619,
117
+ "nll": 0.8806898747967381,
118
+ "brier": 0.5095396501659217,
119
+ "ece": 0.08166816518918596,
120
+ "reference": "label",
121
+ "normalized_score_mae": 0.11861205756797243
122
+ },
123
+ "typed_decisions": {
124
+ "n": 2000,
125
+ "accuracy": 0.5335,
126
+ "macro_f1": 0.3923581429900535,
127
+ "nll": 1.125339108915838,
128
+ "brier": 0.2201981319388216,
129
+ "ece": 0.09412416488373214,
130
+ "reference": "teacher",
131
+ "normalized_score_mae": 0.14582647383250627
132
+ }
133
+ },
134
+ "real_label_macro": {
135
+ "accuracy": 0.7667968493600263,
136
+ "macro_f1": 0.7542251333163978,
137
+ "nll": 0.575152117780084,
138
+ "brier": 0.3289652416178414,
139
+ "ece": 0.08512955323369954
140
+ },
141
+ "teacher_macro": {
142
+ "accuracy": 0.5335,
143
+ "macro_f1": 0.3923581429900535,
144
+ "nll": 1.125339108915838,
145
+ "brier": 0.2201981319388216,
146
+ "ece": 0.09412416488373214
147
+ },
148
+ "core_macro": {
149
+ "accuracy": 0.8213333333333332,
150
+ "macro_f1": 0.8132041271487311,
151
+ "nll": 0.42335648797842235,
152
+ "brier": 0.24202399404147518,
153
+ "ece": 0.04728045302289223
154
+ },
155
+ "permutation": {
156
+ "n": 400,
157
+ "semantic_flip_rate": 0.0925,
158
+ "permuted_accuracy": 0.6675
159
+ },
160
+ "counterfactual": {
161
+ "pairs": 200,
162
+ "both_correct": 0.63,
163
+ "scope": "programmatic threshold-policy shift only"
164
+ }
165
+ },
166
+ "laya": {
167
+ "temperature": 1.6244894678214752,
168
+ "by_task": {
169
+ "ag_news": {
170
+ "n": 300,
171
+ "accuracy": 0.89,
172
+ "macro_f1": 0.8916595697302985,
173
+ "nll": 0.3890859987330656,
174
+ "brier": 0.17812422915561885,
175
+ "ece": 0.1436283133976796,
176
+ "reference": "label",
177
+ "normalized_score_mae": null
178
+ },
179
+ "anli": {
180
+ "n": 300,
181
+ "accuracy": 0.49666666666666665,
182
+ "macro_f1": 0.4950624077400388,
183
+ "nll": 1.0684693571593755,
184
+ "brier": 0.6556895709821131,
185
+ "ece": 0.1762710459363415,
186
+ "reference": "label",
187
+ "normalized_score_mae": null
188
+ },
189
+ "boolq": {
190
+ "n": 300,
191
+ "accuracy": 0.7566666666666667,
192
+ "macro_f1": 0.7354273633343401,
193
+ "nll": 0.5134514580247954,
194
+ "brier": 0.33961628293233154,
195
+ "ece": 0.026724078995199588,
196
+ "reference": "label",
197
+ "normalized_score_mae": null
198
+ },
199
+ "emotion": {
200
+ "n": 300,
201
+ "accuracy": 0.6033333333333334,
202
+ "macro_f1": 0.5030792685810473,
203
+ "nll": 1.2404968190139007,
204
+ "brier": 0.5863981791717614,
205
+ "ece": 0.18257059239020804,
206
+ "reference": "label",
207
+ "normalized_score_mae": null
208
+ },
209
+ "enron_spam": {
210
+ "n": 300,
211
+ "accuracy": 0.9633333333333334,
212
+ "macro_f1": 0.9633133594957255,
213
+ "nll": 0.21805558070253217,
214
+ "brier": 0.09912737327536653,
215
+ "ece": 0.13892227969938,
216
+ "reference": "label",
217
+ "normalized_score_mae": null
218
+ },
219
+ "hans": {
220
+ "n": 300,
221
+ "accuracy": 0.75,
222
+ "macro_f1": 0.7351663743688133,
223
+ "nll": 0.6434251988011115,
224
+ "brier": 0.4040020709975337,
225
+ "ece": 0.14393662951910027,
226
+ "reference": "label",
227
+ "normalized_score_mae": null
228
+ },
229
+ "imdb": {
230
+ "n": 300,
231
+ "accuracy": 0.9366666666666666,
232
+ "macro_f1": 0.9366321664017077,
233
+ "nll": 0.2330622005969465,
234
+ "brier": 0.1196734142724245,
235
+ "ece": 0.10107641838144815,
236
+ "reference": "label",
237
+ "normalized_score_mae": null
238
+ },
239
+ "mnli": {
240
+ "n": 300,
241
+ "accuracy": 0.85,
242
+ "macro_f1": 0.8472960359831189,
243
+ "nll": 0.41495303657797333,
244
+ "brier": 0.21352458299435156,
245
+ "ece": 0.09690900164370211,
246
+ "reference": "label",
247
+ "normalized_score_mae": null
248
+ },
249
+ "rte": {
250
+ "n": 277,
251
+ "accuracy": 0.779783393501805,
252
+ "macro_f1": 0.7696858174879029,
253
+ "nll": 0.4566424939641287,
254
+ "brier": 0.29922837708221717,
255
+ "ece": 0.05653944816228468,
256
+ "reference": "label",
257
+ "normalized_score_mae": null
258
+ },
259
+ "sst2": {
260
+ "n": 300,
261
+ "accuracy": 0.9166666666666666,
262
+ "macro_f1": 0.9166435120866907,
263
+ "nll": 0.3031605758271119,
264
+ "brier": 0.16675708608896114,
265
+ "ece": 0.11399632140488353,
266
+ "reference": "label",
267
+ "normalized_score_mae": null
268
+ },
269
+ "sst5": {
270
+ "n": 300,
271
+ "accuracy": 0.31666666666666665,
272
+ "macro_f1": 0.2850066699248626,
273
+ "nll": 1.469504647138718,
274
+ "brier": 0.7679831033340562,
275
+ "ece": 0.17926135006709534,
276
+ "reference": "label",
277
+ "normalized_score_mae": 0.21794930561640727
278
+ },
279
+ "typed_decisions": {
280
+ "n": 2000,
281
+ "accuracy": 0.3755,
282
+ "macro_f1": 0.2166732389396975,
283
+ "nll": 1.2182328820568178,
284
+ "brier": 0.2535778087531912,
285
+ "ece": 0.07021472076361834,
286
+ "reference": "teacher",
287
+ "normalized_score_mae": 0.22102582796001108
288
+ }
289
+ },
290
+ "real_label_macro": {
291
+ "accuracy": 0.750889399409255,
292
+ "macro_f1": 0.7344520495576862,
293
+ "nll": 0.6318461242308782,
294
+ "brier": 0.3481931154806123,
295
+ "ece": 0.12362140723612026
296
+ },
297
+ "teacher_macro": {
298
+ "accuracy": 0.3755,
299
+ "macro_f1": 0.2166732389396975,
300
+ "nll": 1.2182328820568178,
301
+ "brier": 0.2535778087531912,
302
+ "ece": 0.07021472076361834
303
+ },
304
+ "core_macro": {
305
+ "accuracy": 0.7460000000000001,
306
+ "macro_f1": 0.7352066302118622,
307
+ "nll": 0.6180311432603329,
308
+ "brier": 0.3332010569010639,
309
+ "ece": 0.11210381310171202
310
+ },
311
+ "permutation": {
312
+ "n": 400,
313
+ "semantic_flip_rate": 0.12,
314
+ "permuted_accuracy": 0.67
315
+ },
316
+ "counterfactual": {
317
+ "pairs": 200,
318
+ "both_correct": 0.075,
319
+ "scope": "programmatic threshold-policy shift only"
320
+ }
321
+ },
322
+ "laya_typed": {
323
+ "temperature": 0.7527652652933652,
324
+ "by_task": {
325
+ "typed_decisions": {
326
+ "n": 2000,
327
+ "accuracy": 0.746,
328
+ "macro_f1": 0.6362003375359054,
329
+ "nll": 0.9000079785440322,
330
+ "brier": 0.07263492026918578,
331
+ "ece": 0.13953533609326807,
332
+ "reference": "teacher",
333
+ "normalized_score_mae": 0.07586843216276863
334
+ }
335
+ },
336
+ "real_label_macro": {},
337
+ "teacher_macro": {
338
+ "accuracy": 0.746,
339
+ "macro_f1": 0.6362003375359054,
340
+ "nll": 0.9000079785440322,
341
+ "brier": 0.07263492026918578,
342
+ "ece": 0.13953533609326807
343
+ },
344
+ "core_macro": {}
345
+ },
346
+ "v2": {
347
+ "temperature": 1.0423505400296817,
348
+ "by_task": {
349
+ "ag_news": {
350
+ "n": 300,
351
+ "accuracy": 0.88,
352
+ "macro_f1": 0.8820997305693538,
353
+ "nll": 0.31346308023310226,
354
+ "brier": 0.1660708606601504,
355
+ "ece": 0.036905068677083444,
356
+ "reference": "label",
357
+ "normalized_score_mae": null
358
+ },
359
+ "anli": {
360
+ "n": 300,
361
+ "accuracy": 0.4866666666666667,
362
+ "macro_f1": 0.48858002939264306,
363
+ "nll": 1.5326536998028522,
364
+ "brier": 0.7840283119508541,
365
+ "ece": 0.29666781411882187,
366
+ "reference": "label",
367
+ "normalized_score_mae": null
368
+ },
369
+ "boolq": {
370
+ "n": 300,
371
+ "accuracy": 0.8166666666666667,
372
+ "macro_f1": 0.8098004633952347,
373
+ "nll": 0.39781728129187827,
374
+ "brier": 0.2371245824960182,
375
+ "ece": 0.06916750434052144,
376
+ "reference": "label",
377
+ "normalized_score_mae": null
378
+ },
379
+ "emotion": {
380
+ "n": 300,
381
+ "accuracy": 0.8533333333333334,
382
+ "macro_f1": 0.7543092974717506,
383
+ "nll": 0.39460058817048616,
384
+ "brier": 0.21137011176529708,
385
+ "ece": 0.06414777184386307,
386
+ "reference": "label",
387
+ "normalized_score_mae": null
388
+ },
389
+ "enron_spam": {
390
+ "n": 300,
391
+ "accuracy": 0.9766666666666667,
392
+ "macro_f1": 0.9766352540637968,
393
+ "nll": 0.0405273058138434,
394
+ "brier": 0.02532319226345078,
395
+ "ece": 0.013309812113907561,
396
+ "reference": "label",
397
+ "normalized_score_mae": null
398
+ },
399
+ "hans": {
400
+ "n": 300,
401
+ "accuracy": 0.68,
402
+ "macro_f1": 0.6483516483516483,
403
+ "nll": 1.086154851651223,
404
+ "brier": 0.5556954554093221,
405
+ "ece": 0.27724140990986645,
406
+ "reference": "label",
407
+ "normalized_score_mae": null
408
+ },
409
+ "imdb": {
410
+ "n": 300,
411
+ "accuracy": 0.9633333333333334,
412
+ "macro_f1": 0.9632643519497723,
413
+ "nll": 0.10724673447705721,
414
+ "brier": 0.0607675831159509,
415
+ "ece": 0.021863761868199296,
416
+ "reference": "label",
417
+ "normalized_score_mae": null
418
+ },
419
+ "mnli": {
420
+ "n": 300,
421
+ "accuracy": 0.88,
422
+ "macro_f1": 0.881280297400005,
423
+ "nll": 0.3067923222260661,
424
+ "brier": 0.17883574492282395,
425
+ "ece": 0.04206252397025968,
426
+ "reference": "label",
427
+ "normalized_score_mae": null
428
+ },
429
+ "rte": {
430
+ "n": 277,
431
+ "accuracy": 0.8592057761732852,
432
+ "macro_f1": 0.8552128985565519,
433
+ "nll": 0.4517337258263279,
434
+ "brier": 0.23701608121320944,
435
+ "ece": 0.0908439947482558,
436
+ "reference": "label",
437
+ "normalized_score_mae": null
438
+ },
439
+ "sst2": {
440
+ "n": 300,
441
+ "accuracy": 0.93,
442
+ "macro_f1": 0.9299057621913907,
443
+ "nll": 0.1858724715082013,
444
+ "brier": 0.10517183633091974,
445
+ "ece": 0.04078288098575952,
446
+ "reference": "label",
447
+ "normalized_score_mae": null
448
+ },
449
+ "sst5": {
450
+ "n": 300,
451
+ "accuracy": 0.6066666666666667,
452
+ "macro_f1": 0.5860584803091198,
453
+ "nll": 0.8520690951275738,
454
+ "brier": 0.5043373916500422,
455
+ "ece": 0.04808122820563478,
456
+ "reference": "label",
457
+ "normalized_score_mae": 0.11676450596913004
458
+ },
459
+ "typed_decisions": {
460
+ "n": 2000,
461
+ "accuracy": 0.7345,
462
+ "macro_f1": 0.5843823268841445,
463
+ "nll": 0.9071323454613555,
464
+ "brier": 0.07585474596137866,
465
+ "ece": 0.13429560744677668,
466
+ "reference": "teacher",
467
+ "normalized_score_mae": 0.08219189555212383
468
+ }
469
+ },
470
+ "real_label_macro": {
471
+ "accuracy": 0.8120490099551472,
472
+ "macro_f1": 0.797772564877388,
473
+ "nll": 0.5153573778298738,
474
+ "brier": 0.27870374107073076,
475
+ "ece": 0.09100670643474301
476
+ },
477
+ "teacher_macro": {
478
+ "accuracy": 0.7345,
479
+ "macro_f1": 0.5843823268841445,
480
+ "nll": 0.9071323454613555,
481
+ "brier": 0.07585474596137866,
482
+ "ece": 0.13429560744677668
483
+ },
484
+ "core_macro": {
485
+ "accuracy": 0.8226666666666667,
486
+ "macro_f1": 0.8178289467730208,
487
+ "nll": 0.41120285007736435,
488
+ "brier": 0.2383080832119909,
489
+ "ece": 0.04739984123585177
490
+ },
491
+ "permutation": {
492
+ "n": 400,
493
+ "semantic_flip_rate": 0.06,
494
+ "permuted_accuracy": 0.8
495
+ },
496
+ "counterfactual": {
497
+ "pairs": 200,
498
+ "both_correct": 0.715,
499
+ "scope": "programmatic threshold-policy shift only"
500
+ }
501
+ }
502
+ },
503
+ "paired": {
504
+ "v2_minus_v1": {
505
+ "accuracy_macro_difference": 0.04525216059512088,
506
+ "ci95": [
507
+ 0.035818489806266444,
508
+ 0.055249750194765204
509
+ ],
510
+ "tasks": [
511
+ "ag_news",
512
+ "imdb",
513
+ "anli",
514
+ "mnli",
515
+ "emotion",
516
+ "rte",
517
+ "sst5",
518
+ "hans",
519
+ "boolq",
520
+ "enron_spam",
521
+ "sst2"
522
+ ],
523
+ "bootstrap_repeats": 2000,
524
+ "note": "paired cluster bootstrap within fixed tasks; does not measure training-seed uncertainty or arbitrary-task generalization"
525
+ },
526
+ "v2_minus_laya": {
527
+ "accuracy_macro_difference": 0.06115961054589213,
528
+ "ci95": [
529
+ 0.046367898711433334,
530
+ 0.07522936785812957
531
+ ],
532
+ "tasks": [
533
+ "ag_news",
534
+ "imdb",
535
+ "anli",
536
+ "mnli",
537
+ "emotion",
538
+ "rte",
539
+ "sst5",
540
+ "hans",
541
+ "boolq",
542
+ "enron_spam",
543
+ "sst2"
544
+ ],
545
+ "bootstrap_repeats": 2000,
546
+ "note": "paired cluster bootstrap within fixed tasks; does not measure training-seed uncertainty or arbitrary-task generalization"
547
+ },
548
+ "ood_v2_minus_v1": {
549
+ "accuracy_macro_difference": 0.004443441636582431,
550
+ "ci95": [
551
+ -0.010560018050541518,
552
+ 0.018542644404332124
553
+ ],
554
+ "tasks": [
555
+ "imdb",
556
+ "anli",
557
+ "rte",
558
+ "hans"
559
+ ],
560
+ "bootstrap_repeats": 2000,
561
+ "note": "paired cluster bootstrap within fixed tasks; does not measure training-seed uncertainty or arbitrary-task generalization"
562
+ },
563
+ "untruncated_v2_minus_laya": {
564
+ "accuracy_macro_difference": 0.059998031088527796,
565
+ "ci95": [
566
+ 0.04506266490813522,
567
+ 0.07413016918623276
568
+ ],
569
+ "tasks": [
570
+ "ag_news",
571
+ "imdb",
572
+ "anli",
573
+ "mnli",
574
+ "emotion",
575
+ "rte",
576
+ "sst5",
577
+ "hans",
578
+ "boolq",
579
+ "enron_spam",
580
+ "sst2"
581
+ ],
582
+ "bootstrap_repeats": 2000,
583
+ "note": "paired cluster bootstrap within fixed tasks; does not measure training-seed uncertainty or arbitrary-task generalization"
584
+ }
585
+ },
586
+ "calibration_controls": {
587
+ "v1_original_temperature_on_cuda": {
588
+ "temperature": 1.3202217760439754,
589
+ "by_task": {
590
+ "ag_news": {
591
+ "n": 300,
592
+ "accuracy": 0.8766666666666667,
593
+ "macro_f1": 0.8785087042568024,
594
+ "nll": 0.3281366243432546,
595
+ "brier": 0.1726640358398538,
596
+ "ece": 0.039331689468595894,
597
+ "reference": "label",
598
+ "normalized_score_mae": null
599
+ },
600
+ "anli": {
601
+ "n": 300,
602
+ "accuracy": 0.48,
603
+ "macro_f1": 0.48082817201988187,
604
+ "nll": 1.4662612150178047,
605
+ "brier": 0.7922295711067328,
606
+ "ece": 0.2898982693205049,
607
+ "reference": "label",
608
+ "normalized_score_mae": null
609
+ },
610
+ "boolq": {
611
+ "n": 300,
612
+ "accuracy": 0.8266666666666667,
613
+ "macro_f1": 0.8199362851470521,
614
+ "nll": 0.38989404321203175,
615
+ "brier": 0.24272104113468998,
616
+ "ece": 0.05031788332225141,
617
+ "reference": "label",
618
+ "normalized_score_mae": null
619
+ },
620
+ "emotion": {
621
+ "n": 300,
622
+ "accuracy": 0.5833333333333334,
623
+ "macro_f1": 0.5269104214377847,
624
+ "nll": 1.1076530050710907,
625
+ "brier": 0.5309906441117376,
626
+ "ece": 0.07362572075843835,
627
+ "reference": "label",
628
+ "normalized_score_mae": null
629
+ },
630
+ "enron_spam": {
631
+ "n": 300,
632
+ "accuracy": 0.7733333333333333,
633
+ "macro_f1": 0.7663123167155426,
634
+ "nll": 0.48267648677303093,
635
+ "brier": 0.3087812059355877,
636
+ "ece": 0.08231533185271653,
637
+ "reference": "label",
638
+ "normalized_score_mae": null
639
+ },
640
+ "hans": {
641
+ "n": 300,
642
+ "accuracy": 0.68,
643
+ "macro_f1": 0.6483516483516483,
644
+ "nll": 0.8677628723642957,
645
+ "brier": 0.5334069806799419,
646
+ "ece": 0.2588078500628962,
647
+ "reference": "label",
648
+ "normalized_score_mae": null
649
+ },
650
+ "imdb": {
651
+ "n": 300,
652
+ "accuracy": 0.9666666666666667,
653
+ "macro_f1": 0.9665939156385016,
654
+ "nll": 0.11163361134820626,
655
+ "brier": 0.05894937304526226,
656
+ "ece": 0.014493677943709362,
657
+ "reference": "label",
658
+ "normalized_score_mae": null
659
+ },
660
+ "mnli": {
661
+ "n": 300,
662
+ "accuracy": 0.8666666666666667,
663
+ "macro_f1": 0.8665719621181807,
664
+ "nll": 0.3366354718105848,
665
+ "brier": 0.19027442302778316,
666
+ "ece": 0.029256404603792807,
667
+ "reference": "label",
668
+ "normalized_score_mae": null
669
+ },
670
+ "rte": {
671
+ "n": 277,
672
+ "accuracy": 0.8447653429602888,
673
+ "macro_f1": 0.8414593565733605,
674
+ "nll": 0.41086459374614426,
675
+ "brier": 0.2482190559064413,
676
+ "ece": 0.07849875720418192,
677
+ "reference": "label",
678
+ "normalized_score_mae": null
679
+ },
680
+ "sst2": {
681
+ "n": 300,
682
+ "accuracy": 0.9266666666666666,
683
+ "macro_f1": 0.926614481409002,
684
+ "nll": 0.17368569141206347,
685
+ "brier": 0.09951329459784344,
686
+ "ece": 0.025793675811563426,
687
+ "reference": "label",
688
+ "normalized_score_mae": null
689
+ },
690
+ "sst5": {
691
+ "n": 300,
692
+ "accuracy": 0.61,
693
+ "macro_f1": 0.574389202812619,
694
+ "nll": 0.857938284145913,
695
+ "brier": 0.5043493515158285,
696
+ "ece": 0.038674490185143656,
697
+ "reference": "label",
698
+ "normalized_score_mae": 0.1170761133878696
699
+ },
700
+ "typed_decisions": {
701
+ "n": 2000,
702
+ "accuracy": 0.5335,
703
+ "macro_f1": 0.3923581429900535,
704
+ "nll": 1.150007781593213,
705
+ "brier": 0.2343584931681744,
706
+ "ece": 0.09236133305092582,
707
+ "reference": "teacher",
708
+ "normalized_score_mae": 0.1431887051207915
709
+ }
710
+ },
711
+ "real_label_macro": {
712
+ "accuracy": 0.7667968493600263,
713
+ "macro_f1": 0.7542251333163978,
714
+ "nll": 0.5939219908404018,
715
+ "brier": 0.3347362706274275,
716
+ "ece": 0.08918306823034496
717
+ },
718
+ "teacher_macro": {
719
+ "accuracy": 0.5335,
720
+ "macro_f1": 0.3923581429900535,
721
+ "nll": 1.150007781593213,
722
+ "brier": 0.2343584931681744,
723
+ "ece": 0.09236133305092582
724
+ },
725
+ "core_macro": {
726
+ "accuracy": 0.8213333333333332,
727
+ "macro_f1": 0.8132041271487311,
728
+ "nll": 0.41725802298476955,
729
+ "brier": 0.24190442922319977,
730
+ "ece": 0.03667482867826944
731
+ }
732
+ },
733
+ "laya_as_shipped_sdk": {
734
+ "temperature": 1.0,
735
+ "by_task": {
736
+ "ag_news": {
737
+ "n": 300,
738
+ "accuracy": 0.89,
739
+ "macro_f1": 0.8916595697302985,
740
+ "nll": 0.29744314000921096,
741
+ "brier": 0.15355589074399054,
742
+ "ece": 0.02859855627603831,
743
+ "reference": "label",
744
+ "normalized_score_mae": null
745
+ },
746
+ "anli": {
747
+ "n": 300,
748
+ "accuracy": 0.49666666666666665,
749
+ "macro_f1": 0.4950624077400388,
750
+ "nll": 1.2987562065605402,
751
+ "brier": 0.7558626718222238,
752
+ "ece": 0.3062399090728766,
753
+ "reference": "label",
754
+ "normalized_score_mae": null
755
+ },
756
+ "boolq": {
757
+ "n": 300,
758
+ "accuracy": 0.7566666666666667,
759
+ "macro_f1": 0.7354273633343401,
760
+ "nll": 0.5367802184868166,
761
+ "brier": 0.3478546186892215,
762
+ "ece": 0.07923804256532056,
763
+ "reference": "label",
764
+ "normalized_score_mae": null
765
+ },
766
+ "emotion": {
767
+ "n": 300,
768
+ "accuracy": 0.6033333333333334,
769
+ "macro_f1": 0.5030792685810473,
770
+ "nll": 1.6927465184074462,
771
+ "brier": 0.6582166983170381,
772
+ "ece": 0.286246200733411,
773
+ "reference": "label",
774
+ "normalized_score_mae": null
775
+ },
776
+ "enron_spam": {
777
+ "n": 300,
778
+ "accuracy": 0.9633333333333334,
779
+ "macro_f1": 0.9633133594957255,
780
+ "nll": 0.13450873780547198,
781
+ "brier": 0.06280437074987427,
782
+ "ece": 0.07201542413641238,
783
+ "reference": "label",
784
+ "normalized_score_mae": null
785
+ },
786
+ "hans": {
787
+ "n": 300,
788
+ "accuracy": 0.75,
789
+ "macro_f1": 0.7351663743688133,
790
+ "nll": 0.9031531229475278,
791
+ "brier": 0.4485972065279667,
792
+ "ece": 0.20662327977696504,
793
+ "reference": "label",
794
+ "normalized_score_mae": null
795
+ },
796
+ "imdb": {
797
+ "n": 300,
798
+ "accuracy": 0.9366666666666666,
799
+ "macro_f1": 0.9366321664017077,
800
+ "nll": 0.1794530845307123,
801
+ "brier": 0.10226999518680399,
802
+ "ece": 0.04792647661314227,
803
+ "reference": "label",
804
+ "normalized_score_mae": null
805
+ },
806
+ "mnli": {
807
+ "n": 300,
808
+ "accuracy": 0.85,
809
+ "macro_f1": 0.8472960359831189,
810
+ "nll": 0.3746265039588178,
811
+ "brier": 0.2065960080844294,
812
+ "ece": 0.042795663681334174,
813
+ "reference": "label",
814
+ "normalized_score_mae": null
815
+ },
816
+ "rte": {
817
+ "n": 277,
818
+ "accuracy": 0.779783393501805,
819
+ "macro_f1": 0.7696858174879029,
820
+ "nll": 0.5010537889652635,
821
+ "brier": 0.3191090893275295,
822
+ "ece": 0.11343595147528629,
823
+ "reference": "label",
824
+ "normalized_score_mae": null
825
+ },
826
+ "sst2": {
827
+ "n": 300,
828
+ "accuracy": 0.9166666666666666,
829
+ "macro_f1": 0.9166435120866907,
830
+ "nll": 0.25252279399989175,
831
+ "brier": 0.1443710213782037,
832
+ "ece": 0.046774318938379265,
833
+ "reference": "label",
834
+ "normalized_score_mae": null
835
+ },
836
+ "sst5": {
837
+ "n": 300,
838
+ "accuracy": 0.31666666666666665,
839
+ "macro_f1": 0.2850066699248626,
840
+ "nll": 1.7214212379962721,
841
+ "brier": 0.8533385970923033,
842
+ "ece": 0.29467911014112425,
843
+ "reference": "label",
844
+ "normalized_score_mae": 0.22147871144215314
845
+ },
846
+ "typed_decisions": {
847
+ "n": 2000,
848
+ "accuracy": 0.3755,
849
+ "macro_f1": 0.2166732389396975,
850
+ "nll": 1.2881079328908613,
851
+ "brier": 0.29687600807669234,
852
+ "ece": 0.14465272165417856,
853
+ "reference": "teacher",
854
+ "normalized_score_mae": 0.2245792671818757
855
+ }
856
+ },
857
+ "real_label_macro": {
858
+ "accuracy": 0.750889399409255,
859
+ "macro_f1": 0.7344520495576862,
860
+ "nll": 0.7174968503334519,
861
+ "brier": 0.36841601526541684,
862
+ "ece": 0.1385975394009355
863
+ },
864
+ "teacher_macro": {
865
+ "accuracy": 0.3755,
866
+ "macro_f1": 0.2166732389396975,
867
+ "nll": 1.2881079328908613,
868
+ "brier": 0.29687600807669234,
869
+ "ece": 0.14465272165417856
870
+ },
871
+ "core_macro": {
872
+ "accuracy": 0.7460000000000001,
873
+ "macro_f1": 0.7352066302118622,
874
+ "nll": 0.6365587788902018,
875
+ "brier": 0.3411432271976297,
876
+ "ece": 0.09841713832043932
877
+ }
878
+ }
879
+ },
880
+ "limitations": [
881
+ "Single training seed.",
882
+ "Historical v1 core and RTE regression examples.",
883
+ "Length-filtered inputs.",
884
+ "Typed reference is teacher agreement, reported separately.",
885
+ "Synthetic counterfactual family is narrow.",
886
+ "Point-estimate task wins are not all statistically significant wins."
887
+ ]
888
+ }
gguf_logits.cpp ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Exact next-position option logits. JSONL in/out; no sampling or text decoding.
2
+ // Build against the same llama.cpp version used to convert the GGUF.
3
+ #include "llama.h"
4
+ #include "ggml-backend.h"
5
+ #include "json.hpp"
6
+ #include <cmath>
7
+ #include <iostream>
8
+ #include <stdexcept>
9
+ #include <string>
10
+ #include <vector>
11
+ using json = nlohmann::json;
12
+
13
+ int main(int argc, char **argv) {
14
+ if (argc != 2) { std::cerr << "usage: gguf_logits model.gguf\n"; return 2; }
15
+ ggml_backend_load_all();
16
+ llama_backend_init();
17
+ auto mp = llama_model_default_params(); mp.n_gpu_layers = 99;
18
+ auto *model = llama_model_load_from_file(argv[1], mp);
19
+ if (!model) return 3;
20
+ auto cp = llama_context_default_params();
21
+ cp.n_ctx = 2048; cp.n_batch = 1024; cp.n_ubatch = 1024; cp.n_seq_max = 1;
22
+ cp.n_threads = 8; cp.n_threads_batch = 8;
23
+ auto *ctx = llama_init_from_model(model, cp);
24
+ if (!ctx) { llama_model_free(model); return 4; }
25
+ auto *vocab = llama_model_get_vocab(model);
26
+ std::vector<llama_token> labels;
27
+ for (char c = 'A'; c <= 'Z'; ++c) {
28
+ std::string label = std::string(" ") + c;
29
+ llama_token token[4];
30
+ int n = llama_tokenize(vocab, label.data(), label.size(), token, 4, false, false);
31
+ if (n != 1) { std::cerr << "option is not a single token\n"; return 5; }
32
+ labels.push_back(token[0]);
33
+ }
34
+ std::string line;
35
+ while (std::getline(std::cin, line)) {
36
+ try {
37
+ if (line.size() > 200000) throw std::runtime_error("request too large");
38
+ auto in = json::parse(line);
39
+ std::string prompt = in.at("prompt").get<std::string>();
40
+ int k = in.at("n_options").get<int>();
41
+ if (k < 2 || k > 26) throw std::runtime_error("need 2-26 options");
42
+ std::vector<llama_token> tokens(1025);
43
+ int n = llama_tokenize(vocab, prompt.data(), prompt.size(), tokens.data(), tokens.size(), false, true);
44
+ if (n <= 0 || n > 1024) throw std::runtime_error("prompt exceeds the validated context budget");
45
+ tokens.resize(n);
46
+ llama_memory_clear(llama_get_memory(ctx), true);
47
+ auto batch = llama_batch_get_one(tokens.data(), n);
48
+ if (llama_decode(ctx, batch) != 0) throw std::runtime_error("prefill failed");
49
+ llama_synchronize(ctx);
50
+ float *all = llama_get_logits_ith(ctx, -1);
51
+ if (!all) throw std::runtime_error("missing logits");
52
+ std::vector<float> logits;
53
+ for (int i = 0; i < k; ++i) {
54
+ if (!std::isfinite(all[labels[i]])) throw std::runtime_error("nonfinite option logit");
55
+ logits.push_back(all[labels[i]]);
56
+ }
57
+ std::cout << json({{"logits", logits}, {"prompt_tokens", n}}).dump() << std::endl;
58
+ } catch (const std::exception &e) {
59
+ std::cout << json({{"error", e.what()}}).dump() << std::endl;
60
+ }
61
+ }
62
+ llama_free(ctx); llama_model_free(model); llama_backend_free();
63
+ return 0;
64
+ }
jev_decision_client.py ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Exact declared-option probabilities through llama.cpp's /completion endpoint.
2
+
3
+ No artificial probability floor. Candidate count is increased if an option is
4
+ missing; if complete finite log-probabilities cannot be obtained, fail explicitly.
5
+ This client requires llama.cpp's native endpoint, not generic chat logprobs APIs.
6
+ """
7
+ import argparse
8
+ import json
9
+ import math
10
+ import urllib.request
11
+
12
+ LETTERS="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
13
+ HEADER="You are a decision function. Read the state, then answer the question by choosing exactly one option."
14
+
15
+
16
+ class Client:
17
+ def __init__(self,url="http://127.0.0.1:8080",temperature=1.0):
18
+ if not math.isfinite(temperature) or temperature<=0:raise ValueError("invalid calibration temperature")
19
+ self.url=url.rstrip("/");self.temperature=temperature;self.label_ids={}
20
+
21
+ def post(self,path,payload):
22
+ request=urllib.request.Request(self.url+path,json.dumps(payload).encode(),{"Content-Type":"application/json"})
23
+ with urllib.request.urlopen(request,timeout=120) as response:return json.load(response)
24
+
25
+ def labels(self,n):
26
+ for letter in LETTERS[:n]:
27
+ if letter not in self.label_ids:
28
+ ids=self.post("/tokenize",{"content":" "+letter,"add_special":False})["tokens"]
29
+ if len(ids)!=1 or not isinstance(ids[0],int):raise ValueError("option label must be a single token")
30
+ self.label_ids[letter]=ids[0]
31
+ return [self.label_ids[c] for c in LETTERS[:n]]
32
+
33
+ def prompt_logits(self,prompt,n):
34
+ wanted=self.labels(n)
35
+ for count in [64,256,1024,4096]:
36
+ result=self.post("/completion",{"prompt":prompt,"n_predict":1,"temperature":-1.0,
37
+ "n_probs":count,"post_sampling_probs":False,"cache_prompt":False,
38
+ "repeat_penalty":1.0,"presence_penalty":0.,"frequency_penalty":0.})
39
+ positions=result.get("completion_probabilities",result.get("probs"))
40
+ if not positions:raise RuntimeError("server did not return token probabilities")
41
+ candidates=positions[0].get("top_logprobs")
42
+ if candidates is None:raise RuntimeError("server must return raw finite log-probabilities")
43
+ by_id={c["id"]:c["logprob"] for c in candidates}
44
+ if all(i in by_id and by_id[i] is not None and math.isfinite(by_id[i]) for i in wanted):
45
+ return [by_id[i] for i in wanted],count
46
+ raise RuntimeError("Some declared option probabilities are missing/nonfinite. Use native exact-logit inference; no values have been guessed.")
47
+
48
+ def decide(self,state,question,options):
49
+ if not 2<=len(options)<=26 or len(set(options))!=len(options):raise ValueError("need 2–26 unique options")
50
+ lines="\n".join(f"{LETTERS[i]}. {o}" for i,o in enumerate(options))
51
+ prompt=f"{HEADER}\n\n[State]\n{state}\n\n[Question]\n{question}\n\n[Options]\n{lines}\n\nAnswer:"
52
+ logits,count=self.prompt_logits(prompt,len(options))
53
+ z=[x/self.temperature for x in logits];m=max(z)
54
+ p=[math.exp(x-m) for x in z];total=sum(p);p=[x/total for x in p]
55
+ return {"choice":options[max(range(len(p)),key=p.__getitem__)],"probabilities":dict(zip(options,p)),"candidate_count":count}
56
+
57
+ def decide_bool(self,state,proposition):
58
+ return self.decide(state,proposition,["yes","no"])["probabilities"]["yes"]
59
+
60
+ def decide_score(self,state,question,levels):
61
+ result=self.decide(state,question,levels)
62
+ result["expected_level"]=sum(i*result["probabilities"][level] for i,level in enumerate(levels))
63
+ return result
64
+
65
+
66
+ def main():
67
+ p=argparse.ArgumentParser();p.add_argument("--url",default="http://127.0.0.1:8080")
68
+ p.add_argument("--calibration");p.add_argument("--state",required=True);p.add_argument("--question",required=True)
69
+ p.add_argument("--options",nargs="+",required=True);a=p.parse_args()
70
+ t=1.0
71
+ if a.calibration:
72
+ with open(a.calibration) as f:t=json.load(f)["temperature"]
73
+ print(json.dumps(Client(a.url,t).decide(a.state,a.question,a.options),ensure_ascii=False,indent=2))
74
+
75
+
76
+ if __name__=="__main__":main()
requirements.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ # The HTTP decision client uses Python's standard library only.