Hybrid LLM framework generates SecBPMN2 annotations with higher precision than humans
The system produces SecBPMN2 security annotations with higher precision (0.58 vs. 0.29) and comparable recall to human analysts
AI/ML arXiv 14 Aug 2026 Method Prototype evidence
Published as “A Hybrid LLM-Based Framework for Automated Security Annotation Generation in Business Process Models”
Why it matters
Automating SecBPMN2 annotation can markedly reduce manual effort and improve consistency for security-by-design BPMN modeling, especially for confidentiality, integrity, and availability requirements.
Summary
The hybrid LLM-and-rule pipeline automatically generates SecBPMN2 security annotations that are structurally valid (up to 0.987 validity) and achieves higher precision (0.58) than human annotators, with the best F1 of 0.73 on simple models; however, performance drops on complex processes (F1 as low as 0.23) and the evaluation is limited to a curated dataset of 27 models.
What they found 3
- The pipeline achieves very high structural validity across all complexity tiers.
“RAG yields the strongest results overall, with GPT-4.1-mini attaining the highest validity on simple (0.987), medium (0.911), and complex (0.924) models, demonstrating that structural correctness is preserved as process complexity increases.”
- Retrieval-augmented generation gives the highest F1 on simple workflows.
“For GPT-4.1-mini, RAG achieves the highest F1 on simple workflows (0.73), while prompt-based extraction performs better on complex models (0.34 vs. 0.23).”
- The SecBPMN2 Assistant outperforms the human baseline in F1 and precision.
“SecBPMN2 Assistant (GPT-4.1-mini, RAG) 0.52”
Caveats 5
- While RAG substantially improves performance on simple models, GPT-4.1-mini achieves lower F1 on complex processes than the prompt-based configuration.
- On complex processes, GPT-4.1-mini favors precision over recall, omitting a non-trivial fraction of intended annotations.
- Support for the full range of BPMN constructs remains partial, as the normalized representation abstracts away certain modeling details.
- the system does not yet support automatic repair or conflict resolution.
- its size reflects the current scarcity of publicly available SecBPMN2 benchmarks and may limit the generalizability of the findings.
What’s new here 4
- Combines LLM extraction with rule-based normalization and validation to enforce SecBPMN2 schema constraints.
- Introduces a benchmark dataset aligning natural-language security descriptions with expert-crafted SecBPMN2 models.
- Evaluates both prompt-based and retrieval-augmented generation (RAG) across multiple LLMs.
- Compares system output to human experts, showing higher precision and comparable recall with far less annotation time.