New technologies like GitHub Copilot or OpenAI Codex use public code to train their models to generate code.

Is there a license to enforce open source upon output trained from public code? Is there a new license in the works? I don't want to prohibit training.

I previously thought that current GPL compatible licensed code was enough but I've seen some cases of it being violated under the guise of fair use, with models outputting code without any attribution and relicensed in non-compatible ways.

AGPL added a requirement to close the server-side loophole, is there a license that covers the new "AI scraping/training loophole" or a new clause perhaps be added to account for AI-training? (i.e. if you train a model using the given code, your model must also allow others to download the source code/training set/model corresponding to the output)


The issue here is that licenses by necessity derive their power from copyright law, so can apply only in situations where the output is legally a derivative work of the original.

It is by no means clear that in legal terms a model which is trained on a given set of data is a derivative work of that data - and if it's not, anyone is free to ignore the license on any publicly available data set when using it to train a model; it would be possible to restrict this sort of thing by contract, but that's getting into a very different area. The issue of data, models and derivative works will almost certainly be a topic which evolves over the next few years.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.