GRM-012 (TCC) Transformer Embedded Synthetic Source Code Multiclass Classification

Recent advances in large language models have significantly increased their capability to write code. While tools such as ChatGPT are useful and represent increased efficiency for many programmers, they represent a major issue when used in academically dishonest ways. To solve the problem of identifying code written by language models, we offer a novel, light-weight classification solution based on a transformer architecture. We compare the performance of three separate transformer models (GraphCodeBERT, PLBART, and CodeBERT) for tokenization and processing and then perform classification using a random forest classifier. Preliminary results indicate that the GraphCodeBERT-based model has a 100% test and train accuracy on detecting human or AI generated code and PLBART has 100% train with 95% test F1-score on categories of AI generators like chatbot, model, IDE extension, or human

Publication Details

Journal
DigitalCommons - Kennesaw State University (Kennesaw State University)
Published
2025-04-15
Primary Topic
Superconducting and THz Device Technology
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

GRM-012 (TCC) Transformer Embedded Synthetic Source Code Multiclass Classification

DigitalCommons - Kennesaw State University (Kennesaw State University)
Superconducting and THz Device Technology
article

GRM-012 (TCC) Transformer Embedded Synthetic Source Code Multiclass Classification

article en

Abstract

Recent advances in large language models have significantly increased their capability to write code. While tools such as ChatGPT are useful and represent increased efficiency for many programmers, they represent a major issue when used in academically dishonest ways. To solve the problem of identifying code written by language models, we offer a novel, light-weight classification solution based on a transformer architecture. We compare the performance of three separate transformer models (GraphCodeBERT, PLBART, and CodeBERT) for tokenization and processing and then perform classification using a random forest classifier. Preliminary results indicate that the GraphCodeBERT-based model has a 100% test and train accuracy on detecting human or AI generated code and PLBART has 100% train with 95% test F1-score on categories of AI generators like chatbot, model, IDE extension, or human

DigitalCommons - Kennesaw State University (Kennesaw State University)
Quality Education
Openalex Percentile: Top 53%
Superconducting and THz Device Technology
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

GRM-012 (TCC) Transformer Embedded Synthetic Source Code Multiclass Classification · DigitalCommons - Kennesaw State University (Kennesaw State University) (2025) | TGRS Research Map | TGRS