mlsanityData to 14 Oct 2026

Learning Generalizable Multimodal Representations for Software Vulnerability Detection

arXiv 2604.25711 ↗First posted 28 Apr 2026cs.SE cs.AIcited by 0

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  3. 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
  4. 2023Qwen Technical Reportcited by 3,344
  5. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  6. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  7. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  8. 2019EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Taskscited by 807
  9. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  10. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  11. 2021A Survey of Data Augmentation Approaches for NLPcited by 409
  12. 2022Multimodal Learning with Transformers: A Surveycited by 400
23 more
  1. 2021Data Augmentation Can Improve Robustnesscited by 194
  2. 2020Deep Learning based Vulnerability Detection: Are We There Yet?cited by 144
  3. 2021Multimodal Contrastive Training for Visual Representation Learningcited by 124
  4. 2023DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detectioncited by 102
  5. 2019Adversarial Examples for Models of Codecited by 63
  6. 2021Self-Supervised Bug Detection and Repaircited by 59
  7. 2023Understanding the Effectiveness of Large Language Models in Detecting Security Vulnerabilitiescited by 59
  8. 2024Gramian Multimodal Representation Learning and Alignmentcited by 54
  9. 2022VulBERTa: Simplified Source Code Pre-Training for Vulnerability Detectioncited by 51
  10. 2020Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving Transformationscited by 49
  11. 2021On the Evaluation of Neural Code Summarizationcited by 48
  12. 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 47
  13. 2015SourcererCC: Scaling Code Clone Detection to Big Codecited by 40
  14. 2020Adversarial Robustness for Codecited by 38
  15. 2023On the Generalization of Multi-modal Contrastive Learningcited by 30
  16. 2024Generalization-Enhanced Code Vulnerability Detection via Multi-Task Instruction Fine-Tuningcited by 30
  17. 2021Bridging Pre-trained Models and Downstream Tasks for Source Code Understandingcited by 28
  18. 2020Code Smells and Refactoring: A Tertiary Systematic Review of Challenges and Observationscited by 18
  19. 2023CoF-CoT: Enhancing Large Language Models with Coarse-to-Fine Chain-of-Thought Prompting for Multi-domain NLU Taskscited by 18
  20. 2024Code Needs Comments: Enhancing Code LLMs with Comment Augmentationcited by 16
  21. 2023Boosting Source Code Learning with Text-Oriented Data Augmentation: An Empirical Studycited by 5
  22. 2022On the Effectiveness of Hybrid Pooling in Mixup-Based Graph Learning for Language Processingcited by 2
  23. 2024GenCode: A Generic Data Augmentation Framework for Boosting Deep Learning-Based Code Understandingcited by 2

Built on by

Not cited yet.