textttDroid: A Resource Suite for AI-Generated Code Detection
Not on the map. Why?
Abstract (arXiv)
In this work, we compile textbftextttDroidCollection, 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 over three real-world coding domains. Alongside fully AI-generated samples, our collection includes human-AI co-authored code, as well as adversarial samples explicitly crafted to evade detection. Subsequently, we develop textbftextttDroidDetect, a suite of encoder-only detectors trained using a multi-task objective over textttDroidCollection. Our experiments show that existing detectors' performance fails to generalise to diverse coding domains and programming languages outside of their narrow training data. Additionally, we 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 amount of adversarial data. Finally, we demonstrate the effectiveness of metric learning and uncertainty-based resampling as means to enhance detector training on possibly noisy distributions.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 57 of its 83 references that are in the map. First posted on arXiv 11 Jul 2025.
Builds on
57 of 83 references.
References · 57
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2019Self-training with Noisy Student improves ImageNet classificationcited by 1,311
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,253
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
- 2023Large Language Modelscited by 780
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 554
38 more
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
- 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 497
- 2023How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detectioncited by 481
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 431
- 2014Deep metric learning using Triplet networkcited by 422
- 2024Scaling Synthetic Data Creation with 1,000,000,000 Personascited by 417
- 2023Can AI-Generated Text be Reliably Detected?cited by 386
- 2023Fast-DetectGPT: Efficient Zero-Shot Detection of Machine-Generated Text via Conditional Probability Curvaturecited by 287
- 2019Automatic Detection of Generated Text is Easiest when Humans are Fooledcited by 261
- 2022Efficient Training of Language Models to Fill in the Middlecited by 255
- 2019Billion-scale semi-supervised learning for image classificationcited by 232
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
- 2020Automatic Detection of Machine Generated Text: A Critical Surveycited by 166
- 2024RAID: A Shared Benchmark for Robust Evaluation of Machine-Generated Text Detectorscited by 163
- 2024Nemotron-CC: Transforming Common Crawl into a Refined Long-Horizon Pretraining Datasetcited by 160
- 2023MAGE: Machine-generated Text Detection in the Wildcited by 132
- 2022Towards Faithful Model Explanation in NLP: A Surveycited by 130
- 2023M4: Multi-generator, Multi-domain, and Multi-lingual Black-Box Machine-Generated Text Detectioncited by 121
- 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 117
- 2024A Note on Shumailov et al. (2024): `AI Models Collapse When Trained on Recursively Generated Data'cited by 115
- 2023Intrinsic Dimension Estimation for Robust Detection of AI-Generated Textscited by 112
- 2023Artificial Artificial Artificial Intelligence: Crowd Workers Widely Use Large Language Models for Text Production Taskscited by 103
- 2019The Dangers of Post-hoc Interpretability: Unjustified Counterfactual Explanationscited by 97
- 2023MGTBench: Benchmarking Machine-Generated Text Detectioncited by 93
- 2023OUTFOX: LLM-Generated Essay Detection Through In-Context Learning with Adversarially Generated Examplescited by 80
- 2024TestGenEval: A Real World Unit Test Generation and Test Completion Benchmarkcited by 52
- 2024MathCoder2: Better Math Reasoning from Continued Pretraining on Model-translated Mathematical Codecited by 39
- 2023HC3 Plus: A Semantic-Invariant Human ChatGPT Comparison Corpuscited by 35
- 2022Findings of the The RuATD Shared Task 2022 on Artificial Text Detection in Russiancited by 29
- 2023Zero-Shot Detection of Machine-Generated Codescited by 24
- 2025Rewriting Pre-Training Data Boosts LLM Performance in Math and Codecited by 21
- 2023The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generationcited by 20
- 2025DAMAGE: Detecting Adversarially Modified AI Generated Textcited by 20
- 2024Assessing AI Detectors in Identifying AI-Generated Code: Implications for Educationcited by 18
- 2024Distinguishing LLM-generated from Human-written Code by Contrastive Learningcited by 16
- 2024Multi-line AI-assisted Code Authoringcited by 13
- 2024Whodunit: Classifying Code as Human Authored or GPT-4 Generated -- A case study on CodeChef problemscited by 13
- 2025CoDet-M4: Detecting Machine-Generated Code in Multi-Lingual, Multi-Generator and Multi-Domain Settingscited by 11
50 most cited of 57 All 57 (JSON)
Built on by
Citing papers per year: 2025: 3; 2026: 6.
9 papers.
- 2025AI Code in the Wild: Measuring Security Risks and Ecosystem Shifts of AI-Generated Code in Modern Softwarecited by 4
- 2025MultiAIGCD: A Comprehensive dataset for AI Generated Code Detection Covering Multiple Languages, Models,Prompts, and Scenarioscited by 2
- 2026AICD Bench: A Challenging Benchmark for AI-Generated Code Detectioncited by 2
- 2025DuoLens: A Framework for Robust Detection of Machine-Generated Multilingual Text and Codecited by 0
- 2026Whitespaces Don't Lie: Feature-Driven and Embedding-Based Approaches for Detecting Machine-Generated Codecited by 0
- 2026mcdok at SemEval-2026 Task 13: Finetuning LLMs for Detection of Machine-Generated Codecited by 0
- 2026FMI_SU_Yotkova_Kastreva at SemEval-2026 Task 13: Lightweight Detection of LLM-Generated Code via Stylometric Signalscited by 0
- 2026HybridCodeAuthorship: A Benchmark Dataset for Line-Level Code Authorship Detectioncited by 0
- 2026Dream at SemEval-2026 Task 13: SALSA for Single-Pass Machine-Generated Code Detectioncited by 0
- 2026Dream at SemEval-2026 Task 13: SALSA for Single-Pass Machine-Generated Code Detection23 Jun 2026
- 2026HybridCodeAuthorship: A Benchmark Dataset for Line-Level Code Authorship Detection10 Jun 2026
- 2026FMI_SU_Yotkova_Kastreva at SemEval-2026 Task 13: Lightweight Detection of LLM-Generated Code via Stylometric Signals5 May 2026
- 2026mcdok at SemEval-2026 Task 13: Finetuning LLMs for Detection of Machine-Generated Code23 Apr 2026
- 2026AICD Bench: A Challenging Benchmark for AI-Generated Code Detection2 Feb 2026
- 2026Whitespaces Don't Lie: Feature-Driven and Embedding-Based Approaches for Detecting Machine-Generated Code27 Jan 2026
- 2025AI Code in the Wild: Measuring Security Risks and Ecosystem Shifts of AI-Generated Code in Modern Software21 Dec 2025
- 2025DuoLens: A Framework for Robust Detection of Machine-Generated Multilingual Text and Code21 Oct 2025
- 2025MultiAIGCD: A Comprehensive dataset for AI Generated Code Detection Covering Multiple Languages, Models,Prompts, and Scenarios29 Jul 2025