Lune

ICSE2024顶会

Towards Causal Deep Learning for Vulnerability Detection

Md Mahbubur Rahman, Ira Ceka, Chengzhi Mao, Saikat Chakraborty, Baishakhi Ray, Wei Le

摘要

Deep learning vulnerability detection has shown promising results in recent years. However, an important challenge that still blocks it from being very useful in practice is that the model is not robust under perturbation and it cannot generalize well over the out-ofdistribution (OOD) data, e.g., applying a trained model to unseen projects in real world. We hypothesize that this is because the model learned non-robust features, e.g., variable names, that have spurious correlations with labels. When the perturbed and OOD datasets no longer have the same spurious features, the model prediction fails. To address the challenge, in this paper, we introduced causality into deep learning vulnerability detection. Our approach CausalVul consists of two phases. First, we designed novel perturbations to discover spurious features that the model may use to make predictions. Second, we applied the causal learning algorithms, specifically, do-calculus, on top of existing deep learning models to systematically remove the use of spurious features and thus promote causal based prediction. Our results show that CausalVul consistently improved the model accuracy, robustness and OOD performance for all the state-of-the-art models and datasets we experimented. To the best of our knowledge, this is the first work that introduces do calculus based causal learning to software engineering models and shows it's indeed useful for improving the model accuracy, robustness and generalization. Our replication package is located at https://figshare.com/s/0ffda320dcb96c249ef2 .

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • An Empirical Study of Deep Learning Models for Vulnerability Detection 引用了 MVD: Memory-Related Vulnerability Detection Based on Flow-Sensitive Graph Neural Networks
  • An Empirical Study of Deep Learning Models for Vulnerability Detection 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • Top Score on the Wrong Exam: On Benchmarking in Machine Learning for Vulnerability Detection 引用了 Uncovering the Limits of Machine Learning for Automatic Vulnerability Detection
  • Chasing Shadows: Pitfalls in LLM Security Research 引用了 Top Score on the Wrong Exam: On Benchmarking in Machine Learning for Vulnerability Detection
  • Chasing Shadows: Pitfalls in LLM Security Research 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • Chasing Shadows: Pitfalls in LLM Security Research 引用了 GraphCodeBERT: Pre-training Code Representations with Data Flow
  • Chasing Shadows: Pitfalls in LLM Security Research 引用了 Uncovering the Limits of Machine Learning for Automatic Vulnerability Detection
  • Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving Transformations 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • Uncovering the Limits of Machine Learning for Automatic Vulnerability Detection 引用了 An Empirical Study of Deep Learning Models for Vulnerability Detection
  • Uncovering the Limits of Machine Learning for Automatic Vulnerability Detection 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • One-for-All Does Not Work! Enhancing Vulnerability Detection by Mixture-of-Experts (MoE) 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • One-for-All Does Not Work! Enhancing Vulnerability Detection by Mixture-of-Experts (MoE) 引用了 GraphCodeBERT: Pre-training Code Representations with Data Flow
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper9

  1. Uncovering the Limits of Machine Learning for Automatic Vulnerability DetectionNiklas Risse, Marcel BöhmeUSENIX Security 2024 · 63 次引用
  2. Chasing Shadows: Pitfalls in LLM Security ResearchJonathan Evertz, Niklas Risse, Nicolai Neuer, Andreas Müller 等NDSS 2026 · 17 次引用
  3. Top Score on the Wrong Exam: On Benchmarking in Machine Learning for Vulnerability DetectionNiklas Risse, Jing Liu, Marcel BöhmeISSTA 2025 · 8 次引用
  4. One-for-All Does Not Work! Enhancing Vulnerability Detection by Mixture-of-Experts (MoE)Xu Yang, Shaowei Wang, Jiayuan Zhou, Wenhan ZhuFSE 2025 · 7 次引用
  5. Code Change Intention, Development Artifact, and History Vulnerability: Putting Them Together for Vulnerability Fix Detection by LLMXu Yang, Wenhan Zhu, Michael Pacheco, Jiayuan Zhou 等FSE 2025 · 5 次引用

它引用的 Paper12

  1. CodeBERT: A Pre-Trained Model for Programming and Natural LanguagesZhangyin Feng, Daya Guo, Duyu Tang, Nan Duan 等EMNLP Findings 2020 · 2,828 次引用
  2. GraphCodeBERT: Pre-training Code Representations with Data FlowDaya Guo, Shuo Ren, Shuai Lu, Zhangyin Feng 等ICLR 2021 · 1,644 次引用
  3. An Empirical Study of Deep Learning Models for Vulnerability DetectionBenjamin Steenhoek, Md Mahbubur Rahman, Richard Jiles, Wei LeICSE 2023 · 107 次引用
  4. MVD: Memory-Related Vulnerability Detection Based on Flow-Sensitive Graph Neural NetworksSicong Cao, Xiaobing Sun, Lili Bo, Rongxin Wu 等ICSE 2022 · 100 次引用
  5. Self-Supervised Contrastive Learning for Code Retrieval and Summarization via Semantic-Preserving TransformationsNghi D. Q. Bui, Yijun Yu, Lingxiao JiangSIGIR 2021 · 98 次引用

相关 Paper

  1. A Causal Learning Framework for Enhancing Robustness of Source Code ModelsJunyao Ye, Zhen Li, Xi Tang, Deqing Zou 等FSE 2025
  2. Dataflow Analysis-Inspired Deep Learning for Efficient Vulnerability DetectionBenjamin Steenhoek, Hongyang Gao, Wei LeICSE 2024 · 54 次引用
  3. Adversarial Robustness Through the Lens of CausalityYonggang Zhang, Mingming Gong, Tongliang Liu, Gang Niu 等ICLR 2022 · 65 次引用
  4. Are We Learning the Right Features? A Framework for Evaluating DL-Based Software Vulnerability Detection SolutionsSatyaki Das, Syeda Tasnim Fabiha, Saad Shafiq, Nenad MedvidovicICSE 2025 · 1 次引用
  5. Snopy: Bridging Sample Denoising with Causal Graph Learning for Effective Vulnerability DetectionSicong Cao, Xiaobing Sun, Xiaoxue Wu, David Lo 等ASE 2024 · 2 次引用
黄昏的海面,两侧是细线勾勒的悬崖