Joint Geometrical and Statistical Domain Adaptation for Cross-domain Code Vulnerability Detection (2023.emnlp-main)
Copied to clipboard
| Challenge: | Existing approaches to detect code vulnerability are limited by labeled training data on target domains. |
| Approach: | They propose a cross-domain code vulnerability detection framework called MNCRI . they propose mutual nearest neighbor contrastive learning to align the source and target domains . |
| Outcome: | The proposed framework outperforms state-of-the-art methods in cross-domain code vulnerability detection tasks. |
Similar Papers
Code Vulnerability Detection via Nearest Neighbor Mechanism (2022.findings-emnlp)
Copied to clipboard
| Challenge: | Existing methods to learn code semantics from source code are difficult to identify. |
| Approach: | They propose a method which retrieves multiple neighbor samples and utilizes label information to provide help for model predictions. |
| Outcome: | Extensive experiments show that the proposed method can achieve obvious performance improvements compared to baseline models. |
Tighter Clusters, Safer Code? Improving Vulnerability Detection with Enhanced Contrastive Loss (2025.naacl-srw)
Copied to clipboard
| Challenge: | a recent study shows that supervised contrastive learning (SCL) improves embedding separation but struggles with intra-class clustering . code vulnerability detection is a cornerstone of software security, especially as the world undergoes rapid digitization. |
| Approach: | They propose an extension of SCL with a distance-based regularization term that tightens intra-class clustering while maintaining inter-class separation. |
| Outcome: | The proposed method improves F1 score on CodeBERT and GraphCodeBERT with BCE, BCE + SCL, and BCE+ CESCL. |
Applying Contrastive Learning to Code Vulnerability Type Classification (2024.emnlp-main)
Copied to clipboard
| Challenge: | Recent approaches to classification of vulnerabilities ignore their relationships and treat each class in isolation, resulting in non-scalable code vector representations. |
| Approach: | They propose a hierarchical contrastive learning framework to bring vector representations of related CWEs closer together and use max-pooling to enable the model to handle longer vulnerability code inputs. |
| Outcome: | The proposed framework outperforms state-of-the-art methods by 2.97%-17.90% on accuracy and 0.98%-22.27% on weighted-F1 with even better performance on higher-quality datasets. |
CLeVeR: Multi-modal Contrastive Learning for Vulnerability Code Representation (2025.findings-acl)
Copied to clipboard
| Challenge: | Existing methods for detecting code capture the overall semantics of the code rather than its intrinsic vulnerability-specific semantics. |
| Approach: | They propose an approach that leverages contrastive learning to generate precise vulnerability code representations under the supervision of vulnerability descriptions. |
| Outcome: | The proposed approach outperforms state-of-the-art methods in vulnerability detection tasks by 11.85% and 13.61%. |
Improving Cross-domain, Cross-lingual and Multi-modal Deception Detection (2022.acl-srw)
Copied to clipboard
| Challenge: | Deception detection is a deliberate choice to mislead to gain some advantage or avoid some penalty. |
| Approach: | They propose to use inter-domain distance to identify suitable source domain for a given target domain to improve cross-domain deception classification and to better understand multi-modal deception detection. |
| Outcome: | The proposed methods will be able to detect deception in cross-domain, cross-lingual and multi-modal settings and will improve multi-modular deception classification. |
Contrastive Language Adaptation for Cross-Lingual Stance Detection (D19-1)
Copied to clipboard
| Challenge: | Current approaches to fact-checking are time-consuming and tedious. |
| Approach: | They propose a novel approach which leverages labeled data in one language to identify relative perspective of a document with respect to a claim in a different target language. |
| Outcome: | The proposed approach can deal with the challenge of limited labeled data in the target language. |
Domain Confused Contrastive Learning for Unsupervised Domain Adaptation (2022.naacl-main)
Copied to clipboard
| Challenge: | Existing studies on domain-shifting adaptations have focused on domain . |
| Approach: | They propose a self-supervised approach to unsupervised domain adduction using domain puzzles to bridge the source and target domains and retain discriminative representations after adaptation. |
| Outcome: | The proposed approach outperforms baselines and further ablation studies show that it is more stable and effective when performing other data augmentations. |
Weighed Domain-Invariant Representation Learning for Cross-domain Sentiment Analysis (2020.coling-main)
Copied to clipboard
| Challenge: | Cross-domain sentiment analysis is a hot topic in research and industry . domain-invariant representation learning (DIRL) is used to learn a feature representation across domains . but, when label distribution P(Y) shifts across domain, it degrades performance . |
| Approach: | They propose a domain-invariant representation learning framework to improve cross-domain sentiment analysis performance. |
| Outcome: | The proposed model is easy to transfer existing models to the proposed model. |
Domain Generalization for Text Classification with Memory-Based Supervised Contrastive Learning (2022.coling-1)
Copied to clipboard
| Challenge: | Existing approaches to cross-domain text classification focus on one-to-one domain adaptation. |
| Approach: | They propose a framework for domain generalization that uses contrastive learning with a memory-saving queue. |
| Outcome: | The proposed framework outperforms state-of-the-art methods on Amazon review sentiment datasets and rumour detection datasets. |
Improving Cross-lingual Transfer with Contrastive Negative Learning and Self-training (2024.lrec-main)
Copied to clipboard
| Challenge: | Recent studies improve cross-lingual transfer learning by better aligning the internal representations within the multilingual model or exploring the information of the target language using self-training. |
| Approach: | They propose to use negative pairs to align the multilingual model and self-train the model to converge on the obtained clean pseudo-labels. |
| Outcome: | The proposed method improves upon the baseline models and can serve as a beneficial complement to the alignment-based methods. |