CLAVE: A Deep Learning Model for Source Code Authorship Verification with Contrastive Learning and Transformer Encoders (JOURNAL FIRST)
Source code authorship verification involves determining whether two code fragments are written by the same programmer. It has many uses, including malware authorship analysis, copyright dispute resolution and plagiarism detection. Source code authorship verification is challenging because it must generalize to code written by programmers not included in its training data. In this paper, we present CLAVE (Contrastive Learning for Authorship Verification with Encoder representations), a novel deep learning model for source code authorship verification that leverages contrastive learning and a Transformer Encoder-based architecture. We initially pre-train CLAVE on a dataset of 270,602 Python source code files extracted from GitHub. Subsequently, we fine-tune CLAVE for authorship verification using contrastive learning on Python submissions from 61,956 distinct programmers in Google Code Jam and Kick Start competitions. This approach allows the model to learn stylometric representations of source code, enabling comparison via vector distance for authorship verification. CLAVE achieves an AUC of 0.9782, reduces the error of the state-of-the-art source code authorship verification systems by at least 23.4% and improves the AUC of cutting-edge source code LLMs by 21.9% to 40%. We also evaluate the main components of CLAVE on its AUC performance improvement: pre-training (1.8%), loss function (0.2%-2.8%), input length (0.1%-0.7%), model size (0.2%), and tokenizer (0.1%-0.7%).
Wed 13 MayDisplayed time zone: Eastern Time (US & Canada) change
17:00 - 18:30 | 3a Advances in Program Analysis, Fuzzing, and Code IntelligenceCIbSE 2026 (Main Track) at Edificio 3, Aula 401 Chair(s): María José Escalona University of Seville | ||
17:00 15mVision and Emerging Results | Automated Fuzz Driver Generation for Java via Search-Based Testing: A Preliminary Study CIbSE 2026 (Main Track) Leo Fernandes Federal Institute of Alagoas (IFAL), Juvenal Andrade de Carvalho University of Porto, Portugal, Andre Catarino Faculty of Engineering, University of Porto, José Campos Faculty of Engineering of the University of Porto, Portugal, Elvys Soares Federal Institute of Alagoas (IFAL), Rui Abreu University of Porto | ||
17:15 15mPaper | CLAVE: A Deep Learning Model for Source Code Authorship Verification with Contrastive Learning and Transformer Encoders (JOURNAL FIRST) CIbSE 2026 (Main Track) | ||
17:30 30mFull-paper | A Survey of Fuzzing Tools for JavaScript Engines CIbSE 2026 (Main Track) Bruno Goncalves de Oliveira UFPR, Silvia Regina Vergilio Federal University of Paraná, Andre Takeshi Endo Federal University of São Carlos | ||
18:00 30mFull-paper | Towards Hybrid and Reusable Type Inference for Dynamically-Typed Languages CIbSE 2026 (Main Track) Larisa Safina INRIA Lillle - Nord Europe | ||