Mid-trained LLMs boost cybersecurity benchmark accuracy by up to 13.1% absolute
Mid-training with curated synthetic data improves LLM performance on cybersecurity tasks
AI/ML arXiv 16 Sep 2026 Method Prototype evidence
Published as “MiST: Mid-Training LLMs for Cybersecurity”
Why it matters
The approach yields open-source LLMs that are noticeably better at cybersecurity reasoning while staying competitive on general tasks, making them more useful for security research and defensive tooling.
Summary
MiST models improve cybersecurity benchmark accuracy by up to +13.1 absolute percentage points over the corresponding Qwen baselines (61.7% vs 48.6% for 8B, 63.2% vs 54.6% for 32B). The gains come mainly from the mid-training and supervised fine-tuning stages, with DPO adding little. The models retain general-purpose performance and provide a stronger starting point for downstream fine-tuning and reinforcement learning. The paper reports extensive decontamination but notes limited gains on some benchmarks and acknowledges several limitations.
What they found 1
- MiST-8B-SFT already attains most of the final performance, scoring 62.4% vs 48.6% for Qwen3-8B ( +13.8 absolute points).
“MiST-8B-SFT reaches a mean cybersecurity score of 62.4, compared with 48.6 for Qwen3-8B, an absolute improvement of +13.8 percentage points (+28.4% relative).”
Caveats 5
- Improvements on SECURE and PrimeVul are smaller but generally positive, suggesting that the benefits extend across benchmark families.
- Our evaluation focuses primarily on knowledge-intensive security understanding, cyber threat intelligence, vulnerability reasoning, and benchmark-style analysis. We do not comprehensively evaluate MiST in operational settings such as log and telemetry analysis, incident triage, secure code assistance, tool use, or long-horizon agentic workflows.
- Our RL experiments cover only a small set of structured cybersecurity tasks. We do not explore reasoning-specialized models, broader RL recipes, tool-use settings, or agentic reinforcement learning.
- MiST relies heavily on LLM-generated synthetic data... we do not fully quantify the effects of generator choice, prompt design, filtering thresholds, or source mixtures.
- Exact- and near-exact match filtering may miss paraphrased, reformatted, or semantically equivalent benchmark content.
What’s new here 4
- Uses a curated, expert-vetted seed corpus transformed into synthetic data for mid-training rather than raw continual pre-training on large domain text.
- Demonstrates that a compact synthetic mid-training corpus can outperform a 2× larger raw-CPT corpus.
- Shows that mid-training yields a better initialization for downstream task-specific RL and supervised fine-tuning on security tasks.
- Applies systematic decontamination (identifier removal, MCQ avoidance, 13-gram filtering) to reduce benchmark leakage.