← Lab /AI/ML

Curriculum-trained models reach 0.73 MCC on cross-corpus IoT firmware vulnerability detection

Models trained on the IoTVulBench dataset generalize better than prior datasets and static analyzers for firmware vulnerability detection

AI/ML arXiv 11 Aug 2026 Benchmark Prototype evidence

Published as “Cross-Corpus Evaluation of Generalizable Vulnerability Detection in IoT Firmware”

Why it matters

The results demonstrate that a domain-matched, curriculum-trained LLM can be deployed as an accurate, low-false-positive firmware vulnerability detector for practical IoT security.

Summary

A staged curriculum trained on the human-verified IoTVulBench dataset achieves the highest detection performance (MCC 0.73 with a diversity-optimized ensemble, 0.69 with staged training alone), far surpassing generic sources and a static analyzer (MCC 0.31) and missing only 21% of vulnerabilities at a 0.5% false-positive rate. The evidence is strong, with multiple baselines, statistical significance testing, and robustness checks showing consistent gains.

What they found 5

  1. IoTVulBench training yields the highest single-source MCC

    “Models trained on IoTVulBench achieved the highest Matthews Correlation Coefficient (MCC) among the single-source datasets where others were matched by random undersampling, reaching 0.58 compared with 0.44 for PrimeVul and 0.39 for D2A.”

  2. Staged curriculum and diversity-optimized ensemble further improve MCC

    “Staged curriculum learning further increased MCC to 0.69, while a diversity-optimized ensemble achieved 0.73, representing a 0.42 MCC improvement over the strongest reference comparator, a static analyzer with an MCC of 0.31, and a 0.29 MCC improvement over the strongest single-source training dataset, PrimeVul.”

  3. Low false-positive rate with high recall

    “At a 0.5% false-positive rate, the model missed only 21% of vulnerabilities, compared with 71% for the strongest reference comparator.”

  4. Robustness to lexical and compiler perturbations

    “The proposed model retained 86% and 82% of unperturbed MCC under identifier renaming and compiler/optimization shifts, respectively, indicating structural rather than lexical dependence.”

  5. Quantization and distillation preserve most of the performance

    “QLoRA-native INT4 quantization retained 95% of full-precision performance, while a distilled 350M model preserved 91% of the teacher’s MCC.”

Caveats 4

  • Performance degrades under identifier renaming and compiler optimizations, retaining only 86% and 82% of the original MCC.
  • Architecture performance depended on the training source, with no model consistently achieving the highest MCC (Spearman ρ = 0.20, p = 0.42).
  • hardware evidence remaining limited.
  • the 71% causal correctness rate indicates room for improvement.

What’s new here 4

  • Introduces IoTVulBench-Core, a human-verified, contamination-screened firmware vulnerability benchmark.
  • Systematically isolates the impact of training-data provenance, model architecture, tuning method, and curriculum design on cross-corpus generalization.
  • Evaluates robustness to identifier renaming, compiler optimizations, and distribution shifts, including calibration and explanation faithfulness.
  • Explores ensemble, distillation, and quantization strategies for resource-constrained IoT deployment.