r/computerscience • • Mar 04 '26

General Open source licenses that boycott GenAI?

I may be really selfish, toxic, and regressive here, but I really don't want GenAI to learn based on open-source code without restriction. Many programmers published their source code on GitHub or other public-domain platform because they want a richer portfolio and share their work with legit human users or programmers. However, mega corps are using their hard labor for free and refining a model that will eventually replace most human programmers. The massive unemployment now is an imminent result of this unregulated progression. For those who are concerned, they need a license that allows them to open-source but rejects this kind of unregulated appropriation.

As far as I know, GPLv3 is the closest to this type of license, but even GPLv3 does not stop GenAI from "learning" off GPLv3-protected code. To me, it doesn't matter if machine cannot generate better code, because human is much more important.

9 Upvotes

35 comments sorted by

View all comments

Show parent comment

5

u/TomOwens Mar 04 '26

It's complicated. On top of that, the questions about a model and the questions about the output are different.

From the model perspective, I don't think the question about if a trained model is a derivative work has been settled yet (at least in the US, where I'm located). The US Copyright Office has published thinking that it is. However, until the courts weigh in, I don't think this is binding. Plus, even if it is, fair use is still an affirmative defense - you essentially admit that you violated someone's copyright or license, but for a protected reason and don't have to follow any restrictions.

From the output perspective, the first question concerns the threshold of originality for an AI tool's output. Although the full program may be protected by copyright and therefore eligible for licensing, some parts may not be protectable. When you start talking about classes and methods and extracting them, are they protected and therefore licenseable? In some cases, no, in some cases yes. There may be individual methods or classes that were independently written by multiple people across different projects and don't need to be attributed to a single source.

When the threshold of originality is crossed, the license matters. Apache is a permissive license, but something like AGPL isn't. So, including AGPL code in your codebase, whether it's dropped in by a human or an AI tool, can be problematic due to the viral nature of the license. This is why GitHub has invested in public code search and tools like Black Duck have "snippet matching" functionality. This capability can help a developer understand potential risks and make informed decisions.

3

u/padreati Mar 04 '26

Thank you for having enough patience and providing your insights and also the links. I will let that sink in.

1

u/TomOwens Mar 04 '26

No worries. It's definitely complicated and there are still a lot of unanswered questions (at least in the US). Cases are working their way through various courts. There's a lot of room for interpretation and trying to figure out both the legality and the ethics of applying AI tools to software development.