If a judge rules that AI will regurgitate existing code or that the network stores this code, these models will very quickly infringe the GPL and all matter of licenses at the same time.
If this is the case, you'll also need to figure out what GPL compliance looks like. The code training the network likely doesn't contain any code that must be shared, only the model being executed. Does that mean that providing the entire data set complies with GPL, leaving it up to the user to spend millions on training their own network? Or does the model file itself need to be distributed as-is?
The AI people argue that AI learns concepts from code and does not store or replicate the input code directly, though I very much doubt that given that AI will spit out code it has been trained on verbatim. If this is the case then the code may have been processed by the algorithm, but the license impact would be similar to processing it in another way: just because you compress up a bunch of code doesn't mean you need to open source your compression tool.
We need clear legislation for this because the court cases are going to be a clusterfuck.
So I think I would apply the same rules to AI. In general not all code produced is infringing on the copyright of all authors of training data. However there have been some clear cases of copying (GPL license text and a matrix multiplication routine for example) that do appear as copyright violations.
Truth is that the insight that there is no difference on data and program code in particular stands here. If the model can act on the code. It can be said to execute it.
- Training isn’t the same thing as actually using the code
- The training process doesn’t change the code of GPT-3, it changes the parameters, which are input data to the code and not a part of it
- They aren’t distributing any binaries for GPT3, though for AGPL that wouldn’t matter