MINDS at SemEval-2026-Task 13: Robust Detection of Machine-Generated Code under Distribution Shift
Summary
The MINDS team's empirical study for SemEval-2026 Task 13 addresses the increasing difficulty of distinguishing machine-generated code from human-written code, especially when facing distribution shifts in language, domain, and generator family. The task comprises three subtasks: binary detection, multi-class authorship attribution, and hybrid/adversarial code detection. The study compared several approaches, including frozen encoder representations, feature-based classifiers, fine-tuned transformer models, post-hoc calibration, and probability-level ensembling. A significant finding was a consistent generalization gap, where strong in-domain validation scores substantially overestimated actual performance under shifted test conditions. This highlights the challenge of robustly detecting machine-generated code in real-world scenarios. The code for their work is publicly available on GitHub.
Key takeaway
For Machine Learning Engineers deploying code generation detection models, you must rigorously test your systems against diverse distribution shifts. Relying solely on in-domain validation scores will significantly overestimate real-world performance. Prioritize developing and evaluating models for robust generalization, exploring ensemble methods or post-hoc calibration to mitigate this consistent gap.
Key insights
The core challenge is robustly detecting machine-generated code under distribution shifts, as in-domain performance overestimates real-world generalization.
Principles
- Distribution shifts severely impact code detection.
- In-domain validation scores are misleading.
- Multiple detection approaches show generalization gaps.
Method
The study empirically compared frozen encoder representations, feature-based classifiers, fine-tuned transformer models, post-hoc calibration, and probability-level ensembling across three subtasks: binary, multi-class, and hybrid code detection.
In practice
- Evaluate code detection models on shifted data.
- Consider ensembling for improved robustness.
- Explore post-hoc calibration techniques.
Topics
- Machine Code Detection
- Distribution Shift
- SemEval-2026 Task 13
- Code Authorship
- Transformer Models
Code references
Best for: Research Scientist, AI Scientist, Machine Learning Engineer, NLP Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Paper Index on ACL Anthology.