COODetect at SemEval-2026 Task 13: Unsupervised Latent Domain Adaptation for Out-of-Distribution AI Code Detection

Aldan Creo, Atharv Nair, Mohana Ravikumar, Vaishak Menon, Dario Wisznewer, Vaibhav Jain


Abstract
The widespread use of AI-generated code raises questions about software maintenance and academic integrity. However, tools to detect it are still in their infancy. In this article, we explore the issue of out-of-distribution (OOD) detection; while embedder models like CodeBERT can easily achieve high accuracies in the context of their training data, they are unable to properly generalize to unseen contexts or programming languages. We argue that this is caused by an overfitting of such models to the training distribution, e.g. memorizing a language’s "AI syntax" instead of the true generative artifacts, and develop a approach that is able to naturally generalize to completely unseen languages and domains. Our system is also considerably more interpretable than the deep neural alternatives. In particular, we propose three orthogonal views (lexical, structural, and symbolic) to capture the AI-generated code’s indicators. To deal with OOD shift, we normalize the scores per language with Z-scoring and a Gaussian Mixture Model to remove the language bias automatically. We test our approach on the SemEval-2026 Task 13 dataset, where our experiments reached a macro F1 of 0.602 compared to the task baseline of 0.305, demonstrating the generalization capabilities of our system. We make our source code and data available at https://github.com/ACMCMC/COODetect.
Anthology ID:
2026.semeval-1.187
Volume:
Proceedings of the 20th International Workshop on Semantic Evaluation (2026)
Month:
July
Year:
2026
Address:
San Diego, California, USA
Editors:
Ekaterina Kochmar, Debanjan Ghosh, Kai North, Mamoru Komachi
Venues:
SemEval | WS
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
1443–1450
Language:
URL:
https://preview.aclanthology.org/ingest-acl-workshops/2026.semeval-1.187/
DOI:
Bibkey:
Cite (ACL):
Aldan Creo, Atharv Nair, Mohana Ravikumar, Vaishak Menon, Dario Wisznewer, and Vaibhav Jain. 2026. COODetect at SemEval-2026 Task 13: Unsupervised Latent Domain Adaptation for Out-of-Distribution AI Code Detection. In Proceedings of the 20th International Workshop on Semantic Evaluation (2026), pages 1443–1450, San Diego, California, USA. Association for Computational Linguistics.
Cite (Informal):
COODetect at SemEval-2026 Task 13: Unsupervised Latent Domain Adaptation for Out-of-Distribution AI Code Detection (Creo et al., SemEval 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl-workshops/2026.semeval-1.187.pdf
Supplementarymaterial:
 2026.semeval-1.187.SupplementaryMaterial.zip