kenning-phishing-v1.1
Kenning is a System One decision model: given program state and typed questions (noul yes/no, choice, score) it returns typed answers with calibrated probabilities in one forward pass. It does not generate text. It was built with SystemOne Builder.
Model
- Base model:
MoritzLaurer/deberta-v3-large-zeroshot-v2.0-c(MIT; fine-tuned on MNLI, FEVER-NLI (CC-BY-SA-3.0) and Mixtral-generated synthetic data (no non-commercial data)) - Architecture: cross-encoder; every candidate answer is scored against the state, and each question's distribution is
softmax(scores / T)with per-type temperatures fitted on held-out data - Temperatures:
{"choice": 0.7408, "noul_bare": 1.1052, "noul_criteria": 0.8607, "score": 4.7115, "noul": 1.0} - Decision bias:
{"noul_bare": 0.25, "noul_criteria": 0.0, "noul": 0.2}(added to "yes" after the temperature divide; temperature alone cannot move a two-option decision) - Max tokens per (state, answer) pair: 512
- Created: 2026-11-18T18:45:07Z
Training data
| Source | Rows | Licence |
|---|---|---|
paired counterfactual phishing & SaaS collaboration emails (strictly split by pair_id) |
1927 | Apache-2.0 |
short modern operational & phishing emails across 4 layouts |
640 | Apache-2.0 |
rule-generated general decision anchors (records, tables, agent_steps, logs) |
1040 | Apache-2.0 (kenning/structured.py) |
Distilled: every label was blended with the soft labels (probabilities) of Cloudflare/clef-flash (see its model card); the target is 70% original label + 30% teacher.
Held-out results (split of the training pool)
| accuracy | Brier | ECE | |
|---|---|---|---|
| zero-shot (before training) | 0.538 | 0.516 | 0.193 |
| trained | 0.911 | 0.092 | 0.024 |
| trained + calibrated | 0.914 | 0.096 | 0.009 |
These are in-distribution numbers. Benchmark on your own data (and recalibrate on a few hundred labelled examples from it) before letting the model act automatically.
Benchmarks
Recorded with systemone bench on suites never used for training. Automated is the share of items decided without a person (p >= 0.9 or <= 0.1); a threat auto-closed is a positive item the model was sure was negative.
| Suite | Items | Accuracy | Brier | ECE | Automated | Threats auto-closed | Latency p50 |
|---|---|---|---|---|---|---|---|
| Jev Decision Index (external) | 320 | 0.478 (macro) | 0.569 | 0.269 | - | - | 35 ms |
| PhishNChips (400 real Decision Index #56 emails) | 400 | 0.905 / 0.900 | 0.079 | 0.019 | 57% | 8 | 75 ms |
| Phishing Counterfactuals (48 hand-written) | 48 | 0.854 / 0.854 / 0.958 / 0.792 / 0.833 / 0.667 | 0.105 | 0.124 | 60% | 0 | 306 ms |
| Phishing Counterfactuals (32 synthetic in-dist) | 32 | 1.000 / 0.969 / 1.000 / 1.000 / 1.000 / 1.000 | 0.008 | 0.051 | 84% | 0 | 307 ms |
| PhreshPhish Webpage & URL Triage (real) | 80 | 0.963 / 0.900 / 0.963 | 0.035 | 0.059 | 85% | 0 | 120 ms |
| Modern emails 2 (held out) | 20 | 0.950 | 0.046 | 0.097 | 50% | 0 | 32 ms |
| Phishing Layouts (4 state shapes) | 160 | 0.825 / 0.950 / 0.925 / 0.725 | 0.120 | 0.115 | 55% | 0 | 41 ms |
Where a suite asks several questions, accuracy lists each (out of domain: spam / emotion / news topic; layouts: one per layout). Comparisons with Cloudflare Clef and TypeSafe Jev on the same suites are in the Kenning docs.
Use
pip install "systemone-client[local]"
from systemone import Kenning, Noul, Choice
model = Kenning.from_pretrained("systemonedev/kenning-phishing-v1.1") # in-process, runs on CPU or GPU
answer = model.system_one(state={"ticket": "I was charged twice."},
questions={"billing": Noul("Is this about billing?")})
print(answer.nouls["billing"].noul)
Or serve it with SystemOne Builder's kenning service and call POST /v1/systemone with systemone.Client.
Limitations
- Calibration was fitted on the training distribution; probabilities on other data are scores until recalibrated.
- Arithmetic, dates and long or contradictory states degrade accuracy.
- Determinism: identical requests give identical answers on the same hardware and software; results can differ across GPUs or library versions.
Licence
The weights are released under the Apache License 2.0 (LICENSE). Upstream licences of the base model and of every training source are listed in NOTICE.md; some are share-alike (CC-BY-SA-3.0), so keep NOTICE.md with the weights.
Kenning implements a wire format compatible with TypeSafe AI's System One API. It is not affiliated with or endorsed by TypeSafe AI, and was not trained on TypeSafe outputs.
- Downloads last month
- 29