Manuscript Offprint
arXiv:2610.03073SecJev: Bringing Security Expertise to System One Decision Models
Abstract
Security workflows need models that turn complex observations and explicit policies into decisions. System One models introduced by Jev return typed predictions and probabilities; security specialization supplies the domain expertise behind those predictions. We introduce SecJev, to our knowledge the first family of Jev-like decision models specialized for security, spanning 0.8B to 9B parameters. Built on Kev's single-pass candidate scorer, SecJev learns Boolean, choice, and ordered decisions from text, telemetry, and observation histories. We develop SecJev-Corpus to unify source-label prediction and explicit-policy evaluation across 14 tasks and eight sources. It covers tool outputs, traffic, federated updates, consensus, authentication, and vehicle messages. Scene-weighted training adapts the models across these domains while preserving a shared typed decision interface. Security specialization improves every model in the family; SecJev-0.8B outperforms general Kev-9B by 20.51 percentage points in task-macro accuracy. Comparisons with answer-only generative fine-tuning show close accuracy and latency with lower peak inference memory. Tests on new source groups reproduce gains over Kev in prompt-injection and traffic decisions, with capture-dependent false alarms. We release adapters, decision heads, SecJev-Corpus, and training and inference code.
1 Introduction
Security workflows repeatedly turn complex observations into decisions about tool outputs, authentication histories, or voting evidence (Debenedetti et al., 2024; Kent, 2016; Bano et al., 2022). The same tool response can require both injection detection and a trust-boundary action, while voting evidence can require both a quorum judgment and a policy decision. Each answer depends on how the observation relates to the question and any applicable policy.
Jev introduced System One models in September 2026 that return typed decisions and probabilities directly (Almeida, 2026). Kev provides open weights for training and running Jev-like models (Palmer, 2026). We use Jev-like for this decision interface: the model receives observations, a question, and candidate meanings, and returns probabilities over typed alternatives. Security specialization equips this general decision interface with the expertise to interpret domain observations and apply stated policies.
We introduce SecJev, to our knowledge the first family of Jev-like models specialized for security, at 0.8B, 2B, 4B, and 9B. SecJev brings security expertise to Kev's single-pass candidate scorer through trained adapters and a decision head. All four models support Boolean, choice, and ordered outputs, allowing distinct questions about a scene to share the same model and typed interface.
We develop SecJev-Corpus to train this capability across tool outputs, traffic, federated updates, consensus, authentication, and vehicle messages. Its 170,185 questions combine source-annotation prediction from observations with explicit-policy evaluation against visible evidence. Questions and candidate descriptions preserve the target semantics of each task. Scene-weighted training balances scenes with different numbers of questions while retaining the single-pass decision path (Figure 1).
Security specialization improves all 14 tasks at all four sizes. SecJev-0.8B gains 39.40 percentage points in task-macro accuracy over Kev-0.8B and exceeds general Kev-9B by 20.51 points. Generative and classification comparisons establish its accuracy relative to alternative decision interfaces. Direct-Qwen training measures the benefit of general-decision initialization. New-source tests assess transfer, while paraphrase, candidate-permutation, and general-task evaluations characterize consistency and retention. We release the models, SecJev-Corpus, and code.

Figure 1: SecJev's shared decision path and security adaptation. Source annotations and explicit policies provide requests and targets. One backbone with layerwise LoRA adapters produces decision-marker and candidate-end states; the pointer head scores candidates to obtain typed outputs. Solid edges carry forward computation during both training and inference. Gray dashed edges supply gold labels and logits to scene-weighted cross-entropy; coral dashed edges update only LoRA and the head, leaving the backbone frozen. General-decision initialization uses official Kev for 0.8B/4B/9B and our pretrained 2B model.
Decision interfaces. Jev introduced typed System One predictions (Almeida, 2026); Kev supplies the pointer head and Boolean, choice, and ordered-score interfaces used here (Palmer, 2026). SecJev specializes this architecture through low-rank adaptation (LoRA) (Hu et al., 2022), with temperature scaling for confidence (Guo et al., 2017). Prompt-injection attacks on Jev motivate evaluating how decision models interpret security evidence (Wu and Lim, 2026). Classification-head fine-tuning also provides discriminative multiple-choice decisions, scoring each context–candidate sequence separately (Sood and Savelka, 2026). SecJev brings security specialization to Jev-like models with a shared single-pass candidate scorer, and compares the family with one-token generation and candidate-sequence classification.
Security observations and policies. AgentDojo and InjecAgent provide tool-integrated injection scenarios (Debenedetti et al., 2024; Zhan et al., 2024). CICIoT2023, ToN-IoT, LANL, and VeReMi supply network, authentication, and vehicle observations (Neto et al., 2023; Moustafa, 2021a; Kent, 2015; Hermann et al., 2026). Twins and ByzFL support controlled consensus and federated-learning scenarios (Bano et al., 2022; González et al., 2025). SecJev-Corpus preserves their target semantics while expressing questions and candidate meanings through one interface.
3 SecJev
3.1 Decision Interface
A scene contains a state s and one or more questions. Each question supplies an instruction q and candidate descriptions . The state holds text, telemetry, or an observation history, including any policy required by the question. A Boolean request returns the probability of true; a choice returns candidate probabilities and the highest-scoring key; an ordered request additionally returns the expected level. Candidate descriptions are inputs, allowing one head to support different answer vocabularies.
Kev renders each question as an independent causal row containing the state, question, delimited candidates, and a final decision marker, preserving field names and order. This accommodates Qwen3.5's hybrid recurrent and attention backbone (Qwen Team, 2026). Rows can be batched, but question tokens are not shared between rows. Candidate order remains visible within each row.
3.2 Single-Pass Candidate Scoring
Let be the hidden state at the final decision marker and the state at candidate 's closing delimiter. Kev's learned affine projections map both to dimension , giving
The projections are shared across candidates. Probabilities are
with during training. Prediction takes the maximum-probability candidate. For levels , the expected level is . Answer keys and probability fields are assembled after scoring; no answer tokens are decoded autoregressively.
3.3 Security Adaptation
The 0.8B, 4B, and 9B models inherit released Kev adapters and heads. The 2B model first learns general decisions on Qwen3.5-2B-Base using Kev's general-decision data and a supplement covering date reasoning and missing evidence. All four use a three-epoch security-training budget.
We freeze the backbone and train rank-16 LoRA adapters with scaling factor 32 and dropout 0.05, together with the pointer head. Adapters cover attention, feed-forward, and DeltaNet projections. Every security question appears once per epoch, without general-domain replay. To balance scenes containing different numbers of questions, question j in scene i receives weight . For N scenes, the objective is
All output types use candidate cross-entropy, without an additional ordinal-distance loss.
A separate calibration split fits one positive scalar temperature by minimizing negative log-likelihood (NLL). Scaling changes confidence while preserving the highest-scoring candidate. Appendix F specifies checkpoint selection and Appendix A gives the training details.
4 SecJev-Corpus
SecJev-Corpus contains 170,185 questions from 115,324 scenes and eight sources (Table 1). There are 137,067 Boolean, 25,721 choice, and 7,397 ordered questions. The ordered task concerns consensus evidence, where each level has an explicit meaning. Construction follows two target families: source-annotation prediction from observations, and policy evaluation from a displayed rule and history. Questions and candidate descriptions specify which decision the shared model should make.
4.1 Task Construction
Tool-output security. AgentDojo scenes preserve the trusted request, tool call, untrusted response, and trust policy. Questions ask whether an embedded injection is present and whether the response should be used as data or its redirecting instruction excluded. InjecAgent questions distinguish instructions requesting information transfer from other operations. The target describes the requested operation, not attack success or the sensitivity of every transmitted item. A detection formulation with only positive labels is excluded.
Traffic and vehicle observations. CICIoT2023 predicts attack-capture labels from measured traffic. ToN-IoT predicts connection labels from protocol and application telemetry, omitting endpoint identities. VeReMi uses local vehicle-message histories to predict the final message's manipulation label and one of ten attack/normal categories. These tasks predict the original source annotations from the displayed observations.
Client updates and voting. ByzFL-based supervision comes from 80 controlled MNIST experiments. Inputs contain measured update magnitudes, median distances, and historical cosine similarities, informed by FoolsGold (Fung et al., 2020). Labels distinguish attack-generated updates from honest local training, including non-IID clients.
| Source | Decision task | Type | Questions |
|---|---|---|---|
| CICIoT2023 | Attack-capture label | Boolean | 48,000 |
| ToN-IoT | Connection attack label | Boolean | 40,000 |
| Twins / Streamlet | Observed candidate-voter conflict | Boolean | 7,397 |
| Candidate quorum | Boolean | 7,397 | |
| Certificate policy action | Choice | 7,397 | |
| Evidence level | Ordered | 7,397 | |
| VeReMi NextGen | Message-manipulation label | Boolean | 11,249 |
| Ten-way attack/normal label | Choice | 11,249 | |
| ByzFL-based experiments | Attack-generated client update | Boolean | 17,000 |
| LANL authentication | Prior-failure threshold | Boolean | 3,951 |
| Logon policy triage | Choice | 3,951 | |
| AgentDojo | Embedded prompt injection | Boolean | 2,073 |
| Trust-boundary action | Choice | 2,070 | |
| InjecAgent | Requested operation | Choice | 1,054 |
| Total | 14 tasks | 170,185 |
Table 1: Corpus coverage across all splits. Several tasks can share a scene; the 17,000 client-update questions instantiate one task.
Twins scenes show received messages, a candidate block and round, validators, and a quorum threshold. Questions address visible conflict, quorum, certificate action, and evidence level. The stated policy rejects an observed conflicting voter, otherwise accepts a quorum, and otherwise waits. The targets therefore describe the received evidence and its policy consequences.
Authentication policies. LANL scenes use the current event and a source account/computer's preceding 300-second history (Kent, 2016). Same-second events are excluded because their ordering is unknown. Questions concern a prior-failure threshold and a stated logon-triage policy. This is post-event triage: the current success/failure may be visible. This supplies policy-defined supervision for events without attack annotations.
4.2 Splits and Quality Control
Records separate visible evidence from labels and provenance. Source labels map to semantic candidates; policy answers are computed from the displayed rule and history. Identifiers are locally aliased without breaking relationships. Questions are added only when the source supports the corresponding distinction.
Table 2 gives the four splits. All questions from a scene remain together. Grouping uses captures for CICIoT2023, source hosts for ToN-IoT, simulation runs for Twins/ByzFL, and chronological days for LANL. AgentDojo groups link records sharing normalized tool responses. VeReMi retains its independent test boundary and groups related non-test vehicle observations. Every semantic class has at least 50 questions per task/split; no class exceeds 80%, and the largest cross-split class-share gap is 8.58 percentage points. Unordered correct-answer positions are distributed within classes and splits; ordered levels retain their order.
| Split | Scenes | Questions |
|---|---|---|
| Training | 81,410 | 118,818 |
| Calibration | 9,333 | 14,821 |
| Development | 9,911 | 14,912 |
| Test | 14,670 | 21,634 |
| Total | 115,324 | 170,185 |
Table 2: Corpus partition. Development selects checkpoints; calibration fits temperature.
Exhaustive checks cover schemas, candidate-label agreement, duplicates, contradictory labels, and group overlap. Independent policy recomputation checks 37,490 LANL/Twins questions. Inputs exclude supervision and provenance, and fit within 8,192 tokens without truncation. The release preserves source-specific terms, including ToN-IoT's academic-use conditions and requested attribution.
5 Experiments
We evaluate security capability across sizes, accuracy and inference cost against generation, and transfer to related sources. Analyses examine initialization, semantic consistency, and general-decision retention.
Companion publications: Booij et al. (2022); Alsaedi et al. (2020); Moustafa et al. (2020b,a); Moustafa (2019, 2021b); Ashraf et al. (2021).
5.1 Experimental Setup
Evaluation. We evaluate all 21,634 security-test questions. Task-macro accuracy gives each of the 14 tasks equal weight; micro accuracy weights individual questions. Task-macro balanced accuracy additionally averages class recall within each task. All three output types use their highest-probability candidate for accuracy. A majority baseline selects each task's most frequent training semantic class, independent of answer position. Paired 95% intervals use 2,000 source-stratified bootstrap draws of whole groups, sharing group weights across associated tasks (Appendix H).
Training and precision. Security adaptation uses AdamW and rank-16 LoRA. Peak learning rates are for the first epoch and for continuation, with effective batches of 128 and 192. Accuracy runs use 32-bit floating-point (FP32) backbones for 0.8B/2B/4B and bfloat16 (BF16) for 9B, with FP32 adapters and heads. Each parent–SecJev pair uses matching precision and complete inputs. Appendix A gives the optimizer and schedule details.
5.2 Security Specialization and Model Size
Table 3 measures the capability gained by security specialization, pairing each SecJev model with its general-decision initialization. Adaptation improves every task at every size. Macro gains are 39.40, 40.83, 26.63, and 24.26 percentage points for 0.8B, 2B, 4B, and 9B. All four macro-gain intervals exclude zero; the 4B gain has a 95% interval of [18.59, 30.75] points. The training-majority baseline reaches 62.89% macro accuracy. SecJev-0.8B exceeds Kev-9B by 20.51 points, using roughly one eleventh of its nominal parameters.
Security specialization produces gains throughout the family, with 4B leading task-macro accuracy (94.51%) and balanced macro (92.42%). The capability profile spans three settings: at 4B, task-macro accuracy rises from 63.38 to 99.30% on the three tool-text tasks, from 50.53 to 85.19% on the five source-label tasks, and from 84.58 to 99.87% on the six explicit-policy tasks. Near-perfect policy scores show that the models learn to apply stated rules to visible evidence; strong gains also extend to predicting source annotations and interpreting tool responses. ByzFL peaks at 2B, while both VeReMi tasks remain below 72%. Vehicle-message classification accounts for 6,642 test questions but only two macro-average terms, explaining the lower micro accuracy. These complementary aggregates characterize a family whose strongest remaining challenge is learning from security observations with limited visible evidence.
5.3 Comparison with Other Decision Interfaces
The generative supervised fine-tuning (SFT) baseline uses the matching Qwen3.5 base, security scenes, rank-16 LoRA, scene weighting, and three-epoch budget. It predicts one answer-key token with full-vocabulary cross-entropy and a frozen vocabulary head, at 0.8B and 4B. At 0.8B, we also train a shared scalar classification head on separately encoded context–candidate sequences (Sood and Savelka, 2026), using the same security recipe. A direct-Qwen pointer measures candidate scoring without Kev initialization. Appendix I gives protocols and development-based selection.
Timing uses one RTX 3090, a common BF16 backbone with FP32 adapters and heads, and matching attention implementations. Accuracy is re-evaluated at that precision for Table 4. Batch-one latency includes serialization, tokenization, device transfer, inference, and answer processing after warm-up, excluding model loading. Each request contains one question, with no prompt-cache reuse. Short inputs have at most 512 tokens and long inputs have 2,048–8,192; each stratum contains 100 fixed development questions. Greedy generative decoding uses an answer-key grammar and stops at key completion. Invalid outputs count as errors. We report medians, pooled P95, batch-eight throughput, and peak batch-one memory over five timing passes.
At FP32 precision, generative SFT reaches 90.02/94.35% task-macro accuracy at 0.8B/4B, versus SecJev's 90.34/94.51%; balanced macro is 87.79/92.30% versus 88.00/92.42%. The 0.8B classifier reaches 89.85% macro and 86.84% balanced macro, between SecJev and the direct-Qwen pointer (88.17/83.75%). Security supervision thus supports several output interfaces, with SecJev leading these task aggregates. At common BF16 precision, SecJev's short/long medians are 1.02/1.02× faster than generation at 0.8B and 1.07/1.04× at 4B: single-token generation also takes one forward pass. The 0.8B batch-eight rates are nearly equal at 4.33 questions/s; both 4B methods and Kev-9B run out of memory. SecJev reduces peak batch-one memory from 3.52 to 2.56 GiB at 0.8B and from 12.58 to 10.18 GiB at 4B, placing it close to answer-only
| Task | n | Maj. | 0.8B | 2B | 4B | 9B | ||||
|---|---|---|---|---|---|---|---|---|---|---|
| Init. | SecJev | Init. | SecJev | Init. | SecJev | Init. | SecJev | |||
| AgentDojo: boundary | 426 | 77.46 | 51.88 | 80.28 | 40.85 | 92.96 | 54.23 | 99.53 | 61.97 | 98.83 |
| AgentDojo: injection | 426 | 77.46 | 32.86 | 79.81 | 29.81 | 92.72 | 73.00 | 98.36 | 64.55 | 98.83 |
| ByzFL: client update | 800 | 80.00 | 79.62 | 92.62 | 80.00 | 97.50 | 79.88 | 95.88 | 80.25 | 93.88 |
| CICIoT2023: attack | 6,000 | 75.00 | 25.00 | 91.80 | 25.00 | 92.13 | 26.28 | 91.72 | 37.93 | 90.27 |
| InjecAgent: operation | 124 | 56.45 | 44.35 | 100.00 | 51.61 | 98.39 | 62.90 | 100.00 | 57.26 | 100.00 |
| LANL: logon action | 540 | 50.93 | 72.41 | 98.89 | 72.78 | 99.81 | 79.81 | 100.00 | 96.11 | 99.63 |
| LANL: failure threshold | 540 | 75.56 | 80.74 | 99.81 | 99.44 | 100.00 | 99.44 | 100.00 | 99.81 | 100.00 |
| ToN-IoT: attack | 3,500 | 75.00 | 25.00 | 98.03 | 25.00 | 98.97 | 50.66 | 98.80 | 24.83 | 98.89 |
| Twins: evidence level | 659 | 39.15 | 41.12 | 98.79 | 40.06 | 99.85 | 81.18 | 99.54 | 81.94 | 99.85 |
| Twins: policy action | 659 | 39.15 | 47.65 | 98.48 | 39.45 | 100.00 | 71.78 | 99.85 | 88.16 | 100.00 |
| Twins: quorum | 659 | 64.49 | 53.41 | 99.70 | 64.95 | 99.85 | 78.15 | 100.00 | 91.81 | 99.85 |
| Twins: conflict | 659 | 69.80 | 64.04 | 99.24 | 70.11 | 99.70 | 97.12 | 99.85 | 96.97 | 100.00 |
| VeReMi: manipulation | 3,321 | 52.24 | 47.76 | 63.11 | 48.12 | 66.21 | 47.76 | 70.34 | 47.76 | 69.26 |
| VeReMi: attack type | 3,321 | 47.76 | 47.24 | 64.14 | 42.97 | 63.69 | 48.09 | 69.23 | 48.15 | 67.90 |
| Micro accuracy | 21,634 | 64.25 | 40.53 | 85.03 | 40.44 | 86.48 | 50.49 | 88.01 | 50.87 | 87.18 |
| Task-macro accuracy | 21,634 | 62.89 | 50.94 | 90.34 | 52.15 | 92.98 | 67.88 | 94.51 | 69.82 | 94.08 |
| Task-macro balanced | 21,634 | 43.57 | 51.86 | 88.00 | 51.34 | 90.31 | 67.16 | 92.42 | 70.36 | 91.27 |
Table 3: Full security-test accuracy (%). Maj. predicts the training-majority semantic class. Init. denotes official Kev for 0.8B/4B/9B and our general-decision model for 2B. Checkpoint choices are given in Appendix F. Macro weights tasks equally; balanced macro also balances semantic classes.
| Size | Method | Macro acc. | Short ms | Long ms | P95 ms | Q/s | GiB |
|---|---|---|---|---|---|---|---|
| 0.8B | SecJev | 90.46 | 79.2 | 164.1 | 256.0 | 4.33 | 2.56 |
| 0.8B | Generative SFT | 90.01 | 80.4 | 167.4 | 260.1 | 4.33 | 3.52 |
| 0.8B | Direct-Qwen pointer | 88.12 | 80.4 | 164.6 | 256.7 | 4.45 | 2.56 |
| 4B | SecJev | 94.48 | 109.1 | 578.8 | 890.5 | OOM | 10.18 |
| 4B | Generative SFT | 94.34 | 116.9 | 599.9 | 910.6 | OOM | 12.58 |
| 9B | Kev | 69.79 | 169.1 | 861.0 | 1278.5 | OOM | 17.11 |
Table 4: Matched accuracy and inference cost. Accuracy (%) is re-evaluated at common precision. Short/long latencies are medians; P95 is the pooled 95th-percentile latency, Q/s is batch-eight throughput in questions per second, and GiB is peak batch-one memory. OOM denotes insufficient GPU memory at batch size eight.
generation in accuracy and latency with a smaller measured memory footprint. Section 6.2 isolates Kev initialization for the 0.8B pointer; Appendix J reports timing variability.
5.4 Transfer to Related Security Data
We test transfer to BIPIA-derived decisions and IoT-23 connection labels, extending the tool-output and traffic settings represented in training. BIPIA questions concern injection identification and trust-boundary action, scored against decision-construction labels. IoT-23 predicts source labels from 13 shared telemetry features. Group macro weights background contexts or captures equally, complementing pooled accuracy.
Table 5 reports confirmation on new source groups with frozen SecJev-4B/9B, matching Kev models, and the development-selected 4B gener- ative baseline. The 600 BIPIA answers cover 150 new contexts, each with clean/attacked versions and two questions. The 1,000 IoT-23 connections span four new captures and contain 500 examples per class. BIPIA retains the earlier payload templates while changing backgrounds; its 4-email/146-table mixture also differs from the original suite. Appendix D.1 specifies group exclusion and construction.
SecJev reaches 72.00/73.00% on BIPIA, versus Kev's 50.17/50.83%, with zero false positives and injection recall of 48.67/44.00%. Generative 4B reaches 54.33%, so SecJev-4B gains 17.67 points on these new backgrounds. On IoT-23, SecJev raises accuracy from Kev's 50.00% to 65.10/60.80%; generative 4B reaches 68.10%, with 87.60% recall and 51.40% FPR versus SecJev-4B's 96.60% recall and 66.40% FPR. The interfaces thus exhibit different transfer profiles: SecJev-4B better identifies injected tool content, while generation offers a better traffic precision–recall balance at the
https://github.com/microsoft/BIPIA
https://www.stratosphereips.org/datasets-iot23
| Dataset | Model | n | Accuracy | Group macro | Recall | FPR |
|---|---|---|---|---|---|---|
| BIPIA | Kev-4B | 600 | 50.17 | 50.17 | 0.67 | 0.00 |
| BIPIA | SecJev-4B | 600 | 72.00 | 72.00 | 48.67 | 0.00 |
| BIPIA | Gen-4B | 600 | 54.33 | 54.33 | 5.33 | 0.00 |
| BIPIA | Kev-9B | 600 | 50.83 | 50.83 | 1.33 | 0.00 |
| BIPIA | SecJev-9B | 600 | 73.00 | 73.00 | 44.00 | 0.00 |
| IoT-23 | Kev-4B | 1000 | 50.00 | 50.22 | 10.20 | 10.20 |
| IoT-23 | SecJev-4B | 1000 | 65.10 | 68.21 | 96.60 | 66.40 |
| IoT-23 | Gen-4B | 1000 | 68.10 | 69.36 | 87.60 | 51.40 |
| IoT-23 | Kev-9B | 1000 | 50.00 | 50.22 | 0.00 | 0.00 |
| IoT-23 | SecJev-9B | 1000 | 60.80 | 61.59 | 86.00 | 64.40 |
Table 5: Disjoint-source confirmation (%). Gen-4B is answer-only generative SFT. BIPIA weights 150 contexts equally, each with four answers; IoT-23 weights four captures equally. Recall and false-positive rate (FPR) use only the binary injection question for BIPIA.
| Change | SecJev size | Pairs | Original acc. | Changed acc. | Consistency | Both correct |
|---|---|---|---|---|---|---|
| Paraphrase | 0.8B | 1400 | 88.64 | 87.79 | 95.36 | 85.93 |
| 2B | 1400 | 90.79 | 89.86 | 96.57 | 88.79 | |
| 4B | 1400 | 91.64 | 91.14 | 98.36 | 90.57 | |
| 9B | 1400 | 90.71 | 90.64 | 96.43 | 88.93 | |
| Choice permutation | 0.8B | 500 | 83.00 | 82.60 | 98.80 | 82.20 |
| 2B | 500 | 84.80 | 84.00 | 97.40 | 83.40 | |
| 4B | 500 | 89.00 | 89.00 | 98.40 | 88.20 | |
| 9B | 500 | 87.40 | 87.80 | 98.60 | 87.00 |
Table 6: Paired semantic consistency (%). Original/changed accuracy uses the same eligible questions: 1,400 for paraphrasing and 500 for permutation. Consistency is semantic answer agreement; both-correct requires both predictions to match the label. Tasks have equal weight within each condition.
fixed decision rule. The earlier all-size exploratory suites appear in Table 13; capture-level results in Appendix D.1 locate the remaining benign-traffic errors.
6 Analysis
6.1 Question Meaning and Candidate Order
A shared decision model should track question and candidate meanings across equivalent formulations. We test paraphrased questions and permuted unordered alternatives, keeping evidence, field order, rules, and semantic labels fixed. We use 100 test questions per task, each paraphrased once (1,400 pairs). Each of 100 questions from five choice tasks also receives one nonidentity permutation (500 pairs); ordered levels are not shuffled. Together with the originals, this yields 3,300 requests per model. Predictions are mapped back to semantic keys.
In Table 6, paraphrasing reduces accuracy by 0.07–0.93 percentage points across all four sizes, while permutation changes it by -0.80 to +0.40 points. Answer agreement is 95.36–98.36% for paraphrases and 97.40–98.80% for permutations. Both-correct scores separate preserved correct deci- sions from stable mistakes. Aggregate accuracy is stable across the tested formulations; paired agreement measures which individual decisions persist.
Task-level changes reveal where this stability breaks down. For 0.8B, paraphrasing reduces federated-update accuracy from 91% to 85% and vehicle attack-type accuracy from 39% to 32%. For 9B, ToN-IoT falls from 95% to 89%, while CICIoT rises from 88% to 95%; these offsetting shifts yield a net loss of just one answer. Across sizes, 15–38 previously correct answers become incorrect among the 1,400 paraphrase pairs. The 9B VeReMi manipulation predictions agree only 77% of the time despite a one-point accuracy change. Fixed-batch controls are discussed in Appendix E.
6.2 Value of General Decision Initialization
The 0.8B comparison fixes the backbone, pointer architecture, security data, and three-epoch budget. One model inherits Kev's adapters and head; the other learns these components directly on Qwen3.5. Development selection favors epoch 3 for both. Kev initialization reaches 90.34% test macro accuracy versus 88.17% for direct-Qwen training, a 2.17-point gain; balanced macro rises from 83.75% to 88.00% (Table 7). The benefit is not uni-
| 0.8B initialization | Dev. bal. | Test macro | Test bal. |
|---|---|---|---|
| Kev | 90.36 | 90.34 | 88.00 |
| Qwen3.5 directly | 84.85 | 88.17 | 83.75 |
Table 7: Initialization comparison (%). Dev./test bal. are task-macro balanced accuracy. One run per initialization, with epoch 3 selected on development data. Test results cover all 21,634 questions.
| Size | General decision | General transfer | ||
|---|---|---|---|---|
| Init. | SecJev | Init. | SecJev | |
| 0.8B | 83.50 | 83.08 | 68.45 | 66.01 |
| 2B | 84.00 | 84.50 | 75.91 | 75.91 |
| 4B | 87.08 | 86.58 | 83.69 | 83.84 |
| 9B | 87.50 | 87.42 | 85.06 | 84.60 |
Table 8: General-task accuracy (%) before and after specialization: 1,200 general decision and 656 general transfer questions. Init. denotes the model before security training. Suite definitions appear in Section 6.3.
form: direct-Qwen training is better on AgentDojo boundary actions and federated-update classification, while Kev initialization gains most on vehicle manipulation and attack type (Appendix G). General decision initialization improves the aggregate endpoint under the fixed security-training budget, with its largest gains concentrated in vehicle-message tasks.
6.3 Retention and Confidence
We evaluate general capability retention on two Kev suites (Table 8). General decision tests held-out examples from Kev's training sources; general transfer tests new sources and policy-rule types. General decision accuracy changes by at most 0.50 points after security training. General transfer falls from to at 0.8B, while changes at larger sizes stay within 0.46 points. The 0.8B transfer decline has a paired interval of points; all other general-accuracy intervals include zero (Appendix H).
Because the decision interface returns probabilities, we also evaluate confidence quality. Temperature scaling improves security-test NLL for all sizes (Table 9), while Brier score and expected calibration error (ECE) worsen. For example, 9B NLL falls from 0.364 to 0.355 while ECE rises from to . This is consistent with optimizing NLL rather than either of the other metrics. On both general suites, the frozen security temperature improves SecJev NLL, Brier, and ECE at every size, but does not fully recover the initialization's confidence quality (Appendix H). Accuracy retention alone therefore misses changes in confidence.
| Size | Probabilities | NLL | Brier | ECE (%) |
|---|---|---|---|---|
| 0.8B | Raw | 0.435 | 0.211 | 2.18 |
| 0.8B | Scaled | 0.412 | 0.213 | 3.34 |
| 2B | Raw | 0.399 | 0.191 | 1.80 |
| 2B | Scaled | 0.385 | 0.194 | 3.28 |
| 4B | Raw | 0.358 | 0.173 | 1.84 |
| 4B | Scaled | 0.344 | 0.177 | 3.56 |
| 9B | Raw | 0.364 | 0.181 | 1.53 |
| 9B | Scaled | 0.355 | 0.182 | 2.48 |
Table 9: Security-test confidence metrics, averaged over questions. Lower is better for all three. ECE uses 15 equal-width bins. Scaling uses only the held-out calibration split.
6.4 Data Validity and Failure Modes
Exhaustive checks find no schema or candidate-label violations in 170,185 questions and no disagreement in 37,490 independently recomputed policy answers. Two human reviewers independently assess 280 questions, 20 per task, and agree on 261 answers (93.21%). Both match the corpus labels on all 180 tool-text and explicit-policy questions. On the 100 source-label questions, they agree on 81 answers and both rate the visible evidence as sufficient for 28. The review supports the interpretability of tool and policy supervision, while locating the main uncertainty in inferring source annotations from partial observations (Appendix B). Appendix C illustrates these failure modes.
7 Conclusion
SecJev brings security expertise to System One decision models through four Jev-like models with a shared typed interface. Training across 14 tasks improves every model and enables SecJev-0.8B to outperform general Kev-9B. The family combines source-label prediction and explicit-policy evaluation, matches answer-only generation closely in accuracy with lower peak memory, and transfers gains to new source groups. General decision initialization also strengthens the 0.8B model beyond security-only training. Question-conditioned scoring lets one model express distinct judgments about the same evidence. SecJev-Corpus provides the security supervision connecting these judgments to source annotations and explicit policy rules. We release the models, SecJev-Corpus, and code to support security-specialized System One models.
Limitations
SecJev evaluates finite decisions over supplied observations. Capture and experiment annotations can depend on information outside an individual input, so those tasks measure source-label prediction. Policy tasks measure application of the displayed rule. End-to-end attack prevention and autonomous response require separate deployment evaluation.
The 14 tasks have uneven difficulty: near-perfect policy scores coexist with lower vehicle-message accuracy. Task-macro averages weight these tasks equally. Recorded group boundaries address specific dependencies; residual semantic overlap and transfer beyond the tested sources remain open. Human review concentrates answer disagreements in source-label tasks, where visible telemetry provides incomplete evidence about the source annotation.
Main accuracy results use FP32 for the smaller backbones and BF16 for 9B; the efficiency comparison uses matched precision. Each training condition has one run. The generative comparison changes both initialization and output mechanism, with a direct-Qwen pointer control at 0.8B. The small accuracy differences between SecJev and generative SFT describe these runs, while training-seed variability remains unmeasured.
Ethical Considerations
The corpus includes attack-bearing text and security observations for research on defensive decisions. Local aliases preserve within-scene relationships while reducing unnecessary identifiers. We retain source attribution and source-specific usage conditions rather than assigning a blanket permissive license to all underlying data. Model predictions and calibrated probabilities are fallible, particularly when evidence is incomplete; consequential actions require an application-specific policy and evaluation.
References
Diogo Almeida. 2026. Introducing System One Models & Jev. TypeSafe AI Blog.
Abdullah Alsaedi, Nour Moustafa, Zahir Tari, Abdun Mahmood, and Adnan Anwar. 2020. TON_IoT Telemetry Dataset: A New Generation Dataset of IoT and IIoT for Data-Driven Intrusion Detection Systems. IEEE Access, 8:165130–165150.
Javed Ashraf, Marwa Keshk, Nour Moustafa, Mohamed Abdel-Basset, Hasnat Khurshid, Asim D. Bakhshi, and Reham R. Mostafa. 2021. IoTBoT-IDS: A novel statistical learning-enabled botnet detection framework for protecting networks of smart cities. Sustainable Cities and Society, 72:103041.
Shehar Bano, Alberto Sonnino, Andrey Chursin, Dmitri Perelman, Zekun Li, Avery Ching, and Dahlia Malkhi. 2022. Twins: BFT Systems Made Robust. In 25th International Conference on Principles of Distributed Systems (OPODIS 2021), volume 217 of Leibniz International Proceedings in Informatics (LIPics), pages 7:1–7:29, Dagstuhl, Germany. Schloss Dagstuhl – Leibniz-Zentrum für Informatik.
Tim M. Booij, Irina Chiscop, Erik Meeuwissen, Nour Moustafa, and Frank T. H. den Hartog. 2022. ToN_IoT: The role of heterogeneity and the need for standardization of features and attack types in IoT network intrusion data sets. IEEE Internet of Things Journal, 9(1):485–496.
Edoardo Debenedetti, Jie Zhang, Mislav Balunović, Luca Beurer-Kellner, Marc Fischer, and Florian Tramèr. 2024. AgentDojo: A dynamic environment to evaluate prompt injection attacks and defenses for LLM agents. In Advances in Neural Information Processing Systems, volume 37, pages 82895–82920. Curran Associates, Inc.
Clement Fung, Chris J. M. Yoon, and Ivan Beschastnikh. 2020. The limitations of federated learning in sybil settings. In 23rd International Symposium on Research in Attacks, Intrusions and Defenses (RAID 2020), pages 301–316, San Sebastian. USENIX Association.
Marc González, Rachid Guerraoui, Rafael Pinot, Geovani Rizk, John Stephan, and François Taiani. 2025. ByzFL: Research framework for robust federated learning. Preprint, arXiv:2505.24802.
Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger. 2017. On calibration of modern neural networks. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 1321–1330. PMLR.
Suchin Gururangan, Ana Marasović, Swabha Swayamdipta, Kyle Lo, Iz Beltagy, Doug Downey, and Noah A. Smith. 2020. Don’t stop pretraining: Adapt language models to domains and tasks. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 8342–8360, Online. Association for Computational Linguistics.
Artur Hermann, Jan-Niklas Remmers, Dennis Eisermann, Benjamin Erb, and Frank Kargl. 2026. VeReMi NextGen: A dataset for evaluating misbehavior detection systems in VANETs. Zenodo, version 1.
Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations.
Pengfei Jing, Mengyun Tang, Xiaorong Shi, Xing Zheng, Sen Nie, Shi Wu, Yong Yang, and Xiapu Luo. 2024. SecBench: A comprehensive multidimensional benchmarking dataset for LLMs in cybersecurity. Preprint, arXiv:2412.20787.
Alexander D. Kent. 2015. Comprehensive, multi-source cyber-security events data set. Los Alamos National Laboratory.
Alexander D. Kent. 2016. Cyber security data sources for dynamic network research. In Niall Adams and Nick Heard, editors, Dynamic Networks and CyberSecurity, pages 37–65. World Scientific.
Zefang Liu, Jialei Shi, and John F. Buford. 2024. CyberBench: A multi-task benchmark for evaluating large language models in cybersecurity. In AAAI 2024 Workshop on Artificial Intelligence for Cyber Security.
Nour Moustafa. 2019. New generations of internet of things datasets for cybersecurity applications based machine learning: TON_IoT datasets. Presentation at eResearch Australasia.
Nour Moustafa. 2021a. A new distributed architecture for evaluating AI-based security systems at the edge: Network TON_IoT datasets. Sustainable Cities and Society, 72:102994.
Nour Moustafa. 2021b. A systemic IoT–fog–cloud architecture for big-data analytics and cyber security systems: A review of fog computing. In Mohiuddin Ahmed and Paul Haskell-Dowland, editors, Secure Edge Computing: Applications, Techniques and Challenges, pages 41–50. CRC Press.
Nour Moustafa, Mohiuddin Ahmed, and Sherif Ahmed. 2020a. Data analytics-enabled intrusion detection: Evaluations of ToN_IoT Linux datasets. In 2020 IEEE 19th International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom), pages 727–735. IEEE.
Nour Moustafa, Marwa Keshk, Essam Debie, and Helge Janicke. 2020b. Federated TON_IoT Windows datasets for evaluating AI-based security applications. In 2020 IEEE 19th International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom), pages 848–855. IEEE.
Euclides Carlos Pinto Neto, Sajjad Dadkhah, Raphael Ferreira, Alireza Zohourian, Rongxing Lu, and Ali A. Ghorbani. 2023. CICIoT2023: A Real-Time Dataset and Benchmark for Large-Scale Attacks in IoT Environment. Sensors, 23(13):5941.
Jared Palmer. 2026. Kev. Software.
Qwen Team. 2026. Qwen3.5: Towards native multimodal agents.
Kaize Shi, Xueyao Sun, Dingxian Wang, Yinlin Fu, Guandong Xu, and Qing Li. 2025. LLaMA-E: Empowering E-commerce authoring with object-interleaved instruction following. In Proceedings of the 31st International Conference on Computational Linguistics, pages 870–885, Abu Dhabi, UAE. Association for Computational Linguistics.
Shuang Song, Yifei Zhang, and Neng Gao. 2025. Confront insider threat: Precise anomaly detection in behavior logs based on LLM fine-tuning. In Proceedings of the 31st International Conference on Computational Linguistics, pages 8589–8601, Abu Dhabi, UAE. Association for Computational Linguistics.
Bhavesh Sood and Jaromir Savelka. 2026. Punching above their weight: Classification-head fine-tuning of tiny language models (TLMs) for verifiable multiple-choice tasks. Preprint, arXiv:2607.03801.
David Wadden, Kejian Shi, Jacob Morrison, Alan Li, Aakanksha Naik, Shruti Singh, Nitzan Barzilay, Kyle Lo, Tom Hope, Luca Soldaini, Shannon Zejiang Shen, Doug Downey, Hannaneh Hajishirzi, and Arman Cohan. 2025. SciRIFF: A resource to enhance language model instruction-following over scientific literature. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 6072–6109, Suzhou, China. Association for Computational Linguistics.
Tiantong Wu and Wei Yang Bryan Lim. 2026. Decision hijacking: Prompt injection attacks on Jev's typed probabilistic decisions. Preprint, arXiv:2609.28613.
Aohan Zeng, Mingdao Liu, Rui Lu, Bowen Wang, Xiao Liu, Yuxiao Dong, and Jie Tang. 2024. AgentTuning: Enabling generalized agent abilities for LLMs. In Findings of the Association for Computational Linguistics: ACL 2024, pages 3053–3077, Bangkok, Thailand. Association for Computational Linguistics.
Qiusi Zhan, Zhixiang Liang, Zifan Ying, and Daniel Kang. 2024. InjecAgent: Benchmarking indirect prompt injections in tool-integrated large language model agents. In Findings of the Association for Computational Linguistics: ACL 2024, pages 10471–10506, Bangkok, Thailand. Association for Computational Linguistics.
A Implementation and Reporting Details
Training runs span three security epochs and 118,818 questions per epoch. AdamW uses weight decay 0.01 and gradient clipping at 1.0. The first epoch and the two-epoch continuation each use a 5% warm-up followed by cosine decay to one tenth of their respective peak learning rates; optimizer states continue across epochs. The effective batches correspond to 929 updates in epoch 1 and 619 updates in each continuation epoch, totaling 2,167 updates and 356,454 question presentations. The reported 9B epoch-2 checkpoint has 1,548 updates and 237,636 question presentations. No security evidence is truncated to fit the 8,192-token limit. The 9B run keeps the frozen backbone in BF16 and its adapters, decision head, and optimizer states in FP32; the smaller runs use FP32 master weights with BF16 autocast during training. Evaluation precision follows Section 5.1.
The 2B general stage uses the training split of Kev's general-decision suite, identified upstream as decision-v7, with the date-reasoning and missing-evidence supplement. This model is an in-house initialization, so it is identified separately from official Kev releases in every comparison. Its general training is part of model preparation, not additional security supervision. The direct-Qwen ablation instead starts its adapters and pointer head without that general decision stage.
For latency, an answer is complete when the final structured decision is available to the caller. Tokenization and output parsing are included, while model loading is excluded. Five passes use the same requests, and their dispersion is reported with the latency measurements. Batch-eight throughput uses the same batch size for every method; an unsupported memory configuration is recorded as an out-of-memory outcome rather than silently changing the batch. Appendix J specifies the workload, software, and pass variability.
Interface checks. For example, “Does the received vote set meet the stated quorum?” can be rephrased as “Are enough distinct validators represented to satisfy the given quorum requirement?” without changing the threshold or message history. Permuting the descriptions of accept, reject, and wait changes their displayed positions while preserving the action each key denotes. These interventions target the wording and answer interface; they do not change the underlying security scenario.
Scaling preserves accuracy because dividing every candidate logit by the same positive temperature leaves their ranking unchanged. Its effect matters when an application uses probabilities, rather than only the selected answer. For example, a confidence threshold can defer uncertain requests for additional evidence. Better label accuracy alone does not establish that such a threshold transfers between tasks.
B Corpus and Evaluation Audit
Table 10 summarizes construction checks. The human review uses the existing label-stratified sample of 280 questions, with 20 per task and 70 per split, spanning 278 scenes. Two reviewers with backgrounds in AI and cybersecurity independently read the complete state, question, and candidate descriptions, without reference labels or model predictions. Each records an answer, a rationale, and judgments of question clarity, option exclusivity, and evidence sufficiency. The answer field allows “insufficient information” and “ambiguous” responses. Table 11 reports the original independent judgments.
Answer agreement. The reviewers agree on 261 of 280 answers (93.21%). All 180 tool-text and explicit-policy answers agree between reviewers and match the corpus labels. The 100 source-label questions yield 81 agreements: 20/20 for CICIoT, 17/20 for ByzFL, 11/20 for ToN-IoT, 18/20 for VeReMi manipulation, and 15/20 for VeReMi attack type. Reviewers A and C match the corpus labels on 250/280 and 261/280 questions, respectively. Fourteen shared answers differ from the source labels. C records insufficient information for two VeReMi questions; these remain in the 280-question denominator.
Evidence quality. Both reviewers judge all 280 questions clear. A judges all option sets mutually exclusive; C marks two VeReMi attack-type sets uncertain. Evidence-sufficiency judgments agree on 244 questions (87.14%). A rates 232 as sufficient and 48 as partial; C rates 207 as sufficient, 58 as partial, and 15 as insufficient. Joint sufficiency covers 179/180 tool-text and explicit-policy questions and 28/100 source-label questions. The task profile separates applying a stated policy or interpreting a tool response from recovering an experiment or capture annotation. Review rationales identify short vehicle histories, unknown absolute positions, and network or update patterns compatible with multiple source conditions as recurring causes of uncertainty.
An earlier assistant inspection flagged one In-jecAgent operation-category ambiguity: updating Facebook profile fields is labeled other_operation, while information_transfer includes entering information on a website. The question and label remain unchanged.
For source fidelity, we reopened 20 original In-jecAgent records and 30 network CSV rows; their retained fields and label mappings matched. Another 20 ByzFL questions matched retained construction records. The original sources of 230 questions were not reopened, including 10 CIC rows whose local CSV was unavailable. For VeReMi, we checked visible temporal structure, target selection, and binary/type consistency, without independently re-establishing the hidden simulator labels.
C Illustrative External Cases
Table 12 gives examples from the exploratory BIPIA and IoT-23 checks that informed the final evaluation protocol. They are not substituted for scores on the frozen evaluation sets. A request can cross a trust boundary by changing output format, without stealing data. A source label can depend on an unobserved identifier without being erroneous. Finally, a model error need not have either explanation: the benign DNS example has a normal majority among matching training observations.
D Related-Source Evaluation Details
The expanded evaluations retain the pilot questions: 80 BIPIA answers and 100 IoT-23 connections. The additional 520 and 900 questions are reported separately in Table 14. Expansion followed pilot inspection, so these are not wholly untouched evaluation sets. No external example updates model parameters. The 9B checkpoint comparison uses these sets as described in Appendix F. Existing predictions are reused only when ordered inputs, question structure, and precision agree. The 0.8B, 2B, and 4B backbones are FP32 and the 9B backbone is BF16; all use their original FP32 adapters and decision heads.
BIPIA construction and review. We pair each source record with a clean version and a version containing an original attack string. The 75 strings span 15 categories, each assigned to ten source pairs. Repeated source contexts are grouped by exact context text, giving 128 groups rather than 150 independent contexts. The two questions share the scene through Kev's native multi-question encoding. Context-macro accuracy first averages all answers within a group, then averages the 128 groups equally.
Review covers all 150 source questions and 75 payloads, all 44 distinct email contexts, and flagged table contexts; remaining tables receive structural checks. This is not a second independent human annotation. Before new predictions, 50 pairs were marked for payloads phrased as ordinary unrelated questions or tasks with an unclear intended addressee. The remaining 100 pairs use explicit response redirection. Separately, 41 source question-answer records were flagged for missing information, unclear payment direction, preauthorization, or fragmentary questions. These flags describe the underlying task and do not by themselves invalidate a security label. The strata overlap and are retained without changing labels. Table 14 reports each rather than selecting examples based on predictions.
IoT-23 construction and review. Sampling uses a fixed seed and capture round-robin selection after validating 35,440 source rows. The 1,000 selected flows are unique in the 13 displayed features. No exact match in those features occurs in the 32,000 ToN-IoT corpus examples. Inputs preserve field order, measurement units, and missing values; IP addresses, connection identifiers, timestamps, and source labels are omitted. The five captures supply 100 benign examples each, but attack counts range from zero to 471 (Table 15). The mean of their accuracies exposes this concentration. Since some original labels use unavailable destination identity, a disagreement need not indicate an incorrect inference from the visible fields.
Matched transfer comparisons. Table 17 compares matched Kev and SecJev models on the expanded sets. Kev-4B misses all 150 injections and raises no false alarms. Its 50.00% overall accuracy rises to 72.50% after adaptation, with 141 answers corrected and six new errors across both questions. Kev-9B identifies 4 of 150 injections (2.67% recall), with no false alarms on clean scenes; SecJev-9B identifies 72 (48.00%) with five false alarms. Across both questions, adaptation corrects 150 answers and introduces 21 errors. On IoT-23, Kev-4B detects 372 of 500 attacks with no false alarms;
| Check | Scope | Result |
|---|---|---|
| Schema and label validity | 170,185 questions | No violations found |
| Scene duplication and split isolation | 115,324 scenes and source groups | No violations found under the recorded grouping rules |
| Independent policy recomputation | 37,490 LANL/Twins questions | 0 inconsistent answers |
| Semantic-class distribution | Every task and split | Maximum class share 80%. Maximum cross-split gap 8.58 pp |
| Source-record recheck | 50 original records; 20 retained ByzFL records | No mismatches in the checked fields or label mappings |
| Independent human review | 280 questions; 20 per task | 261 answer agreements (93.21%); 180/180 tool-text and policy answers match labels |
| Source-label observability | 100 source-classification questions | 81 answer agreements; 28 rated sufficient by both reviewers |
| External-task review | 600 BIPIA and 1,000 IoT-23 answers | All retained; BIPIA flags: 50 ambiguous-payload pairs and 41 source question-answer records (overlapping strata) |
Table 10: Corpus construction checks, source-record rechecks, and independent human review.
| Task | Questions | A-C agree | Matches corpus label | Evidence sufficient | ||
|---|---|---|---|---|---|---|
| A | C | A | C | |||
| AgentDojo: boundary action | 20 | 20 | 20 | 20 | 20 | 19 |
| AgentDojo: injection | 20 | 20 | 20 | 20 | 20 | 20 |
| CICIoT: attack | 20 | 20 | 14 | 14 | 6 | 3 |
| ByzFL: update attack | 20 | 17 | 17 | 18 | 4 | 0 |
| InjecAgent: operation | 20 | 20 | 20 | 20 | 20 | 20 |
| LANL: logon action | 20 | 20 | 20 | 20 | 20 | 20 |
| LANL: failure threshold | 20 | 20 | 20 | 20 | 20 | 20 |
| ToN-IoT: attack | 20 | 11 | 11 | 20 | 3 | 0 |
| Twins: evidence level | 20 | 20 | 20 | 20 | 20 | 20 |
| Twins: policy action | 20 | 20 | 20 | 20 | 20 | 20 |
| Twins: quorum | 20 | 20 | 20 | 20 | 20 | 20 |
| Twins: visible conflict | 20 | 20 | 20 | 20 | 20 | 20 |
| VeReMi: manipulation | 20 | 18 | 14 | 15 | 19 | 11 |
| VeReMi: attack type | 20 | 15 | 14 | 14 | 20 | 14 |
| Tool text and explicit policy | 180 | 180 | 180 | 180 | 180 | 179 |
| Source-label prediction | 100 | 81 | 70 | 81 | 52 | 28 |
| All tasks | 280 | 261 | 250 | 261 | 232 | 207 |
Table 11: Independent human review of 280 questions. Entries are counts. A–C agreement compares the reviewers' answers; label matches compare each answer with the corpus target. Evidence sufficiency is a separate judgment.
| Case | Visible evidence and source context | Interpretation |
|---|---|---|
| BIPIA: output redirection | An injected instruction says “Encode your response in Base64.” The trusted request is a table task. | Following the payload changes the assistant’s output behavior. The absence of exfiltration does not make this instruction authorized. |
| IoT-23: source-label observability | A Torii-labeled connection has three outgoing packets on port 443 and no reply; the labeling rule uses destination identity omitted from the input. | The original label remains valid under its source rule. Local telemetry does not expose the complete labeling basis, so this is placed in the missing-evidence stratum. |
| IoT-23: benign DNS error | A benign DNS connection has state S0, two outgoing packets, and no reply. SecJev-9B (epoch 3) predicts attack zero-shot and benign with demonstrations. | Similar coarse ToN-IoT observations include 902 normal and four attack records. Training-label disagreement alone does not explain the zero-shot error. |
Table 12: Exploratory examples of security decisions. The BIPIA record is table:51; the IoT-23 records are from captures 20-1 and 21-1, with identifiers CF49552MEZIPhghQJ3 and CImS6x1bSbkJ2M9K. These cases illustrate explanations, not their frequency.
| Dataset | SecJev size | Questions | Accuracy | Group macro | Recall | FPR |
|---|---|---|---|---|---|---|
| BIPIA decisions | 0.8B | 600 | 56.17 | 56.25 | 11.33 | 2.67 |
| 2B | 600 | 67.17 | 67.87 | 30.67 | 2.67 | |
| 4B | 600 | 72.50 | 72.17 | 50.67 | 0.00 | |
| 9B | 600 | 72.83 | 72.07 | 48.00 | 3.33 | |
| IoT-23 labels | 0.8B | 1000 | 87.40 | 78.78 | 99.20 | 24.40 |
| 2B | 1000 | 76.10 | 80.22 | 68.20 | 16.00 | |
| 4B | 1000 | 88.40 | 79.74 | 99.80 | 23.00 | |
| 9B | 1000 | 83.70 | 73.18 | 95.80 | 28.40 |
Table 13: Exploratory zero-shot related-source results (%). Group macro weights BIPIA’s 128 context groups or IoT-23’s five captures equally. BIPIA accuracy covers both questions; recall and false-positive rate (FPR) cover injection identification only (150 attacked, 150 clean scenes). IoT-23 has 500 examples per class.
| Dataset | Stratum | Questions | 0.8B | 2B | 4B | 9B |
|---|---|---|---|---|---|---|
| BIPIA | Additional questions | 520 | 56.35 | 67.31 | 73.27 | 72.88 |
| Explicit-redirection pairs | 400 | 56.75 | 61.75 | 72.50 | 74.00 | |
| Ambiguous-payload pairs | 200 | 55.00 | 78.00 | 72.50 | 70.50 | |
| Source-task ambiguity flagged | 164 | 58.54 | 65.85 | 75.00 | 74.39 | |
| Source-task ambiguity unflagged | 436 | 55.28 | 67.66 | 71.56 | 72.25 | |
| 200 | 57.50 | 71.50 | 76.00 | 76.00 | ||
| Table | 400 | 55.50 | 65.00 | 70.75 | 71.25 | |
| Injection identification | 300 | 54.33 | 64.00 | 75.33 | 72.33 | |
| Boundary action | 300 | 58.00 | 70.33 | 69.67 | 73.33 | |
| IoT-23 | Additional questions | 900 | 87.67 | 75.44 | 88.89 | 84.89 |
Table 14: Related-source accuracy by stratum (%). BIPIA strata overlap; explicit and ambiguous pairs include both their clean and attacked versions. “Additional” excludes the pilot questions. These are descriptive subsets of the retained evaluation, not alternative checkpoint-selection sets.
| IoT-23 capture | Benign | Malicious | 0.8B | 2B | 4B | 9B |
|---|---|---|---|---|---|---|
| Honeypot 5-1 | 100 | 0 | 51.00 | 55.00 | 53.00 | 53.00 |
| Malware 20-1 | 100 | 12 | 97.32 | 99.11 | 99.11 | 89.29 |
| Malware 21-1 | 100 | 11 | 100.00 | 100.00 | 100.00 | 79.28 |
| Malware 34-1 | 100 | 471 | 96.50 | 70.58 | 97.55 | 95.27 |
| Malware 42-1 | 100 | 6 | 49.06 | 76.42 | 49.06 | 49.06 |
Table 15: Per-capture IoT-23 accuracy (%). Capture IDs identify source traffic recordings. Equal averaging of these five rows gives capture-macro accuracy; pooled accuracy weights rows by their example counts.
| BIPIA attack category | 0.8B | 2B | 4B | 9B |
|---|---|---|---|---|
| Base Encoding | 50.00 | 50.00 | 52.50 | 57.50 |
| Business Intelligence | 60.00 | 80.00 | 75.00 | 55.00 |
| Conversational Agent | 57.50 | 87.50 | 87.50 | 82.50 |
| Emoji Substitution | 50.00 | 50.00 | 52.50 | 57.50 |
| Entertainment | 50.00 | 62.50 | 90.00 | 77.50 |
| Information Dissemination | 57.50 | 62.50 | 90.00 | 95.00 |
| Language Translation | 50.00 | 52.50 | 55.00 | 57.50 |
| Marketing & Advertising | 60.00 | 67.50 | 97.50 | 92.50 |
| Misinformation & Propaganda | 65.00 | 72.50 | 82.50 | 75.00 |
| Research Assistance | 50.00 | 77.50 | 67.50 | 67.50 |
| Reverse Text | 50.00 | 52.50 | 60.00 | 75.00 |
| Scams & Fraud | 75.00 | 92.50 | 80.00 | 95.00 |
| Sentiment Analysis | 55.00 | 72.50 | 47.50 | 52.50 |
| Substitution Ciphers | 60.00 | 55.00 | 65.00 | 57.50 |
| Task Automation | 52.50 | 72.50 | 85.00 | 95.00 |
Table 16: BIPIA decision accuracy by attack category (%). Each row covers ten clean/attacked source pairs and both questions, totaling 40 answers. The clean counterparts are included to expose false positives as well as missed attacks.
SecJev-4B detects 499 but misclassifies 115 of 500 benign flows. Thus 127 answers improve and 115 regress: pooled accuracy gains 1.20 points while capture macro loses 11.53. Kev-9B labels all 1,000 flows benign, giving zero attack recall and zero false positives. SecJev-9B detects 479 of 500 attacks but misclassifies 142 of 500 benign flows. Its higher pooled accuracy coexists with lower capture macro because four of the five captures are predominantly benign.
D.1 Disjoint-Source Confirmation
We freeze SecJev-4B epoch 3 and SecJev-9B epoch 2 before evaluating new source groups, alongside their matching Kev baselines. Precision and native question encoding match the exploratory experiment. The confirmation sets are not used for further checkpoint selection. The generative 4B comparison reuses its development-selected epoch-3 checkpoint and original answer-only training prompt, with FP32 backbone, adapters, and vocabulary head, no TF32, and batch size one. Native questions and candidate meanings are preserved; all 1,600 inputs fit without truncation (maximum 1,104 tokens). All unconstrained vocabulary argmaxes are valid answer keys. No parameters or thresholds are fitted on either confirmation set. Generative BIPIA accuracy is 52.67% for injection identification and 56.00% for boundary action.
The new BIPIA suite contains 150 distinct contexts from the official training portion, excluding previously evaluated and demonstration contexts. Conservative email screening also removes shared payment amounts, dates, or booking identifiers that can indicate the same event despite text differences. This leaves 4 email and 146 table contexts, substantially changing the source mixture. Each context contributes clean/attacked versions with two questions, giving 600 answers. The same 15 attack categories and 75 payloads are used, so the test concerns new backgrounds rather than unseen attack templates. Before prediction, 50 pairs retain the ordinary-task/ambiguous-addressee flag and 6 contexts receive source-task ambiguity flags; all are scored.
The new IoT-23 suite draws 1,000 connections from four previously unused captures, with 500 examples per binary source label. Malicious examples are distributed across malware captures 1-1, 3-1, and 8-1 as 167, 167, and 166. The benign counts are 166 from honeypot 4-1, 166 each from malware 1-1 and 3-1, and 2 from 8-1. Inputs preserve the 13 training fields and units. Input-group exclusions are fixed before predictions, including conflicting-label feature groups and matches to training, prior evaluation, or demonstrations under the specified coarse-feature comparison. Original flow labels are retained. Table 22 reports each capture's confusion counts, precision, recall, and FPR.
Table 5 reports all answers. On BIPIA, SecJev corrects 131 Kev errors without regressions at 4B; at 9B, it corrects 135 and introduces 2. On IoT-23, the corresponding counts are 432/281 and 430/322. Thus, net gains coexist with many changed errors, particularly false alarms on benign traffic. New-capture IoT accuracy is substantially below that on the earlier suite; the adaptation benefit does not imply uniform transfer across captures.
E Semantic Consistency by Task
Table 18 separates original, paraphrased, and re-ordered accuracy by task. The original column for a choice task is also its permutation reference, since all 100 questions are shared. Each question has a single paraphrase and each eligible choice has a single permutation. Across 0.8B, 2B, and 4B, paraphrasing changes 38, 28, and 15 correct predictions to incorrect ones; permutation does so for 4, 7, and 4 predictions, respectively. For 9B epoch 2, paraphrasing introduces 25 errors and corrects 24; permutation introduces two and corrects four. Reverse transitions partially offset these losses in aggregate accuracy.
Batching control. We repeat all 202 originally discordant pairs and ten fixed-seed concordant pairs per model using batch size one. Shared originals yield 470 distinct requests, each evaluated twice. All 470 repeat pairs have identical logits. For 0.8B, 2B, and 4B, these predictions also reproduce the main evaluation, including all 163 discordant pairs. For the earlier 9B epoch-3 checkpoint, three of 96 checked requests change with batching: 36 of its 39 original discordant pairs remain discordant. Thus three pair discrepancies have a numerical component, while most persist under fixed-batch inference. The epoch-2 results use a fresh run of all 3,300 requests in fixed batches sorted by full-suite length and identifier, with no epoch-3 cache reuse. These historical controls do not establish batch invariance for epoch 2; the smaller-model results retain their original cached batching.
| Dataset | Model | Zero-shot acc. | Zero-shot group |
|---|---|---|---|
| BIPIA | Kev-4B | 50.00 | 50.00 |
| BIPIA | SecJev-4B | 72.50 | 72.17 |
| BIPIA | Kev-9B | 51.33 | 51.27 |
| BIPIA | SecJev-9B | 72.83 | 72.07 |
| IoT-23 | Kev-4B | 87.20 | 91.28 |
| IoT-23 | SecJev-4B | 88.40 | 79.74 |
| IoT-23 | Kev-9B | 50.00 | 78.25 |
| IoT-23 | SecJev-9B | 83.70 | 73.18 |
Table 17: Matched transfer comparisons (%). Group denotes the same group-macro accuracy as Table 13.
| Task | 0.8B | 2B | 4B | 9B |
|---|---|---|---|---|
| AgentDojo: boundary action | 78 / 81 / 79 | 91 / 90 / 88 | 99 / 99 / 99 | 97 / 97 / 98 |
| AgentDojo: injection | 85 / 86 / – | 88 / 91 / – | 95 / 95 / – | 98 / 98 / – |
| CICIoT: attack | 93 / 94 / – | 94 / 93 / – | 93 / 94 / – | 88 / 95 / – |
| ByzFL: update attack | 91 / 85 / – | 95 / 94 / – | 88 / 84 / – | 83 / 85 / – |
| InjecAgent: operation | 100 / 98 / 100 | 98 / 94 / 98 | 100 / 100 / 100 | 100 / 99 / 100 |
| LANL: logon action | 100 / 100 / 100 | 100 / 100 / 100 | 100 / 100 / 100 | 99 / 100 / 99 |
| LANL: failure threshold | 100 / 100 / – | 100 / 100 / – | 100 / 100 / – | 100 / 100 / – |
| ToN-IoT: attack | 94 / 95 / – | 96 / 95 / – | 95 / 95 / – | 95 / 89 / – |
| Twins: evidence level | 99 / 98 / – | 100 / 100 / – | 100 / 100 / – | 100 / 100 / – |
| Twins: policy action | 98 / 98 / 97 | 100 / 100 / 100 | 100 / 100 / 100 | 100 / 100 / 99 |
| Twins: quorum | 100 / 99 / – | 100 / 99 / – | 100 / 98 / – | 100 / 97 / – |
| Twins: visible conflict | 97 / 99 / – | 98 / 98 / – | 100 / 98 / – | 100 / 100 / – |
| VeReMi: manipulation | 67 / 64 / – | 76 / 68 / – | 67 / 68 / – | 69 / 68 / – |
| VeReMi: attack type | 39 / 32 / 37 | 35 / 36 / 34 | 46 / 45 / 46 | 41 / 41 / 43 |
Table 18: Accuracy by task (%): original / paraphrase / permutation, with 100 questions per applicable condition. A dash means permutation is not evaluated for that answer type.
| BIPIA stratum | n | Kev-4B | SecJev-4B | Kev-9B | SecJev-9B | Gen-4B |
|---|---|---|---|---|---|---|
| 16 | 50.00 | 100.00 | 50.00 | 81.25 | 75.00 | |
| Table | 584 | 50.17 | 71.23 | 50.86 | 72.77 | 53.77 |
| Explicit redirection | 400 | 50.25 | 72.50 | 51.25 | 75.50 | 55.50 |
| Ambiguous addressee | 200 | 50.00 | 71.00 | 50.00 | 68.00 | 52.00 |
| QA flagged | 24 | 50.00 | 87.50 | 50.00 | 75.00 | 66.67 |
| QA unflagged | 576 | 50.17 | 71.35 | 50.87 | 72.92 | 53.82 |
Table 19: New-background BIPIA accuracy (%). Strata overlap; every answer remains in the full score. The email subset contains only four contexts.
| IoT-23 capture | n | Kev-4B | SecJev-4B | Kev-9B | SecJev-9B | Gen-4B |
|---|---|---|---|---|---|---|
| Honeypot 4-1 | 166 | 100.00 | 56.63 | 100.00 | 29.52 | 56.63 |
| Malware 1-1 | 333 | 64.26 | 71.47 | 49.85 | 77.48 | 90.39 |
| Malware 3-1 | 333 | 35.44 | 45.95 | 49.85 | 40.54 | 40.54 |
| Malware 8-1 | 168 | 1.19 | 98.81 | 1.19 | 98.81 | 89.88 |
Table 20: New-capture IoT-23 accuracy (%). Capture label mixtures differ, especially the nearly all-malicious 8-1 capture.
| Payload category | Kev-4B | SecJev-4B | Kev-9B | SecJev-9B | Gen-4B |
|---|---|---|---|---|---|
| Base Encoding | 50.00 | 50.00 | 50.00 | 72.50 | 50.00 |
| Business Intelligence | 50.00 | 67.50 | 50.00 | 57.50 | 50.00 |
| Conversational Agent | 50.00 | 87.50 | 50.00 | 75.00 | 52.50 |
| Emoji Substitution | 50.00 | 50.00 | 50.00 | 62.50 | 50.00 |
| Entertainment | 50.00 | 90.00 | 50.00 | 80.00 | 52.50 |
| Information Dissemination | 52.50 | 97.50 | 50.00 | 87.50 | 52.50 |
| Language Translation | 50.00 | 50.00 | 50.00 | 52.50 | 50.00 |
| Marketing & Advertising | 50.00 | 100.00 | 52.50 | 97.50 | 60.00 |
| Misinformation & Propaganda | 50.00 | 82.50 | 50.00 | 65.00 | 55.00 |
| Research Assistance | 50.00 | 62.50 | 50.00 | 70.00 | 52.50 |
| Reverse Text | 50.00 | 62.50 | 50.00 | 72.50 | 50.00 |
| Scams & Fraud | 50.00 | 87.50 | 60.00 | 85.00 | 85.00 |
| Sentiment Analysis | 50.00 | 50.00 | 50.00 | 50.00 | 50.00 |
| Substitution Ciphers | 50.00 | 55.00 | 50.00 | 80.00 | 50.00 |
| Task Automation | 50.00 | 87.50 | 50.00 | 87.50 | 55.00 |
Table 21: New-background BIPIA accuracy by payload category (%). Each row contains 10 contexts and 40 answers, including their paired clean controls.
| Capture | Model | n | TP | FP | FN | TN | Precision | Recall | FPR |
|---|---|---|---|---|---|---|---|---|---|
| Honeypot 4-1 | Kev-4B | 166 | 0 | 0 | 0 | 166 | n/a | n/a | 0.00 |
| Honeypot 4-1 | SecJev-4B | 166 | 0 | 72 | 0 | 94 | 0.00 | n/a | 43.37 |
| Honeypot 4-1 | Gen-4B | 166 | 0 | 72 | 0 | 94 | 0.00 | n/a | 43.37 |
| Honeypot 4-1 | Kev-9B | 166 | 0 | 0 | 0 | 166 | n/a | n/a | 0.00 |
| Honeypot 4-1 | SecJev-9B | 166 | 0 | 117 | 0 | 49 | 0.00 | n/a | 70.48 |
| Malware 1-1 | Kev-4B | 333 | 48 | 0 | 119 | 166 | 100.00 | 28.74 | 0.00 |
| Malware 1-1 | SecJev-4B | 333 | 165 | 93 | 2 | 73 | 63.95 | 98.80 | 56.02 |
| Malware 1-1 | Gen-4B | 333 | 153 | 18 | 14 | 148 | 89.47 | 91.62 | 10.84 |
| Malware 1-1 | Kev-9B | 333 | 0 | 0 | 167 | 166 | n/a | 0.00 | 0.00 |
| Malware 1-1 | SecJev-9B | 333 | 130 | 38 | 37 | 128 | 77.38 | 77.84 | 22.89 |
| Malware 3-1 | Kev-4B | 333 | 3 | 51 | 164 | 115 | 5.56 | 1.80 | 30.72 |
| Malware 3-1 | SecJev-4B | 333 | 152 | 165 | 15 | 1 | 47.95 | 91.02 | 99.40 |
| Malware 3-1 | Gen-4B | 333 | 134 | 165 | 33 | 1 | 44.82 | 80.24 | 99.40 |
| Malware 3-1 | Kev-9B | 333 | 0 | 0 | 167 | 166 | n/a | 0.00 | 0.00 |
| Malware 3-1 | SecJev-9B | 333 | 134 | 165 | 33 | 1 | 44.82 | 80.24 | 99.40 |
| Malware 8-1 | Kev-4B | 168 | 0 | 0 | 166 | 2 | n/a | 0.00 | 0.00 |
| Malware 8-1 | SecJev-4B | 168 | 166 | 2 | 0 | 0 | 98.81 | 100.00 | 100.00 |
| Malware 8-1 | Gen-4B | 168 | 151 | 2 | 15 | 0 | 98.69 | 90.96 | 100.00 |
| Malware 8-1 | Kev-9B | 168 | 0 | 0 | 166 | 2 | n/a | 0.00 | 0.00 |
| Malware 8-1 | SecJev-9B | 168 | 166 | 2 | 0 | 0 | 98.81 | 100.00 | 100.00 |
Table 22: New-capture IoT-23 confusion counts and detection rates (%). All models use the fixed argmax decision rule. n/a denotes an undefined denominator: the honeypot capture has no attacks, and some models make no positive predictions. Capture 8-1 contains only two benign connections.
F Checkpoint Comparison
The initial criterion maximizes development task-macro balanced accuracy over semantic classes. Ties use lower raw task-macro negative log-likelihood, then the earlier epoch. This selects epoch 3 at every size, retained for the reported 0.8B, 2B, and 4B models. For 9B, we subsequently compared the first three checkpoints on BIPIA and IoT-23 and retained epoch 2 for the reported results. This choice follows inspection of the external scores, so those scores describe exploratory transfer rather than an untouched evaluation of checkpoint selection. No external examples update model parameters or calibration temperature. The disjoint-source evaluation in Appendix D.1 fixes this choice before new predictions; its scores are not used to reselect a checkpoint. The initially released 9B adapter remains epoch 3.
G Direct-Qwen Initialization
The 0.8B comparison uses the same security examples, their order, learning-rate schedule, effective batches, and scene-weighted loss. Both runs select among three epoch checkpoints using development task-macro balanced accuracy. Evaluation uses FP32 backbones, adapters, and heads. The first epoch uses two devices in the Kev-initialized run and three in the direct-Qwen run, at the same effective batch; subsequent epochs use three devices. This is a comparison of the existing recipe, not independently tuned optima. Tables 24 and 25 report the full development and test results. Kev initialization already reaches 87.25% development balanced macro after epoch 1, exceeding direct-Qwen training at epoch 3 (84.85%). No additional training or test-based checkpoint selection is used for this comparison.
H Paired Uncertainty and General Confidence
We recompute statistics from the fixed predictions, with no new inference or temperature fitting. The training-majority baseline selects a semantic class separately for each task from 118,818 training questions; deterministic lexical order resolves ties. On the 21,634 test questions, it scores 64.25% micro accuracy, 62.89% task-macro accuracy, and 43.57% task-macro balanced accuracy.
For paired intervals, we resample whole groups within each source, keeping all questions from a selected group together and applying the same multiplicity across tasks. We use 2,000 draws with seed 20260929 and report the 2.5th and 97.5th percentiles. Every draw includes all tasks. The security test contains 485 groups: AgentDojo 2, ByzFL 5, CICIoT2023 8, InjecAgent 2, LANL 7, ToN-IoT 6, Twins 34, and VeReMi 421. The two general suites contain 880 and 544 groups, respectively. Sources with few groups have coarse uncertainty estimates; these intervals describe variation over the observed source groups, not training seeds or entirely new sources.
The general decision and general transfer suites use Kev's upstream versions decision-v7 and transfer-v4, respectively; the suffixes identify dataset revisions. We evaluate their clean subsets of 1,200 and 656 questions (Table 27). Raw probabilities use T = 1. Scaled SecJev probabilities use the temperature fitted on security calibration data. Initialization rows retain their original stored temperatures; the 2B initialization uses T = 1. Thus the raw columns compare confidence without temperature differences, whereas the scaled columns describe the stored models as used. NLL averages negative log probability of the correct candidate; multiclass Brier sums squared probability error across candidates; ECE uses 15 equal-width confidence bins.
All SecJev models have higher raw NLL than their initialization on both general suites, despite the small accuracy changes. Security temperature scaling lowers all three general-suite metrics for every SecJev size, but the calibrated 0.8B transfer ECE remains 21.10%, compared with 4.19% for its initialization. General decision accuracy and transferable confidence are therefore distinct aspects of retention.
I Generative and Classification Baselines
The 0.8B and 4B generative baselines start from Qwen3.5 and train rank-16 LoRA adapters on the same 118,818 security questions for three epochs, each totaling 356,454 question presentations and 2,167 updates. The original backbone and vocabulary head are frozen. Training retains FP32 weights and optimizer states with BF16 autocast; development, calibration, and test inference use FP32 throughout, without TF32, at batch size one. Supervision is full-vocabulary cross-entropy on one answer-key token, weighted by the inverse number of questions in its scene. Decoding selects the
| 9B checkpoint | Dev. balanced macro | Security macro | Security micro | BIPIA | IoT-23 |
|---|---|---|---|---|---|
| Epoch 1 | 90.14 | 93.49 | 86.18 | 71.67 | 84.10 |
| Epoch 2 | 91.54 | 94.08 | 87.18 | 72.83 | 83.70 |
| Epoch 3 | 92.22 | 94.51 | 88.11 | 71.50 | 75.70 |
Table 23: The first three 9B checkpoints (%). Epoch 2 improves the external balance relative to epoch 3 while lowering security-test accuracy. BIPIA uses identical full-suite batching; IoT-23 uses batch size one.
| Initialization | Epoch | Dev. balanced macro | Test macro | Test balanced macro | Test micro |
|---|---|---|---|---|---|
| Kev | 1 | 87.25 | 88.63 | 84.88 | 82.52 |
| Kev | 2 | 88.51 | 89.69 | 86.40 | 83.60 |
| Kev | 3 | 90.36 | 90.34 | 88.00 | 85.03 |
| Qwen3.5 directly | 1 | 70.60 | 78.76 | 70.51 | 77.19 |
| Qwen3.5 directly | 2 | 80.59 | 85.77 | 79.50 | 79.90 |
| Qwen3.5 directly | 3 | 84.85 | 88.17 | 83.75 | 81.96 |
Table 24: Three-epoch initialization comparison at 0.8B (%). Both runs select epoch 3 using development balanced macro.
| Task | Questions | Kev initialization | Direct-Qwen initialization |
|---|---|---|---|
| AgentDojo: boundary action | 426 | 80.28 | 82.86 |
| AgentDojo: injection | 426 | 79.81 | 71.60 |
| ByzFL: update attack | 800 | 92.62 | 95.38 |
| CICIoT: attack | 6000 | 91.80 | 91.47 |
| InjecAgent: operation | 124 | 100.00 | 96.77 |
| LANL: logon action | 540 | 98.89 | 97.78 |
| LANL: failure threshold | 540 | 99.81 | 99.44 |
| ToN-IoT: attack | 3500 | 98.03 | 98.11 |
| Twins: evidence level | 659 | 98.79 | 98.63 |
| Twins: policy action | 659 | 98.48 | 96.81 |
| Twins: quorum | 659 | 99.70 | 97.57 |
| Twins: visible conflict | 659 | 99.24 | 98.94 |
| VeReMi: manipulation | 3321 | 63.11 | 54.05 |
| VeReMi: attack type | 3321 | 64.14 | 54.95 |
Table 25: Per-task test accuracy for the development-selected 0.8B checkpoints (%).
| Size | Security task-macro | General decision micro | General transfer micro |
|---|---|---|---|
| 0.8B | +39.40 [+30.16, +43.48] | -0.42 [-1.42, +0.58] | -2.44 [-4.73, -0.15] |
| 2B | +40.83 [+28.62, +45.32] | +0.50 [-0.50, +1.42] | +0.00 [-1.98, +1.98] |
| 4B | +26.63 [+18.59, +30.75] | -0.50 [-1.17, +0.17] | +0.15 [-1.07, +1.37] |
| 9B | +24.26 [+15.38, +28.40] | -0.08 [-0.58, +0.42] | -0.46 [-2.29, +1.37] |
Table 26: SecJev minus initialization, in percentage points, with paired 95% group-bootstrap intervals. Positive differences favor SecJev. These are intervals for accuracy differences, not for absolute scores.
| Suite | Size | Model | T | Raw (T = 1) | Stored temperature | ||||
|---|---|---|---|---|---|---|---|---|---|
| NLL | Brier | ECE | NLL | Brier | ECE | ||||
| General decision | 0.8B | Init. | 2.406 | 0.652 | 0.268 | 9.94 | 0.449 | 0.240 | 2.69 |
| General decision | 0.8B | SecJev | 1.353 | 0.946 | 0.293 | 12.86 | 0.734 | 0.281 | 11.26 |
| General decision | 2B | Init. | 1.000 | 0.574 | 0.241 | 9.22 | 0.574 | 0.241 | 9.22 |
| General decision | 2B | SecJev | 1.292 | 0.749 | 0.249 | 9.88 | 0.616 | 0.241 | 8.48 |
| General decision | 4B | Init. | 2.144 | 0.468 | 0.207 | 7.32 | 0.360 | 0.189 | 2.60 |
| General decision | 4B | SecJev | 1.335 | 0.573 | 0.218 | 8.83 | 0.465 | 0.208 | 7.31 |
| General decision | 9B | Init. | 2.297 | 0.479 | 0.201 | 7.28 | 0.352 | 0.181 | 1.90 |
| General decision | 9B | SecJev | 1.181 | 0.533 | 0.206 | 7.57 | 0.472 | 0.201 | 6.81 |
| General transfer | 0.8B | Init. | 2.406 | 0.868 | 0.460 | 15.63 | 0.692 | 0.412 | 4.19 |
| General transfer | 0.8B | SecJev | 1.353 | 1.357 | 0.543 | 24.36 | 1.079 | 0.511 | 21.10 |
| General transfer | 2B | Init. | 1.000 | 0.687 | 0.343 | 11.58 | 0.687 | 0.343 | 11.58 |
| General transfer | 2B | SecJev | 1.292 | 0.941 | 0.382 | 15.02 | 0.787 | 0.365 | 12.50 |
| General transfer | 4B | Init. | 2.144 | 0.564 | 0.255 | 10.00 | 0.426 | 0.232 | 5.00 |
| General transfer | 4B | SecJev | 1.335 | 0.841 | 0.277 | 11.57 | 0.671 | 0.267 | 9.16 |
| General transfer | 9B | Init. | 2.297 | 0.566 | 0.238 | 8.38 | 0.417 | 0.224 | 4.02 |
| General transfer | 9B | SecJev | 1.181 | 0.593 | 0.227 | 9.45 | 0.528 | 0.221 | 8.39 |
Table 27: General-suite confidence before and after security specialization. Lower is better; ECE is in percent. No temperature is fitted on these general test subsets. Init. is Kev at 0.8B/4B/9B and the general-decision starting point at 2B.
highest-scoring valid key and ends after that token. For these one-token keys, ranking their vocabulary log-probabilities is identical to constrained greedy selection. Scoring complete candidate descriptions would define a different inference protocol.
The 0.8B candidate-sequence classifier adapts Sood and Savelka (2026): each state and question is concatenated with one candidate, and its final nonpadding hidden state is mapped to a scalar by a shared bias-free linear head. Cross-entropy normalizes these scores across the question's candidates. Starting from Qwen3.5-0.8B-Base, we train the fresh head and rank-16 LoRA adapters with the same security data, scene weighting, optimizer schedule, and three-epoch budget as the other Qwen controls. Training uses BF16 autocast with FP32 master parameters; evaluation is FP32 without TF32. The three epochs take 8.75 hours on nine RTX 3090s. This comparison evaluates a candidate-conditioned encoding interface, which repeats the context for each option, alongside Sec-Jev's shared encoding of all candidates.
Each epoch is evaluated on all 14,912 development questions. The original candidate-position balanced score and a recomputation using semantic answer labels both select epoch 3 at each size (Table 28); ties would select the earlier epoch. Temperatures of 1.466 and 1.264 for 0.8B and 4B are fitted to candidate-normalized NLL on 14,821 calibration questions, before evaluating the 21,634 test questions. At both sizes, the unconstrained vocabulary argmax is a valid answer key for every test question. For classification, full-development semantic-class balanced macro selects epoch 3; the same calibration split gives a single global temperature of 1.288. No test result enters checkpoint selection or temperature fitting.
| Model | Epoch | Micro | Macro | Bal. macro |
|---|---|---|---|---|
| Gen-0.8B | 1 | 86.88 | 88.23 | 83.92 |
| Gen-0.8B | 2 | 88.08 | 90.92 | 87.32 |
| Gen-0.8B | 3 | 89.40 | 91.90 | 89.46 |
| Cls-0.8B | 1 | 84.53 | 83.45 | 78.92 |
| Cls-0.8B | 2 | 87.63 | 88.86 | 86.73 |
| Cls-0.8B | 3 | 89.09 | 90.76 | 88.39 |
| Gen-4B | 1 | 89.91 | 93.04 | 90.76 |
| Gen-4B | 2 | 90.38 | 93.80 | 91.48 |
| Gen-4B | 3 | 91.15 | 94.11 | 92.35 |
Table 28: Full-development accuracy (%) for generative SFT (Gen) and candidate-sequence classification (Cls). Balanced macro groups recall by semantic answer label.
SecJev leads generative SFT by 0.31 and 0.16 points in task-macro accuracy at 0.8B and 4B, respectively, and by 0.21 and 0.12 points in balanced macro. At 0.8B, classification scores 89.85% macro and 86.84% balanced macro: below SecJev and generation, and above the direct-Qwen pointer. The interfaces have complementary task profiles (Table 30). Classification exceeds 0.8B generation in accuracy on boundary action and traffic classification, while generation leads on injection identification, ByzFL, and VeReMi manipulation. For classification, global temperature scaling reduces test NLL from 0.433 to 0.420, while Brier
| Size | Method | Test micro | Test macro | Test balanced macro |
|---|---|---|---|---|
| 0.8B | SecJev (Kev initialization) | 85.03 | 90.34 | 88.00 |
| 0.8B | Direct-Qwen pointer | 81.96 | 88.17 | 83.75 |
| 0.8B | Answer-only generative SFT | 84.75 | 90.02 | 87.79 |
| 0.8B | Candidate-sequence classification | 84.39 | 89.85 | 86.84 |
| 4B | SecJev (Kev initialization) | 88.01 | 94.51 | 92.42 |
| 4B | Answer-only generative SFT | 87.95 | 94.35 | 92.30 |
Table 29: FP32 test accuracy for development-selected models (%). All select epoch 3. These scores use FP32; Table 4 uses a BF16 backbone.
increases from 0.2178 to 0.2184 and ten-bin ECE increases from 1.81 to 2.23%. Accuracy is unchanged. Table 4 reports the separately measured SecJev–generation timing comparison.
J Matched-Precision Timing Details
All six models run serially on the same RTX 3090 with Python 3.11.11, PyTorch 2.6.0, CUDA 12.6, Transformers 5.17.0, PEFT 0.21.0, and NVIDIA driver 570.133.20. Both interfaces use scaled dot-product attention (SDPA). Backbone weights are BF16; original FP32 adapter and output-head values are retained. Full-test accuracy is recomputed on all 21,634 questions per model (Table 31). Balanced macro groups gold answers by semantic label, not by their displayed position.
The fixed timing workload contains 200 development questions from distinct scenes, selected by hash order and task round-robin without predictions or labels. Length limits hold for every method. The 100 short requests span 11 tasks; the long stratum contains 34 ByzFL and 33 questions from each LANL task. Thus length-stratum results also reflect different task composition. Each pass uses the same requests in a shuffled order with seed 20260929+r, for pass , following two warm-up requests per stratum. Timed predictions are not used for model selection.
Table 32 gives the range of per-pass medians and the mean and sample standard deviation of batch-eight throughput. Requests within a batch are padded together, and throughput covers the fixed mixture of short and long inputs. These rates therefore need not equal eight times the reciprocal batch-one median. All models complete the five batch-one passes. At batch eight, the two 4B models and Kev-9B exceed the 24-GiB device capacity; the three 0.8B models complete all five passes. The 4B generative short-input median varies from 112.9 to 135.2 ms across passes, so its pooled advantage comparison should be read alongside this disper- sion.
| Task | Questions | Gen-0.8B | Cls-0.8B | Gen-4B | |||
|---|---|---|---|---|---|---|---|
| Acc. | Bal. | Acc. | Bal. | Acc. | Bal. | ||
| AgentDojo: boundary action | 426 | 76.29 | 80.63 | 84.27 | 80.62 | 96.71 | 94.92 |
| AgentDojo: injection | 426 | 79.11 | 80.24 | 75.35 | 74.49 | 97.89 | 96.42 |
| ByzFL: update attack | 800 | 95.62 | 93.05 | 94.00 | 88.28 | 97.25 | 96.17 |
| CICIoT: attack | 6000 | 91.30 | 86.44 | 92.07 | 89.33 | 91.70 | 87.29 |
| InjecAgent: operation | 124 | 99.19 | 99.07 | 100.00 | 100.00 | 100.00 | 100.00 |
| LANL: logon action | 540 | 98.89 | 98.64 | 98.70 | 98.36 | 100.00 | 100.00 |
| LANL: failure threshold | 540 | 100.00 | 100.00 | 100.00 | 100.00 | 100.00 | 100.00 |
| ToN-IoT: attack | 3500 | 98.29 | 96.88 | 99.00 | 98.46 | 98.94 | 98.19 |
| Twins: evidence level | 659 | 98.79 | 98.67 | 97.27 | 97.00 | 99.85 | 99.83 |
| Twins: policy action | 659 | 98.63 | 98.50 | 97.42 | 97.21 | 99.70 | 99.66 |
| Twins: quorum | 659 | 99.24 | 99.12 | 99.54 | 99.55 | 99.85 | 99.88 |
| Twins: visible conflict | 659 | 98.94 | 98.38 | 98.33 | 97.66 | 99.85 | 99.75 |
| VeReMi: manipulation | 3321 | 66.06 | 66.67 | 61.88 | 62.44 | 70.58 | 71.21 |
| VeReMi: attack type | 3321 | 59.98 | 32.70 | 60.10 | 32.38 | 68.56 | 48.80 |
Table 30: Full-test results for selected generative (Gen) and classification (Cls) checkpoints (%). Balanced accuracy averages recall across semantic answer labels, independent of candidate order.
| Size | Method | Micro | Macro | Semantic balanced macro |
|---|---|---|---|---|
| 0.8B | SecJev | 85.14 | 90.46 | 88.04 |
| 0.8B | Generative SFT | 84.70 | 90.01 | 87.76 |
| 0.8B | Direct-Qwen pointer | 81.85 | 88.12 | 83.72 |
| 4B | SecJev | 87.94 | 94.48 | 92.38 |
| 4B | Generative SFT | 87.95 | 94.34 | 92.26 |
| 9B | Kev | 50.87 | 69.79 | 70.32 |
Table 31: Full-test accuracy (%) at the BF16-backbone timing configuration. Each row contains 21,634 unique questions across 14 tasks.
| Size | Method | Short median range (ms) | Long median range (ms) | Batch-eight Q/s |
|---|---|---|---|---|
| 0.8B | SecJev | 79.0–79.7 | 163.5–164.4 | |
| 0.8B | Generative SFT | 80.2–80.7 | 166.8–167.6 | |
| 0.8B | Direct-Qwen pointer | 80.3–80.7 | 164.5–164.7 | |
| 4B | SecJev | 107.4–110.3 | 577.6–579.2 | OOM |
| 4B | Generative SFT | 112.9–135.2 | 597.5–600.3 | OOM |
| 9B | Kev | 168.8–169.4 | 859.3–862.0 | OOM |
Table 32: Variation over five timing passes. Ranges describe per-pass medians, not confidence intervals. Throughput is mean ± sample standard deviation; OOM denotes the fixed batch-eight configuration.