Nahid Niyaz Shovon
2026
TeamOmega at SemEval-2026 Task 13: Frozen vs. Trainable Representations for Out-of-Distribution AI-Generated Code Detection: A CodeBERT Fine-Tuning Study
Nahid Niyaz Shovon | Md. Naim Parvez
Proceedings of the 20th International Workshop on Semantic Evaluation (2026)
Nahid Niyaz Shovon | Md. Naim Parvez
Proceedings of the 20th International Workshop on Semantic Evaluation (2026)
We propose a CodeBERT-based system for detecting AI-generated code under severe cross-language and cross-domain distribution shift. Our approach conducts a controlled comparison between a fully frozen backbone and a partially fine-tuned configuration that unfreezes only the final transformer layer with discriminative learning rates. While partial fine-tuning substantially improves in-domain performance, the frozen backbone demonstrates stronger robustness under out-of-distribution evaluation. Our results highlight a trade-off between task adaptation and cross-language generalization in machine-generated code detection.