mlsanityData to 13 Oct 2026

Adaptive Hierarchical Evaluation of LLMs and SAST tools for CWE Prediction in Python

arXiv 2601.01320 ↗First posted 4 Jan 2026cs.SE cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

Large Language Models have become integral to software development, yet they frequently generate vulnerable code. Existing code vulnerability detection benchmarks employ binary classification, lacking the CWE-level specificity required for actionable feedback in iterative correction systems. We present ALPHA (Adaptive Learning via Penalty in Hierarchical Assessment), the first function-level Python benchmark that evaluates both LLMs and SAST tools using hierarchically aware, CWE-specific penalties. ALPHA distinguishes between over-generalisation, over-specification, and lateral errors, reflecting practical differences in diagnostic utility. Evaluating seven LLMs and two SAST tools, we find LLMs substantially outperform SAST, though SAST demonstrates higher precision when detections occur. Critically, prediction consistency varies dramatically across models (8.26%-81.87% agreement), with significant implications for feedback-driven systems. We further outline a pathway for future work incorporating ALPHA penalties into supervised fine-tuning, which could provide principled hierarchy-aware vulnerability detection pending empirical validation.

Key facts. Cited by 1 paper in the map (data through 13 Oct 2026). Builds on 27 of its 40 references that are in the map. First posted on arXiv 4 Jan 2026.

Builds on

27 of 40 references.

References · 27

  1. 2024The Llama 3 Herd of Modelscited by 14,486
  2. 2016Overcoming catastrophic forgetting in neural networkscited by 4,753
  3. 2023Mistral 7Bcited by 3,123
  4. 2024Qwen2.5-Coder Technical Reportcited by 1,179
  5. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,173
  6. 2024Phi-4 Technical Reportcited by 696
  7. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 427
  8. 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 404
  9. 2025Small Language Models are the Future of Agentic AIcited by 263
  10. 2024When Can LLMs Actually Correct Their Own Mistakes? A Critical Survey of Self-Correction of LLMscited by 233
  11. 2023Better Zero-Shot Reasoning with Role-Play Promptingcited by 221
  12. 2024MapCoder: Multi-Agent Code Generation for Competitive Problem Solvingcited by 177
15 more
  1. 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 153
  2. 2024Instruction Tuning for Secure Code Generationcited by 65
  3. 2025Devstral: Fine-tuning Language Models for Coding Agent Applicationscited by 24
  4. 2024How secure is AI-generated Code: A Large-Scale Comparison of Large Language Modelscited by 23
  5. 2024Comparison of Static Application Security Testing Tools and Large Language Models for Repo-level Vulnerability Detectioncited by 18
  6. 2024DLAP: A Deep Learning Augmented Large Language Model Prompting Framework for Software Vulnerability Detectioncited by 13
  7. 2025Guiding AI to Fix Its Own Flaws: An Empirical Study on LLM-Driven Secure Code Generationcited by 13
  8. 2025Benchmarking Prompt Engineering Techniques for Secure Code Generation with GPT Modelscited by 12
  9. 2024LLMs: A Game-Changer for Software Engineers?cited by 11
  10. 2025CASTLE: Benchmarking Dataset for Static Code Analyzers and LLMs towards CWE Detectioncited by 10
  11. 2025Large Language Model Guided Self-Debugging Code Generationcited by 7
  12. 2025Static Analysis as a Feedback Loop: Enhancing LLM-Generated Code Beyond Correctnesscited by 7
  13. 2025The Debugging Decay Index: Rethinking Debugging Strategies for Code LLMscited by 5
  14. 2024Unleashing Artificial Cognition: Integrating Multiple AI Systemscited by 3
  15. 2025SecureFixAgent: A Hybrid LLM Agent for Automated Python Static Vulnerability Repaircited by 3

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2026: 1.

1 paper.