Discriminating Human-authored from ChatGPT-Generated Code Via Discernable Feature Analysis
Not on the map. Why?
Abstract (arXiv)
The ubiquitous adoption of Large Language Generation Models (LLMs) in programming has underscored the importance of differentiating between human-written code and code generated by intelligent models. This paper specifically aims to distinguish code generated by ChatGPT from that authored by humans. Our investigation reveals disparities in programming style, technical level, and readability between these two sources. Consequently, we develop a discriminative feature set for differentiation and evaluate its efficacy through ablation experiments. Additionally, we devise a dataset cleansing technique, which employs temporal and spatial segmentation, to mitigate the dearth of datasets and to secure high-caliber, uncontaminated datasets. To further enrich data resources, we employ "code transformation," "feature transformation," and "feature customization" techniques, generating an extensive dataset comprising 10,000 lines of ChatGPT-generated code. The salient contributions of our research include: proposing a discriminative feature set yielding high accuracy in differentiating ChatGPT-generated code from human-authored code in binary classification tasks; devising methods for generating extensive ChatGPT-generated codes; and introducing a dataset cleansing strategy that extracts immaculate, high-grade code datasets from open-source repositories, thus achieving exceptional accuracy in code authorship attribution tasks.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). First posted on arXiv 26 Jun 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 2; 2024: 1; 2025: 3; 2026: 1.
7 papers.
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
- 2025textttDroid: A Resource Suite for AI-Generated Code Detectioncited by 9
- 2024ChatGPT Code Detection: Techniques for Uncovering the Source of Codecited by 6
- 2026Tracing the Data Trail: A Survey of Data Provenance, Transparency and Traceability in LLMscited by 3
- 2023UID as a Guiding Metric for Automated Authorship Obfuscationcited by 1
- 2025On Developers' Self-Declaration of AI-Generated Code: An Analysis of Practicescited by 1
- 2025What Makes Code Generation Ethically Sourced?cited by 0
- 2026Tracing the Data Trail: A Survey of Data Provenance, Transparency and Traceability in LLMs19 Jan 2026
- 2025What Makes Code Generation Ethically Sourced?26 Jul 2025
- 2025textttDroid: A Resource Suite for AI-Generated Code Detection11 Jul 2025
- 2025On Developers' Self-Declaration of AI-Generated Code: An Analysis of Practices23 Apr 2025
- 2024ChatGPT Code Detection: Techniques for Uncovering the Source of Code24 May 2024
- 2023UID as a Guiding Metric for Automated Authorship Obfuscation5 Nov 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Review21 Aug 2023