Udaythalavesh S
2026
SemEval-2026 Task 13: Fine-tuned CodeBERT with Stratified Balancing, Dynamic Threshold Optimization, and Logit Bias Correction for Robust Multi-Language AI Code Detection
Udaythalavesh S | Rajalakshmi Sivanaiah | Angel Deborah S
Proceedings of the 20th International Workshop on Semantic Evaluation (2026)
Udaythalavesh S | Rajalakshmi Sivanaiah | Angel Deborah S
Proceedings of the 20th International Workshop on Semantic Evaluation (2026)
We present a CodeBERT-based system for detecting AI-generated code in SemEval-2026 Task 13 Subtask A. To address class imbalance and model overconfidence, we apply stratified balanced subsampling, dynamic per-epoch F1-macro threshold optimization, and label-flip bias correction. The model is trained using TPU-accelerated fine-tuning and achieves a validation F1-macro of 0.874 and a private leaderboard F1-macro of 0.53. Ablation studies confirm the effectiveness of our balancing and calibration strategies under distribution shift.