paper-with-me

홈 › Papers

Source Code is a Graph, Not a Sequence: A Cross-Lingual Perspective on Code Clone Detection

2023-12-27 · Mohammed Ataaur Rahaman, Julia Ive

Source code clone detection is the task of finding code fragments that have the same or similar functionality, but may differ in syntax or structure. This task is important for software maintenance, reuse, and quality assurance (Roy et al. 2009). However, code clone detection is challenging, as source code can be written in different languages, domains, and styles. In this paper, we argue that source code is inherently a graph, not a sequence, and that graph-based methods are more suitable for code clone detection than sequence-based methods. We compare the performance of two state-of-the-art models: CodeBERT (Feng et al. 2020), a sequence-based model, and CodeGraph (Yu et al. 2023), a graph-based model, on two benchmark data-sets: BCB (Svajlenko et al. 2014) and PoolC (PoolC no date). We show that CodeGraph outperforms CodeBERT on both data-sets, especially on cross-lingual code clones. To the best of our knowledge, this is the first work to demonstrate the superiority of graph-based methods over sequence-based methods on cross-lingual code clone detection.

📄 PDF Abstract BibTeX arXiv:2312.16488

Code (0)

등록된 구현이 없습니다.

Tasks

Clone Detection

Methods 이 논문이 사용한 방법론

CodeBERT 설명 없음

Similar Papers 제목 키워드 기반

Massively Multilingual Neural Grapheme-to-Phoneme Conversion

2017-08-04 · WS 2017 9 · Ben Peters, Jon Dehdari, Josef van Genabith

Grapheme-to-phoneme conversion (g2p) is necessary for text-to-speech and automatic speech recognition systems. Most g2p systems are monolingual: they require language-specific data or handcrafting of rules. Such systems …

Automatic Speech RecognitionAutomatic Speech Recognition (ASR)DecoderGrapheme-to-Phoneme Conversion+4

Multilingual Speech Recognition for Low-Resource Indian Languages using Multi-Task conformer

2021-08-22 · Krishna D N

Transformers have recently become very popular for sequence-to-sequence applications such as machine translation and speech recognition. In this work, we propose a multi-task learning-based transformer model for low-reso…

DecoderMachine TranslationMulti-Task LearningPhoneme Recognition+3

Cross-Lingual Natural Language Generation via Pre-Training

2019-09-23 · Zewen Chi, Li Dong, Furu Wei, Wenhui Wang 외

In this work we focus on transferring supervision signals of natural language generation (NLG) tasks between multiple languages. We propose to pretrain the encoder and the decoder of a sequence-to-sequence model under bo…

Abstractive Text SummarizationCross-Lingual TransferDecoderMachine Translation+5

Generative Models Enhanced by Sequence Labelling and Aspect-Code Switching Improve Cross-lingual Aspect-Based Sentiment Analysis

2026-08-31 · Jakub Šmíd, Pavel Přibáň, Pavel Král arxiv

Cross-lingual aspect-based sentiment analysis (ABSA) transfers knowledge from a source language with annotated data to a target language, enabling fine-grained sentiment analysis without annotated target-language data. W…

Sentiment Analysis

Cross-Lingual Abstractive Summarization with Limited Parallel Resources

2021-05-28 · ACL 2021 5 · Yu Bai, Yang Gao, Heyan Huang

Parallel cross-lingual summarization data is scarce, requiring models to better use the limited available cross-lingual resources. Existing methods to do so often adopt sequence-to-sequence networks with multi-task frame…

Abstractive Text SummarizationCross-Lingual Abstractive SummarizationDecoderTransfer Learning