Research map / Vision-language and multimodal / CLIP and zero-shot
CLeVeR: Multi-modal Contrastive Learning for Vulnerability Code Representation
Jiayuan Li, Lei Cui, Sen Zhao, Yun Yang, Lun Li, Hongsong Zhu
Chinese Academy of Sciences · University of Chinese Academy of Sciences · Beijing University of Posts and Telecommunications
Read the paperPlace an idea next to itCheck your own paper ↗
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.
This paper tried a common change: Add a contrastive loss
add contrastive learning (CLIP) with descriptions to CodeBERT · RealData · F1 (%): 56.45 -> 61.83 Improved
What 1,804 accepted papers report for this change
- 1,706 improved
- 42 no clear effect
- 21 mixed
- 35 hurt
- Beyond Looking Up, Try Looking Around: Harmonizing Global Structure and Local Consistency in Optimal Transport for Short Text Clustering ICML 2026 · add contrastive learning · SearchSnippets · ACC: 56.65 -> 80.12Improved
- SleepLM: Natural-Language Intelligence for Human Sleep ICML 2026 · add contrastive objective to captioning (CoCa vs Cap) · sleep event IoU · IoU: 29.2 -> 27.4Hurt
- LIMSSR: LLM-Driven Sequence-to-Score Reasoning under Training-Time Incomplete Multimodal Observations ICML 2026 · add contrastive loss L_con · FS1000 average · Spearman correlation: 0.759 -> 0.789Improved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use CLeVeR instead of the best prior method | vulnerability detection · RealData | F1 (%): 60.97 -> 72.82 | Improved |
| add contrastive learning (CLIP) with descriptions to CodeBERT (ablation) | CodeBERT baseline · RealData | F1 (%): 56.45 -> 61.83 | Improved |
| add a generative model on descriptions instead of contrastive learning (ablation) | CodeBERT baseline · RealData | F1 (%): 56.45 -> 59.22 | Improved |
| add the Adapter (ablation) | CLeVeR · RealData | F1 (%): 68.56 -> 72.82 | Improved |
| add the Representation Refinement module (ablation) | CLeVeR · RealData | F1 (%): 63.20 -> 72.82 | Improved |
| add the Description Simulator (ablation) | CLeVeR · RealData | F1 (%): 65.87 -> 72.82 | Improved |
| zero-shot inference via description prompts instead of fine-tuned linear probe | CLeVeR · RealData | F1 (%): 72.82 -> 65.89 | Hurt |
| set lambda1 to 0 (use only refined code representation, no original [CLS]) (ablation) | CLeVeR · RealData / VCLData-ft | F1 / weighted-F1 | Hurt |
| set lambda0 to 0.3 instead of 0.25 (ablation) | CLeVeR · detection vs classification | F1 / weighted-F1: +0.03% weighted-F1 (classification), -1.75% F1 (detection) | Mixed |
| use CLeVeR instead of LLM-based detectors | vulnerability detection · RealData | F1 (%): 60.96 -> 72.82 (vs best LLM-based, VSP) | Improved |
| train classification with only 1% of data | CLeVeR · VCLData-ft top-10 CWE | weighted-F1 (%): 74.87 at 1% vs 80.34 at 100% | Improved |
Open problems in attribute-based zero-shot learning
How can zero-shot attribute and CLIP methods work without hand tuning, outside seen domains and across backbones?
- Key settings are hand-chosen and tuned on the evaluation data. · 15 papers state it
- The method depends on an external LLM that is often closed-source. · 11 papers state it
- Results come from one vision-language backbone. · 8 papers state it
Closest papers by meaning
- Applying Contrastive Learning to Code Vulnerability Type Classification (EMNLP 2024 · similarity 0.90)
- Generalization-Enhanced Code Vulnerability Detection via Multi-Task Instruction Fine-Tuning (ACL 2024 · similarity 0.88)
- Boosting Vulnerability Detection of LLMs via Curriculum Preference Optimization with Synthetic Reasoning Data (ACL 2025 · similarity 0.87)
- Contrastive Code Representation Learning (EMNLP 2021 · similarity 0.86)
- MulVul: Retrieval-augmented Multi-Agent Code Vulnerability Detection via Cross-Model Prompt Evolution (ACL 2026 · similarity 0.86)
- SecCodePRM: A Process Reward Model for Code Security (ICML 2026 · similarity 0.84)
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.