← Lab /Security & privacy

Interprocedural scanner plus Semgrep reaches 84.3% precision and 91.5% recall on benchmark

The combined scanner achieves 0.843 precision and 0.915 recall on a synthetic benchmark

Security & privacy arXiv 7 Nov 2026 Measurement Prototype evidence

Published as “Governed Self-Improvement for a Local-First Security Analyzer: Baseline Measurements and a Preregistered Evaluation Protocol for Tantular Cyber”

Why it matters

A local-first security analyzer can provide deterministic vulnerability detection while keeping code private, but its explanation quality needs improvement and rigorous governance before practical deployment.

Summary

Detection is strong: the combined Semgrep and interprocedural callgraph scanner achieves precision 0.843 and recall 0.915 on a synthetic benchmark. However, the advisory explanation layer is weak, with only 57% of explanations grounded in the evidence versus 95% for a comparable 8B model. The paper also uncovers validity hazards such as silent model-file migration and non-reproducible figures, and it proposes a governed self-improvement loop, though no loop results are reported.

What they found 4

  1. Interprocedural callgraph adds recall without extra false positives

    “Adding tantular-callgraph to Semgrep raises recall from 0.766 to 0.915 without adding false positives (8 in both), on a synthetic corpus whose figures are regression floors, not real-world rates.”

  2. Advisory explanations are poorly grounded

    “Detection is strong on the benchmark, but only 57% of Tantular’s explanations were grounded in the evidence shown, against 95% for a different 8B model.”

  3. Grounding failures consist of invented identifiers

    “Every grounding failure in retained outputs names a code identifier absent from the evidence shown.”

  4. Local model serving can silently change the model under test

    “An automatic model-file migration changed the weights serving two arms mid-run without any operator action.”

Caveats 6

  • Grounding rates can be inflated by abstention: counting abstention as ungrounded lowers the concise-prompt grounding rate from 0.72 to 0.65.
  • A prompt change that raised grounding (0.56 to 0.72) also caused a significant loss in remediation soundness (12 paired samples), showing a trade-off.
  • Silent model-file migration means some reported numbers may reflect different model weights than intended.
  • The loop has not been run; no fine-tuned or weight-edited Tantular model exists; all quality figures come from a small synthetic corpus, not from real-world repositories.
  • All rates come from 33 synthetic Python cases, one machine and one Ollama version, limiting external validity.
  • The authors do not claim that detection or explanation rates transfer to real repositories or other programming languages.

What’s new here 4

  • Authority-separated architecture where deterministic scanner findings are authoritative and the local LLM only provides advisory explanations.
  • A forensic diagnosis of explanation grounding failures and documentation of evaluation validity hazards specific to locally served models.
  • A governed self-improvement loop that learns solely from code-free feedback, curated licensed data, and a cheapest-first intervention ladder with hard gates and human sign-off.
  • A preregistered, constraint-aware evaluation protocol for the first improvement cycle.