ASTraNet at SemEval-2026 Task 13: Not All Code Looks the Same: Multi-View Structural and Semantic Detection of Machine-Generated Code

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

Summary

ASTraNet is a system designed to detect machine-generated code, addressing challenges in code quality, security, and authorship verification arising from large language models. Presented at SemEval-2026 Task 13, the system integrates three code-pretrained transformer encoders—CodeT5p-220M, CodeBERT, and UniXcoder—with a structure-first Flow-Augmented AST (FA-AST) encoder, implemented as a Gated Graph Neural Network. This multi-view approach aims to handle unseen programming languages, code generators, and application domains. For Subtask A, ASTraNet's best single model achieved a macro F1 score of 0.559, which improved to 0.643 using a post-competition layered rank-fusion ensemble. In Subtask C, the system officially scored 0.585, further enhanced to 0.652 through a three-stage ensemble that combines neural probabilities with LightGBM-based features and class-priority routing. Its contributions include a language-agnostic structural detector and a meta-learner stacking pipeline for multi-class detection under distribution shift.

Key takeaway

For AI Security Engineers or Machine Learning Engineers tasked with verifying code authorship or quality, ASTraNet's multi-view structural and semantic detection system offers a robust approach. You should consider integrating diverse transformer encoders and graph neural networks for comprehensive code analysis. Employing ensemble strategies, like rank-fusion or meta-learner stacking, can significantly boost detection accuracy, especially when facing unseen languages or code generators, mitigating risks associated with machine-generated code.

Key insights

ASTraNet combines structural and semantic analysis with ensemble methods to detect machine-generated code effectively across diverse contexts.

Principles

Method

The system combines three transformer encoders (CodeT5p-220M, CodeBERT, UniXcoder) with a Gated Graph Neural Network-based FA-AST encoder. It uses layered rank-fusion for binary classification and a three-stage ensemble with LightGBM for multi-class detection.

In practice

Topics

Best for: Research Scientist, AI Scientist, Machine Learning Engineer, AI Security Engineer

Related on AIssential

Open in AIssential →

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