6 ms·
Ask HN: Do you think ML model weights are copyrightable?
With the leaking of Facebook's LLaMA model and the seemingly endless copyright drama surrounding Stable Diffusion (but oddly not DALL-E), I pose two questions:
1. Do you think model weights can actually be copyrighted?
2. Should they be?
- cloudking 4y agoThe weights don't do much without the model right? So shouldn't weights + model be considered together?
- spywaregorilla 4y agoThe weights are the model. The small bits of standardish code to utilize them are not that material
- turtleyacht 4y agoIf we could encode every permutation of weights, then it's like the Library of Babel for ML? I guess we cannot copyright (GPU, CPU, algorithmic) effort in that case. https://libraryofbabel.info/ https://libraryofbabel.info/
- hprotagonist 4y agoIn 2016, we asked an actual IP lawyer the other question that has been fervently debated of late, “does the IP status of the training data taint the weights?” He said “we have no idea, and we won’t until someone with a boatload of cash burns it in a lawsuit.” So we might find out soon!
- nuclearnice3 4y agoDid he give any sense of the best arguments that might be deployed on each side? The non-copyright people will point to recipes. The weights are ideas, not expressions. A “simple set of directions” is uncopyrightable. The copyright people will point to the ability to extract significant chunks of copyrighted material from the weights. I find the non-copyright argument stronger.
- dpflan 4y agoHow much wiggle room is there with weights? Tweak a single weight, is that copyright infringement or a new weight set?
- buildbot 4y agoFor small changes, lots!
- novaRom 4y agoAll the model's weights are just a compressed representation of data it was trained on. Keep in mind it's open data, created by millions of people for free and placed either on Stackexchange or Reddit or Facebook or on Wikipedia. Thus, it is a nonsense to speak about any kind of copyright wrt neural networks.
- lbotos 4y agoCan’t wait until you learn that you can copyright a database. As in a collection data and it’s relation fixed in a tangible medium. So yes, by current definition model weights are absolutely eligible for copyright.
- BaseballPhysics 4y agoThe key is that it's a fixed representation. But if I pull your weights and create my own representation, it wouldn't surprise me if that was not considered a derivative work, in the same way I can publish someone else's recipe so long as I rewrite it. In the end we'll see, but I wouldn't be at all surprised if courts ruled that the data itself was not protected.
- lbotos 4y agoRecipes are not databases. You can repost a recipe straight up. The recipe itself is not copyrightable. The blog post/cookbook/etc which has a recipe embedded could be. (Copyrighted works can contain uncopyrightable elements)
- BaseballPhysics 4y agoThat's not at all true. If I take a picture of a recipe from a cookbook and post it, that is absolutely a copyright violation, as the specific presentation is a copyrighted work. This is because you can't copyright facts or procedures, but you can copyright specific representations/presentations of those facts or procedures. If I take that recipes, type it out, and post my own version? Yeah, that's totally fine. But I can't verbatim copy yours.
- version_five 4y agoCurious why it would be copyright vs patent. Weights are in essence part of an invention - I think the specific numbers would be pretty weird to copyright, but patenting the system that includes the model architecture and training process would offer a much more robust protection that's more along the lines of past physical inventions. I'd be interested to look and see if there are any old analog computer patents, and how they are worded? Like if the specify list of resistor values, or focus more on architecture and tuning. I think that's a possible precedent to look to.
- falcolas 4y agohprotagonist probably has the most correct answer, but IMO no to both. Mostly because I’m looking at it from the spirit of copyright law, not the rule. The spirit is to encourage the creation of art/books/etc by allowing a artist/writer to make a living from their craft. Not to mechanically create an index of facts about other art/writing, no matter its usefulness.
- leobg 4y agoThe idea copyright is to protect the author’s specific personality in the expression of an idea while, at the same time, allowing for the free circulation of the idea itself. An ML model has no personality. It is not a legal entity. Also, its outputs are in no way the direct expression of the personality of those who trained it. It is precisely this what differentiates ML from regular code: With regular code, it’s the programmer who solves the problem in a way that is similarly personal as someone writing a novel or an easy. But with ML, the specific implementation is found by the software itself. You can’t have it both ways. Both not having to write the solution itself AND claim personal ownership of the results. (But of course, we’ll see what the courts actually say.)
- WalterSear 4y agoA model weight is the result of a human creative process, and in no way less an expression of an idea than a coded program. Creative choices are made in regards to training data and in writing and running the implementation. Is the output of an ML model a creative work? I would argue that it also is. The real question, however, is whose work. Or rather, what proportion of the work was created by the original artists, and what proportion was created by the ML developers. The questions at the heart of this is similar to the one society had about samples in music. I don't think anyone today would deny that sampling can be a legitimate creative process.
- mstolpm 4y agoStable Diffusion is trained on 2.3 billion images. It would take a human ~220 years to decide if an image should be included in the training set under the condition that a decision takes 1 second and the human works for 8 hours straight year-round. GPT is even worse in that regard, it was literally trained on the whole web plus other sources. I'd be surprised if a judge would follow the argument that the training data was make by creative choice instead of raw crawling power. I'd argue the size of training data makes it impossible to call for a creative selection process for the data.
- leobg 4y ago
- Hizonner 4y ago1. No. The weights are not a work of authorship. Nobody takes any intentional action to make the weights be what they are. Only works of authorship are copyrightable. And a copyright comes into being as the property of an author... which, as I said, models don't have. The closest thing to authorship that happens is curation of the training data, but that's too tenuous to support a copyright. For one thing, the curation choices aren't directly targeted to shape the weights themselves, only the output when a separate program runs inference on those weights. And even for the output, there's probably not enough direct control there to support much of a claim of authorship. And the people building the models had better hope that's true, because if that curation is strong enough to support a copyright, then it's really hard to claim that the contributions from the training data aren't strong enough to make the model a derivative work of every single training item. 2. No. The last thing we need is more ways for people with a bit of capital to get vast sweeping IPR claims. Also, isn't about time HN got a real Markdown engine?
- V__ 4y agoI think this has interesting overlap with the concept of illegal numbers [1]. [1] https://en.wikipedia.org/wiki/Illegal_number https://en.wikipedia.org/wiki/Illegal_number
- mtlmtlmtlmtl 4y agoThe troll in me wants to get a tattoo with one of these numbers on my forehead just to see what the consequences could feasibly be.
- syrrim 4y agoDifficulty finding a job, getting dates, etc, etc
- mtlmtlmtlmtl 4y agoI was thinking more about legal consequences. Could I realistically be forced to undergo skin grafts. Legally - at least in my country - medical procedures without consent require the patient to be a danger to themselves or others, or it has to be an emergency. And even if the court said yes, would any medical professionals agree to do it? I kinda doubt it. Would be an interesting court case though.
- Jeff_Brown 4y agoThey're really long numbers.
- mtlmtlmtlmtl 4y agoNo problem, just use a higher base or some smaller expression which computes to it.
- blueboo 4y agoThe answer to (1) is plainly yes. Copyright is a human process. Things you think shouldn’t be copyrighted get copyright and vice versa. Lawyers will consider how experts make decisions that affects and shapes the (sometimes far-) downstream representation of a valuable thing: thus an mp3 recording, a compiled executable, and, yes, a neural network’s model weights are all going to be in scope of copyright discussions. As for “should”…I don’t know. I feel like the model I train to synthesise my own voice should be copyrightable. Meanwhile I’m wary of titanic foundation models destroying entire markets in part because of a copyright moat.
- remix2000 4y ago1. If synthetically crafted DNA can be patented, then why wouldn't weights be eligible for the same protection? Both are kind of similar in function, I think… 2. Definitely no. Copyright should only apply to things entirely crafted by hand IMO.
- api 4y agoMy opinion is that they should not be if they were created using public data that is itself not owned by the creator/trainer. Otherwise we have a new model of for profit piracy where huge companies exploit their capital advantage to dragnet the collective work of humanity and then claim ownership of the result. If a model is trained on data that one owns the copyright to, it should be copyrightable.
- timdellinger 4y agoAn argument can be made that model weights are a "creative work", in the same way that a list of pixel intensities and RGB values is a creative work. Who knows whether the argument will hold up or not. As with all IP, it's one thing to be granted intellectual property rights, and a completely different thing to actually go about enforcing those rights. Without access to infringer's source code, it's challenging to make the case.
- jrochkind1 4y agoA list of pixel intensities and RGB values are only a creative work because they are a picture, it's the picture that's a creative work. Lists of numbers as such are not generally copryightable in the USA. Note that "facts" aren't copyrightable in the US, regardless of how much effort or money was spent assembling them. Neither are algorithms or procedures as such.
- soheil 4y agoAny information can be represented as a single number (albeit possibly a very large number). You can turn a movie into a number. Model weights are just numbers too. So yes copyright laws should apply.
- tomrod 4y agoI really love this question. I think most of use will answer seeing "through the glass darkly" as it were. I can't answer (1) as my opinion is just noise until it works through the legal system. I suspect they will be. For (2), I think they should. You can't copyright the algorithm (recipe) but you can copyright the output (expression) of the recipe. On that note, this allows for open sourcing of models as well.
- muhaaa 4y agoNot a lawyer. 1. EU yes / US not so easy. Under EU law, content of a database can be copyrighted. I argue the weights of ML model are like the content in a database. Under US law the arrangement of data needs to be creative / original. Creative / original assumes a human expressing himself. Maybe the design of the ML model, selection of training material and selection of hyperparameter justify a copyright claim on a database of model weights. 2. Yes as resources were used to create it.
- exabrial 4y ago1. No 2. NO Absolutely not. Software should not be copyrightable because math equations are not copyrightable. But besides that, ML Models end up as polynomials at the end of the day, and that literally cannot be copyrighted.
- Jeff_Brown 4y agoAny work of fiction is also just a number. See Godel's Incompleteness Theorem.
- PeterisP 4y agoI'd say that we'd need some more law to be certain, either some precedent ruling or explicit new legislation, but as of now some of the relevant and irrelevant arguments would be: 1) Purely mechanistic transformations aren't copyrightable, so if a model is determined to be that (it may be debated if it is or isn't), then it has no independent protection from copyright law other than any potential restrictions imposed by fragments of other copyrighted works included in that particular model. 2) On the other hand, even the tiniest bit of creativity is sufficient to make something copyrightable. Some work on ML definitely has some creativity, however is the "creative part" fully within the code used for training and, or is part of that creativity embedded also in the weights output by that code? 3) Facts about a copyrighted work; e.g. the word frequency statistics of a copyrighted book do not violate the work's copyright and also are not copyrightable themselves, so at least some language models - the very simplest word n-gram models, which were used both not that long ago for statistical machine translation and also long, long ago in pre-computer dictionary work - aren't covered by copyright, just as any other collection of facts. Databases may have specific ('sui generis') extra protection granted by law, but then that's a separate debate than general copyright. 4) In general, there are different things which often are conflated but in this complex situation the difference may be meaningful and even critical - e.g. (a) being a derived work of the training data; (b) violating the (limited, explicitly enumerated) exclusive rights of the author of that training data; and (c) being copyrightable itself - those are three separate things that might have different answers for the same type of model. 5) "sweat of the brow" doctrine asserts that (at least in USA) it doesn't matter how much effort and money it took to make something, so the effort/expense of training a model is not relevant to it 'deserving' protection and being copyrightable. 6) Not all creative creation is protected by copyright - the law lists very many protected types, but the rest are not protected unless courts get convinced that they fall under the umbrella of something explicitly listed in copyright law; for example, copyright applies to software because (and only because) program code is considered to be a type of literary work, which is one of the things listed in https://www.copyright.gov/title17/92chap1.html#102 https://www.copyright.gov/title17/92chap1.html#102 or equivalent legislation elsewhere. Are model weights a type of literary work? That's a tricky question, and my opinion on it doesn't really matter, we'd need to hear a precendent-setting judge assert if they are or not. ... and there's probably many more arguments that should be considered before even trying to answer the original questions. And I think that it's illustrative to see what all the megacorps with megapaid megalawyers are doing; it seems that they're writing all their legal documents from a perspective where models might not be copyrightable and trying to assert whatever conditions they want under some type of contract, since conditions properly agreed under contract law will apply no matter how the copyright law will be interpreted.
- jcranmer 4y ago> Do you think model weights can actually be copyrighted? Under US law, the answer is clearly "no." US requires there to be, at minimum, a "spark of creativity." (Also, as far as legal definition is concerned, machines cannot possess any creativity.) If you try to start doing some creative legal argument to work around that, you're going to run into the issue that the same lines of legal thinking will conclude that you are infringing all of your training set... and trying to argue that infringing more or less everything ever made is somehow fair use is a truly uphill task. You might be able to make a case for it under jurisdictions that follow the sweat-of-the-brow doctrine, but I know too little about jurisprudence in such jurisdictions to make any confident predictions.