Daily Arxiv

This is a page that curates AI-related papers published worldwide.
All content here is summarized using Google Gemini and operated on a non-profit basis.
Copyright for each paper belongs to the authors and their institutions; please make sure to credit the source when sharing.

On Developers' Self-Declaration of AI-Generated Code: An Analysis of Practices

Created by
  • Haebom

Author

Syed Mohammad Kashif, Peng Liang, Amjed Tahir

Outline

This paper explores how developers using AI code generation tools self-declare their AI-generated code and why. Through analysis of GitHub repositories (collecting 613 AI-generated code snippets) and a survey (111 valid responses), we found that 76.6% of developers always or sometimes self-declare their AI-generated code, while 23.4% never do so. Reasons for self-declaring included tracking and monitoring for future review and debugging, as well as ethical considerations. Reasons for not declaring included extensive modifications to the AI-generated code and the perception that it would be unnecessary. Finally, we provide guidelines for self-declaring AI-generated code to address ethical and code quality concerns.

Takeaways, Limitations

Takeaways:
Provides empirical data on the use of AI code generation tools and self-declaration practices.
Identifying Factors That Influence Whether Developers Self-Declare AI-Generated Code
Providing practical guidelines for self-declaring AI-generated code.
Emphasize the need to consider the ethical aspects of using AI code generation tools.
Limitations:
Data bias in GitHub repository analysis (limited to specific platforms and developer groups)
Limited sample size of survey respondents (difficulty in generalizing)
Lack of clarity about the definition and scope of AI-generated code (need to consider various AI tools and code generation methods)
Insufficient tracking of changes in AI-generated code self-declaration methods from a long-term perspective
👍