Live data from Hacker News

Analyzing the legal implications of GitHub Copilot

fossa.com

81–90 of 173 posts

Re: Analyzing the legal implications of GitHub Copilot

#81
post #31

Given this fair use argument that the work is probably transformative enough here's what I'll be doing next. I'll take the Windows and Office source code, run it through a decompiler and then train a neural network on that output. This sequence of steps should be at least as transformative of Microsoft's copyright as what Copilot is doing with the open-source corpus, probably much more so. I will then use that neural…

I've heard something similar in response to Copilot in another thread (something like offering a sum of money to Github if they train their model exclusively on the Windows NT source code). But I think the legal theory here is that Copilot is trained on many thousands of sources. If Copilot was trained on a single source, or even a small handful of sources, the derivative work claim becomes much stronger. When traine…

You're taking the machine learning metaphor literally. Training an ML model is not the same thing as a human being learning off of material.

A human being can understand abstract concepts and reason about them based on material they learn from. An ML model is a statistical model that is closer to compilation or lossy encoding or compression.

Often, ML models can encode their training data verbatim in the model itself, which is exactly what happened with Copilot and this example[1].

[1] https://twitter.com/mitsuhiko/status/1410886329924194309

Re: Analyzing the legal implications of GitHub Copilot

#82

It would be nice if we moved from a copyright discussion to an ethical one, since it could be years until the law is even tested. Is it ethical to do this, when some licenses are clearly chosen because of e.g. attribution or sharing improvements? Did Microsoft/GitHub consider the ethical implications, for example a chilling effect on code being open sourced in future (i.e. people choosing not to open source stuff so…

The ethical discussion certainly has its merits, but the legal discussion is very relevant for those of us who do not want to be part of the legal test case.

Re: Analyzing the legal implications of GitHub Copilot

#83
post #61

If this really counts as fair use it turns into a giant loophole to steal any IP you want. Just create a website with a github-like TOS, upload some disney copyrighted pictures to it, train a GAN super overfitted on the images, and then claim mickey mouse as your own.

The legal system is generally pretty nuanced, considering things such as intent and purpose. In this particular case, it doesn’t really matter how the new work was generated or created. I don’t really think that would be very relevant. The most important factors would be how similar the new work was to the original work, the intent, and how the new work affects the value of the original.

Your proposal is just so substantively different from Copilot that I don’t see how the arguments for Copilot would apply.

Re: Analyzing the legal implications of GitHub Copilot

#84
post #76

Earlier quoted context omitted.

Yeah, I don't think bettering their products includes verbatim incorporation of code into those products. Also, for the part about small snippets being non copyrightable. I would suggest looking at the Google/Oracle case. Google was found guilty of infringement for a very small number of lines, but the award to Oracle was IIRC rather a joke (something like one dollar, indicating it was infringing but largely irreleva…

The Supreme Court found Google’s use to be fair, not infringement.

the supreme court did not reconsider the previous judgment on the 9 lines of sorting algorithm being copied, which was not considered fair use

Re: Analyzing the legal implications of GitHub Copilot

#85

It would be nice if we moved from a copyright discussion to an ethical one, since it could be years until the law is even tested. Is it ethical to do this, when some licenses are clearly chosen because of e.g. attribution or sharing improvements? Did Microsoft/GitHub consider the ethical implications, for example a chilling effect on code being open sourced in future (i.e. people choosing not to open source stuff so…

I wonder if one could enforce a license's "this code may not be used to train any ML model of any sort for any reason without prior permission".

Re: Analyzing the legal implications of GitHub Copilot

#86
"no matter what license you use, you give GitHub the right to host your code and to use your code to improve their products and features"

I contribute my code to X project outside of github (say on a mailing list) under the explicit understand that my code is under GPL (say GPLv3 to be specific). If someone later uploads my code to github and github uses my code to train their ML model in violation of GPLv3 isn't the point that the person who uploaded my code to github is in violation of GPL by giving it to someone else under less restrictive terms?

Does this mean that the github terms of service are perhaps fundamentally incompatible with uploading copyleft-style (or perhaps specifically only GPLv3 level) restrictive licenses?

And, if so, probably they always were but nobody cared until now.

Re: Analyzing the legal implications of GitHub Copilot

#87
>“If you look at the GitHub Terms of Service, no matter what license you use, you give GitHub the right to host your code and to use your code to improve their products and features,” Downing says. “So with respect to code that’s already on GitHub, I think the answer to the question of copyright infringement is fairly straightforward.”

Not as straightforward as they think thou.

If a code project used (a)gpl code found elsewhere on the internet in their repo, and another user took the project and hosted it on github, the tos can not give github a license to use the code outside of the license given by (a)gpl, even if github thinks they have one, that won't shield them from legal liability, nor will it shield co-pilot users from being legally compelled to (a)gpl their code if a court case was won on those grounds.

The github tos is basically a non-factor in this case.

Re: Analyzing the legal implications of GitHub Copilot

#88
post #45

Earlier quoted context omitted.

But legally, they can't provide such a license. So GitHub can't have that license, surely, because they never had the legal authority to bestow it upon Github.

A third party who finds their GPL code on Github but is not themselves a user of Github has a right of action. They're not bound by Microsoft's terms.

> is not themselves a user of Github

Is it that widely scoped? Can't we narrow it to "A third party who finds their GPL code on Github but has not uploaded that specific code to Github themselves has a right of action limited to that specific code."

Just because I created a github account once and agreed to the TOS doesn't mean that I agree to let others upload my code to github, where would that scope end. Could someone steal code off my computer which i've never published and put it on Github and that was OK because I once signed up for a github account, clearly a contrived example but.

Re: Analyzing the legal implications of GitHub Copilot

#89
post #3

“If you look at the GitHub Terms of Service, no matter what license you use, you give GitHub the right to host your code and to use your code to improve their products and features,” Downing says. “So with respect to code that’s already on GitHub, I think the answer to the question of copyright infringement is fairly straightforward.” I don't know if it's really that straightforward. The TOS includes snippets like th…

I don't know if it's really that straightforward.

It gets worse. To the extent that it is that straightforward, the correct takeaway is that you do not have permission to include someone else's GPLed code in your Github repository.

And that to the extent that GitHub relies on that permission in using the code that they host, they are liable for potential copyright claims from copyright owners that they have no relationship with, who never gave GitHub permission to use that code.

I therefore think that GitHub should do some careful thinking about how much they can rely on a ToS to do as they want with the copyleft code that they host. And I further think that people who host GPLed projects should ask whether GitHub is where they should be hosting those projects.

(Insert the mandatory, "I am not a lawyer and this is not legal advice.")

Re: Analyzing the legal implications of GitHub Copilot

#90
The problem with GitHub Copilot is that you never quite know where the suggestion comes from.

As the article notes, longer and more complex blocks of code are most likely copyrightable.

> GitHub reports that Copilot is mostly producing brand-new material, only regurgitating copies of learned code 0.1% of the time.

For me, the issue is one of risk. Let's say that you have 100 developers at your company making software for you and they decide that Copilot is great. 1 in 1,000 suggestions is regurgitated code verbatim. Let's say that only 1 in 10 of those suggestions is sufficiently long and complex enough that it warrants copyright protection. Within a week, you'd have to assume that you have dozens of copyrighted pieces of code in your codebase. The big issue is that you now don't know where the code came from and which pieces might be direct copies. It opens up a bit of a can of worms for a company looking to avoid risk.

I think one of the pieces that might get overlooked is someone trying to weaponize Copilot. For example, Wikipedia has seen people upload creative-commons licensed media to Wikipedia and then become very litigious against people who might be slightly off in the attribution requirements. Attribution requirements are often more complicated than just "provide whatever attribution you think makes sense." The images are legitimately creative-commons licensed, but if someone doesn't provide the correct attribution, they sue them. This attribution can include the documentation of the modifications made, author, link, link to the license (which I think a lot of people forget), copyright notice, etc.

https://news.ycombinator.com/item?id=27606035

I don't think most people are looking to be copyright trolls. However, Copilot offers a neat little way to potentially inject your code into other people's programs. Will people start searching for uses of their code and use it as a form of copyright trolling? I don't think most people will, but we've seen it happen with patents and images.

If you have a hundred engineers creating dozens of co-pilot suggested blocks per day, we're talking around a million blocks in a year. I don't think the odds of any individual suggested block being a problem are high. The issue is when you start scaling that up. If we're talking about a large company, the risk can start getting large. You don't know where the code came from and it starts getting likely that verbatim pieces of someone else's code are finding their way into your codebase.

Does Copilot offer enough value to offset this risk? Will future versions of Copilot make sure that the suggestions are sufficiently different from the training source? Heck, there can even be chicken-and-egg problems where someone claims copyright on a block of code that was generated by Copilot and you then have to prove that your identical code generated by Copilot isn't an infringement. Can you prove "yes, Copilot would have generated that code block before you pushed your code into Github" when they claim "Copilot only generated that code block for you because of our code on Github"? It might not even be a company that's evil doing this. Large companies often have no idea what different parts of the company are doing - especially several years later.

One thing I want to make clear is that this isn't just about cases that would win on their merits. One of the big parts of the Wikipedia discussion on overly-litigious uploaders is that it can cost a lot more to fight infringement claims than they're asking. If someone slaps your startup with a $250 "you stole my copyrighted code" claim, do you hire a lawyer at an hourly rate that might cost more, risk a trial costing tens of thousands, and risk a judgement against you? Or do you pay them off with a small amount of money to make it go away? I'm not saying this is a good situation. I'm just noting that it definitely exists and trolls can try and come after you at the worst times like when you're trying to raise funding. Do you decide to fight it when you're trying to IPO? Do you let the IPO price sink by a few percent and lose you lots of money when they're just looking for $5,000 to go away?

It just seems like adding a lot of risk.

Post reply on HN