Analyzing Code Provenance in LLMs for Programming Education
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) play an increasing role in programming education, challenging traditional assessment methods as they can generate fully functional code instantly. This disrupts the reliability of student submissions as indicators of learning and effort. To address this issue, code provenance is essential for tracing the origins of code and distinguishing student-authored, AI-generated, and externally sourced components. We extend the Min-K% probability approach by incorporating synthetic non-member code generation and apply it to Python code for membership inference and provenance tracking. Evaluations cover free LLMs such as GPT-2, DistilGPT-2, and DialoGPT, as well as state-of-the-art commercial models including GPT-5, Gemini 2.5, Mistral, DeepSeek, and LLaMA 3.3. Before evaluating our approach on higher-education student assignments, we validate its feasibility using Stack Overflow data. The results show that free models enable more sensitive code memorization detection than commercial models. By systematically comparing these LLMs, we assess trade-offs between detection accuracy and privacy protection, taking an initial step toward effective assessment of AI-assisted programming education through combined provenance detection and process visibility.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 18 of its 36 references that are in the map. Submitted 6 Nov 2026.
Builds on
18 of 36 references.
References · 18
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,336
- 2020Extracting Training Data from Large Language Modelscited by 2,267
- 2023Detecting Pretraining Data from Large Language Modelscited by 417
- 2024Do Membership Inference Attacks Work on Large Language Models?cited by 212
- 2024On Protecting the Data Privacy of Large Language Models (LLMs): A Surveycited by 107
- 2022Bayesian Estimation of Differential Privacycited by 39
- 2024Revisiting Code Similarity Evaluation with Abstract Syntax Tree Edit Distancecited by 29
- 2024Can We Trust Large Language Models Generated Code? A Framework for In-Context Learning, Security Patterns, and Code Evaluations Across Diverse LLMscited by 22
- 2024Semantic Membership Inference Attack against Large Language Modelscited by 18
- 2022"It would work for me too": How Online Communities Shape Software Developers' Trust in AI-Powered Code Generation Toolscited by 15
- 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Searchcited by 14
- 2025Are Large Language Models Robust in Understanding Code Against Semantics-Preserving Mutations?cited by 10
6 more
- 2021Academic Source Code Plagiarism Detection by Measuring Program Behavioural Similaritycited by 5
- 2024Enhancing Cross-Language Code Translation via Task-Specific Embedding Alignment in Retrieval-Augmented Generationcited by 5
- 2022A Systematic Literature Review on the Impact of Formatting Elements on Code Legibilitycited by 3
- 2025The Lazy Student's Dream: ChatGPT Passing an Engineering Course on Its Owncited by 3
- 2025Semantic-Preserving Transformations as Mutation Operators: A Study on Their Effectiveness in Defect Detectioncited by 3
- 2025The Failure of Plagiarism Detection in Competitive Programmingcited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Uncovering Pretraining Code in LLMs: A Syntax-Aware Attribution Approach
- 2025CodeMirage: A Multi-Lingual Benchmark for Detecting AI-Generated and Paraphrased Source Code from Production-Level LLMs
- 2024Towards More Trustworthy and Interpretable LLMs for Code through Syntax-Grounded Explanations
- 2024Trained Without My Consent: Detecting Code Inclusion In Language Models Trained on Code
- 2025Large Language Model Unlearning for Source Code
- 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
- 2026CodeEval: A pedagogical approach for targeted evaluation of code-trained Large Language Models
- 2025Beyond Trusting Trust: Multi-Model Validation for Robust Code Generation