paper-with-me

홈 › Papers

ZC3: Zero-Shot Cross-Language Code Clone Detection

2023-08-26 · Chongyang Tao, Zhi Jin, Fang Liu, Jia Li, Ge Li

Developers introduce code clones to improve programming productivity. Many existing studies have achieved impressive performance in monolingual code clone detection. However, during software development, more and more developers write semantically equivalent programs with different languages to support different platforms and help developers translate projects from one language to another. Considering that collecting cross-language parallel data, especially for low-resource languages, is expensive and time-consuming, how designing an effective cross-language model that does not rely on any parallel data is a significant problem. In this paper, we propose a novel method named ZC3 for Zero-shot Cross-language Code Clone detection. ZC3 designs the contrastive snippet prediction to form an isomorphic representation space among different programming languages. Based on this, ZC3 exploits domain-aware learning and cycle consistency learning to further constrain the model to generate representations that are aligned among different languages meanwhile are diacritical for different types of clones. To evaluate our approach, we conduct extensive experiments on four representative cross-language clone detection datasets. Experimental results show that ZC3 outperforms the state-of-the-art baselines by 67.12%, 51.39%, 14.85%, and 53.01% on the MAP score, respectively. We further investigate the representational distribution of different languages and discuss the effectiveness of our method.

📄 PDF Abstract BibTeX arXiv:2308.13754

Code (1)

lairikeqia/zc3 공식 구현 pytorch

Tasks

Clone DetectionLanguage Modelling

Similar Papers 제목 키워드 기반

Investigating the Efficacy of Large Language Models for Code Clone Detection

2024-01-24 · Mohamad Khajezade, Jie JW Wu, Fatemeh Hendijani Fard, Gema Rodríguez-Pérez 외

Large Language Models (LLMs) have demonstrated remarkable success in various natural language processing and software engineering tasks, such as code generation. The LLMs are mainly utilized in the prompt-based zero/few-…

Clone DetectionCode Comment GenerationCode GenerationComment Generation

Low-Burden Data Augmentation for Dysarthric ASR via Zero-Shot Voice Cloning

2026-06-18 · Satwinder Singh, Qianli Wang, Zihan Zhong, Clarion Mendes 외 arxiv

Automatic speech recognition remains unreliable for dysarthric speech due to data scarcity and high inter-speaker variability. While synthetic data can address these gaps, traditional methods often require extensive spea…

Speech RecognitionData Augmentation

Neuro-symbolic Zero-Shot Code Cloning with Cross-Language Intermediate Representation

2023-04-26 · Krishnam Hasija, Shrishti Pradhan, Manasi Patwardhan, Raveendra Kumar Medicherla 외

In this paper, we define a neuro-symbolic approach to address the task of finding semantically similar clones for the codes of the legacy programming language COBOL, without training data. We define a meta-model that is …

C++ codeCode Search

Type-IV Code Clone Detection via Layer-Wise Non-Contrastive Representation Learning

2026-09-15 · Luciano Marchezan, Kevin Delcourt, Eugene Syriani, Houari Sahraoui arxiv

Software clones are fragments of code that are similar or functionally equivalent to each other. They pose significant challenges for maintenance, refactoring, and bug detection. Detecting Type-IV clones, which are seman…

Representation LearningContrastive Learning

CloneShield: A Framework for Universal Perturbation Against Zero-Shot Voice Cloning

2025-05-25 · Renyuan Li, Zhibo Liang, Haichuan Zhang, Tianyu Shi 외

Recent breakthroughs in text-to-speech (TTS) voice cloning have raised serious privacy concerns, allowing highly accurate vocal identity replication from just a few seconds of reference audio, while retaining the speaker…

text-to-speechText to SpeechVoice Cloning