Procedural knowledge evolution achieves 71% macro F1 for smart contract vulnerability detection
EvoVuln detects five real-world smart contract vulnerability types with 71% macro-average F1 using only five vulnerable and five safe examples per type
Software arXiv 2 Jul 2026 Method Prototype evidence
Published as “Knowledge Over Parameters: Evolving Smart Contract Vulnerability Detection”
Why it matters
EVOVULN shows that lightweight LLMs can achieve high-accuracy smart-contract vulnerability detection at low cost, enabling practical deployment in resource-constrained settings.
Summary
EVOVULN attains a macro-average F1-score of 71% on five smart-contract vulnerability types, beating all nine baselines and surpassing GPT-5.2 zero-shot by 19 points despite using the lightweight GPT-5-nano as detector. The framework automatically generates, enforces, and iteratively refines procedural detection rules with only ten labeled contracts per type, keeping total API cost under $50. Knowledge portability lets the evolved rules achieve 66%-67% macro F1 on other LLMs (Qwen3.5-9B, MiniMax-M2.5) without retraining. The paper’s evaluation is limited to 209 contracts, with only 11 samples for precision-issues, so statistical confidence for that type is low.
What they found 3
- Macro-average F1 of 71% across five vulnerability types
“EVOVULN achieves a macro-average F1-score of 71%, substantially outperforming all baselines.”
- Outperforms GPT-5.2 zero-shot by 19 percentage points
“EVOVULN outperforms GPT-5.2 zero-shot by 19 percentage points”
- Portability to other models yields 66%-67% macro F1 without retraining
“transferring them to Qwen3.5-9B and MiniMaxM2.5 without any retraining yields macro F1-score of 66% and 67% respectively”
Caveats 5
- Removing the evolving process (EVOVULN w/o Evolving) reduces macro-average F1-score from 71% to 46%, a drop of 25 percentage points.
- The supervisor’s root-cause analysis may occasionally misattribute trace errors, risking rule updates that fix one issue but introduce another.
- The Few-Shot Evolving stage uses exactly five vulnerable and five safe samples per vulnerability type.
- Precision Issues contains only 11 samples (leaving a statistically limited 6-sample test set).
- our evaluation totals 209 samples across five vulnerability types.
What’s new here 4
- Automated generation and evolution of procedural detection knowledge from minimal labeled data
- Inversion-of-Control runtime that compiles natural-language rules into deterministic Executable Policies
- Dual-phase evolution (Cold Start with synthetic corner cases, Few-Shot Evolving with real contracts)
- Demonstrated portability of evolved rules across different LLM architectures