← Lab /Security & privacy

Fine-tuned 7B/9B models reach >80% F1 on security goal extraction, while base models have <15% precision

Instruction-tuned compact models achieve F1-scores above 80%, outperforming larger general-purpose LLMs on the SecGoal benchmark

Security & privacy arXiv 30 Apr 2026 Benchmark Prototype evidence

Published as “SecGoal: A Benchmark for Security Goal Extraction and Formalization from Protocol Documents”

Why it matters

The benchmark and framework enable more reliable, automated extraction and formalization of security goals, reducing manual effort in protocol verification pipelines.

Summary

Instruction-tuned small models (7B/9B) achieve F1-scores above 80% on security goal extraction, dramatically outperforming large frontier models whose precision stays below 15% despite high recall. Fine-tuning on the new SecGoal benchmark corrects the precision-recall imbalance, yielding up to 73.6% precision and 94.3% recall, but formal property generation still shows variance in precision.

What they found 2

  1. Instruction tuning on SecGoal enables compact models (7B/9B) to achieve F1-scores above 80%

    “instruction tuning on SecGoal enables compact models (7B/9B) to achieve F1-scores above 80%”

  2. Frontier models (e.g., Gemini 2.5-Pro) achieve high recall but precision below 15%

    “frontier models (e.g., Gemini 2.5-Pro) achieve high recall but precision below 15%”

Caveats 5

  • the observed variance in Precision (e.g., 0.68±0.24) reflects a tendency towards conservative over-approximation.
  • Our framework extracts security goals strictly from the source text.
  • We target security goal extraction (the “what”) but do not automate the generation of formal protocol models (e.g., protocol flows).
  • Our evaluation of formal property generation (RQ3) focuses on two representative protocols (Kao Chow v1 and NSSK).
  • While SecGoal covers 15 critical protocols, it may not fully capture the specialized logical structures of emerging domains like Post-Compromise Security (CohnGordon et al., 2016).

What’s new here 4

  • Introduces SecGoal, the first expert-annotated benchmark for extracting security goals from raw protocol documents.
  • Presents AIFG, a framework that separates extraction and retrieval-augmented formalization of security goals.
  • Shows that domain-specific instruction tuning enables compact models to surpass much larger proprietary LLMs on this task.
  • Provides a comprehensive evaluation methodology and metrics for both extraction and formal property generation.