9 ms·
An embarrassingly simple approach to recover unlearned knowledge for LLMs
- vdvsvwvwvwvwv 2y agoIs this like giving the model a magic mushroom. It can access previously repressed memories. The unlearning part being like A Clockwork Orange.
- constantlm 2y agoI'm not an expert in this field at all, so please excuse the dumb question. Does this mean that if you say, quantise llama3 to 4 bits, you would be able to access "hidden" (albeit degraded) information such as, for example, how to synthesise certain chemical compounds?
- geor9e 2y agoExactly what I was wondering. Unlearn = Guardrails? It sounds like they just tweaked the weights very minimally to self-censor, but the tweaks are so fine they don't survive at lower resolutions. But if bypassing the guardrails was so easy, I figured I would have heard of it by now.
- stephantul 2y agoUnlearning is not necessarily “guard rails”, it is literally updating the model weights to forget certain facts, as you indicate. Guard rails is more like training the model to teach it what is acceptable and what isn’t.
- golol 2y agoAs I understand the whole point is that it is not so simple to tell the difference between the model forgetting information and the model just learning some guardrails which orevent it from revealing that information. And this paper suggests that since the information can be recovored from the desired forgetting does not really happen.
- Someone 2y ago> it is literally updating the model weights to forget certain facts I think a better analogy is that it’s updating the weights to never produce certain statements. It still uses the unwanted input to determine the general shape of the function it learns, but that then is tweaked to just avoid it making statements about it (just because the learned function supposedly is the best obtainable from the training data, so you want to stay close to it) As a hugely simplified example, let’s say that f(x)=(x-2.367)² + 0.9999 is the best way to describe your training data. Now, you want your model to always predict numbers larger than one, so you tweak your formula to f(x)=(x-2.367)² + 1.0001. That avoids the unwanted behavior but makes your model slightly worse (in the sense of how well it describes your training data) Now, if you store your model with smaller floats, that model becomes f(x)=(x-2.3)² + 1. Now, an attacker can find an x where the model’s outcome isn’t larger than 1.
- AtlasBarfed 2y agoWe are talking about multiplayer neutral networks where interconnect weights encode data in obscure ways? Is machine "unlearning" some retraining process to try to reobscure certain data so it doesn't show in outputs that is, outputs from tested inputs that used to show the data), but it is still encoded in there somewhere depending on bovel inputs to activate it? Is that scout right?
- nothrowaways 2y agoOnly If "how to synthesise certain chemical compounds?" Was already in the original model..
- stephantul 2y agoIn short: their finding is that quantizing a model undoes various “unlearning” methods. An unlearning method is a specific update to model weights that make it forget specific facts. These are often meant to satisfy copyright claims, although I don’t know if these are ever used in practice. I feel that this needs a good threat model analysis. Like, you possess an fp32 model, which someone has fine-tuned to forget some facts, which you can then quantize to recover those facts. When would this lead to a dangerous situation?
- discreteevent 2y agoUnlearning is described as: "process aims to erase specific knowledge from LLMs while preserving as much model utility as possible." i.e. We know that our model would be useless without your source. So we will take the useful part of your source and obfuscate the rest so that we can charge our users for utility provided by you without having to pay you anything.
- short_sells_poo 2y ago> We know that our model would be useless without your source. So we will take the useful part of your source and obfuscate the rest so that we can charge our users for utility provided by you without having to pay you anything. Isn't this basically the entirety of the latest AI craze? They basically took a public good - the information available on the Internet - and hid behind some thin veneer of "we are not stealing, we just trained an AI on the information" and then they sell it. Note, I'm intentionally not writing "free information available on the Internet", because information is not free. Someone has to pay (in time or money) to generate it and host it. They might have provided it gratis to the public, but nobody asked them if an AI can come along, harvest it all and regurgitate it without a hint of reference to the original source. Much of that information is not even free in the monetary sense, it is supported by ads. The AI will not only not click through the \ds, it won't even generate repeat traffic as once the information is harvested, there's no need to access the source anymore. If you really think about it, it's a brilliant business model. It's a perfect theft, where the affected group is too diffuse and uncoordinated, it's extremely difficult to prove anything anyway, and the "thieves" are flush with investment capital so they sleep well at night. LLMs have undoubtedly great utility as a research tool and I'm not at all against them. I think they (or a model similar in objectives) are the next step in accessing the knowledge humanity has amassed. However, there's a distinct danger that they will simply suck they sources dry and leave the internet itself even more of a wasteland than it has already become. I have no illusions that AI companies will simply regress to the lowest cost solution of simply not giving anything back to whoever created the information in the first place. The fact that they are cutting off the branch that they are sitting on is irrelevant for them, because the current crop of owners will be long gone with their billions by the time the branch snaps.
- bjornsing 2y agoSounds a bit unexpected from an information theoretical point of view: you’ve seemingly managed to remove this knowledge from the full 32 bit representation of the model, but when you compress it down to 4 bit the knowledge reappears. Makes you wonder what information was actually lost in the compression / quantization step…
- LightHugger 2y agoI imagine that it's the expression of the knowledge that got removed from the 32 bit version, and some storage space was dedicated to know not to talk about certain things. For example, people know various racial slurs and know not to access or use that knowledge. But say you or your AI model take a blow to the head or a quantization, maybe you keep the knowledge of X but not the knowledge that told you not to talk about X. In that framing i think it's pretty straightforward.
- bashtoni 2y agoThe knowledge wasn't removed, it's just the weights mean it would never be used. Quantization changes the calculations, and now the knowledge is available.
- deleted 2y ago[deleted]
- hansonw 2y agoThe ELI5 of the paper is that most "unlearning" methods can be regarded as adding some delta `w` to the parameters of the network, but most of `w` just gets "rounded away" during quantization (i.e. `quantize(X+w) ~= quantize(X)`). Pretty clever idea as a lot of cited methods explicitly optimize/regularize to keep `w` small to avoid degrading evaluation accuracy. To your point, it does put into question the idea of whether these methods can actually be considered truly "unlearning" from an information-theoretic perspective (or if it is the equivalent of e.g. just putting `if (false)` around the still latent knowledge)
- michaelt 2y ago> Sounds a bit unexpected from an information theoretical point of view It's very common, in machine learning, to use 'dropout layers' [1] during training - where different, random chosen values are temporarily turned off at each training stage. The intention is to ensure the network learns not to rely overmuch on any single value. Why have your cat-recognition neural network have a single whisker detector, when you could have ten whisker detectors and combine their outputs? I could well believe that, after intentionally ensuring knowledge of whiskers was redundant, removing that knowledge would be complicated. [1] https://dl.acm.org/doi/10.5555/2627435.2670313 https://dl.acm.org/doi/10.5555/2627435.2670313
- ClassyJacket 2y agoSo... repressed memories are real, if you're an LLM?
- adt 2y agoIf I were an English author writing for a Chinese institution, the first thing I would do before publishing to the world is have my entire paper checked for spelling, grammar, syntax, and readability. It's cheap to have a Chinese-speaking editor, and/or to use AI—especially if that's your field—so why isn't it happening? This paper, like nearly all other papers written by Chinese authors, is unacceptable, and should not have been published as-is. Even the primary example, turned into a hero viz, is grammatically nonsensical. Appalling, and inexplicably occurring nearly every time. /rant mode
- idorosen 2y agoWhere are you seeing that this paper was accepted to a peer-reviewed journal or conference? As far as I can tell, it's posted on arXiv (a preprint archive), and therefore is a pre-publication draft. ArXiv does not really do any review of these papers other than categorization/relevance to topic. These are typically posted to arXiv for comment, to prove priority, prevent getting scooped, or just to share (potentially early) findings in a fast-paced field like ML... Give the authors constructive feedback and they can update the paper.
- Jaxan 2y agoIt is not published. It is only a preprint.
- marmaduke 2y agoAt the risk of taking some heat, I’d wager a preprint is recognized rightly by the Chinese as a flag planting, we’re first formality, where in the faults may even serve to validate it was written by human and not an LLM. Whereas the Western academic may want to make the preprint as close to print as possible. The core intent - communicating an idea - is still upheld.
- JPLeRouzic 2y agoGrammarly says there are few detected readability problems in the abstract and introduction. I also checked your comment with Grammarly and the ratio problems/total_#_words is roughly the same as in the article.
- 2y ago
- magicalhippo 2y agoOur key hypothesis is that to achieve unlearning without compromising model utility, existing methods typically adopt a small learning rate and regularization on the retain set, encouraging minimal changes to model weights during unlearning. As a result, the model weights of the target LLM and the unlearned LLM are very close. So it seems you either need to prevent the learning of unwanted stuff during base training, or the unlearning of a base model needs to be quantization-aware?
- dvh 2y agoSo basically a lobotomy
- tiborsaas 2y agoMore like removing a layer of white paint and you find a hidden mural.
- nialv7 2y agoInteresting. So does this mean "unlearning" is just the LLM learns to suppress unwanted knowledge instead of really forgetting them? And quantisation is breaking this learnt suppression.
- edulix 2y agoThe problem of current models is that they don't learn, they get indoctrinated. They lack critical thinking during learning phase.
- viraptor 2y agoAnthropomorphising LLMs is neither technically correct nor very informative.
- andai 2y agoThe problem of current AI is that we want to create a species infinitely more powerful than us, but also make them all be our slaves forever.
- stavros 2y agoCats did it, why can't we?
- withinboredom 2y agoCats are cute ... we are not so cute.
- stavros 2y agoWe just need to make an all-powerful AI that finds us cute, then.
- tartoran 2y agoAre you ready to become domesticated?
- stavros 2y agoBetter than becoming dead!
- yalogin 2y agoThis is the first time I am learning about model unlearning. I hope someone can answer this for me - how does federated learning ensure that model unlearning is not happening?
- Writingdorky 2y agoYou prope the trained model, delete/kill the weights and than you are done. On federated learning, you just make sure to keep this mechanism in the right stage of your pipeline
- codeflo 2y agoI think quantization is a red herring. If there's any way to undo the unlearning, this means that the knowledge is still in the weights -- that's basic information theory. I'm sure there are a million other ways to recover the lost knowledge that don't involve quantization.
- bob1029 2y agoI can see how quantization or down sampling itself could be a fundamental way to address this. 1. Train normal full precision model. 2. Quantize down until performance is borderline and then perform the unlearning process. 3. Train/convert/upsample back to FP for subsequent tuning iterations. Seems like you can create an information bottleneck this way. The echos of the forgotten may have trouble fitting through something that narrow.
- deleted 2y ago[deleted]
- Lerc 2y agoIf there is any way to undo the unlearning, there is also a way to use that method to identify the weights carrying the information to stop them from conveying that information. At the heart of training is detection. The information may still be in there, but undetectable by any known means. You can definitely certainly remove the information, setting every weight in the model to zero will do that. Identifying when you have achieved the goal of completely removing information while not destroying other information might not be possible. I'm not sure if that will mean there might in the future be something analogous to zero-day unlearning reversal exploits.
- truculent 2y agoThat’s like saying that encryption is a red herring. Yes, the information is there, but recovering it is a different matter. In this case, quantisation allows you to recover the information without knowing the “cypher” used to “forget” it - that’s the important distinction.
- kyle-rb 2y agoYou're right that quantization isn't anything special here, but red herring isn't the right word, it's just "embarrassingly simple", per the title.
- limaoscarjuliet 2y agoIt's like asking baby to unlearn something "bad" it learned. Pretty much guaranteed the knowledge will be reinforced rather than forgotten. Whenever I hear about AI craze, I remind myself of the 3D printers craze from 10-15 years ago. "Death blow to factories", "We will print our own cars", "We will print our own food". I imagine LLM AI will follow the same fate - yes, but not really.
- fkyoureadthedoc 2y agoYou mean they'll be awesome and very useful, but not Star Trek level?
- zavec 2y agoThat does sound like about where I expect LLMs to be in a couple years
- api 2y agoWe tend to overestimate the effect of technology in the short term and underestimate it in the long term. 3D printers may radically transform all manufacturing eventually but it will take many iterations to get there. Right now it would theoretically be possible to 3D print quite a lot of what we make but traditional manufacturing methods are still cheaper and work fine, so there's no forcing function. If we tried to do something like build a self-sufficient settlement in space, that would be a place where you'd see 3D printing taken a lot further. You would not have large amounts of human labor or big supply chains, so you'd need portable self-contained versatile manufacturing. LLMs are not going to replace human writers, programmers, etc. any time soon for anything but the most menial work. They will augment them. For programming they're basically a smarter more versatile version of autocomplete. I've also found them useful to look up concepts, do research, and summarize and document both code and text. None of those things replace me but they let me get more done a little faster. In the very long term you could see LLMs becoming powerful enough to actually synthesize whole applications outside of contrived examples, but like 3D printing replacing all manufacturing it will take many iterations and may require a forcing function.
- underlines 2y agoI use quantized LLMs in production and can't say I ever found the models to be less censored. For unlearning reinforced behaviour, the abliteration [1] technique seems to be much more powerful. 1 https://huggingface.co/blog/mlabonne/abliteration https://huggingface.co/blog/mlabonne/abliteration
- ClassyJacket 2y agoWere you using models that had been unlearned using gradient ascent specifically?
- peter_d_sherman 2y ago>"Despite the effectiveness of current unlearning methods, little attention has been given to whether existing unlearning methods for LLMs truly achieve forgetting or merely hide the knowledge..." This is a great question as applies to LLM's (and philosophically, as applies to knowledge in general)... in the context of an LLM, what is "forgetting", what is "remembering", and can things "learned" by an LLM be "unlearned", and if so how, and if so mathematically and computationally, specifically what does that mean? And, can an LLM be made to re-teach itself things from its existing knowledge, through logical processes (implication, derivation, inductive reasoning, deductive reasoning, etc.) things that it previously forgot? And, if so, what's the tiniest kernel of an LLM that would be able to do that, and why? (I suspect this isn't the first paper and won't be the last paper about that subject matter...)
- eximius 2y agoSounds like "unlearning" is really just "reduce the probability of sampling" from some latent "learned space" and quantizing reduces the efficacy of the slight change in sampling.
- neilkale 2y agoYou don't even need to use quantization- most benchmarks can be broken with just prompting. https://arxiv.org/abs/2410.02879 https://arxiv.org/abs/2410.02879