所有AI生成的代码都应该是开源的
All AI-generated code should be Open Source

原始链接: https://jakub.jankiewicz.org/blog/ai-code-open-source/

作者认为所有AI生成的代码都应开源。AI模型在未适当署名的情况下基于开源和知识共享代码进行训练,因此把这种集体知识转为专有代码类似于许可证洗钱。纯AI生成的代码可能不受版权保护,因为非人类不能持有版权,如猴子自拍案所确立;但各国法律不同,例如英国对计算机生成作品提供有限保护。为了全球公平并尊重AI背后的开放生态,开发者应将AI生成的代码发布在开源许可证下,或使用CC0将其贡献到公有领域。由于许多开发者现在几乎不经审查或修改就使用AI输出,此类代码尤其应当开源。

Hacker News 的讨论围绕一篇文章展开,该文章主张所有 AI 生成的代码都应开源。评论者就版权和许可证展开辩论:有人引用 Doe v. GitHub 和 Thaler v. Perlmutter 案例,质疑 AI 输出是否受版权保护,而另一些人认为人类引导的代理式开发可能受版权保护。多人指出,如果 AI 代码不受版权保护,开源许可证可能失去意义,但发布仍可使其开放。另一些人认为该想法不可执行或不切实际,警告 AI 可能削弱开源资金,且大多数软件可能成为公共物品。一些人支持开放,而另一些人质疑 AI 生成代码的价值,并对训练数据、逆向工程以及是否应将 AI 输出视为源自开源材料表示担忧。总体而言,该讨论串显示出在 AI 重度影响的世界中,关于所有权、许可证和软件未来存在法律不确定性与分歧。
相关文章

原文

This may be a hot take, but I strongly believe that all code generated by AI should be Open Source. And here's why.

First of all, AI models were trained on a massive corpus of Open Source code written since RMS announced the GNU Project and the Free Software Movement. That code was simply scraped from the internet and used without permission or proper attribution. The models were also trained on Stack Overflow and Stack Exchange sister projects, which are released under Creative Commons licenses that legally require attribution. Turning this collective knowledge into proprietary, closed-source code feels like license laundering.

The second reason is legal: purely AI-generated code is not written by a human, meaning it should not be copyrightable. The foundation for this principle in the US goes back to the famous Monkey Selfie dispute, which established that non-humans cannot hold copyrights. A precedent later cited by the U.S. Copyright Office regarding AI. Following the same logic, Wikimedia Commons requires all purely AI-generated images to be tagged as Public Domain.

However, copyright laws differ across the globe. For instance, countries like the UK grant limited copyright protection to computer-generated works. To make things fair across all jurisdictions, and to honor the open ecosystem that made AI possible, developers and companies should explicitly release AI-generated code under Open Source licenses or dedicate it to the public domain using the Creative Commons Zero (CC0) license.

Of course, code is not always 100% manual or 100% automated. However, developers more and more rely on AI without even reviewing the generated output, let alone modifying it to fit their specific needs. Code like this, where humans put little effort, except writing prompts, should definitely be Open Source.

If you find this article interesting you may want to follow me on Twitter: @jcubic and on LinkedIn.

联系我们 contact @ memedata.com