Research map / Label-efficient and robust learning / Self-supervised and contrastive
Applying Contrastive Learning to Code Vulnerability Type Classification
Chen Ji, Su Yang, Hongyu Sun, Yuqing Zhang
Xidian University · University of Chinese Academy of Science · Hainan University
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
10improved
2no clear effect
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add hierarchical contrastive learning (no max-pooling) (ablation) | CodeBERT · Big-Vul | accuracy: 63.19 -> 66.92 | Improved |
| add hierarchical contrastive learning (no max-pooling) (ablation) | CodeBERT · PrimeVul | accuracy: 48.98 -> 53.13 | Improved |
| add self-supervised contrastive loss on top of HCL (no max-pooling) (ablation) | CodeBERT · Big-Vul | accuracy: 66.92 -> 68.31 | Improved |
| add self-supervised contrastive loss on top of HCL (no max-pooling) (ablation) | CodeBERT · PrimeVul | accuracy: 53.13 -> 57.10 | Improved |
| add max-pooling to expand input length (ablation) | CodeBERT · Big-Vul | accuracy: 63.19 -> 63.24 | Improved |
| add max-pooling to expand input length (ablation) | CodeBERT · PrimeVul | accuracy: 48.98 -> 49.42 | Improved |
| add max-pooling on top of HCL + USCL (ablation) | CodeBERT · PrimeVul | accuracy: 57.10 -> 58.12 | Improved |
| apply hierarchical contrastive framework to CodeBERT versus plain CodeBERT | CodeBERT · Big-Vul | accuracy: 63.19 -> 69.06 | Improved |
| apply framework to CodeBERT versus plain CodeBERT | CodeBERT · PrimeVul | weighted F1: 28.54 -> 41.24 | Improved |
| vary contrastive loss weight lambda (ablation) | Ours · Big-Vul | accuracy | No clear effect |
| vary mu between 0.1 and 0.5 (ablation) | Ours · Big-Vul | accuracy | No clear effect |
| few-shot and CoT prompting instead of zero-shot for GPT-4o | GPT-4o · random 100 samples | accuracy: 22% -> 34% | Improved |
Closest papers by meaning
- Code Vulnerability Detection via Nearest Neighbor Mechanism (EMNLP 2022 · similarity 0.87)
- Efficient Availability Attacks against Supervised and Contrastive Learning Simultaneously (NeurIPS 2024 · similarity 0.84)
- SecCodePRM: A Process Reward Model for Code Security (ICML 2026 · similarity 0.83)
- CODE REPRESENTATION LEARNING AT SCALE (ICLR 2024 · similarity 0.82)
- Uncertainty-Aware Contrastive Learning with Hard Negative Sampling for Code Search Tasks (AAAI 2025 · similarity 0.82)
- RustMizan: A Compilable, Contamination-Aware Benchmarking Framework for Rust Vulnerabilities (NeurIPS 2026 · similarity 0.82)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
