Analyzing Code Provenance in LLMs for Programming Education
Subhankar Maity, Faiza Belbachir, Omar Boucelma, Guilherme Medeiros Machado
Key points
From the paper's conclusion- 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.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A systematic comparison of Large Language Models for automated assignment assessment in programming education: Exploring the importance of architecture and vendorComputers and Education Open · 2026
- Understanding code semantics: a benchmark study of LLMsInternational Journal on Software Tools for Technology Transfer · 2026
- On Behavioral Alignment of Model-Code and Human-Code Understandability via Behavioral ProxiesProceedings of the ACM on software engineering. · 2026
- Style, Not Self: Surface Cues Explain Zero-Shot Code Attribution by Large Language ModelsarXiv · 2026
- Micro Operational Robustness of LLMs on Code GenerationarXiv · 2026
- An Empirical Analysis of LLM Usage in Software Engineering Course ProjectsACM Transactions on Computing Education · 2026