arXiv:2610.38915cs.LGOct 2026

Manuscript Offprint

arXiv:2610.38915

Lev-3B: A Data Recipe for Compact Probabilistic Log Decision Models

Leo Betthauser, Yingqi Liu, Uday Shah, Jishang Wei, Sainyam Galhotra, Liang Gou, Vedant Dharnidharka, Hao Yang

Abstract

Many log-analysis tasks involve choosing among known options, such as detecting anomalous sessions or identifying attack techniques, and benefit from calibrated probabilities. We present Lev-3B, an open 3B-parameter decision model built on Granite-4.1-3B-Base with a shared pointer readout, and study its training recipe. The recipe has two key parts. First, training follows a curriculum: the model learns bounded natural-language decisions, using no log data, before it sees any logs. Second, the log stage mixes the target tasks with general log data spanning 35 auxiliary tasks unrelated to either evaluation task. We evaluate one shared checkpoint on sources seen in training and on sources excluded from training, calibration and model selection. The two-stage recipe transfers substantially better than training on log data alone. Adding general log data improves performance on excluded sources. At a fraction of their serving cost, Lev-3B outperforms prompted frontier models on anomaly detection, including on an excluded logging system, but trails them on attack-technique classification. Its probabilities are well calibrated on familiar sources, but on the excluded logging system it confidently misses anomalies. We release the checkpoint, recipe, data manifests, and prediction-level artifacts.

1 Introduction

System and security logs combine natural-language messages with identifiers, repeated templates, numerical values, and temporal order. Many downstream tasks nonetheless reduce to a choice among a small set of known alternatives, such as normal versus anomalous [12, 14, 16, 27, 32, 35, 36, 47, 52], or one technique from a fixed catalog [19, 23, 37, 38, 44]. Such decisions can be cast as prediction over a finite, explicitly described option set, with the model returning a probability distribution over the options rather than generated text.

Two properties make these decisions hard to learn and to transfer. First, logging systems differ in message templates, vocabularies, and field conventions, so a detector fitted to one system may degrade on another [11, 18, 26, 28]. Second, anomalies are rare. A small false-positive rate can dominate the alert stream [8], and precision-based metrics vary with evaluation prevalence. A model can therefore score well on the systems it was trained on and still make confident errors on an unfamiliar one. Accuracy on familiar sources alone does not show how a model behaves when the source changes.

*Equal contribution.

Prompting a frontier model avoids training but fits this setting poorly. Logs are high-volume and often sensitive, which favors a model that can be self-hosted cheaply. Prompted models also return labels rather than probability vectors, so their outputs cannot be thresholded, ranked, or calibrated for alert triage. Typed decision models address the output side: Jev maps unstructured state and typed questions directly to probabilistic decisions [45], and the open Kev implementation provides a trainable approximation of this interface [40]. What remains open for logs is the data recipe: which data to train on, in what order, and how to keep held-out sources out of every adaptation step. We therefore ask:

Can a compact, open decision model be adapted to make accurate, well-calibrated decisions on heterogeneous logs, including logging systems excluded from adaptation, and which data in the recipe account for its performance?

We answer this question with Lev-3B, built on Granite-4.1-3B-Base with a shared pointer readout, and trained in two stages. The first stage teaches the model bounded natural-language decisions under a common option-based interface, using no log data. The second stage continues from that checkpoint on a mixture of three log data sources: anomaly detection on HPC logs, ATT&CK parent-technique classification with synthetic augmentation of scarce security labels, and general log data. General log data is not tied to either evaluation task; its role is to expose the model to the variety of log formats and to help it carry what it learns to logging systems it has not seen. A single shared checkpoint serves both tasks, so the evaluation measures both what specialization adds and what is lost when the tasks are combined.

We evaluate the checkpoint on represented sources (BGL, Spirit, Thunderbird, and seen ATT&CK sourcetypes) and on sources excluded from every training, calibration, and model-selection step (HDFS and 18 withheld ATT&CK sourcetypes). Because decision models expose probabilities, we evaluate those probabilities as well as accuracy: raw outputs, a single post-hoc temperature fitted on independent non-target data, and confident errors. We organize the study around three questions: how Lev-3B compares with hosted and frontier models, and which recipe components matter (RQ1); whether general log data improves transfer to excluded sources (RQ2); and whether the predicted probabilities are reliable (RQ3). We summarize our key findings below.

  • Adaptation, not prompting, drives log performance. Lev-3B reaches 88-99 anomaly F1 on the represented HPC sources, where prompted frontier models stay at or below 28 on Spirit and 10 on Thunderbird even with five demonstrations. On the excluded HDFS source it has the best F1 of all systems (43.3 vs. at most 25.9) and roughly four times Jev's AUPRC. On ATT&CK it outperforms the three hosted decision models (Jev, Microsoft Decision-1, and OpenAI Decisions) but trails prompted GPT-5.6, especially on withheld sourcetypes.

  • General log data drives transfer. Adding ATT&CK supervision costs anomaly performance (Spirit F1 91.8 → 77.5). Adding general log data recovers most of that loss (88.3) and improves both excluded sources: HDFS F1 rises from 25.3 to 43.3, AUPRC from 0.25 to 0.41, and withheld ATT&CK accuracy from 34.3 to 42.1.

  • Probabilities are mostly reliable on familiar sources, but miscalibrated when the data source changes. Raw Lev-3B probabilities are close to calibrated on represented anomaly sources and have lower reported NLL than those of all three hosted decision models on both excluded sources. On HDFS, however, nearly all of its confident errors are missed anomalies (2,105 vs. 84 false alarms). A fitted temperature removes almost all confident false alarms but leaves most confident misses.

This report makes the following contributions.

  1. A data recipe for log decisions. We combine natural-language decision training with a joint mixture of anomaly data, ATT&CK data with synthetic augmentation, and general log data, behind one shared pointer readout, yielding one compact open checkpoint for both tasks.

  2. Controlled ablations showing what each data source contributes. Ablations that add one data subset at a time show that task data determines task skill, that combining tasks causes interference, and that general log data offsets most of that interference while improving transfer to excluded sources.

  3. Evaluation under source exclusion, including probabilities. We compare Lev-3B with decision models (Jev, Microsoft Decision-1, OpenAI Decisions), prompted frontier models, and a prompted instruction model on identical inputs, and evaluate raw and temperature-scaled probabilities, confident errors, and serving cost on represented and excluded sources.

  4. Open release. We release the checkpoint, adaptation recipe, data manifests, and prediction-level artifacts.

The pointer architecture and temperature-fitting method follow Kev; the contribution here is the log-domain adaptation recipe, its evaluation under source exclusion, and the released artifacts. We do not claim that small language models for logs are new [31, 38].

References (41)