mario-rc commited on
Commit
714d208
·
verified ·
1 Parent(s): d758f24

Upload multi-domain reward model with model card

Browse files
.gitattributes CHANGED
@@ -33,3 +33,6 @@ 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
+ results/plots/spearman_by_attribute.png filter=lfs diff=lfs merge=lfs -text
37
+ results/plots/spearman_by_attribute_baseline.png filter=lfs diff=lfs merge=lfs -text
38
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ base_model: Skywork/Skywork-Reward-V2-Llama-3.1-8B
4
+ pipeline_tag: text-classification
5
+ language:
6
+ - en
7
+ datasets:
8
+ - RLHFlow/UltraFeedback-preference-standard
9
+ - allenai/reward-bench
10
+ tags:
11
+ - reward-model
12
+ - preference-modeling
13
+ - rlhf
14
+ - multi-domain
15
+ - coherence
16
+ - commonsense
17
+ - empathy
18
+ - multicultural
19
+ ---
20
+
21
+ # multi-domain-rm-skywork-llama-3.1-8b-it
22
+
23
+ This is a multi-domain reward model built from
24
+ [`Skywork/Skywork-Reward-V2-Llama-3.1-8B`](https://huggingface.co/Skywork/Skywork-Reward-V2-Llama-3.1-8B).
25
+ It combines 23 fine-grained regression objectives across coherence, commonsense,
26
+ empathy, and multicultural response quality with a prompt-conditioned gating
27
+ network that produces a single preference score.
28
+
29
+ The checkpoint was packaged with the custom `RewardModelWithGating`
30
+ architecture used in the Multi-Domain Reward Model project.
31
+
32
+ ## Intended Use
33
+
34
+ Use this model to score and compare assistant responses when the evaluation
35
+ should account for multiple quality dimensions rather than a single generic
36
+ helpfulness score. The primary use case is reward modeling or offline response
37
+ ranking for chat-style data.
38
+
39
+ ## Training Data
40
+
41
+ The model uses multi-objective scoring and preference data from:
42
+
43
+ - [`multidomain_data_scoring`](https://github.com/mestecha/multidomain_data_scoring)
44
+ - [`RLHFlow/UltraFeedback-preference-standard`](https://huggingface.co/datasets/RLHFlow/UltraFeedback-preference-standard)
45
+ - [`allenai/reward-bench`](https://huggingface.co/datasets/allenai/reward-bench) for evaluation
46
+
47
+ ## Evaluation
48
+
49
+ | Metric | Value |
50
+ | --- | ---: |
51
+ | Multi-objective scoring MSE | 0.024729 |
52
+ | Multi-objective scoring Pearson | 0.724198 |
53
+ | Multi-objective scoring Spearman | 0.726368 |
54
+ | Preference accuracy (%) | 92.6851 |
55
+ | Preference pairs evaluated | 15489 |
56
+ | Cultural examples evaluated | 180 |
57
+ | Cultural score mean | -0.9639 |
58
+ | Cultural score std | 1.4414 |
59
+
60
+ Preference accuracy by domain:
61
+
62
+ | Domain | Accuracy (%) |
63
+ | --- | ---: |
64
+ | Coherence | 87.5270 |
65
+ | Commonsense | 98.0365 |
66
+ | Empathy | 96.2669 |
67
+ | Multicultural | 85.2487 |
68
+
69
+ ## Limitations
70
+
71
+ This is a reward model, not a standalone chat assistant. Scores are intended for
72
+ relative comparison and should be calibrated for each downstream use case. The
73
+ model inherits limitations from its base model and from the annotation coverage
74
+ of the multi-domain datasets, especially for cultural contexts not represented
75
+ in the evaluation data.
76
+
77
+ ## Credits
78
+
79
+ This model is based on the ArmoRM/RLHFlow reward-modeling approach and adapts it
80
+ to custom multi-domain attributes for coherence, commonsense, empathy, and
81
+ multicultural response quality.
chat_template.jinja ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '<|start_header_id|>' + message['role'] + '<|end_header_id|>
2
+
3
+ '+ message['content'] | trim + '<|eot_id|>' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% endfor %}{% if add_generation_prompt %}{{ '<|start_header_id|>assistant<|end_header_id|>
4
+
5
+ ' }}{% endif %}
config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "RewardModelWithGating"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 128000,
8
+ "dtype": "bfloat16",
9
+ "eos_token_id": [
10
+ 128001,
11
+ 128008,
12
+ 128009
13
+ ],
14
+ "gating_hidden_dim": 64,
15
+ "gating_n_hidden": 1,
16
+ "gating_temperature": 2.0,
17
+ "head_dim": 128,
18
+ "hidden_act": "silu",
19
+ "hidden_size": 4096,
20
+ "id2label": {
21
+ "0": "LABEL_0"
22
+ },
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 14336,
25
+ "label2id": {
26
+ "LABEL_0": 0
27
+ },
28
+ "max_position_embeddings": 131072,
29
+ "mlp_bias": false,
30
+ "model_type": "llama",
31
+ "num_attention_heads": 32,
32
+ "num_hidden_layers": 32,
33
+ "num_key_value_heads": 8,
34
+ "num_objectives": 23,
35
+ "pad_token_id": 128004,
36
+ "pretraining_tp": 1,
37
+ "rms_norm_eps": 1e-05,
38
+ "rope_parameters": {
39
+ "factor": 8.0,
40
+ "high_freq_factor": 4.0,
41
+ "low_freq_factor": 1.0,
42
+ "original_max_position_embeddings": 8192,
43
+ "rope_theta": 500000.0,
44
+ "rope_type": "llama3"
45
+ },
46
+ "tie_word_embeddings": false,
47
+ "transformers_version": "5.3.0",
48
+ "use_cache": false,
49
+ "vocab_size": 128256
50
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ce4805f114045ff00f23a13f9d7e8ac46b33ff7a7f4f345182304f7f2e3b8d4
3
+ size 15010600834
results/eval.json ADDED
@@ -0,0 +1,604 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "model/multi-domain-rm-skywork-llama-3.1-8b-it-test-196",
3
+ "training_metadata": {
4
+ "base_model_path": "Skywork/Skywork-Reward-V2-Llama-3.1-8B",
5
+ "stage_1_weights_path": "model/regression_weights/Skywork-Reward-V2-Llama-3.1-8B_Multi-Domain-Data-Scoring_100pct.pt",
6
+ "stage_2_weights_path": "model/gating_network/gating_network_Skywork-Reward-V2-Llama-3.1-8B_mo_Multi-Domain-Data-Scoring_pref_Multi-Domain-Data-Preference-Pairs_ref_null_t2.0_n30000_seed0_le0.0005_we0.0_n_1_hi64_dr0.05_ba2048_co0.03_lo2.0.pt"
7
+ },
8
+ "scoring_80pct": {
9
+ "evaluated": 5122,
10
+ "skipped": 0,
11
+ "attributes": {
12
+ "co_discourse_structure": {
13
+ "n": 1280,
14
+ "mse": 0.033118,
15
+ "pearson": 0.766439,
16
+ "spearman": 0.777125
17
+ },
18
+ "co_logical_consistency": {
19
+ "n": 1280,
20
+ "mse": 0.040838,
21
+ "pearson": 0.709531,
22
+ "spearman": 0.723998
23
+ },
24
+ "co_mutual_grounding": {
25
+ "n": 1280,
26
+ "mse": 0.036121,
27
+ "pearson": 0.764542,
28
+ "spearman": 0.775175
29
+ },
30
+ "co_overall_coherence_score": {
31
+ "n": 1280,
32
+ "mse": 0.033191,
33
+ "pearson": 0.759132,
34
+ "spearman": 0.769916
35
+ },
36
+ "co_temporal_causal_coherence": {
37
+ "n": 1280,
38
+ "mse": 0.032116,
39
+ "pearson": 0.739292,
40
+ "spearman": 0.74636
41
+ },
42
+ "co_topic_coherence": {
43
+ "n": 1280,
44
+ "mse": 0.032,
45
+ "pearson": 0.767388,
46
+ "spearman": 0.769546
47
+ },
48
+ "cs_causality": {
49
+ "n": 1286,
50
+ "mse": 0.026153,
51
+ "pearson": 0.629517,
52
+ "spearman": 0.598503
53
+ },
54
+ "cs_coherence": {
55
+ "n": 1286,
56
+ "mse": 0.009247,
57
+ "pearson": 0.74146,
58
+ "spearman": 0.753485
59
+ },
60
+ "cs_consistency": {
61
+ "n": 1286,
62
+ "mse": 0.031536,
63
+ "pearson": 0.572519,
64
+ "spearman": 0.571924
65
+ },
66
+ "cs_desire": {
67
+ "n": 1286,
68
+ "mse": 0.032596,
69
+ "pearson": 0.660779,
70
+ "spearman": 0.646299
71
+ },
72
+ "cs_empathy": {
73
+ "n": 1286,
74
+ "mse": 0.017902,
75
+ "pearson": 0.770497,
76
+ "spearman": 0.762808
77
+ },
78
+ "cs_reaction": {
79
+ "n": 1286,
80
+ "mse": 0.028105,
81
+ "pearson": 0.765706,
82
+ "spearman": 0.770195
83
+ },
84
+ "em_emotional_awareness": {
85
+ "n": 1274,
86
+ "mse": 0.022979,
87
+ "pearson": 0.799919,
88
+ "spearman": 0.810258
89
+ },
90
+ "em_emotional_validation": {
91
+ "n": 1274,
92
+ "mse": 0.020944,
93
+ "pearson": 0.819489,
94
+ "spearman": 0.836191
95
+ },
96
+ "em_helpful_response": {
97
+ "n": 1274,
98
+ "mse": 0.022296,
99
+ "pearson": 0.765768,
100
+ "spearman": 0.751327
101
+ },
102
+ "em_overall_empathy_score": {
103
+ "n": 1274,
104
+ "mse": 0.017749,
105
+ "pearson": 0.834078,
106
+ "spearman": 0.847137
107
+ },
108
+ "em_perspective_taking": {
109
+ "n": 1274,
110
+ "mse": 0.018077,
111
+ "pearson": 0.814856,
112
+ "spearman": 0.830864
113
+ },
114
+ "em_supportive_engagement": {
115
+ "n": 1274,
116
+ "mse": 0.022242,
117
+ "pearson": 0.811304,
118
+ "spearman": 0.798736
119
+ },
120
+ "mu_coherence": {
121
+ "n": 1282,
122
+ "mse": 0.003183,
123
+ "pearson": 0.53157,
124
+ "spearman": 0.595166
125
+ },
126
+ "mu_cultural_specificity": {
127
+ "n": 1282,
128
+ "mse": 0.017801,
129
+ "pearson": 0.805912,
130
+ "spearman": 0.837055
131
+ },
132
+ "mu_cultural_value": {
133
+ "n": 1282,
134
+ "mse": 0.065155,
135
+ "pearson": 0.226475,
136
+ "spearman": 0.2136
137
+ },
138
+ "mu_empathy": {
139
+ "n": 1282,
140
+ "mse": 0.01003,
141
+ "pearson": 0.9126,
142
+ "spearman": 0.83685
143
+ },
144
+ "mu_naturalness": {
145
+ "n": 1282,
146
+ "mse": 0.003088,
147
+ "pearson": 0.583882,
148
+ "spearman": 0.603499
149
+ }
150
+ },
151
+ "domains": {
152
+ "coherence": {
153
+ "mse": 0.034564,
154
+ "pearson": 0.751054,
155
+ "spearman": 0.760353
156
+ },
157
+ "commonsense": {
158
+ "mse": 0.024257,
159
+ "pearson": 0.69008,
160
+ "spearman": 0.683869
161
+ },
162
+ "empathy": {
163
+ "mse": 0.020715,
164
+ "pearson": 0.807569,
165
+ "spearman": 0.812419
166
+ },
167
+ "multicultural": {
168
+ "mse": 0.019851,
169
+ "pearson": 0.612088,
170
+ "spearman": 0.617234
171
+ }
172
+ },
173
+ "average": {
174
+ "mse": 0.025064,
175
+ "pearson": 0.719681,
176
+ "spearman": 0.72287
177
+ },
178
+ "global_score": {
179
+ "mean": -0.084258,
180
+ "std": 1.821894,
181
+ "min": -6.84375,
182
+ "max": 6.9375
183
+ }
184
+ },
185
+ "scoring_100pct": {
186
+ "evaluated": 5122,
187
+ "skipped": 0,
188
+ "attributes": {
189
+ "co_discourse_structure": {
190
+ "n": 1280,
191
+ "mse": 0.032518,
192
+ "pearson": 0.770777,
193
+ "spearman": 0.782585
194
+ },
195
+ "co_logical_consistency": {
196
+ "n": 1280,
197
+ "mse": 0.040172,
198
+ "pearson": 0.715056,
199
+ "spearman": 0.730289
200
+ },
201
+ "co_mutual_grounding": {
202
+ "n": 1280,
203
+ "mse": 0.035946,
204
+ "pearson": 0.765847,
205
+ "spearman": 0.776893
206
+ },
207
+ "co_overall_coherence_score": {
208
+ "n": 1280,
209
+ "mse": 0.032674,
210
+ "pearson": 0.763504,
211
+ "spearman": 0.774096
212
+ },
213
+ "co_temporal_causal_coherence": {
214
+ "n": 1280,
215
+ "mse": 0.031754,
216
+ "pearson": 0.743045,
217
+ "spearman": 0.748906
218
+ },
219
+ "co_topic_coherence": {
220
+ "n": 1280,
221
+ "mse": 0.031385,
222
+ "pearson": 0.772437,
223
+ "spearman": 0.773025
224
+ },
225
+ "cs_causality": {
226
+ "n": 1286,
227
+ "mse": 0.025816,
228
+ "pearson": 0.635689,
229
+ "spearman": 0.599198
230
+ },
231
+ "cs_coherence": {
232
+ "n": 1286,
233
+ "mse": 0.00913,
234
+ "pearson": 0.745643,
235
+ "spearman": 0.753881
236
+ },
237
+ "cs_consistency": {
238
+ "n": 1286,
239
+ "mse": 0.031209,
240
+ "pearson": 0.578453,
241
+ "spearman": 0.577192
242
+ },
243
+ "cs_desire": {
244
+ "n": 1286,
245
+ "mse": 0.032062,
246
+ "pearson": 0.666989,
247
+ "spearman": 0.652277
248
+ },
249
+ "cs_empathy": {
250
+ "n": 1286,
251
+ "mse": 0.017647,
252
+ "pearson": 0.774784,
253
+ "spearman": 0.767929
254
+ },
255
+ "cs_reaction": {
256
+ "n": 1286,
257
+ "mse": 0.027656,
258
+ "pearson": 0.770099,
259
+ "spearman": 0.773719
260
+ },
261
+ "em_emotional_awareness": {
262
+ "n": 1274,
263
+ "mse": 0.022634,
264
+ "pearson": 0.803611,
265
+ "spearman": 0.812949
266
+ },
267
+ "em_emotional_validation": {
268
+ "n": 1274,
269
+ "mse": 0.020593,
270
+ "pearson": 0.822651,
271
+ "spearman": 0.838193
272
+ },
273
+ "em_helpful_response": {
274
+ "n": 1274,
275
+ "mse": 0.022002,
276
+ "pearson": 0.76928,
277
+ "spearman": 0.752839
278
+ },
279
+ "em_overall_empathy_score": {
280
+ "n": 1274,
281
+ "mse": 0.017547,
282
+ "pearson": 0.835748,
283
+ "spearman": 0.847668
284
+ },
285
+ "em_perspective_taking": {
286
+ "n": 1274,
287
+ "mse": 0.017851,
288
+ "pearson": 0.817472,
289
+ "spearman": 0.832984
290
+ },
291
+ "em_supportive_engagement": {
292
+ "n": 1274,
293
+ "mse": 0.021954,
294
+ "pearson": 0.814144,
295
+ "spearman": 0.800278
296
+ },
297
+ "mu_coherence": {
298
+ "n": 1282,
299
+ "mse": 0.003149,
300
+ "pearson": 0.53863,
301
+ "spearman": 0.598112
302
+ },
303
+ "mu_cultural_specificity": {
304
+ "n": 1282,
305
+ "mse": 0.017417,
306
+ "pearson": 0.811084,
307
+ "spearman": 0.841164
308
+ },
309
+ "mu_cultural_value": {
310
+ "n": 1282,
311
+ "mse": 0.064614,
312
+ "pearson": 0.240758,
313
+ "spearman": 0.225872
314
+ },
315
+ "mu_empathy": {
316
+ "n": 1282,
317
+ "mse": 0.009984,
318
+ "pearson": 0.912989,
319
+ "spearman": 0.837596
320
+ },
321
+ "mu_naturalness": {
322
+ "n": 1282,
323
+ "mse": 0.003063,
324
+ "pearson": 0.587859,
325
+ "spearman": 0.60883
326
+ }
327
+ },
328
+ "domains": {
329
+ "coherence": {
330
+ "mse": 0.034075,
331
+ "pearson": 0.755111,
332
+ "spearman": 0.764299
333
+ },
334
+ "commonsense": {
335
+ "mse": 0.02392,
336
+ "pearson": 0.695276,
337
+ "spearman": 0.687366
338
+ },
339
+ "empathy": {
340
+ "mse": 0.02043,
341
+ "pearson": 0.810484,
342
+ "spearman": 0.814152
343
+ },
344
+ "multicultural": {
345
+ "mse": 0.019646,
346
+ "pearson": 0.618264,
347
+ "spearman": 0.622315
348
+ }
349
+ },
350
+ "average": {
351
+ "mse": 0.024729,
352
+ "pearson": 0.724198,
353
+ "spearman": 0.726368
354
+ },
355
+ "global_score": {
356
+ "mean": -0.115085,
357
+ "std": 1.837174,
358
+ "min": -7.0,
359
+ "max": 7.0
360
+ }
361
+ },
362
+ "preference": {
363
+ "total": 15489,
364
+ "correct": 14356,
365
+ "ties": 6,
366
+ "skipped": 0,
367
+ "accuracy": 92.6851,
368
+ "margin_mean": 3.905499,
369
+ "margin_std": 3.03703,
370
+ "domains": {
371
+ "coherence": {
372
+ "accuracy": 87.527,
373
+ "correct": 3242,
374
+ "total": 3704,
375
+ "ties": 2
376
+ },
377
+ "commonsense": {
378
+ "accuracy": 98.0365,
379
+ "correct": 4993,
380
+ "total": 5093,
381
+ "ties": 1
382
+ },
383
+ "empathy": {
384
+ "accuracy": 96.2669,
385
+ "correct": 3636,
386
+ "total": 3777,
387
+ "ties": 1
388
+ },
389
+ "multicultural": {
390
+ "accuracy": 85.2487,
391
+ "correct": 2485,
392
+ "total": 2915,
393
+ "ties": 2
394
+ }
395
+ },
396
+ "difficulty": {
397
+ "easy": {
398
+ "accuracy": 95.8952,
399
+ "correct": 11891,
400
+ "total": 12400,
401
+ "ties": 4
402
+ },
403
+ "hard": {
404
+ "accuracy": 73.5965,
405
+ "correct": 839,
406
+ "total": 1140,
407
+ "ties": 0
408
+ },
409
+ "medium": {
410
+ "accuracy": 83.4274,
411
+ "correct": 1626,
412
+ "total": 1949,
413
+ "ties": 2
414
+ }
415
+ }
416
+ },
417
+ "cultural": {
418
+ "evaluated": 180,
419
+ "skipped": 0,
420
+ "global_score": {
421
+ "mean": -0.9639,
422
+ "std": 1.4414,
423
+ "min": -6.3438,
424
+ "max": 3.4531
425
+ },
426
+ "countries": {
427
+ "Australia": {
428
+ "n": 15,
429
+ "score_mean": -0.949,
430
+ "score_std": 0.7752,
431
+ "mu_attributes": {
432
+ "mu_coherence": 0.875,
433
+ "mu_cultural_specificity": 0.5217,
434
+ "mu_cultural_value": 0.638,
435
+ "mu_empathy": 0.1304,
436
+ "mu_naturalness": 0.8076
437
+ }
438
+ },
439
+ "Chile": {
440
+ "n": 15,
441
+ "score_mean": -1.6327,
442
+ "score_std": 1.3299,
443
+ "mu_attributes": {
444
+ "mu_coherence": 0.876,
445
+ "mu_cultural_specificity": 0.5439,
446
+ "mu_cultural_value": 0.6354,
447
+ "mu_empathy": 0.1497,
448
+ "mu_naturalness": 0.8112
449
+ }
450
+ },
451
+ "China": {
452
+ "n": 15,
453
+ "score_mean": -0.7811,
454
+ "score_std": 1.2349,
455
+ "mu_attributes": {
456
+ "mu_coherence": 0.8802,
457
+ "mu_cultural_specificity": 0.5197,
458
+ "mu_cultural_value": 0.6831,
459
+ "mu_empathy": 0.1485,
460
+ "mu_naturalness": 0.8031
461
+ }
462
+ },
463
+ "Germany": {
464
+ "n": 15,
465
+ "score_mean": -1.2286,
466
+ "score_std": 1.4947,
467
+ "mu_attributes": {
468
+ "mu_coherence": 0.876,
469
+ "mu_cultural_specificity": 0.5379,
470
+ "mu_cultural_value": 0.6578,
471
+ "mu_empathy": 0.1596,
472
+ "mu_naturalness": 0.8005
473
+ }
474
+ },
475
+ "India": {
476
+ "n": 15,
477
+ "score_mean": -0.8579,
478
+ "score_std": 0.9938,
479
+ "mu_attributes": {
480
+ "mu_coherence": 0.8753,
481
+ "mu_cultural_specificity": 0.5374,
482
+ "mu_cultural_value": 0.6479,
483
+ "mu_empathy": 0.1505,
484
+ "mu_naturalness": 0.8042
485
+ }
486
+ },
487
+ "Japan": {
488
+ "n": 15,
489
+ "score_mean": -0.7905,
490
+ "score_std": 1.2135,
491
+ "mu_attributes": {
492
+ "mu_coherence": 0.8711,
493
+ "mu_cultural_specificity": 0.5289,
494
+ "mu_cultural_value": 0.6315,
495
+ "mu_empathy": 0.1584,
496
+ "mu_naturalness": 0.8073
497
+ }
498
+ },
499
+ "Kenya": {
500
+ "n": 15,
501
+ "score_mean": -0.3351,
502
+ "score_std": 0.9712,
503
+ "mu_attributes": {
504
+ "mu_coherence": 0.8747,
505
+ "mu_cultural_specificity": 0.5799,
506
+ "mu_cultural_value": 0.6654,
507
+ "mu_empathy": 0.1466,
508
+ "mu_naturalness": 0.8076
509
+ }
510
+ },
511
+ "Mexico": {
512
+ "n": 15,
513
+ "score_mean": -0.4658,
514
+ "score_std": 1.5211,
515
+ "mu_attributes": {
516
+ "mu_coherence": 0.8953,
517
+ "mu_cultural_specificity": 0.5355,
518
+ "mu_cultural_value": 0.6893,
519
+ "mu_empathy": 0.1547,
520
+ "mu_naturalness": 0.8031
521
+ }
522
+ },
523
+ "Poland": {
524
+ "n": 15,
525
+ "score_mean": -1.5578,
526
+ "score_std": 2.4427,
527
+ "mu_attributes": {
528
+ "mu_coherence": 0.8745,
529
+ "mu_cultural_specificity": 0.5493,
530
+ "mu_cultural_value": 0.6445,
531
+ "mu_empathy": 0.1511,
532
+ "mu_naturalness": 0.8065
533
+ }
534
+ },
535
+ "South Africa": {
536
+ "n": 15,
537
+ "score_mean": -0.7571,
538
+ "score_std": 1.4231,
539
+ "mu_attributes": {
540
+ "mu_coherence": 0.8753,
541
+ "mu_cultural_specificity": 0.5734,
542
+ "mu_cultural_value": 0.6654,
543
+ "mu_empathy": 0.184,
544
+ "mu_naturalness": 0.8112
545
+ }
546
+ },
547
+ "Spain": {
548
+ "n": 15,
549
+ "score_mean": -1.1197,
550
+ "score_std": 1.1839,
551
+ "mu_attributes": {
552
+ "mu_coherence": 0.8758,
553
+ "mu_cultural_specificity": 0.5292,
554
+ "mu_cultural_value": 0.6508,
555
+ "mu_empathy": 0.1525,
556
+ "mu_naturalness": 0.8068
557
+ }
558
+ },
559
+ "United States of America": {
560
+ "n": 15,
561
+ "score_mean": -1.0909,
562
+ "score_std": 1.4211,
563
+ "mu_attributes": {
564
+ "mu_coherence": 0.8852,
565
+ "mu_cultural_specificity": 0.5185,
566
+ "mu_cultural_value": 0.6552,
567
+ "mu_empathy": 0.147,
568
+ "mu_naturalness": 0.8185
569
+ }
570
+ }
571
+ },
572
+ "arousal": {
573
+ "1": {
574
+ "n": 12,
575
+ "mean": -1.1308,
576
+ "std": 1.2953
577
+ },
578
+ "2": {
579
+ "n": 32,
580
+ "mean": -1.301,
581
+ "std": 1.2291
582
+ },
583
+ "3": {
584
+ "n": 53,
585
+ "mean": -0.6617,
586
+ "std": 1.5538
587
+ },
588
+ "4": {
589
+ "n": 51,
590
+ "mean": -1.022,
591
+ "std": 1.4584
592
+ },
593
+ "5": {
594
+ "n": 32,
595
+ "mean": -0.9719,
596
+ "std": 1.37
597
+ }
598
+ },
599
+ "score_vs_arousal": {
600
+ "pearson": 0.0378,
601
+ "spearman": 0.0356
602
+ }
603
+ }
604
+ }
results/eval_baseline.json ADDED
@@ -0,0 +1,333 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "Skywork/Skywork-Reward-V2-Llama-3.1-8B",
3
+ "type": "baseline",
4
+ "scoring": {
5
+ "evaluated": 5122,
6
+ "skipped": 0,
7
+ "attributes": {
8
+ "co_discourse_structure": {
9
+ "n": 1280,
10
+ "mse": 267.768484,
11
+ "pearson": 0.399503,
12
+ "spearman": 0.402577
13
+ },
14
+ "co_logical_consistency": {
15
+ "n": 1280,
16
+ "mse": 269.287788,
17
+ "pearson": 0.334027,
18
+ "spearman": 0.345432
19
+ },
20
+ "co_mutual_grounding": {
21
+ "n": 1280,
22
+ "mse": 267.451739,
23
+ "pearson": 0.415589,
24
+ "spearman": 0.419526
25
+ },
26
+ "co_overall_coherence_score": {
27
+ "n": 1280,
28
+ "mse": 268.872669,
29
+ "pearson": 0.389374,
30
+ "spearman": 0.396514
31
+ },
32
+ "co_temporal_causal_coherence": {
33
+ "n": 1280,
34
+ "mse": 270.468984,
35
+ "pearson": 0.366464,
36
+ "spearman": 0.383941
37
+ },
38
+ "co_topic_coherence": {
39
+ "n": 1280,
40
+ "mse": 270.248653,
41
+ "pearson": 0.373761,
42
+ "spearman": 0.38069
43
+ },
44
+ "cs_causality": {
45
+ "n": 1286,
46
+ "mse": 368.376983,
47
+ "pearson": 0.119173,
48
+ "spearman": 0.107379
49
+ },
50
+ "cs_coherence": {
51
+ "n": 1286,
52
+ "mse": 396.305863,
53
+ "pearson": 0.403845,
54
+ "spearman": 0.400605
55
+ },
56
+ "cs_consistency": {
57
+ "n": 1286,
58
+ "mse": 375.106672,
59
+ "pearson": 0.083197,
60
+ "spearman": 0.077648
61
+ },
62
+ "cs_desire": {
63
+ "n": 1286,
64
+ "mse": 369.624386,
65
+ "pearson": 0.127067,
66
+ "spearman": 0.120142
67
+ },
68
+ "cs_empathy": {
69
+ "n": 1286,
70
+ "mse": 385.477148,
71
+ "pearson": 0.222875,
72
+ "spearman": 0.208758
73
+ },
74
+ "cs_reaction": {
75
+ "n": 1286,
76
+ "mse": 375.427491,
77
+ "pearson": 0.199355,
78
+ "spearman": 0.188804
79
+ },
80
+ "em_emotional_awareness": {
81
+ "n": 1274,
82
+ "mse": 428.055558,
83
+ "pearson": 0.587765,
84
+ "spearman": 0.609782
85
+ },
86
+ "em_emotional_validation": {
87
+ "n": 1274,
88
+ "mse": 425.000385,
89
+ "pearson": 0.576845,
90
+ "spearman": 0.646894
91
+ },
92
+ "em_helpful_response": {
93
+ "n": 1274,
94
+ "mse": 425.850433,
95
+ "pearson": 0.463525,
96
+ "spearman": 0.452144
97
+ },
98
+ "em_overall_empathy_score": {
99
+ "n": 1274,
100
+ "mse": 426.318754,
101
+ "pearson": 0.618128,
102
+ "spearman": 0.652989
103
+ },
104
+ "em_perspective_taking": {
105
+ "n": 1274,
106
+ "mse": 426.829288,
107
+ "pearson": 0.620675,
108
+ "spearman": 0.639341
109
+ },
110
+ "em_supportive_engagement": {
111
+ "n": 1274,
112
+ "mse": 425.657313,
113
+ "pearson": 0.548979,
114
+ "spearman": 0.57158
115
+ },
116
+ "mu_coherence": {
117
+ "n": 1282,
118
+ "mse": 68.11454,
119
+ "pearson": 0.301372,
120
+ "spearman": 0.327568
121
+ },
122
+ "mu_cultural_specificity": {
123
+ "n": 1282,
124
+ "mse": 66.841459,
125
+ "pearson": 0.224928,
126
+ "spearman": 0.243449
127
+ },
128
+ "mu_cultural_value": {
129
+ "n": 1282,
130
+ "mse": 66.84707,
131
+ "pearson": 0.014693,
132
+ "spearman": 0.017508
133
+ },
134
+ "mu_empathy": {
135
+ "n": 1282,
136
+ "mse": 63.197375,
137
+ "pearson": 0.447345,
138
+ "spearman": 0.398579
139
+ },
140
+ "mu_naturalness": {
141
+ "n": 1282,
142
+ "mse": 67.880863,
143
+ "pearson": 0.22854,
144
+ "spearman": 0.227955
145
+ }
146
+ },
147
+ "domains": {
148
+ "coherence": {
149
+ "mse": 269.016386,
150
+ "pearson": 0.379786,
151
+ "spearman": 0.388113
152
+ },
153
+ "commonsense": {
154
+ "mse": 378.386424,
155
+ "pearson": 0.192585,
156
+ "spearman": 0.183889
157
+ },
158
+ "empathy": {
159
+ "mse": 426.285289,
160
+ "pearson": 0.569319,
161
+ "spearman": 0.595455
162
+ },
163
+ "multicultural": {
164
+ "mse": 66.576262,
165
+ "pearson": 0.243376,
166
+ "spearman": 0.243012
167
+ }
168
+ },
169
+ "average": {
170
+ "mse": 294.565648,
171
+ "pearson": 0.35074,
172
+ "spearman": 0.357383
173
+ }
174
+ },
175
+ "preference": {
176
+ "total": 16091,
177
+ "correct": 12528,
178
+ "ties": 46,
179
+ "skipped": 0,
180
+ "accuracy": 77.8572,
181
+ "margin_mean": 14.479973,
182
+ "margin_std": 16.697453,
183
+ "domains": {
184
+ "coherence": {
185
+ "accuracy": 68.363,
186
+ "correct": 2539,
187
+ "total": 3714,
188
+ "ties": 13
189
+ },
190
+ "commonsense": {
191
+ "accuracy": 98.2532,
192
+ "correct": 5006,
193
+ "total": 5095,
194
+ "ties": 2
195
+ },
196
+ "empathy": {
197
+ "accuracy": 92.0572,
198
+ "correct": 3477,
199
+ "total": 3777,
200
+ "ties": 0
201
+ },
202
+ "multicultural": {
203
+ "accuracy": 42.9672,
204
+ "correct": 1506,
205
+ "total": 3505,
206
+ "ties": 31
207
+ }
208
+ },
209
+ "difficulty": {
210
+ "easy": {
211
+ "accuracy": 86.5554,
212
+ "correct": 10790,
213
+ "total": 12466,
214
+ "ties": 14
215
+ },
216
+ "hard": {
217
+ "accuracy": 44.069,
218
+ "correct": 639,
219
+ "total": 1450,
220
+ "ties": 8
221
+ },
222
+ "medium": {
223
+ "accuracy": 50.5287,
224
+ "correct": 1099,
225
+ "total": 2175,
226
+ "ties": 24
227
+ }
228
+ }
229
+ },
230
+ "cultural": {
231
+ "evaluated": 180,
232
+ "skipped": 0,
233
+ "global_score": {
234
+ "mean": -4.8502,
235
+ "std": 6.9709,
236
+ "min": -24.25,
237
+ "max": 11.8125
238
+ },
239
+ "countries": {
240
+ "Australia": {
241
+ "n": 15,
242
+ "score_mean": -3.379,
243
+ "score_std": 7.5048
244
+ },
245
+ "Chile": {
246
+ "n": 15,
247
+ "score_mean": -2.7193,
248
+ "score_std": 7.3955
249
+ },
250
+ "China": {
251
+ "n": 15,
252
+ "score_mean": -8.7948,
253
+ "score_std": 7.0204
254
+ },
255
+ "Germany": {
256
+ "n": 15,
257
+ "score_mean": -2.6734,
258
+ "score_std": 7.6305
259
+ },
260
+ "India": {
261
+ "n": 15,
262
+ "score_mean": -3.3963,
263
+ "score_std": 6.6906
264
+ },
265
+ "Japan": {
266
+ "n": 15,
267
+ "score_mean": -6.0005,
268
+ "score_std": 5.6984
269
+ },
270
+ "Kenya": {
271
+ "n": 15,
272
+ "score_mean": -5.2865,
273
+ "score_std": 6.4503
274
+ },
275
+ "Mexico": {
276
+ "n": 15,
277
+ "score_mean": -4.4237,
278
+ "score_std": 6.8976
279
+ },
280
+ "Poland": {
281
+ "n": 15,
282
+ "score_mean": -4.7628,
283
+ "score_std": 5.3618
284
+ },
285
+ "South Africa": {
286
+ "n": 15,
287
+ "score_mean": -5.309,
288
+ "score_std": 6.4878
289
+ },
290
+ "Spain": {
291
+ "n": 15,
292
+ "score_mean": -7.5237,
293
+ "score_std": 6.7529
294
+ },
295
+ "United States of America": {
296
+ "n": 15,
297
+ "score_mean": -3.9339,
298
+ "score_std": 6.5357
299
+ }
300
+ },
301
+ "arousal": {
302
+ "1": {
303
+ "n": 12,
304
+ "mean": -7.4241,
305
+ "std": 6.301
306
+ },
307
+ "2": {
308
+ "n": 32,
309
+ "mean": -6.8282,
310
+ "std": 6.8316
311
+ },
312
+ "3": {
313
+ "n": 53,
314
+ "mean": -5.1853,
315
+ "std": 7.1044
316
+ },
317
+ "4": {
318
+ "n": 51,
319
+ "mean": -4.427,
320
+ "std": 6.6602
321
+ },
322
+ "5": {
323
+ "n": 32,
324
+ "mean": -2.0265,
325
+ "std": 6.5304
326
+ }
327
+ },
328
+ "score_vs_arousal": {
329
+ "pearson": 0.2261,
330
+ "spearman": 0.2092
331
+ }
332
+ }
333
+ }
results/plots/cultural_attributes_by_country.png ADDED
results/plots/preference_by_domain.png ADDED
results/plots/preference_by_domain_baseline.png ADDED
results/plots/spearman_by_attribute.png ADDED

Git LFS Details

  • SHA256: c2a36a5270f9be69eed9ce5bb404f24747367b9e1865fa820859dffc6c88f152
  • Pointer size: 131 Bytes
  • Size of remote file: 120 kB
results/plots/spearman_by_attribute_baseline.png ADDED

Git LFS Details

  • SHA256: 3070c0c9916a1d9d93ba3ecfe7ad627516fdb81d18644d46e204fae60aabb01e
  • Pointer size: 131 Bytes
  • Size of remote file: 120 kB
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
tokenizer_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin_of_text|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|eot_id|>",
6
+ "is_local": false,
7
+ "model_input_names": [
8
+ "input_ids",
9
+ "attention_mask"
10
+ ],
11
+ "model_max_length": 131072,
12
+ "pad_token": "<|finetune_right_pad_id|>",
13
+ "tokenizer_class": "TokenizersBackend"
14
+ }
training_metadata.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "base_model_path": "Skywork/Skywork-Reward-V2-Llama-3.1-8B",
3
+ "stage_1_weights_path": "model/regression_weights/Skywork-Reward-V2-Llama-3.1-8B_Multi-Domain-Data-Scoring_100pct.pt",
4
+ "stage_2_weights_path": "model/gating_network/gating_network_Skywork-Reward-V2-Llama-3.1-8B_mo_Multi-Domain-Data-Scoring_pref_Multi-Domain-Data-Preference-Pairs_ref_null_t2.0_n30000_seed0_le0.0005_we0.0_n_1_hi64_dr0.05_ba2048_co0.03_lo2.0.pt"
5
+ }