77 points · by bluish29 · 5y ago · 86 comments
Just like when congressmen try to talk about tech and developers bemoan "you have no idea what you're talking about, stop trying", can developers just take a back seat before becoming a bunch of keyboard warriors here? Telling people they "might get sued" is boring and unhelpful. If you think there is a legal implication - then consult a lawyer. Just like a lawyer would consult their web developer if CSS was broken on their website.
That being said - I think it's entirely okay for developers to say "I did not explicitly choose to let Copilot use my data as a training set and I'm taking my code off GitHub until that is done".
PS - I want grellas back :(
Emperors new clothes and all that.
Programmers think that a right is granted to novel concepts itself to preserve a technology family tree, independent of cash flows or organizations or stakeholders' power dynamics. That is not what it is.
I tend to sympathize with programmer thinking though! Code has to be law and law has to be code.
No, that's DRM and it's far from all good.
https://ilr.law.uiowa.edu/print/volume-101-issue-2/copyright...
It’s particularly ridiculous to see devs shelling out bold statements of fact and not even open-ended questions or more softly worded opinions (“I believe that…”).
Arguably, even real domain experts should have the latter attitude, and so should the dev community, in which many are educated in the scientific method.
Clearly some people are feeling threatened and are embarrassing themselves as a result.
Consider a new additional feature added on to Copilot - a language aware rewriting tool that transforms the initial generated code into a new form with equivalent functionality.
It would be nearly impossible to trace the original code or make a copyright claim.
However - you could use this same trick directly on copyrighted code. Now things are even murkier...
But I would argue that this is essentially what our brains are doing. I've read code, got the gist of it and written my own version. Technically it's not a clean-room reimplementation but an average coder wouldn't realistically expect to get sued for copyright for doing this.
Maybe they should but if you're an open source advocate and you've reached this position then there's something very weird going on.
I always thought the idea of open source was to use copyright against itself because we believed in openness. Not embracing it and just throwing out one small aspect of it.
That's not because of copyright though, that is due to academic standards. Legally you can paraphrase without citing a source.
And from a legal perspective, an entire book of nothing but unsourced quotes from many works would probably end up being both transformative and using a minimal percent of each source.
That said, an argument for citing: if copilot was using public code, and not keeping a record of its sources, it might put someone in a spot where they dont know what risk they are exposed to. A citation log would both let you know what your sources are, and as a defense if accused of using something. The question becomes, going back to copyright, what if copilot learns a language, and then produces identical code to someone else, because that line of code is the most efficient obvious way to do something.
>> It would be nearly impossible to trace the original code or make a copyright claim.
The difficulty in proving infringement is a different aspect than an infringement happening.
>> I always thought the idea of open source was to use copyright against itself because we believed in openness.
That's exactly the point. The open concern being discussed with using Copilot is that one may incorporate parts of the code under the "openness" license into an application which is not under a compatible "openness" license.
but an average coder wouldn't realistically expect to get sued for copyright for doing this
Yeah, but they absolutely could if they copied code verbatim, which is what Copilot is often doing.https://docs.github.com/en/github/copilot/research-recitatio...
1:1 copies are a different question (a "it depends" on how much gets copied and whether the code is protected, as in not obvious, in the first place), but those are not the main thing that gets focused on in that strange twittersphere (which the article is referencing).
It once wrote an API client for a rather idiosyncratic interface I just implemented.
A single function, even if particularly clever, elegant, or performant, doesn't have much value on its own. Sure, you might have thought about it for hours and struggled hard to get it just right, but that doesn't imply it's particularly valuable on its own.
A particular inverse square root function has no use outside a complete library or program. It's that added value (embedding it as part of something much bigger or complex) together with unrelated work (e.g. API calls, artwork, game design, etc.) that generates a product with actual value.
There are people who unironically try to argue that choosing variable names and expressing trivial mathematical relations in a particular way holds intellectual value worth protecting; even if it's just a single line of code.
Interestingly people cheered when Google won against Oracle and APIs remained "free". It'd be so interesting to take a peek into an alternate reality where CoPilot has been released by Google or Tesla(!) instead of Microsoft. My gut feeling is that the reaction would've been very different depending on the company that released the tool.
The hurdle for getting copyright are pretty low (of course that also means any compensation by a court would be low).
Anything that is not technical ly required (or deviates from some generic standard) but involves some aesthetic considerations is a already potentially copyrightable.
Because the boundaries are so fuzzy no sane company lawyer would allow the use of CoPilot . Why take a risk for some glorified text snippets?
> Why take a risk for some glorified text snippets?
Name an example where that was actually an issue. And I'm talking explicitly about single functions and even single lines of code.
I really doubt that. I do think the reaction would be more favorable if the project was itself open source.
It isn't even new at all [0], [1], [2] - it's just getting exposure because people start actually using it.
GPT-3 still forms the basis of Codex, which is the basis of CoPilot. None of these are Open Source and even if they were - what exactly do you think that would change? The models are black boxes, they are too big to even run on consumer level hardware, let alone train or finetune and the code of CoPilot is most likely just API calls, glue code, some post-processing and integration into VS Code.
In short, no I don't agree that an open source product would've helped with people's opinion and it would've been irrational even, because there'd still be no difference in the core functionality and what people are complaining about.
Secondly, the consequences of accidentally copying code by means of using this tool are pretty minor. The author acts as if copypasta from StackOverflow, RosettaCode and similar sites is NOT a daily occurrence (and can't even be checked in the case of closed source software).
Fake gurus like Siraj Raval [0] can manage to literally steal - as in copying other people's work and claiming it as their own - for years without consequences and face ZERO legal backlash even after being exposed. Some of his repos had hundreds or even thousands of stars and forks on GitHub, while the original authors he copied from got no attention or credit at all.
If this is what people can get away with who do this knowingly and deliberately and with entire projects, then I really have to wonder what the fuss is about when an ML model occasionally spits out a few lines of code snippets verbatim from its training set.
[0] https://www.youtube.com/channel/UCWN3xxRkmTPmbKwht9FuE5A
>> First of all, it's not as if CoPilot spits out verbatim replica of training data on every other prompt.
Your comment is about how often it is happening. That it happens as the OP shows via examples itself makes this a concern. It's not necessarily a question of quantity but of existence.
At least when I last checked [1], Github itself [2] notes: "Does GitHub Copilot recite code from the training set? GitHub Copilot is a code synthesizer, not a search engine: the vast majority of the code that it suggests is uniquely generated and has never been seen before. We found that about 0.1% of the time, the suggestion may contain some snippets that are verbatim from the training set. ..."
In other words, 0.1% of the time snippers are copied verbatim, a percentage of which may be copyright violations (not everything is).
>> The author acts as if copypasta from StackOverflow, RosettaCode and similar sites is NOT a daily occurrence
Those may be violations too. That it is a common practice does not turn it into a non-violation.
>> Fake gurus like Siraj Raval [0] can manage to literally steal
That someone escaped does not imply that the laws are now somehow invalid.
>> I really have to wonder what the fuss is about when an ML model occasionally spits out a few lines of code snippets verbatim from its training set.
I agree. AI here is posing a challenge which should lead to refinement of the law, as I have explained in another context too [3]. If this is indeed needed, don't expect this to happen some anytime soon.
---
[1] https://news.ycombinator.com/item?id=27736089
I'm not disputing that. What I'm asking is, why is this particular 0.1% small snippets case such a big deal all of a sudden, when it obviously IS common practice (within the bounds of small code snippets)?
What Github has done is that they have not claimed rights over the generated code, and have passed on the responsibility to the developer/entity using the generated code. In other words, they are supplying tool that can make copies, not necessarily violating the copyright themselves {Foonote 1}. So the Betamax ruling can come into play here, AFAIK.
What's thereby needed is that the developers now need to be educated about it, which is what the articles like the OP will end up doing. The developers often aren't well-educated about this stuff themselves, and presume that using generated code is just fine. See how I was downvoted here, as an example: https://news.ycombinator.com/item?id=27735484
{Footnote 1}: Whether the Github CoPilot model itself is violating copyrights is another matter. If the training data has included AGPL-licensed code, even that may be an violation. However, several other licenses would not be violated till the model is "distributed".
This is a common misconception. The license doesn't protect the code. In fact license are about removing protection (in certain situations). It is copyright which protects the code.
However I think that you are right when phrased like this. If you assume that you use the code, then the license does effectively apply restrictions. But again, I wouldn't want to presuppose that someone is using the code. It puts the decision in the wrong place.
But still this is quite different from the original framing. In the context of the article the problem isn't that the code was protected by a license, the problem was that the code is protected by copyright. This problem could be worked around if you complied with the license such it gave you permission, however the point remains, if you revoke all of the licenses the original problem remains.
>> This problem could be worked around if you complied with the license such it gave you permission, however the point remains, if you revoke all of the licenses the original problem remains.
Absolutely right. If the code used for training data did not come with a license (i.e., it retains full copyright by default), the problem isn't solved. It's rather bigger as you have noted.
However, the OP is still making the right point. If the conditions/limitations which came along with the license are not honored, that becomes a copyright violation, and hence, the developers need to be careful or they might get sued.
>> GitHub’s AI Copilot Might Get You Sued If You Use It
Github Copilot has placed the responsibility on the developer, so it's important that the developers understand all this.
But the danger of being sued is a different question.
Consider the following scenario:
1) Company X has its product code stolen. Somebody puts it on GitHub. It's discovered and the code is removed.
2) You work on an open-source project which competes with that product of Company X, you use Copilot, and make it known.
3) Company X looks through your code and find fragments which look vaguely similar to fragments of their code.
4) They sue, claiming that you copied and obfuscated their code.
Were you not using Copilot, one line of defense for you would be that you never looked at the stolen code, never accessed it, so no copying took place.
With Copilot, this line of defense is not available to you, because Copilot "saw" that code and in principle that could help to produce the fragments in question. (Of course other lines of defense are still available).
Whether courts would accept this argument is a different question, but the argument is not obviously invalid, and Company X can cause enough trouble for you...
Lots of countries (USA first) have tons of software patents. Apache and GPL have clauses to protect the project and its users, but that obviously does not extend to copilot generated code.
Now go guess where that code comes from and if it is somehow protected.
Microsoft has the coffers and attorneys to litigate this all the way to the supreme court, and I surmise thats just what they intend to do. a win for Github AI would be a damning indictment against the protection offered by open source licensing. cloud is Microsofts golden calf in 2021 and ensuring it grazes rent-free on your projects..your code...has become a priority.
Think about what would happen if this is applied to everything. Anything being available becomes free of restrictions. Then all books published become openly available for anyone to copy or print. Even compiled software becomes free of restrictions, which anyone can copy freely. This is basically demise of copyright laws itself, which would be disasterous.
In case I misunderstood your comment, please clarify.
> Think about what would happen if this is applied to everything. Anything being available becomes free of restrictions. Then all books published become openly available for anyone to copy or print. Even compiled software becomes free of restrictions, which anyone can copy freely. This is basically demise of copyright laws itself, which would be disasterous.
I think standards for code should be different from art. They're different concepts. Art you want to protect a specific expression. Code you want to protect the output of an expression. Everyone's talking about how this tool spits out code verbatim, but who cares? What if my tool spits out your python2 code in python3 code? What if it also just fluffs it a little to read differently but perform similarly. It doesn't need to do this explicitly either, it can just guarantee that no outputted code matches an original work exactly but get to the same place. I can make the code substantially different, while keeping the output exactly the same. But we don't get anywhere but generating continuously obtuse implementations of the same thing for stylistic differences. Functionality isn't copyrightable for good reason.
edit: and the example of rewriting the code in a different language in a different style probably still is technically copyright violation, but it'll be extremely difficult to win that trial in case, and thus is a stupid rule.
I agree that for code, the function is more important than form. The "ideas" behind the function are protected by patents, not copyrights as you recognize already. If there are no inventive steps involved, then of course, patents do not come into picture and the function sees no protection, only the expression (form) part does.
I do think there is creative expression involved in writing code as well, however, I need to understand your point better. Code is just being written in a programming language, whereas a prose/poem is written in a natural language. Both can involve creative expression. I would like to hear more about how exactly you are distinguishing the two which may hold in form of say a revised law. What would a revision to the law look like which enables the code to be always free of creative expression (that copyright protects) but still leave books, paintings, etc., still being open to copyrights protection.
If the argument is only that the writer of the code is not interested in the form, only the function, they are free to put their code in the public domain, not making use of the copyright protection. And as far as protecting function is concerned, they may make use of patents where applicable. In most other respects (am ignoring other IP laws), the "openness" you ask for is already there.
I mean there's some licenses out there that do allow for it (I'm not that well versed in OS licenses), but open source code often comes with caveats. GPL for example makes it mandatory for you to make any changes you make to it open source yourself, making any GPL-licensed code suggested by Copilot unusable in a commercial closed-source application.
Seems that Github used any public repository, not just ones with open-source licenses. This could include source-available code or any other kind of "visible, but nonfree" license.
All the code used is source-available but not necessarily open source. If you push a repository to GitHub with no license, it's not open source.
In 2015, the number of repositories with a license was around 20%: https://github.blog/2015-03-09-open-source-license-usage-on-...
That is source available, not open source.