LAFED at SemEval-2026 Task 13: Language-Agnostic Feature Engineering for Cross-Lingual AI-Generated Code Detection

Juan Villate Lemus


Abstract
Robust detection of AI-generated source code across programming languages remains challenging due to language-specific cues and train–test distribution shifts. We present LAFED (Language-Agnostic Feature Engineering Detector), a feature-engineering approach trained on {Python, Java, C++} and evaluated on a multilingual test set that includes unseen languages {C, C#, Go, JavaScript, PHP}. LAFED combines (i) structural skeletal features (indentation, control-flow density, and approximations of McCabe/Halstead complexity), (ii) character and whitespace statistics inspired by stylometry, and (iii) micro-style patterns (operator spacing, blank lines, indentation consistency). Using XGBoost (Chen and Guestrin, 2016) with Optuna hyperparameter search (Akiba et al., 2019), our best model achieves macro-F1=0.7570 on a 1,000-sample test set; the official submission obtains macro-F1=0.75209 (5th place in Subtask A). Per-language analysis shows strong transfer to C# (0.7753) and JavaScript (0.7683), but weaker performance on Go (0.6400) and PHP (0.5238).
Anthology ID:
2026.semeval-1.9
Volume:
Proceedings of the 20th International Workshop on Semantic Evaluation (2026)
Month:
July
Year:
2026
Address:
San Diego, California, USA
Editors:
Ekaterina Kochmar, Debanjan Ghosh, Kai North, Mamoru Komachi
Venues:
SemEval | WS
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
59–64
Language:
URL:
https://preview.aclanthology.org/ingest-acl-workshops/2026.semeval-1.9/
DOI:
Bibkey:
Cite (ACL):
Juan Villate Lemus. 2026. LAFED at SemEval-2026 Task 13: Language-Agnostic Feature Engineering for Cross-Lingual AI-Generated Code Detection. In Proceedings of the 20th International Workshop on Semantic Evaluation (2026), pages 59–64, San Diego, California, USA. Association for Computational Linguistics.
Cite (Informal):
LAFED at SemEval-2026 Task 13: Language-Agnostic Feature Engineering for Cross-Lingual AI-Generated Code Detection (Villate Lemus, SemEval 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl-workshops/2026.semeval-1.9.pdf
Supplementarymaterial:
 2026.semeval-1.9.SupplementaryMaterial.zip