NUST CodeIntel at SemEval-2026 Task 13: Cross-Domain Detection of Machine-Generated Code via Stylometric Features and Transformer Models

· Source: Paper Index on ACL Anthology · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Expert, quick

Summary

NUST CodeIntel submitted a system to SemEval-2026 Task 13, focusing on cross-language and cross-domain detection of machine-generated code. Their research compared the performance of LoRA-tuned transformer encoders against TF-IDF-based models incorporating stylometric features. While transformer models demonstrated near-perfect performance on in-distribution data, they experienced significant degradation when faced with unseen languages and domains. Conversely, a simpler TF-IDF combined with a Logistic Regression model achieved the best test Macro-F1 score, exhibiting superior robustness across different distributions. These findings underscore the challenges neural models face with distribution shift and emphasize the effectiveness of lexical baselines for achieving strong cross-domain generalization in code detection tasks.

Key takeaway

For AI Scientists developing machine-generated code detection systems, prioritize robust lexical baselines like TF-IDF with Logistic Regression over complex transformer models. While transformers offer high in-distribution performance, their sharp degradation on unseen languages and domains makes them less reliable for cross-domain applications. Focus on evaluating generalization capabilities across diverse data distributions to ensure practical utility and avoid deployment failures.

Key insights

Lexical baselines outperform transformer models in cross-domain detection of machine-generated code due to superior robustness.

Principles

Method

The study compared TF-IDF-based models with stylometric features against LoRA-tuned transformer encoders for machine-generated code detection.

In practice

Topics

Best for: Research Scientist, AI Scientist

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Paper Index on ACL Anthology.