AI Paper Atlas

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

EMNLP 2024Label-efficient and robust learning › Self-supervised and contrastiveapproach: Inductive bias and minimal representations19 citations (OpenAlex)

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 changedWhereMeasuredEffect
add hierarchical contrastive learning (no max-pooling) (ablation)CodeBERT · Big-Vulaccuracy: 63.19 -> 66.92Improved
add hierarchical contrastive learning (no max-pooling) (ablation)CodeBERT · PrimeVulaccuracy: 48.98 -> 53.13Improved
add self-supervised contrastive loss on top of HCL (no max-pooling) (ablation)CodeBERT · Big-Vulaccuracy: 66.92 -> 68.31Improved
add self-supervised contrastive loss on top of HCL (no max-pooling) (ablation)CodeBERT · PrimeVulaccuracy: 53.13 -> 57.10Improved
add max-pooling to expand input length (ablation)CodeBERT · Big-Vulaccuracy: 63.19 -> 63.24Improved
add max-pooling to expand input length (ablation)CodeBERT · PrimeVulaccuracy: 48.98 -> 49.42Improved
add max-pooling on top of HCL + USCL (ablation)CodeBERT · PrimeVulaccuracy: 57.10 -> 58.12Improved
apply hierarchical contrastive framework to CodeBERT versus plain CodeBERTCodeBERT · Big-Vulaccuracy: 63.19 -> 69.06Improved
apply framework to CodeBERT versus plain CodeBERTCodeBERT · PrimeVulweighted F1: 28.54 -> 41.24Improved
vary contrastive loss weight lambda (ablation)Ours · Big-VulaccuracyNo clear effect
vary mu between 0.1 and 0.5 (ablation)Ours · Big-VulaccuracyNo clear effect
few-shot and CoT prompting instead of zero-shot for GPT-4oGPT-4o · random 100 samplesaccuracy: 22% -> 34%Improved

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy