Königsberg at SemEval-2026 Task 13: Beyond Language Models: A Low-Resource Feature-Driven and Data-Flow Embedding Approach for Machine-Generated Code Detection
Summary
Königsberg's hybrid detection framework, developed for SemEval-2026 Task 13, addresses the increasing need for reliable detection of machine-generated code, particularly from Large Language Models (LLMs). This low-resource approach avoids the computational overhead of end-to-end fine-tuning large models. It combines a comprehensive feature extraction pipeline, which calculates interpretable software metrics capturing stylistic and structural code properties, with frozen embeddings extracted from GraphCodeBERT's pre-trained encoder to model semantic and data-flow information. This fusion enables efficient detection across multiple programming languages (Python, C++, Java, and Go) and improves robustness in out-of-distribution settings, achieving an F1-score of 38.26.
Key takeaway
Machine Learning Engineers developing code integrity tools should consider hybrid, low-resource approaches that combine traditional software metrics with frozen embeddings from models like GraphCodeBERT. This strategy offers a computationally efficient alternative to expensive LLM fine-tuning, providing robust detection across multiple languages (Python, C++, Java, Go) and out-of-distribution settings. Prioritize methods that balance performance with operational cost.
Key insights
A hybrid framework efficiently detects machine-generated code using software metrics and frozen GraphCodeBERT embeddings, avoiding LLM fine-tuning overhead.
Principles
- Combine feature engineering with pre-trained embeddings.
- Prioritize computational efficiency in detection.
- Ensure cross-language and OOD robustness.
Method
The framework extracts interpretable software metrics for stylistic and structural code properties, then fuses these with frozen semantic and data-flow embeddings from a pre-trained GraphCodeBERT encoder for detection.
In practice
- Use GraphCodeBERT for frozen code embeddings.
- Extract software metrics for code style analysis.
- Apply hybrid detection to Python, C++, Java, Go.
Topics
- Machine-Generated Code Detection
- Low-Resource AI
- GraphCodeBERT
- Software Metrics
- Code Analysis
- SemEval-2026 Task 13
Best for: Research Scientist, AI Scientist, Machine Learning Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Paper Index on ACL Anthology.