Research map / Large language models / Agents, code and math
CoDet-M4: Detecting Machine-Generated Code in Multi-Lingual, Multi-Generator and Multi-Domain Settings
Daniil Orel, Dilshod Azizov, Preslav Nakov
Mohamed bin Zayed University of Artificial Intelligence
Read the paperPlace an idea next to itCheck your own paper ↗
10measured effects
3improved
2no clear effect
5hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use pre-trained code encoders instead of handcrafted-feature models | CodeBERT/CodeT5/UniXcoder vs SVM/CatBoost · CoDet-M4 binary detection | macro F1: 72.19 (SVM) -> 98.65 (UniXcoder) | Improved |
| test on unseen programming languages | UniXcoder · Unseen languages vs in-distribution | macro F1: 98.65 -> 88.96 | Hurt |
| test on unseen domains (MBPP, The Vault) | UniXcoder · unseen domains vs in-distribution | macro F1: 98.65 -> 55.01 | Hurt |
| test on unseen code generators | UniXcoder · unseen models | macro F1: 93.22 (still high) | No clear effect |
| prompt GPT-4o to detect AI code instead of fine-tuned detectors | GPT-4o · CoDet-M4 binary detection | macro F1: 98.65 (UniXcoder) vs 41.53 (GPT-4o 1-shot) | Hurt |
| add 3-shot examples instead of 1-shot to GPT-4o prompt (ablation) | GPT-4o · CoDet-M4 binary detection | macro F1: 41.53 -> 40.91 | No clear effect |
| test on hybrid-authorship code with binary-trained model | UniXcoder · hybrid generation | macro F1: 39.36 (hybrid) vs 98.65 (binary) | Hurt |
| fine-tune on ternary labels including hybrid class | UniXcoder · hybrid-aware ternary classification | macro F1: 39.36 -> 86.10 | Improved |
| use CodeT5 instead of UniXcoder on unseen domains (ablation) | UniXcoder · Unseen domains | macro F1: 55.01 -> 58.22 | Improved |
| change source to MBPP (unseen source and format) from The Vault (unseen structure only) (ablation) | UniXcoder · Unseen domains | macro F1: 63.38 -> 44.48 | Hurt |
Open problems this paper states
- “Covers only Java, C++ and Python, and mostly function- and class-level code, which limits generalization to other languages and snippet-level code.” → Tested on Python or a few languages, so other languages are untested. (an open problem in code generation benchmarks)
Open problems in code generation benchmarks
Do code benchmarks and methods hold beyond Python, small test sets and leaked data?
- Tested on Python or a few languages, so other languages are untested. · 25 papers state it
- Benchmarks are small, with a few dozen to a few hundred problems. · 14 papers state it
- Iterative or multi-step methods cost more tokens, latency and compute. · 12 papers state it
Closest papers by meaning
- Uncovering LLM-Generated Code: A Zero-Shot Synthetic Code Detector via Code Rewriting (AAAI 2025 · similarity 0.89)
- ChatGPT-Generated Code Assignment Detection Using Perplexity of Large Language Models (Student Abstract) (AAAI 2024 · similarity 0.89)
- Detecting AI-Generated Code Assignments Using Perplexity of Large Language Models (AAAI 2024 · similarity 0.89)
- LLM-Assisted Code Cleaning For Training Accurate Code Generators (ICLR 2024 · similarity 0.88)
- LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code (ICLR 2025 · similarity 0.88)
- EvoCodeBench: An Evolving Code Generation Benchmark with Domain-Specific Evaluations (NeurIPS 2024 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.