mlsanityData to 7 Oct 2026

Detection of LLM-Generated Java Code Using Discretized Nested Bigrams

arXiv 2502.15740 ↗First posted 7 Feb 2025cs.SE cs.AI cs.CLcited by 2

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) are currently used extensively to generate code by professionals and students, motivating the development of tools to detect LLM-generated code for applications such as academic integrity and cybersecurity. We address this authorship attribution problem as a binary classification task along with feature identification and extraction. We propose new Discretized Nested Bigram Frequency features on source code groups of various sizes. Compared to prior work, improvements are obtained by representing sparse information in dense membership bins. Experimental evaluation demonstrated that our approach significantly outperformed a commonly used GPT code-detection API and baseline features, with accuracy exceeding 96% compared to 72% and 79% respectively in detecting GPT-rewritten Java code fragments for 976 files with GPT 3.5 and GPT4 using 12 features. We also outperformed three prior works on code author identification in a 40-author dataset. Our approach scales well to larger data sets, and we achieved 99% accuracy and 0.999 AUC for 76,089 files and over 1,000 authors with GPT 4o using 227 features.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 3 of its 15 references that are in the map. First posted on arXiv 7 Feb 2025.

Builds on

3 of 15 references.

References · 3

  1. 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,120
  2. 2020When Ensembling Smaller Models is More Efficient than Single Large Modelscited by 19
  3. 2021MalBERT: Using Transformers for Cybersecurity and Malicious Software Detectioncited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.