The (ab)use of Open Source Code to Train Large Language Models
Not on the map. Why?
Abstract (arXiv)
In recent years, Large Language Models (LLMs) have gained significant popularity due to their ability to generate human-like text and their potential applications in various fields, such as Software Engineering. LLMs for Code are commonly trained on large unsanitized corpora of source code scraped from the Internet. The content of these datasets is memorized and emitted by the models, often in a verbatim manner. In this work, we will discuss the security, privacy, and licensing implications of memorization. We argue why the use of copyleft code to train LLMs is a legal and ethical dilemma. Finally, we provide four actionable recommendations to address this issue.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 5 of its 5 references that are in the map. First posted on arXiv 27 Feb 2023.
Builds on
5 of 5 references.
References · 5
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
- 2022CodeFill: Multi-token Code Completion by Jointly Learning from Structure and Naming Sequencescited by 49
- 2021CoProtector: Protect Open-Source Code against Unauthorized Training Usage with Data Poisoningcited by 39
- 2023Extending Source Code Pre-Trained Language Models to Summarise Decompiled Binariescited by 25
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 2; 2026: 3.
9 papers.
- 2023Traces of Memorisation in Large Language Models for Codecited by 26
- 2024Mapping the Ethics of Generative AI: A Comprehensive Scoping Reviewcited by 19
- 2024LiCoEval: Evaluating LLMs on License Compliance in Code Generationcited by 13
- 2024An Exploratory Investigation into Code License Infringements in Large Language Model Training Datasetscited by 8
- 2025Code Red! On the Harmfulness of Applying Off-the-shelf Large Language Models to Programming Taskscited by 6
- 2025Mitigating Sensitive Information Leakage in LLMs4Code through Machine Unlearningcited by 1
- 2026Model See, Model Do? Exposure-Aware Evaluation of Bug-vs-Fix Preference in Code LLMscited by 1
- 2026AST-PAC: AST-guided Membership Inference for Codecited by 0
- 2026Understanding Secret Leakage Risks in Code LLMs: A Tokenization Perspectivecited by 0
- 2026Understanding Secret Leakage Risks in Code LLMs: A Tokenization Perspective20 Apr 2026
- 2026AST-PAC: AST-guided Membership Inference for Code30 Jan 2026
- 2026Model See, Model Do? Exposure-Aware Evaluation of Bug-vs-Fix Preference in Code LLMs15 Jan 2026
- 2025Code Red! On the Harmfulness of Applying Off-the-shelf Large Language Models to Programming Tasks2 Apr 2025
- 2025Mitigating Sensitive Information Leakage in LLMs4Code through Machine Unlearning9 Feb 2025
- 2024LiCoEval: Evaluating LLMs on License Compliance in Code Generation5 Aug 2024
- 2024An Exploratory Investigation into Code License Infringements in Large Language Model Training Datasets22 Mar 2024
- 2024Mapping the Ethics of Generative AI: A Comprehensive Scoping Review13 Feb 2024
- 2023Traces of Memorisation in Large Language Models for Code18 Dec 2023