mlsanityData to 14 Oct 2026

LLaVul: A Multimodal LLM for Interpretable Vulnerability Reasoning about Source Code

arXiv 2509.17337 ↗First posted 22 Sep 2025cs.AI cs.CLcited by 0

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Increasing complexity in software systems places a growing demand on reasoning tools that unlock vulnerabilities manifest in source code. Many current approaches focus on vulnerability analysis as a classifying task, oversimplifying the nuanced and context-dependent real-world scenarios. Even though current code large language models (LLMs) excel in code understanding, they often pay little attention to security-specific reasoning. We propose LLaVul, a multimodal LLM tailored to provide fine-grained reasoning about code through question-answering (QA). Our model is trained to integrate paired code and natural queries into a unified space, enhancing reasoning and context-dependent insights about code vulnerability. To evaluate our model performance, we construct a curated dataset of real-world vulnerabilities paired with security-focused questions and answers. Our model outperforms state-of-the-art general-purpose and code LLMs in the QA and detection tasks. We further explain decision-making by conducting qualitative analysis to highlight capabilities and limitations. By integrating code and QA, LLaVul enables more interpretable and security-focused code understanding.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 40 of its 58 references that are in the map. First posted on arXiv 22 Sep 2025.

Builds on

40 of 58 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoning29 Jan
  2. 2022Competition-Level Code Generation with AlphaCode8 Feb

Other references · 38

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2023GPT-4 Technical Reportcited by 18,396
  5. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  8. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  9. 2023Visual Instruction Tuningcited by 7,869
  10. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  11. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  12. 2024Qwen2 Technical Reportcited by 2,120
26 more
  1. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  2. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  3. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  4. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  5. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
  6. 2022A Systematic Evaluation of Large Language Models of Codecited by 363
  7. 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 272
  8. 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 144
  9. 2024OpenCoder: The Open Cookbook for Top-Tier Code Large Language Modelscited by 130
  10. 2023DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detectioncited by 102
  11. 2018SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilitiescited by 92
  12. 2021CVEfixes: Automated Collection of Vulnerabilities and Their Fixes from Open-Source Softwarecited by 91
  13. 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
  14. 2022SecureBERT: A Domain-Specific Language Model for Cybersecuritycited by 60
  15. 2022VulBERTa: Simplified Source Code Pre-Training for Vulnerability Detectioncited by 51
  16. 2021What do pre-trained code models know about code?cited by 36
  17. 2024Code Representation Learning At Scalecited by 26
  18. 2023Can Large Language Models Provide Security & Privacy Advice? Measuring the Ability of LLMs to Refute Misconceptionscited by 20
  19. 2023AIBugHunter: A Practical Tool for Predicting, Classifying and Repairing Software Vulnerabilitiescited by 17
  20. 2024An Empirical Study of Static Analysis Tools for Secure Code Reviewcited by 17
  21. 2024Investigating Large Language Models for Code Vulnerability Detection: An Experimental Studycited by 12
  22. 2024LProtector: An LLM-driven Vulnerability Detection Systemcited by 8
  23. 2024Assessing Generative Language Models in Classification Tasks: Performance and Self-Evaluation Capabilities in the Environmental and Climate Change Domaincited by 3
  24. 2025Evaluating LLaMA 3.2 for Software Vulnerability Detectioncited by 3
  25. 2018Evaluation of Static Analysis Tools for Finding Vulnerabilities in Java and C/C++ Source Codecited by 2
  26. 2021Ranking Warnings of Static Analysis Tools Using Representation Learningcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Three Heads Are Better Than One: A Multi-perspective Reasoning Framework for Enhanced Vulnerability Detection
  2. 2024To Err is Machine: Vulnerability Detection Challenges LLM Reasoning
  3. 2024Towards Explainable Vulnerability Detection with Large Language Models
  4. 2025VulInstruct: Teaching LLMs Root-Cause Reasoning for Vulnerability Detection via Security Specifications
  5. 2025Reasoning with LLMs for Zero-Shot Vulnerability Detection
  6. 2025VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detection
  7. 2026VulTriage: Triple-Path Context Augmentation for LLM-Based Vulnerability Detection
  8. 2025Boosting Vulnerability Detection of LLMs via Curriculum Preference Optimization with Synthetic Reasoning Data