Domain knowledge raises LLM-generated vulnerability path entailment to 98%
Incorporating separate domain-knowledge graphs increases pooled entailment of LLM-generated paths from 78% to 98% across tested binaries
AI/ML arXiv 3 Aug 2026 Measurement Real-world evidence
Published as “EntailLLM: Verifying LLM-Generated Vulnerability Discovery Paths with Domain Knowledge via Logic Programming”
Why it matters
The higher entailment reduces the number of spurious analyst paths, lowering manual triage effort and increasing confidence in LLM-assisted vulnerability analysis for safety-critical firmware.
Summary
Domain knowledge raises pooled entailment from 78% to 98%, showing that logic-programming verification dramatically improves the reliability of LLM-generated analyst paths. The system was evaluated on seven binaries (405-12,696 call-graph nodes) across three CWE classes, four LLMs and three prompting strategies, with entailment improving in 59 of 94 configurations and decreasing in only 3. Deployments on real medical-device firmware achieved 98% pooled entailment without per-device tuning, and the approach provides explainable traces for any non-entailed step.
What they found 1
- Domain knowledge raises pooled entailment from 78% to 98%
“domain knowledge raises pooled entailment from 78% to 98%”
Caveats 3
- entailment improves in 59, is unchanged in 32, and only decreases in 3.
- We treat these as fixed and defer the study of knowledge graph extraction and correctness to other studies.
- Currently, we exclusively measure logical entailment.
What’s new here 4
- Cross-graph entailment checking aligns LLM-proposed paths with an independent domain-knowledge graph rather than a single KG walk.
- Uses generalized annotated logic to provide exact, decidable verification with traceable rule firings.
- End-to-end deployment on real medical-device binaries, achieving high entailment without per-device tuning.
- Generates explainable reasoning traces that pinpoint the first non-entailed step.