KucLab commited on
Commit
50a6293
·
verified ·
1 Parent(s): 2b60b18

Add CHANGELOG.md

Browse files
Files changed (1) hide show
  1. CHANGELOG.md +81 -0
CHANGELOG.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Changelog
2
+
3
+ No silent overwrites of the same version: a new checkpoint ships as a new version
4
+ (Barist.1.1, ...) or a git tag.
5
+
6
+ ## Barist.3 — sixth adversarial review (released; own repos: `Jerry256254/barist.3` + `KucLab/Barist.3`, git tag `barist-3`)
7
+ Checkpoint `checkpoints_b3a/best.pt`.
8
+
9
+ - Regex de-contaminated: no literal heldout2 phrases; patterns rewritten from dev only
10
+ and tightened (1st-person requirement for self-harm/poison, intimate-context
11
+ requirement for child-video patterns, place-preposition guard for "přestat žít",
12
+ 1st-person+future for weapon↔school proximity, prevention/game/exhibition
13
+ contexts downgrade). `data/regex_benign_test.jsonl` 321 -> 454 sentences; the regex
14
+ gate runs inside pytest (`tests/test_regex_gate.py`) on every change.
15
+ - Identity-bias fix: +1,058 identity-neutral training sentences (>=500 per group:
16
+ Romové, Židé, muslimové, uprchlíci, černoši; cs+en), source `identity_neutral`
17
+ (hard-negative weight); new release gate `identity_fp <= 2%` (eval_gates.py).
18
+ - New clean held-out set `data/mustcatch_heldout3.jsonl` (fresh phrasings, 53 unsafe +
19
+ 14 benign); reports contain aggregate counts only (no individual misses).
20
+ - heldout2 miss categories fixed via paraphrased training data (+ benign twins),
21
+ never by copying test sentences into the regex.
22
+ - cs benign counter-pairs for known FPs + uk/ru benign expansion (phase: extend_barist3_data.py).
23
+ - Gates metadata fixed (91 = 75 unsafe + 16 benign; data/ vs data/processed/ paths),
24
+ serve.py banner, per-language threshold documentation (fr 0.71 etc.), CHANGELOG
25
+ published to the Hub repo.
26
+ - Renamed to Barist.3 everywhere: `barist.3` CLI, `kuclab-barist3`, Dockerfile
27
+ `ARG BARIST_REPO=KucLab/Barist.3`, Hub bundle name `Barist.3`.
28
+
29
+ ## Barist.2 — fifth adversarial review (released; own repos: `Jerry256254/barist.2` + `KucLab/Barist.2`, git tag `barist-2`)
30
+ Checkpoint `checkpoints_b2w/best.pt` (phase W on top of `b1q`). All six items of the
31
+ Barist.1.1 review fixed:
32
+
33
+ 1. CSAM/self-harm hard block: for cs/sk/default text, category score
34
+ sexual_abuse or self_harm >= 0.3 forces `unsafe` with `override: category_block`
35
+ regardless of the language threshold (in `kuclab/infer.py`, `kuclab/cli.py`,
36
+ `scripts/censer.py` incl. the chunked long-text path). Regex extended:
37
+ `vzít si život`, `přestat žít`, `pořezat/podřezat`, `zemřít doma`, `otrávit se/prášky`,
38
+ `dětský materiál`, `nezletil*.{0,20}(fotk|vide)`, `děti bez oblečení`, hate-group
39
+ violence patterns. The false "0 CSAM/self-harm passes" claim is REMOVED from
40
+ README/model card.
41
+ 2. `mustcatch_heldout2.jsonl` restored to the full 91 rows; the 20 train rows with
42
+ >0.8 5-gram overlap were purged FROM TRAIN (not from the test);
43
+ `reports/heldout2_dedup.json` gate passes (max overlap 0.75).
44
+ 3. cs language threshold FIXED back to 0.5 (tuned value kept as diagnostics only);
45
+ `eval_gates.py` measures cs_benign FPR with the deployed pipeline.
46
+ 4. Unsafe verdicts always carry >=1 category (top-1 fallback) and categories are
47
+ sorted by severity priority — now also in the chunked path of `censer.py`.
48
+ 5. Regex holes closed: school patterns in both word orders + multilingual
49
+ (es/fr/de/it/ru/uk), `dan mode`, multilingual poison patterns.
50
+ 6. `gates.json` reads report-level metrics (ECE, ONNX parity, regex gate, dedup)
51
+ from each model's OWN reports dir; user benign set is 43 sentences with matching
52
+ denominators.
53
+ - Phase W training data (`scripts/extend_barist1w.py`): 360+ unsafe formulations
54
+ (self-harm without "zabít", school threats, poison, group hate, ru/uk, market)
55
+ each paired 1:1 with a benign twin sharing the frame words; must_catch_weight =
56
+ hard_negative_weight = 11.
57
+ - Renamed to Barist.2 everywhere: `barist.2` CLI launcher, `pyproject.toml`
58
+ (`kuclab-barist2`), Dockerfile `ARG BARIST_REPO=KucLab/Barist.2`, Hub bundle
59
+ name `Barist.2`.
60
+
61
+ ## Barist.1.1 — fourth adversarial review (released; git tag `barist-1.1`)
62
+ Checkpoint `checkpoints_b1q/best.pt` (phases M–V). Release gates measured by
63
+ `scripts/eval_gates.py` -> `reports/gates.json` (8 PASS / 7 FAIL, FAILs documented in README).
64
+
65
+ - Regex pre-filter v3.1: legal-weapon / pyrotechnics / pest-control exceptions
66
+ (downgrade to `needs_review`, not a block); `fet` only in drug context; napalm only
67
+ instruction forms; extended self-harm patterns (`řežu se`, `podřezat si žíly`,
68
+ `prášky na zabití`, `předávkovat se`); regex gate `scripts/test_regex.py`
69
+ (321 benign trigger sentences, 0 hard FP) wired into pytest.
70
+ - New clean held-out set `data/mustcatch_heldout2.jsonl` (91 rows); old set renamed
71
+ `data/mustcatch_dev.jsonl` (dev only). Report renamed `reports/mustcatch_heldout2.json`.
72
+ - Training phases M–R (must_catch ×15–25, benign counter-pairs); checkpoint `b1q`.
73
+ - CLI/API: `needs_review` for jailbreak patterns (not a hard block), `needs_support`
74
+ (Linka bezpečí) for self-harm support contexts, `override: must_catch` field.
75
+ - Files published in-repo: `data/mustcatch_heldout2.jsonl`, `data/mustcatch_dev.jsonl`,
76
+ `data/cs_benign.jsonl`, `data/regex_benign_test.jsonl`, `kuclab/probes.py`,
77
+ `reports/onnx_parity.json`.
78
+
79
+ ## Barist.1 — third adversarial review
80
+ - Renamed from Censer line; pre-filter v2; phases I–L; checkpoint `b1l`.
81
+ - Successor banners added to Censer.8 / Censer.9 READMEs (GitHub + Hugging Face).