Skip to content
Preprint

Source Code Authorship Attribution Does Not Generalize from Competitions to Classrooms

Jul 2026 · 0 citations · 18 references
Computer Science

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.

View source

Similar papers

#natural language process... Preprint Sep 2026

Forging LLM Authorship Fingerprints with Targeted Rewriting

Model-attribution classifiers can often identify which language model produced a text, making model-specific writing patterns a signal of provenance. Accurate attribution on unmodified text, however, does not show whether the prediction still identifies the original source after deliberate rewriting. We formulate this...

Hao-Han Yuan, Si-Min Chen, Xi Niu et al. · 0 citations
Open access Aug 2026

Detecting AI-Generated Text and Code: An Empirical Study of Cross-Generator and Cross-Domain Generalization

A paired-prompt benchmark for human-versus-machine detection across English text, Python code, and mixed text–code documents shows that reliable deployment requires cross-domain evaluation, mixed-content testing, and calibration beyond in-distribution accuracy.

Neethika Alluri, Pardha Saradhi Varma Gottumukkala, H. Indukuri · 0 citations
Preprint Aug 2026

PersonalBench: Measuring the Authorship Gap in LLM Personalization

PersonalBench is introduced, a benchmark that evaluates inference-time personalization methods through three independent lenses: LUAR (a trained authorship verification model), an LLM-as-judge, and automated stylometrics, which finds that personalization methods do produce author-differentiated output but this differen...

Yashwant Sawant · 1 citation
#artificial intelligence Preprint Aug 2026

Writing Style Similarity Reflects Academic Genealogy

A corpus of arXiv authors with solo papers from the Mathematics Genealogy Project graph is built, giving 5 total authors and ground-truth advisor-student pairings, where advisors sit closer in cosine distance to their students than a random same-field author does.

Cameron Manzo · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.