Detection of LLM-Paraphrased Code and Identification of the Responsible LLM Using Coding Style Features
Not on the map. Why?
Abstract (arXiv)
Recent progress in large language models (LLMs) for code generation has raised serious concerns about intellectual property protection. Malicious users can exploit LLMs to produce paraphrased versions of proprietary code that closely resemble the original. While the potential for LLM-assisted code paraphrasing continues to grow, research on detecting it remains limited, underscoring an urgent need for detection system. We respond to this need by proposing two tasks. The first task is to detect whether code generated by an LLM is a paraphrased version of original human-written code. The second task is to identify which LLM is used to paraphrase the original code. For these tasks, we construct a dataset LPcode consisting of pairs of human-written code and LLM-paraphrased code using various LLMs. We statistically confirm significant differences in the coding styles of human-written and LLM-paraphrased code, particularly in terms of naming consistency, code structure, and readability. Based on these findings, we develop LPcodedec, a detection method that identifies paraphrase relationships between human-written and LLM-generated code, and discover which LLM is used for the paraphrasing. LPcodedec outperforms the best baselines in two tasks, improving F1 scores by 2.64% and 15.17% while achieving speedups of 1,343x and 213x, respectively. Our code and data are available at https://github.com/Shinwoo-Park/detecting_llm_paraphrased_code_via_coding_style_features.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 23 of its 31 references that are in the map. First posted on arXiv 25 Feb 2025.
Builds on
23 of 31 references.
References · 23
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2023DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvaturecited by 726
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 479
- 2023Paraphrasing evades detectors of AI-generated text, but retrieval is an effective defensecited by 429
- 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 300
- 2023Who Wrote this Code? Watermarking for Code Generationcited by 141
- 2024Dataflow-Guided Retrieval Augmentation for Repository-Level Code Completioncited by 40
- 2024Language Models for Code Completion: A Practical Evaluationcited by 39
- 2022How Large Language Models are Transforming Machine-Paraphrased Plagiarismcited by 38
11 more
- 2024Between Lines of Code: Unraveling the Distinct Patterns of Machine and Human Programmerscited by 27
- 2024Revisiting Code Similarity Evaluation with Abstract Syntax Tree Edit Distancecited by 26
- 2023Zero-Shot Detection of Machine-Generated Codescited by 24
- 2023A Ship of Theseus: Curious Cases of Paraphrasing in LLM-Generated Textscited by 23
- 2024InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translationcited by 16
- 2021Challenging Machine Learning-based Clone Detectors via Semantic-preserving Code Transformationscited by 15
- 2023Evaluating AIGC Detectors on Code Contentcited by 12
- 2023GPTCloneBench: A comprehensive benchmark of semantic clones and cross-language clones using GPT-3 model and SemanticCloneBenchcited by 11
- 2025ExeCoder: Empowering Large Language Models with Executability Representation for Code Translationcited by 10
- 2023Is this Snippet Written by ChatGPT? An Empirical Study with a CodeBERT-Based Classifiercited by 6
- 2024CC2Vec: Combining Typed Tokens with Contrastive Learning for Effective Code Clone Detectioncited by 4
Built on by
Citing papers per year: 2025: 3; 2026: 1.
4 papers.
- 2025I Know Which LLM Wrote Your Code Last Summer: LLM generated Code Stylometry for Authorship Attributioncited by 9
- 2026AICD Bench: A Challenging Benchmark for AI-Generated Code Detectioncited by 2
- 2025code_transformed: The Influence of Large Language Models on Codecited by 0
- 2025Bin2Vec: Interpretable and Auditable Multi-View Binary Analysis for Code Plagiarism Detectioncited by 0
- 2026AICD Bench: A Challenging Benchmark for AI-Generated Code Detection2 Feb 2026
- 2025Bin2Vec: Interpretable and Auditable Multi-View Binary Analysis for Code Plagiarism Detection1 Dec 2025
- 2025I Know Which LLM Wrote Your Code Last Summer: LLM generated Code Stylometry for Authorship Attribution18 Jun 2025
- 2025code_transformed: The Influence of Large Language Models on Code13 Jun 2025