Source Code Authorship Attribution Does Not Generalize from Competitions to Classrooms
Serhii Yemets, Marek Horváth
Abstract
Source code authorship attribution aims to identify the author of a program fragment from its writing style. We fine-tune the pre-trained transformer CodeBERT on three sources of data: publicly available Google Code Jam (GCJ) submissions from an open Kaggle repository, a curated GCJ archive, and institutional coursework datasets collected at a technical university. On multi-round GCJ data, CodeBERT reaches 92.6% Top-1 accuracy for 10 authors and retains 70.7% Top-1 (88.2% Top-10) for 1000 authors. On the examined coursework datasets, the same pipeline performs at or below the corresponding chance baselines: 0.2% Top-1 on a closed-assignment dataset of 690 authors and 0.06% Top-1 on open-ended assignments evaluated over 812 authors. A companion multi-model benchmark provides consistent cross-model evidence across additional dataset configurations, indicating that the observed performance gap is not specific to CodeBERT and persists across the evaluated model families. We analyze dataset and task properties that plausibly explain this gap and argue that GCJ-based benchmarks overestimate the practical applicability of authorship attribution in educational settings unless they are validated on the target coursework context.
Create a lesson
Related papers
Revisiting the Survival of Agent-Attributed Code: How Measurement Choices Decide the Verdict
Shared title terminology · Musfiqur Rahman, Mahi Begoug, Emad Shihab
Beyond Source Code: Evaluating Natural Language Specifications for LLM-Based C-to-Rust Translation
Shared title terminology · Biruk Tadesse, Lawrence Arkoh, Marcelo D'Amorim et al.
AgenTag: Attribution of AI Coding Agents from Behavioral Fingerprints
Shared title terminology · Taher A. Ghaleb
Structural Validation of LLM-Generated Microservice Decompositions Using Source-Code Dependencies
Shared title terminology · Daniel Silva, Renan Alves, Emanuel Dantas Filho et al.
A First Look at Coding Agents' Compliance with AI Contribution Rules in Open-Source Communities
Shared title terminology · Wenhao Yang, Runzhi He, Minghui Zhou
Git History Is a Pangenome: Repetition in Code Training Corpora and What Deduplication Removes, Keeps and Misses
Shared title terminology · Saurabh Chopra