The dual-encoder detector for AI-generated go code
Journal of King Saud University Computer and Information Sciences · 2026-07 · 38 (5)
DOI: 10.1007/s44443-026-00626-5 ↗Kurz gefasst
Fachartikel in der Zeitschrift Journal of King Saud University Computer and Information Sciences, online erschienen am 11.03.2026. Verfasst von Guozhao Liao und 6 weiteren Autor:innen. Die Arbeit nennt 39 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY-NC-ND 4.0). Gefördert von: Joint Funds of Hainan Province Science and Technology Special Fund, National Natural Science Foundation of China, Special Funds of Jiangsu Province Science and Technology Plan.
Abstract (Originalsprache)
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.
Förderung
- Joint Funds of Hainan Province Science and Technology Special Fund
- National Natural Science Foundation of China
- Special Funds of Jiangsu Province Science and Technology Plan
Zitieren
APA
Liao, G., Hou, Y., Chai, L., Yue, Q., Zhang, Q., Han, W., & Ou, W. (2026). The dual-encoder detector for AI-generated go code. Journal of King Saud University Computer and Information Sciences, 38(5). https://doi.org/10.1007/s44443-026-00626-5
Vancouver
Liao G, Hou Y, Chai L, Yue Q, Zhang Q, Han W, et al. The dual-encoder detector for AI-generated go code. Journal of King Saud University Computer and Information Sciences. 2026;38(5). doi:10.1007/s44443-026-00626-5
BibTeX
@article{Liao2026,
author = {Liao, Guozhao and Hou, Yang and Chai, Lujia and Yue, Qiuling and Zhang, Qionglu and Han, Wenbao and Ou, Wei},
title = {The dual-encoder detector for AI-generated go code},
journal = {Journal of King Saud University Computer and Information Sciences},
year = {2026},
volume = {38},
number = {5},
doi = {10.1007/s44443-026-00626-5}
}
EUVIMED