Mohana Ravikumar
2026
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
Proceedings of the 20th International Workshop on Semantic Evaluation (2026)
Aldan Creo | Atharv Nair | Mohana Ravikumar | Vaishak Menon | Dario Wisznewer | Vaibhav Jain
Proceedings of the 20th International Workshop on Semantic Evaluation (2026)
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.