The dual-encoder detector for AI-generated go code

Recently, the technological iteration of our method has played a significant role in promoting the automation of software engineering, especially in code generation. However, the increasing prevalence of Al-generated code also poses potential risks to code quality, security, intellectual property, and academic integrity. Although existing research has focused on AI-generated code detection, current methods have not paid sufficient attention to the Go programming language. Furthermore, most methods rely on a single model or homogeneous features, limiting the capacity to capture the features of AI-generated code in multiple dimensions, including semantics and syntax. To tackle these issues, this paper proposes a Dual-Encoder detector for AI-generated Go code. This method constructs a Dual-Encoder feature fusion framework, utilizing encoders from two code models, CodeBERT and UniXcoder, to extract complementary features from the semantic and syntactic dimensions of the code, thereby more effectively identifying Al-generated code. Extensive experimental results show that in terms of the F1 indicator, our method outperforms other baseline methods. Compared with the strongest baselines on each dataset, this model outperforms by approximately 7.6% in average F1 score on the Go language datasets generated by GPT-3.5-Turbo, CodeLlama-34B, and WizardCoder-34B. It also performs well on the dataset generated by WizardCoder-15B. This research helps identify AI-generated code in codebases, thereby supporting code review and security policy development. It can also enhance code traceability and the clarity of intellectual property, contributing to maintaining fairness and academic integrity in educational and research environments. Moreover, it also provides a new framework for detecting AI-generated code.

Authors

Institutions

Publication Details

Journal
Journal of King Saud University - Computer and Information Sciences
Published
2026-03-11
DOI
https://doi.org/10.1007/s44443-026-00626-5
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

The dual-encoder detector for AI-generated go code

Qionglu Zhang, Qiuling Yue, Yang Hou, Lujia Chai et al.
Journal of King Saud University - Computer and Information Sciences
Software Engineering Research
article

The dual-encoder detector for AI-generated go code

Qionglu Zhang, Qiuling Yue, Yang Hou, Lujia Chai, Guozhao Liao, Wenbao Han, Wei Ou
article en

Abstract

Recently, the technological iteration of our method has played a significant role in promoting the automation of software engineering, especially in code generation. However, the increasing prevalence of Al-generated code also poses potential risks to code quality, security, intellectual property, and academic integrity. Although existing research has focused on AI-generated code detection, current methods have not paid sufficient attention to the Go programming language. Furthermore, most methods rely on a single model or homogeneous features, limiting the capacity to capture the features of AI-generated code in multiple dimensions, including semantics and syntax. To tackle these issues, this paper proposes a Dual-Encoder detector for AI-generated Go code. This method constructs a Dual-Encoder feature fusion framework, utilizing encoders from two code models, CodeBERT and UniXcoder, to extract complementary features from the semantic and syntactic dimensions of the code, thereby more effectively identifying Al-generated code. Extensive experimental results show that in terms of the F1 indicator, our method outperforms other baseline methods. Compared with the strongest baselines on each dataset, this model outperforms by approximately 7.6% in average F1 score on the Go language datasets generated by GPT-3.5-Turbo, CodeLlama-34B, and WizardCoder-34B. It also performs well on the dataset generated by WizardCoder-15B. This research helps identify AI-generated code in codebases, thereby supporting code review and security policy development. It can also enhance code traceability and the clarity of intellectual property, contributing to maintaining fairness and academic integrity in educational and research environments. Moreover, it also provides a new framework for detecting AI-generated code.

Journal of King Saud University - Computer and Information Sciences
Hainan University (CN), Institute of Information Engineering (CN), National Supercomputing Center in Wuxi (CN)
Openalex Percentile: Top 44%
Software Engineering Research
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.