Learning Generalizable Multimodal Representations for Software Vulnerability Detection
Not on the map. Why?
Abstract (arXiv)
Source code and its accompanying comments are complementary yet naturally aligned modalities-code encodes structural logic while comments capture developer intent. However, existing vulnerability detection methods mostly rely on single-modality code representations, overlooking the complementary semantic information embedded in comments and thus limiting their generalization across complex code structures and logical relationships. To address this, we propose MultiVul, a multimodal contrastive framework that aligns code and comment representations through dual similarity learning and consistency regularization, augmented with diverse code-text pairs to improve robustness. Experiments on widely adopted DiverseVul and Devign datasets across four large language models (LLMs) (i.e., DeepSeek-Coder-6.7B, Qwen2.5-Coder-7B, StarCoder2-7B, and CodeLlama-7B) show that MultiVul achieves up to 27.07% F1 improvement over prompting-based methods and 13.37% over code-only Fine-Tuning, while maintaining comparable inference efficiency.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 35 of its 76 references that are in the map. First posted on arXiv 28 Apr 2026.
Builds on
35 of 76 references.
References · 35
- 2017Attention Is All You Needcited by 60,361
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
- 2023Qwen Technical Reportcited by 3,344
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2019EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Taskscited by 807
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
- 2021A Survey of Data Augmentation Approaches for NLPcited by 409
- 2022Multimodal Learning with Transformers: A Surveycited by 400
23 more
- 2021Data Augmentation Can Improve Robustnesscited by 194
- 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 144
- 2021Multimodal Contrastive Training for Visual Representation Learningcited by 124
- 2023DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detectioncited by 102
- 2019Adversarial Examples for Models of Codecited by 63
- 2021Self-Supervised Bug Detection and Repaircited by 59
- 2023Understanding the Effectiveness of Large Language Models in Detecting Security Vulnerabilitiescited by 59
- 2024Gramian Multimodal Representation Learning and Alignmentcited by 54
- 2022VulBERTa: Simplified Source Code Pre-Training for Vulnerability Detectioncited by 51
- 2020Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving Transformationscited by 49
- 2021On the Evaluation of Neural Code Summarizationcited by 48
- 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 47
- 2015SourcererCC: Scaling Code Clone Detection to Big Codecited by 40
- 2020Adversarial Robustness for Codecited by 38
- 2023On the Generalization of Multi-modal Contrastive Learningcited by 30
- 2024Generalization-Enhanced Code Vulnerability Detection via Multi-Task Instruction Fine-Tuningcited by 30
- 2021Bridging Pre-trained Models and Downstream Tasks for Source Code Understandingcited by 28
- 2020Code Smells and Refactoring: A Tertiary Systematic Review of Challenges and Observationscited by 18
- 2023CoF-CoT: Enhancing Large Language Models with Coarse-to-Fine Chain-of-Thought Prompting for Multi-domain NLU Taskscited by 18
- 2024Code Needs Comments: Enhancing Code LLMs with Comment Augmentationcited by 16
- 2023Boosting Source Code Learning with Text-Oriented Data Augmentation: An Empirical Studycited by 5
- 2022On the Effectiveness of Hybrid Pooling in Mixup-Based Graph Learning for Language Processingcited by 2
- 2024GenCode: A Generic Data Augmentation Framework for Boosting Deep Learning-Based Code Understandingcited by 2
Built on by
Not cited yet.