@inproceedings{orel-etal-2025-droid,
title = "$\texttt{Droid}$: A Resource Suite for {AI}-Generated Code Detection",
author = "Orel, Daniil and
Paul, Indraneil and
Gurevych, Iryna and
Nakov, Preslav",
editor = "Christodoulopoulos, Christos and
Chakraborty, Tanmoy and
Rose, Carolyn and
Peng, Violet",
booktitle = "Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing",
month = nov,
year = "2025",
address = "Suzhou, China",
publisher = "Association for Computational Linguistics",
url = "https://preview.aclanthology.org/ingest-emnlp/2025.emnlp-main.1593/",
pages = "31251--31277",
ISBN = "979-8-89176-332-6",
abstract = "We present DroidCollection, the most extensive open data suite for training and evaluating machine-generated code detectors, comprising over a million code samples, seven programming languages, outputs from 43 coding models, and three real-world coding domains. Alongside fully AI-generated examples, our collection includes human-AI co-authored code, as well as adversarial examples explicitly crafted to evade detection. Subsequently, we develop DroidDetect, a suite of encoder-only detectors trained using a multi-task objective over DroidCollection. Our experiments show that existing detectors' performance fails to generalise to diverse coding domains and programming languages outside of their narrow training data. We further demonstrate that while most detectors are easily compromised by humanising the output distributions using superficial prompting and alignment approaches, this problem can be easily amended by training on a small number of adversarial examples. Finally, we demonstrate the effectiveness of metric learning and uncertainty-based resampling as way to enhance detector training on possibly noisy distributions."
}Markdown (Informal)
[Droid: A Resource Suite for AI-Generated Code Detection](https://preview.aclanthology.org/ingest-emnlp/2025.emnlp-main.1593/) (Orel et al., EMNLP 2025)
ACL
- Daniil Orel, Indraneil Paul, Iryna Gurevych, and Preslav Nakov. 2025. Droid: A Resource Suite for AI-Generated Code Detection. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 31251–31277, Suzhou, China. Association for Computational Linguistics.