What Makes Code Generation Ethically Sourced?
Not on the map. Why?
Abstract (arXiv)
Several code generation models have been proposed to help reduce time and effort in solving software-related tasks. To ensure responsible AI, there are growing interests over various ethical issues (e.g., unclear licensing, privacy, fairness, and environment impact). These studies have the overarching goal of ensuring ethically sourced generation, which has gained growing attentions in speech synthesis and image generation. In this paper, we introduce the novel notion of Ethically Sourced Code Generation (ES-CodeGen) to refer to managing all processes involved in code generation model development from data collection to post-deployment via ethical and sustainable practices. To build a taxonomy of ES-CodeGen, we perform a two-phase literature review where we read 803 papers across various domains and specific to AI-based code generation. We identified 71 relevant papers with 10 initial dimensions of ES-CodeGen. To refine our dimensions and gain insights on consequences of ES-CodeGen, we surveyed 32 practitioners, which include six developers who submitted GitHub issues to opt-out from the Stack dataset (these impacted users have real-world experience of ethically sourcing issues in code generation models). The results lead to 11 dimensions of ES-CodeGen with a new dimension on code quality as practitioners have noted its importance. We also identified consequences, artifacts, and stages relevant to ES-CodeGen. Our post-survey reflection showed that most practitioners tend to ignore social-related dimensions despite their importance. Most practitioners either agreed or strongly agreed that our survey help improve their understanding of ES-CodeGen. Our study calls for attentions of various ethical issues towards ES-CodeGen.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 23 of its 96 references that are in the map. First posted on arXiv 26 Jul 2025.
Builds on
23 of 96 references.
References · 23
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2019Green AIcited by 627
- 2023From ChatGPT to ThreatGPT: Impact of Generative AI in Cybersecurity and Privacycited by 143
- 2019The Ethics of AI Ethics -- An Evaluation of Guidelinescited by 129
- 2022Programming Is Hard -- Or at Least It Used to Be: Educational Opportunities And Challenges of AI Code Generationcited by 99
- 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 86
- 2024CodeAttack: Revealing Safety Generalization Challenges of Large Language Models via Code Completioncited by 76
- 2021Designing Disaggregated Evaluations of AI Systems: Choices, Considerations, and Tradeoffscited by 48
- 2024Automatic Programming: Large Language Models and Beyondcited by 36
- 2024Using AI Assistants in Software Development: A Qualitative Study on Security Practices and Concernscited by 28
- 2023Uncovering and Quantifying Social Biases in Code Generationcited by 25
11 more
- 2018Automatic Software Repair: a Bibliographycited by 24
- 2024Large Language Model Supply Chain: A Research Agendacited by 23
- 2022Management of Machine Learning Lifecycle Artifacts: A Surveycited by 13
- 2022ADIMA: Abuse Detection In Multilingual Audiocited by 11
- 2023Trust in Software Supply Chains: Blockchain-Enabled SBOM and the AIBOM Futurecited by 8
- 2022WhyGen: Explaining ML-powered Code Generation by Referring to Training Examplescited by 7
- 2023Discriminating Human-authored from ChatGPT-Generated Code Via Discernable Feature Analysiscited by 7
- 2023The "code'' of Ethics:A Holistic Audit of AI Code Generatorscited by 4
- 2024SIG: A Synthetic Identity Generation Pipeline for Generating Evaluation Datasets for Face Recognitioncited by 3
- 2025Do Generative AI Tools Ensure Green Code? An Investigative Studycited by 2
- 2024It is Time to Develop an Auditing Framework to Promote Value Aware Chatbotscited by 1
Built on by
Not cited yet.