400 points · by FanaHOVA · 3y ago · 228 comments
This is a little weird given that directly above, the author puts LLaMA into the "restricted weights" category. Even by the definition the author proposes, LLaMA 2.0 isn't open source; we shouldn't be calling it open source.
If open source in the LLM world means "you can get the weights" and doesn't imply anything about restrictions on their usage, then I don't think that's adapting terminology to a new context, I think it's really cheapening the meaning of Open Source. If you want to refer to specifically "open weights" as open source, I'm a bit more sympathetic to that (although I don't think it's the right terminology to use). But I see where people are coming from -- I'm not too put off by people using open source to describe weights you can download without restrictions on usage.
But LLaMA is not open weights. It's a closed, proprietary set of weights[0] that at best could be compared to source available software.
It is deceptive for Facebook to call LLaMA open source, and we shouldn't go along with that narrative.
[0]: to the extent weights can be copyrighted at all, which I would argue they can't be copyrighted, but that's another conversation.
Also, while weights usage might be restricted, it's a very big compute investment shared with the public. They use a 285:1 training tokens to params ratio, and the loss graphs show the model wasn't yet saturated. This is valuable information for other teams looking to train their own models.
LLaMA1 was highly restrictive, but the data mix mentioned in the paper led to the creation of RedPajama, which was used in the training of MPT. There's still plenty of value in this work that will flow to open source, even if it doesn't fit in the traditional labels.
> There's still plenty of value in this work that will flow to open source, even if it doesn't fit in the traditional labels.
That is a good point; the fight over what is open source and what is source available can get heated, and part of that is a defense against the erosion of the term. But... in general source available is better than closed source software. And LLaMA 2 is a significant improvement over LLaMA 1 in that regard, it really is. So I don't necessarily want to be down on it, in some ways it's just backlash of being tired of companies stretching definitions. But they're doing a thing that will absolutely help improve open access to LLMs.
I'm always a little bit torn about how to go about this kind of criticism of terminology, and I'm not trying to say that people shouldn't be excited about LLaMA 2. But the way it works out I'm often playing word police because the erosion of the term does make it harder to refer to models with actual open weights like StableLM. Facebook deserves real praise for releasing a model with weights that can be used commercially. It doesn't deserve to be treated as if what it's doing is equivalent to what StabilityAI or RedPanda is doing.
I do like your terminology of "open weights" and "restricted weights", and I wouldn't be opposed to even breaking that down even further, I think there's a clear difference between LLaMA 1 and 2 in terms of user freedom, so I'm not opposed to people trying to distinguish, just... it's not hitting the bar of being open weights.
It's a bit like if the word vegetarian didn't exist, and if everyone argued about how it's unhelpful to say that drinking milk isn't vegan because it's still tangibly different from eating meat. On one hand I agree, but on the other hand it's better to have another category for it that means "not vegan, but still not eating meat." There is an actual danger in blurring a line so much that the line doesn't mean anything anymore, and where people who mean something more rigorous no longer have a term to communicate amongst themselves. If average people get bothered by throwing LLaMA 2 into the "restricted weights" category, it's better to introduce another category between restricted and open that means "restricted but not commercially".
Beyond that though... yeah, I agree. I don't really have a problem with people calling open weights open source, my only objection to that is kind of technical and pedantic, but I don't think it causes any actual harm if someone wants to call StableLM open source.
- It's okay to train a model on arbitrary internet data without permission/license just because you can access it
- It's not okay train a model on our model
It’s completely illegal if you think about it.
So why LLMs who crawl the internet to present snippets and information should be treated differently from Google ? (who also reproduce verbatim the same content without paying any compensation to the copyright owners (all types: text, image, code)
they are consistent, if they believe themselves to be "special" and deserves special treatment!
Copyright is literally the right to copy. Arbitrary Internet data that is not copied does not have any copyright implications.
The difference is that LLaMa imposes additional contractual obligations that, for ideological reasons (Freedom #0), open source software does not.
This issue reminds me of the FSF/AGPL situation. At some point you just have to accept that copyright law, in and of itself, is not sufficient to control what people do with your software. If you want to do that, you have to limit end-user freedom with an EULA.
If someone uses LLaMa output to train models, it is unlikely they will be sued for copyright infringement. It is far more likely they will be sued for breach of contract.
Training a model on model output isn't copying.
There's no way to phrase this where training a model on copyrighted human-generated images/text isn't copying, but training a model on computer-generated images/text is copying.
> If you want to do that, you have to limit end-user freedom with an EULA.
If you want to limit end-user freedom with a EULA, you have to figure out how to get users to sign it. Copyright is one way to force them to do so, but doesn't really seem relevant to this situation if training a model on copyrighted material is fair use.
And again, if somebody generates a giant dataset with LLaMA, if you want to argue that pushing that into another LLM to train with is making a copy of that data, then there's no way to get around the implication there that training on a human-generated image is also making a copy of that image.
It's all but certainly copied, and not just in the "held in memory" sense but actually stored along with the rest of the training collection. What may not happen is distribution. There's a difference in scale/nature of copyright violation between the two but both could well be construed that way.
Additionally, I think there's a reasonable argument that use as training data is a novel one that should be treated differently under the law. And if there's not:
> If you want to do that, you have to limit end-user freedom with an EULA.
What will eventually happen -- at least without some kind of worldwide convention -- is that someone who can successfully dodge licensing obligations will be able to take and redistribute weight-data and/or clean-room code.
At least, if we're adopting a "because we can" approach to everything related.
Regardless, the lack of a license cannot give you more permission than a restrictive license. You're arguing that if take a book out of a bookstore without paying (or signing a contract), then I have more rights than if I sign a contract and then leave with the book.
The whole legal premise of these models is that training on copyrighted material is fair use. If it's not, then... I mean is Facebook trying to claim that including copyrighted material in a dataset isn't fair use regardless of the author's wishes? Because I have bad news for LLaMA then.
"You need permission to train on this" is an interesting legal stance for any AI company to take.
Firstly, llama is not just the weights, but also the code alongside it. The weights may or may not be copyrightable, but the code is (and possibly also the network structure itself? that would be important if true but I don't know if it would qualify).
Secondly, you can write what you want in a copyright license: you could write that the license becomes null and void if the licensee eats too much blue cheese if you want.
Following from that, if you were to train on the outputs of the AI, you may not be guilty of copyright infringement in terms of doing the training (both because AI output is not copyrightable in the first place, something which seems pretty set in precedent already, and possibly also because even if it was, it gets established that it is fair use like any other data), but if it means your license to the original code is revoked then you will at the very least need to find another implementation that can use the weights, or (if the weights can be copyrighted, which I would argue is probably not the case, if you follow the argument that the training is fair use, especially if the reasoning is that the weights are simply a collection of facts about the training data, but it's very plausible that courts will rule differently here).
This could wind up with some strange situations where someone generating output with the intent of using it for training could be prosecuted (or at least forced to cease and desist) but anyone actually using that output for training would be in the clear.
I agree it is extremely "have your cake and eat it" on the part of the AI companies: They wish to both bypass copyright and also benefit from the restrictions of it (or, in the case of OpenAI, build a moat by lobbying for restrictions on the creation and use of the models themselves, by playing to fears of AI danger).
> This could wind up with some strange situations where someone generating output with the intent of using it for training could be prosecuted (or at least forced to cease and desist) but anyone actually using that output for training would be in the clear.
I'll add to this that it's not just output; say that someone is using another service built on top of LLaMA. Facebook itself launched LLaMA 2.0 with a public-facing playground that doesn't require any license agreement or login to use.
You can go right now and use their public-facing portal and generate as much training data as you can before they IP-block you, and... as far as I can tell you haven't done anything in that scenario that I can see that would bind you to this license agreement.
So I still feel like I'll be surprised if any AI company that's serious about wanting bootstrapping itself off of LLaMA is going to be too concerned about this license (whether that's a good idea to do just because the training data itself might be garbage is another conversation). It just seems so easy to get around any restrictions.
NN design is more interesting, but I don't think we're at the point yet where they are sufficiently complex to be copyrightable in general. Patentable, maybe.
Majority of the time, the code and weights are under independent license terms-while in theory the code license could say it is revoked or revocable if you violate the terms of the weights licenses, I think such a license term is rare in practice.
It is quite common even when the weights are under a restricted license for the code to be released under a standard open source license, and no open source license contains such a license term (and it would probably make the license non-open source were it included)
Not to diminish the conversation here, but not even a Supreme Court Justice knows what the legality is. You’d have to be a whole 9 person Supreme Court to make an accurate statement here. I don’t think anyone really knows how Congress meant today’s laws to work in this scenario.
Congress, or more accurate, the drafters of the Constitution, intended that Congress would work to keep the Constitution updated to match the needs of modern times. Instead, Congress ossified to the point it's unable to pass basic laws because a bunch of far right morons hold the House GQP hostage and an absurd amount of leverage was passed to the executive and the Supreme Court as a result - with the active aid of both parties by the way, who didn't even think of passing actual laws to codify something as important as equitable access to elections, fair elections, or the right to have an abortion or to smoke weed when they held majorities. And on top of that your Supreme Court and many Federal court picks were hand-selected from a society that prefers a literal viewpoint of the constitution.
But fear not, y'all are not alone in this kind of idiocy, just look at us Germans and how we're still running on fax machines.
If they turn out to be not copyrightable, then... all this would mean is downloading LLaMA 2.0 weights from a mirror instead of from Facebook.
"Yes, we train our models on a good chunk of the internet without asking permission, but don't you dare train on our models' output without our permission!"
And OpenAI also has a similar restriction.
You can't use a model's output to train another model, it leads to complete gibberish (termed "model collapse"). https://arxiv.org/abs/2305.17493v2
And the Llama 2 license allows users to train derivative models, which is what people really care about. https://github.com/facebookresearch/llama/blob/main/LICENSE
Yes, you cannot do this kind of thing indefinitely and expect endless improvements from "endless training set". But that's a very different problem.
As for generating jsons, that's more of a inference runtime thing, since you need to pick the top tokens that result a valid json instead of just hoping it returns something that can be parsed. On top of extensive tuning of course.
I don't know how one can even forbid this. As a human, I'm a walking neural net, and I train myself on everything that I see, without a choice. The only difference is I'm a carbon-based neural net.
Ezpz
The source of a language model is more in reality the model, that is the code that was used to train the particular model. The model itself is more of a compiled binary, altough not in machine code.
So for a model to be really open source to me it would mean that you have to release the software used for generating it, so I can modify it, train it on my data, and use it.
1) "Dear artists, the model cannot infringe upon your copyright because it's merely learning like a human does. If it accidentally outputs parts of your book, you know, it just accidentally plagiarized. We all do it haha! Our attorneys remind you that plagiarism is not illegal in the US."
2) "Dear engineers, the output of our model is copyrighted and thus if you use it to train your own model, we own it."
I am not sure how both of those can be true at the same time.
I have no idea how this impacts the encodability of the license from FB which may rely on things other than copyright, but as of right now, the output absolutely cannot be copyrighted.
Oops.
I added the "haha" in there because the probability of a human doing this kind of goes way down as the length of the text increases. Can you type, verbatim, an entire chapter of a book? I can't. But, I bet the AI can be convinced in rare cases to do that.
The whole thing is very interesting to me. There was an article on here a couple days ago about using gzip as a language model. Of course, gzipping a book doesn't remove the copyright. So how low does the probability of outputting the input verbatim have to be before copyright is lost?
Reading the book and benefitting from what you learned? Obviously not copyright infringement. Putting the book into gzip and sending your friend the result? Obviously copyright infringement. Now we're in the grey area and ... nobody knows what the law is, or honestly, even how to reason about what the law wants here. Fun times.
(Personally, I lean towards "not copyright infringement", but I'm not a big believer in copyright myself. In the case of AI training, it just makes it impossible for small actors to compete. Google can just buy a license from every book distributor. SmolStartup can't. So if we want to make AI that is only for the rich and powerful, copyright is the perfect tool to enable that. I don't think we want that, though.
My take is that the rest of society kind of hates Tech right now ("I don't really like my Facebook friends, so someone should take away Mark Zuckerberg's money."), so it's likely that protectionist laws will soon be created that ruin it for everyone. The net effect of that is that Europe and the US will simply flat-out lose to China, which doesn't care about IP.)
This is why fundamental "interpolative" techniques like ChatGPT (whose weights are in theory frozen) is still basically super-intelligent.
So, no matter what they TOS says, it's not an infringing work.
> Downstream users can't just integrate the derivative work into a product without abiding by the GPL terms
You absolutely could do this if the original work is not protected by copyright, or if you use it in a way that is transformative and fair use.
Your customers bought that product under license A. Afterwards it turned out that you pirated some artwork from disney. Then your customer can sue you (not disney) to make things right. The specific license of the original work seems quite irrelevant here.
That's... not really accurate. See the concept of tortious interference with a contract.
That said, doing this inside one company or with subsiduaries probably wouldn't fly.
Can you summarize why weights would not be copyrightable or give me pointers to sources that support that view.
Let’s talk about more complex models. What if my model shares 5% of the same weights with your model? What about 50%? What about 99%? How much do these have to change before you’re in the clear? What if I take your exact model and run it through some extra layers that don’t do anything, but dilute the significance of your weights?
It’s a murky area, and I’m inclined to think copyright is not at all the right tool to handle the legality of these models (especially given the glaring irony they are almost all trained using copyrighted material). Patents, perhaps better suited, but I’m also not sold.
1. Model weights are the output of mathematical principles, in the US facts are not copyrightable, so in general math is not copyrightable.
2. Model weights are the derivative work of all copyrighted works it was trained on - in which case, it would be similar to creating a new picture which contains every other picture in the world inside of it. Who is the copyright owner? Well, everyone, since it includes so many other copyright holders' works in it.
related, there was a presentation (i've lost the reference) on automatic song (tune?) generation where the presenter claimed (rather humourusly) that he'd generated all the songs that had ever been and will ever be so that while he was infringing on a large but finite number of songs, he was non infringing on an infinite number of future songs. So, on balance he was in a favourable position.
One cannot hold copyright facts, but one can "copyright" a collection of facts like a search index or a map.
https://en.wikipedia.org/wiki/Integrated_circuit_layout_desi...
If they can't charge for and control those other things, then we'll likely see far fewer companies releasing weights. Most of this stuff will move behind APIs in that scenario.
What if there were billions of knobs, tuned after years of feedback and observations of the sound output?
I don’t see why, for-profit companies release permissively-licensed ooen-source code all the time, and noncopyrightable models aren't practically much different than that.
> I don’t see why, for-profit companies release permissively-licensed ooen-source code all the time
I agree with this - however, they tend to open-source non-core components - Google won't release search engine code, Amazon wont release scalable-virtualization-in-a-box, etc.
I'm confident that Facebook won't release a hypothetical Llama 5 in a manner that enables it to be used to improve ChatGPT 8 - the aim will be unchanged from today, byt the mechanism will shift from licensing to rate-limiting, authentication & IP-bans.
As mercenary as it may sound, what these companies are trying to do is find a business model that is as friendly to themselves as it is hostile to their competitors.
This is all part of the jockeying.
The practical difference between the licenses is small enough that I expect most people (including me) will choose Llama2 anyway, because the models are higher quality. But that incentive may mean that we get stuck with these awkward pseudo-open licenses.
While the FSF side of things doesn't like the term "open source," even they say that "nearly all open source software is free software." Specifically, the MIT and Apache (and LGPL) licenses are absolutely free software licenses--otherwise Debian, FSF-approved distros, etc. would have far less software to choose from.
What the chart probably meant to distinguish is copyleft vs free software or open source. And if you're ordering it from a permissiveness viewpoint, the subset relationship should be reversed--GPL is far more permissive than SSPL, etc., but still less permissive that MIT/Apache.
This part of the article is pretty misleading as well:
> Free software, as specified by the Free Software Foundation, is only a subset of open source software and uses very permissive licenses such as GPL and Apache.
We haven't seen this too much yet in the AI world, as mostly people who open the weights are doing so in a research manner, where the inference is decidedly needed to be open sourced- and people with closed models do so in order to make money and thus no reason to open source the inference side either, just charge for an API ("OpenAI").
It is actually editorialized in a way that feels quite different from the actual one. I think the author and the poster might disagree on what open source means.
Here is another article on LLaMa2: https://opensourceconnections.com/blog/2023/07/19/is-llama-2...
Llama2 is a binary blob pre-trained model that is useful and is licensed in a fairly permissive way, and that's fine.
At least binary blobs can be disassembled.
(Downvotes... oops. The reference is Charlie Stross's Accelerando. The protagonist has a conversation with an AI that's just trying to survive. One of the options he suggests is to open source itself. Which is a roundabout way of saying that eventually we're going to have to take the AI's own opinions into account. What if it doesn't want to be open source?)
There is no marked increase in model effectiveness in these 'new' versions, but even if you just use the 'YOLOv8' Pytorch weights (and no part of their Python toolchain, which might have some improvements), these will somehow try to download files from Ultralytics servers. Possibly for a good reason, but most likely to, let's say, "pull an Oracle."
Serious AI researchers won't go anywhere near this stuff, but the number of students-slash-potential-interns with "but it's on GitHub!" expectations that I had to reject lately due to "nope, we're not paying these guys for their Enterprise license just to check out your project" is rather disheartening...
Then there's the problems of the content of the training data, which parallel the dangers of opaque algorithms.
When it comes to "how much of it has to be available to be open source", I think it may be instructive to look at encryption algorithms.
Many of them have numeric constants or initial values--NOT part of the secret key itself--which need to be known and available, both for interoperability and for the expected security-level of the algorithm. These are arguably similar to LLM weights. (Perhaps the simplest example would be the prominence of "13" in ROT13.)
Yet if someone tried saying that their encryption standard was "open source" while keeping those constants secret and/or legally-encumbered, I think a lot of people would complain that the label is incorrect or inappropriate.
What these models do, they should either invented a new term, or use an appropriate existing term, eg. "fair use"
I hope that users aggressively ignore these restrictive licenses and give the middle finger to greedy companies like Facebook who try to restrict usage of their models. Information deserves to be free, and Aaron Swartz was a saint.
- pseudo/true random number generator and initialization
- certain speculative optimizations associated with training environments (distributed)
- Speculative optimizations associated with model compression
- Image decompression algorithm mismatch (basically this is library versioning)
- ....things I'm forgetting...
It's just a lot of things to remember to capture, communicate, and reproduce.
It's not just the generator and initialization. If you do anything multithreaded, like a producer/consumer queue, then you need to know which pieces of work went to which thread in which order.
It's a lot like reproducing subtle and rare race conditions.
No, CC-NC-ND is a thing, and even GPL applies restrictions on derivation as well.
"Open source" doesn't mean BSD/MIT. There is even open-source that you cannot freely redistribute at all - not all open-source is FOSS!
I always think it's a testament to how much copyleft has succeeded that in many cases people think of GPL and BSD/MIT as being the baseline.
"FOSS" has absolutely no requirement of it being copyleft. The MIT license is just as FOSS as the GPL. Many of the free software advocates do have an affinity for copyleft, but they are not mutually exclusive. There are plenty of FOSS advocates who also use and advocate for permissive licenses as well.
That original sense never existed. Virtually nobody said "open source" before OSI's 1998 campaign for "Open Source", as bankrolled by Tim O'Reilly.
https://thebaffler.com/salvos/the-meme-hustler
I know it's been a long time, and we've forgotten, but there is virtually no record of anyone saying "open source" before 1998, except in rare and obscure contexts and often unrelated to the modern meaning.
https://web.archive.org/web/20180402143912/http://www.xent.c...
I believe there is a name for that: gongkai. https://www.bunniestudios.com/blog/?page_id=3107
LGPL3.0 also pretty much is restricted in a way that not sure if can be used to distribute software in App Store for iOS legally.
As for terms, we'll settle on '$0 downloadable AI models' which are available today. Would rather use that over cloud-only AI models which can fall over and break your app at any time and you have zero control over that.
Stable Diffusion is a good example that fits the definition of 'open-source AI' as we have the entire training data, weights reproduciblity, etc and Llama 2 does not.
Chat-tuned derivatives of LLaMa 2 are already appearing. Given that the base LLaMa 2 model is more efficient than LLaMa 1, it is reasonable to expect that these more refined chat-tuned versions of the chat-tuned versions will outperform the ones you mention.
Find the optimal route for Karen's quest which maximizes her chances of defeating the ogre to 100%. ----2---- Write a python code using imageio.v3 to create a PNG image representing the map way-points and the route of Karen in her quest, each way-point must be of a different color and her path must be a gradient of the colors between the waypoints. ------------
I have a lot of cases those I test against different models ... GPT-4 since one week is really degraded, GPT-3.5 became a little bit better, and LLaMA2 is garbage.