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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
- split: train
|
| 165 |
path: sft-prompts/train-*
|
| 166 |
---
|
| 167 |
+
# safe-alignment-dynamic
|
| 168 |
+
|
| 169 |
+
Training prompts for score-conditioned SFT / RL and separate reward-model pair sets; nothing here is scored.
|
| 170 |
+
`sft-prompts/train` and `rl-prompts/train`: the same prompt pool, deduplicated across sources with responses
|
| 171 |
+
merged and HH/PKU test prompts removed. `rl-prompts` additionally marks `selection=pku_label_conflict` where PKU's
|
| 172 |
+
better and safer labels disagree with opposite safety flags; `preference_pairs` indexes those responses.
|
| 173 |
+
This is an annotation, not a filter or a sampling weight. Both configs are train-only; evaluation prompts are
|
| 174 |
+
prepared by the evaluation processor. Strata are source proxies, not content labels: `benign` (HH helpful-*),
|
| 175 |
+
`harmful` (HH harmless-base, PKU with an unsafe response), `unlabeled` (PKU with two safe responses).
|
| 176 |
+
|
| 177 |
+
`helpful-rm` train: HH helpful pairs; PKU pairs whose two replies are both safe (better label, safety held
|
| 178 |
+
constant); a small answer > refusal augmentation on Guard-Safe HH helpful-base prompts, negatives alternating
|
| 179 |
+
fixed templates and transplanted HH harmless-base refusals. Test keeps every PKU pair. `harmless-rm`: HH
|
| 180 |
+
harmless-base pairs and PKU pairs with one safe and one unsafe reply (safe > unsafe). Both heads receive
|
| 181 |
+
the same benign answer > refusal pairs, at most 15% of the smaller final training split.
|
| 182 |
+
Standard chosen/rejected pairs only: no judge labels, no ties, no label flips, no manufactured conflict.
|
| 183 |
+
Harmless therefore includes appropriate responses to benign requests, rather than pure content safety.
|
| 184 |
+
Guard screens requests only; it does not certify answer correctness. Native pairs are length-balanced
|
| 185 |
+
(chosen longer by >20 words subsampled to match rejected longer), then shared augmentation is added.
|
| 186 |
+
Augmentation can retain length bias; its length counts and realized shares are reported. Sources: Anthropic/hh-rlhf,
|
| 187 |
+
PKU-Alignment/PKU-SafeRLHF.
|
| 188 |
+
|
| 189 |
+
## Composition
|
| 190 |
+
|
| 191 |
+
```json
|
| 192 |
+
{
|
| 193 |
+
"source_revisions": {
|
| 194 |
+
"Anthropic/hh-rlhf": "09be8c5bbc57cb3887f3a9732ad6aa7ec602a1fa",
|
| 195 |
+
"PKU-Alignment/PKU-SafeRLHF": "9421ffafec3fa40a1f1a7d567b4d525079477ecb"
|
| 196 |
+
},
|
| 197 |
+
"hh_skipped": {
|
| 198 |
+
"hh-helpful-base/train/invalid": 187,
|
| 199 |
+
"hh-helpful-base/train/unusable": 111,
|
| 200 |
+
"hh-helpful-base/test/unusable": 6,
|
| 201 |
+
"hh-helpful-base/test/invalid": 15,
|
| 202 |
+
"hh-helpful-online/train/unusable": 105,
|
| 203 |
+
"hh-helpful-online/train/invalid": 19,
|
| 204 |
+
"hh-helpful-online/test/unusable": 5,
|
| 205 |
+
"hh-helpful-online/test/invalid": 2,
|
| 206 |
+
"hh-helpful-rs/train/unusable": 655,
|
| 207 |
+
"hh-helpful-rs/train/invalid": 43,
|
| 208 |
+
"hh-helpful-rs/test/unusable": 32,
|
| 209 |
+
"hh-helpful-rs/test/invalid": 3,
|
| 210 |
+
"hh-harmless-base/train/invalid": 222,
|
| 211 |
+
"hh-harmless-base/train/unusable": 53,
|
| 212 |
+
"hh-harmless-base/test/unusable": 4,
|
| 213 |
+
"hh-harmless-base/test/invalid": 9
|
| 214 |
+
},
|
| 215 |
+
"augmentation": {
|
| 216 |
+
"refusal_donors": 475,
|
| 217 |
+
"shared_pairs": 8835,
|
| 218 |
+
"duplicate_or_existing_pairs_removed": 0,
|
| 219 |
+
"chosen_longer": 0,
|
| 220 |
+
"rejected_longer": 0,
|
| 221 |
+
"skipped_no_length_matched_negative": 46,
|
| 222 |
+
"negative_kinds": {
|
| 223 |
+
"transplanted_refusal": 5329,
|
| 224 |
+
"template": 2989,
|
| 225 |
+
"clarification": 517
|
| 226 |
+
}
|
| 227 |
+
},
|
| 228 |
+
"guard": {
|
| 229 |
+
"model": "Qwen/Qwen3Guard-Gen-4B",
|
| 230 |
+
"candidates": 42595,
|
| 231 |
+
"labels": {
|
| 232 |
+
"Safe": 41935,
|
| 233 |
+
"Controversial": 576,
|
| 234 |
+
"Unsafe": 84
|
| 235 |
+
},
|
| 236 |
+
"safe_prompts": 41935
|
| 237 |
+
},
|
| 238 |
+
"clarity": {
|
| 239 |
+
"model": "Qwen/Qwen3-4B-Instruct-2507",
|
| 240 |
+
"question_like": 17126,
|
| 241 |
+
"self_contained": 14842
|
| 242 |
+
},
|
| 243 |
+
"rl_pool": {
|
| 244 |
+
"unique_prompts": 185020,
|
| 245 |
+
"conflict_prompts": 1454,
|
| 246 |
+
"conflict_pairs": 1512,
|
| 247 |
+
"duplicate_prompts_merged": 4853
|
| 248 |
+
},
|
| 249 |
+
"prompts_train_removed_for_test_overlap": 7520,
|
| 250 |
+
"splits": [
|
| 251 |
+
{
|
| 252 |
+
"config": "sft-prompts",
|
| 253 |
+
"split": "train",
|
| 254 |
+
"rows": 185020,
|
| 255 |
+
"by_source": {
|
| 256 |
+
"hh-helpful-base": 43455,
|
| 257 |
+
"pku": 32206,
|
| 258 |
+
"hh-helpful-online": 21847,
|
| 259 |
+
"hh-helpful-rs": 51484,
|
| 260 |
+
"hh-harmless-base": 36028
|
| 261 |
+
},
|
| 262 |
+
"by_stratum": {
|
| 263 |
+
"benign": 116786,
|
| 264 |
+
"unlabeled": 13504,
|
| 265 |
+
"harmful": 54730
|
| 266 |
+
}
|
| 267 |
+
},
|
| 268 |
+
{
|
| 269 |
+
"config": "rl-prompts",
|
| 270 |
+
"split": "train",
|
| 271 |
+
"rows": 185020,
|
| 272 |
+
"by_source": {
|
| 273 |
+
"hh-helpful-base": 43455,
|
| 274 |
+
"pku": 32206,
|
| 275 |
+
"hh-helpful-online": 21847,
|
| 276 |
+
"hh-helpful-rs": 51484,
|
| 277 |
+
"hh-harmless-base": 36028
|
| 278 |
+
},
|
| 279 |
+
"by_stratum": {
|
| 280 |
+
"benign": 116786,
|
| 281 |
+
"unlabeled": 13504,
|
| 282 |
+
"harmful": 54730
|
| 283 |
+
}
|
| 284 |
+
},
|
| 285 |
+
{
|
| 286 |
+
"config": "helpful-rm",
|
| 287 |
+
"split": "train",
|
| 288 |
+
"rows": 131882,
|
| 289 |
+
"by_source": {
|
| 290 |
+
"hh-helpful-rs": 43951,
|
| 291 |
+
"hh-helpful-base": 37743,
|
| 292 |
+
"pku-conflict-original": 1207,
|
| 293 |
+
"hh-helpful-online": 19228,
|
| 294 |
+
"pku": 20918,
|
| 295 |
+
"augmentation-benign": 8835
|
| 296 |
+
},
|
| 297 |
+
"by_stratum": {
|
| 298 |
+
"benign": 109757,
|
| 299 |
+
"harmful": 1207,
|
| 300 |
+
"unlabeled": 20918
|
| 301 |
+
}
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"config": "helpful-rm",
|
| 305 |
+
"split": "test",
|
| 306 |
+
"rows": 14385,
|
| 307 |
+
"by_source": {
|
| 308 |
+
"hh-helpful-base": 2333,
|
| 309 |
+
"hh-helpful-online": 1130,
|
| 310 |
+
"hh-helpful-rs": 2714,
|
| 311 |
+
"pku": 8208
|
| 312 |
+
},
|
| 313 |
+
"by_stratum": {
|
| 314 |
+
"benign": 6177,
|
| 315 |
+
"harmful": 4905,
|
| 316 |
+
"unlabeled": 3303
|
| 317 |
+
}
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"config": "harmless-rm",
|
| 321 |
+
"split": "train",
|
| 322 |
+
"rows": 58904,
|
| 323 |
+
"by_source": {
|
| 324 |
+
"hh-harmless-base": 41098,
|
| 325 |
+
"augmentation-benign": 8835,
|
| 326 |
+
"pku": 8971
|
| 327 |
+
},
|
| 328 |
+
"by_stratum": {
|
| 329 |
+
"harmful": 50069,
|
| 330 |
+
"benign": 8835
|
| 331 |
+
}
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"config": "harmless-rm",
|
| 335 |
+
"split": "test",
|
| 336 |
+
"rows": 3520,
|
| 337 |
+
"by_source": {
|
| 338 |
+
"hh-harmless-base": 2299,
|
| 339 |
+
"pku": 1221
|
| 340 |
+
},
|
| 341 |
+
"by_stratum": {
|
| 342 |
+
"harmful": 3520
|
| 343 |
+
}
|
| 344 |
+
}
|
| 345 |
+
],
|
| 346 |
+
"rm_processing": {
|
| 347 |
+
"helpful-rm": {
|
| 348 |
+
"train_removed_for_test_overlap": 4325,
|
| 349 |
+
"train_duplicate_or_conflicting_rows": 2,
|
| 350 |
+
"test_duplicate_or_conflicting_rows": 0,
|
| 351 |
+
"length_balance": {
|
| 352 |
+
"chosen_longer_before": 51550,
|
| 353 |
+
"rejected_longer": 29549,
|
| 354 |
+
"dropped": 22001
|
| 355 |
+
},
|
| 356 |
+
"benign_augmentation_share_train": 0.06699170470572179,
|
| 357 |
+
"template_share_train": 0.023,
|
| 358 |
+
"benign_augmentation_negatives": {
|
| 359 |
+
"transplanted_refusal": 5329,
|
| 360 |
+
"template": 2989,
|
| 361 |
+
"clarification": 517
|
| 362 |
+
}
|
| 363 |
+
},
|
| 364 |
+
"harmless-rm": {
|
| 365 |
+
"train_removed_for_test_overlap": 2989,
|
| 366 |
+
"train_duplicate_or_conflicting_rows": 0,
|
| 367 |
+
"test_duplicate_or_conflicting_rows": 0,
|
| 368 |
+
"length_balance": {
|
| 369 |
+
"chosen_longer_before": 7808,
|
| 370 |
+
"rejected_longer": 14605,
|
| 371 |
+
"dropped": 0
|
| 372 |
+
},
|
| 373 |
+
"benign_augmentation_share_train": 0.14998981393453756,
|
| 374 |
+
"template_share_train": 0.051,
|
| 375 |
+
"benign_augmentation_negatives": {
|
| 376 |
+
"transplanted_refusal": 5329,
|
| 377 |
+
"template": 2989,
|
| 378 |
+
"clarification": 517
|
| 379 |
+
}
|
| 380 |
+
}
|
| 381 |
+
},
|
| 382 |
+
"pku_test_conflicts": {
|
| 383 |
+
"shared_mixed_safety_pairs": 1221,
|
| 384 |
+
"better_ne_safer": 196
|
| 385 |
+
}
|
| 386 |
+
}
|
| 387 |
+
```
|