SSN-CSE-CODECATALYSTS at SemEval-2026 Task 13: Integrating Transformer Semantics and AST-Derived Structural Features for AI-Generated Code Detection.
Summary
SSN-CSE-CODECATALYSTS presented a hybrid neural architecture at SemEval-2026 Task 13 for AI-generated code detection, addressing limitations of pre-trained transformers in multi-lingual code classification. This architecture integrates CodeBERT's semantic embeddings with explicit structural features derived from Abstract Syntax Trees (ASTs) using tree-sitter. The approach incorporates handcrafted software engineering metrics and a Head+Tail truncation strategy to manage long code sequences, preserving crucial logic. Key AST features extracted include maximum depth, branching factor, and cyclomatic complexity. This method aims to provide a robust and scalable solution for enhanced code classification by fusing dense language model representations with structural heuristics, specifically targeting the challenges of deep structural complexities and sequence length constraints.
Key takeaway
For Machine Learning Engineers developing code classification or AI-generated code detection systems, you should integrate structural features like Abstract Syntax Tree (AST) metrics with transformer-based semantic embeddings. This hybrid approach, utilizing tools such as tree-sitter and a Head+Tail truncation strategy, overcomes sequence length limitations. It also addresses deep structural complexity challenges, leading to more robust and scalable solutions for multi-lingual code analysis.
Key insights
Fusing transformer semantics with AST-derived structural features improves multi-lingual code classification and AI-generated code detection.
Principles
- Transformers struggle with long code sequences.
- Explicit structural features enhance code understanding.
- Hybrid models improve code classification robustness.
Method
A hybrid neural architecture fuses CodeBERT semantic embeddings with handcrafted software engineering metrics and AST features (max depth, branching factor, cyclomatic complexity) extracted via tree-sitter, using a Head+Tail truncation strategy.
In practice
- Use CodeBERT for semantic embeddings.
- Extract AST features with tree-sitter.
- Apply Head+Tail truncation for long code.
Topics
- AI-Generated Code Detection
- Transformer Models
- Abstract Syntax Tree
- Code Classification
- Semantic Embeddings
- Software Engineering Metrics
- tree-sitter
Best for: AI Engineer, 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.