mlsanityData to 14 Oct 2026

I Know Which LLM Wrote Your Code Last Summer: LLM generated Code Stylometry for Authorship Attribution

arXiv 2506.17323 ↗First posted 18 Jun 2025cs.LG cs.AI cs.SEcited by 9

Not on the map. Why?

Abstract (arXiv)

Detecting AI-generated code, deepfakes, and other synthetic content is an emerging research challenge. As code generated by Large Language Models (LLMs) becomes more common, identifying the specific model behind each sample is increasingly important. This paper presents the first systematic study of LLM authorship attribution for C programs. We released CodeT5-Authorship, a novel model that uses only the encoder layers from the original CodeT5 encoder-decoder architecture, discarding the decoder to focus on classification. Our model's encoder output (first token) is passed through a two-layer classification head with GELU activation and dropout, producing a probability distribution over possible authors. To evaluate our approach, we introduce LLM-AuthorBench, a benchmark of 32,000 compilable C programs generated by eight state-of-the-art LLMs across diverse tasks. We compare our model to seven traditional ML classifiers and eight fine-tuned transformer models, including BERT, RoBERTa, CodeBERT, ModernBERT, DistilBERT, DeBERTa-V3, Longformer, and LoRA-fine-tuned Qwen2-1.5B. In binary classification, our model achieves 97.56% accuracy in distinguishing C programs generated by closely related models such as GPT-4.1 and GPT-4o, and 95.40% accuracy for multi-class attribution among five leading LLMs (Gemini 2.5 Flash, Claude 3.5 Haiku, GPT-4.1, Llama 3.3, and DeepSeek-V3). To support open science, we release the CodeT5-Authorship architecture, the LLM-AuthorBench benchmark, and all relevant Google Colab scripts on GitHub: https://github.com/LLMauthorbench/.

Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 29 of its 68 references that are in the map. First posted on arXiv 18 Jun 2025.

Builds on

29 of 68 references.

References · 29

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  5. 2020Longformer: The Long-Document Transformercited by 3,413
  6. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  7. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  8. 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,254
  9. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  10. 2023DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvaturecited by 726
  11. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  12. 2018code2vec: Learning Distributed Representations of Codecited by 250
17 more
  1. 2023How Secure is Code Generated by ChatGPT?cited by 81
  2. 2024Authorship Attribution in the Era of LLMs: Problems, Methodologies, and Challengescited by 47
  3. 2019Explainable Authorship Verification in Social Media via Attention-based Similarity Learningcited by 37
  4. 2019Misleading Authorship Attribution of Source Code using Adversarial Learningcited by 33
  5. 2024How secure is AI-generated Code: A Large-Scale Comparison of Large Language Modelscited by 24
  6. 2024A Survey of AI-generated Text Forensic Systems: Detection, Attribution, and Characterizationcited by 19
  7. 2024Assessing AI Detectors in Identifying AI-Generated Code: Implications for Educationcited by 18
  8. 2015When Coding Style Survives Compilation: De-anonymizing Programmers from Executable Binariescited by 11
  9. 2025Marking Code Without Breaking It: Code Watermarking for Detecting LLM-Generated Codecited by 10
  10. 2024Is The Watermarking Of LLM-Generated Code Robust?cited by 8
  11. 2022BinMLM: Binary Authorship Verification with Flow-aware Mixture-of-Shared Language Modelcited by 6
  12. 2025I Can Find You in Seconds! Leveraging Large Language Models for Code Authorship Attributioncited by 6
  13. 2025CodeMirage: A Multi-Lingual Benchmark for Detecting AI-Generated and Paraphrased Source Code from Production-Level LLMscited by 6
  14. 2025Detection of LLM-Paraphrased Code and Identification of the Responsible LLM Using Coding Style Featurescited by 4
  15. 2025CodeVision: Detecting LLM-Generated Code Using 2D Token Probability Maps and Vision Modelscited by 3
  16. 2022Dev2vec: Representing Domain Expertise of Developers in an Embedding Spacecited by 2
  17. 2025Detection of LLM-Generated Java Code Using Discretized Nested Bigramscited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 7.

9 papers.