News for hackers. Stuff that matters.
Re:Is the reversal curse in LLMs real? by gipp on Tuesday November 14, 2023 @08:09PM (#38272112)
I fall somewhere on the skeptic side of the LLM spectrum. But this "flaw" just does not seem to have the force that its proponents seem to think it does, unless I'm missing something significant. Simply because in the context of natural language (Rather than formal logical statements), "A is B" does not imply "B is A" in the first place. "Is" can encompass a wide variety of logical relationships in colloquial usage, not just exact identity. "The apple is red" does not imply "red is the apple," as a trivial example.
Re:Is the reversal curse in LLMs real? by og_kalu on Tuesday November 14, 2023 @08:38PM (#38272309)
I think a lot of people unwittingly think of the training process as "smart".

Similar criticisms are "well there are many descriptions of game x it would have read so why doesn't it play x well". But gradient descent is a dumb optimizer. Training itself is not actually like someone reading a text anymore than evolution is like someone thinking about the best way to augment an organism.

a "smart" optimizer would look at a reversal applicable sentence and know exactly what bunch of weights to change to store it in such a way as to be recalled reversibly in the future.

Inference may be smart (GPT-4 can reverse in context just fine, potentially play games from only a description) but the training is not.

Re:Is the reversal curse in LLMs real? by LoganDark on Tuesday November 14, 2023 @08:55PM (#38272431)
A prior (now-deleted) comment of yours put this in such a great way, and I'm sad that it got deleted:

> You could potentially describe how a game is played to GPT-4 without examples and get it playing it correctly but passing that same description into the training process of the model just gets you a model that can describe your game correctly.

Re:Is the reversal curse in LLMs real? by tysam_and on Tuesday November 14, 2023 @11:10PM (#38273267)
I'm not really sure if I understand the intuition here, this seems rather disconnected from what I understand to be the math of optimization.

It seems like you're referring to an associative Hebbian/Hopfield-like lookup, which the current 'dumb' optimizers already do. Better yet, the learning rates are normalized by the diagonal of the empirical Fisher so that the learning w.r.t. to some estimated expected information is more constant, for said associative lookup operation.

Additionally, the training loop (which you call 'dumb') is just...a teacher-forced version of inference, which you call 'smart'?

It's better to simply minimize the log-likelihood in a scalable way. Hand-engineered solutions rarely survive compared to strong-scaling ones.

Re:Is the reversal curse in LLMs real? by og_kalu on Tuesday November 14, 2023 @11:27PM (#38273355)
smart is in quotes here for a reason. It's 'dumb' in relation to many people's expectations.

>Additionally, the training loop (which you call 'dumb') is just...a teacher-forced version of inference, which you call 'smart'?

What powers In context learning is not very well understood but it doesn't appear to be or really work exactly like just a non teacher-forced version of training. There are qualitative differences. The same models have no problem with this 'curse' when the information is provided in context for example.

>It's better to simply minimize the log-likelihood in a scalable way. Hand-engineered solutions rarely survive compared to strong-scaling ones.

I never said anything about it being bad.

Re:Is the reversal curse in LLMs real? by tysam_and on Tuesday November 14, 2023 @11:46PM (#38273447)
> What powers In context learning is not very well understood but it doesn't appear to be or really work exactly like just a non teacher-forced version of training.

I mean, yes. One distills information from a training set into a compressed representation, and the other generates a compressed representation that yields (more or less) fixed state space attractors. It's just inducing a bias over the state space of the network, nothing incredibly special, though I'd consider the initial stage of training to be the most important, as it is responsible for all of the ingest of all of the embedded information the network will be using during autoregressive inference (especially w.r.t. the context of doing so during longer generations).

So the notion of 'in context learning' is one I find to be a bit of an illusion, of course, as no actual learning is being done, just the induction of biases, which appears to give rise to a transiently-'better trained' network.

You could see this as a bit straightforward perhaps, but I feel it needs to be said.

Re:Is the reversal curse in LLMs real? by TeMPOraL on Wednesday November 15, 2023 @04:43AM (#38274940)
I guess if we'd automatically feed every such conversation back to the training set, it would be proper "in-context learning", and it would work very much like humans learn - inferring new facts from recalled facts, and memorizing the inferences that come up repeatedly or otherwise feel important.
Re:Is the reversal curse in LLMs real? by JKCalhoun on Wednesday November 15, 2023 @08:10AM (#38276252)
I'm LLM-ignorant, but my layman brain wonders if the logical relationships belong in a kind of as-of-yet-not-invented "pre-processor" that feeds into the LLM.

(Perhaps though it has to be done during training so that "Who was the ninth Chancellor of Germany" becomes knowable in the first place.)

Re:Is the reversal curse in LLMs real? by earthboundkid on Tuesday November 14, 2023 @08:37PM (#38272304)
Ideally, the LLM would be able to tell the is of identity from the is of predication. I found the article a little too defensive. It felt like "of course it doesn't work, there's not enough data!" and okay, sure, but that is a flaw, no?
Re:Is the reversal curse in LLMs real? by og_kalu on Tuesday November 14, 2023 @08:40PM (#38272321)
Well the LLM can tell in that reversal works just fine in-context. This is a recall from training issue and training is dumb.
Re:Is the reversal curse in LLMs real? by majormajor on Tuesday November 14, 2023 @08:45PM (#38272348)
I don't think this is the right explanation, or really that relevant, the suggestions from 'og_kalu and in the article sound more accurate to me.

It seems like understanding when "is" is reversible is pretty core to the capabilities of the model, but that's different than having a lot of facts memorized. For instance, a model should be able to answer "who is the star of Mission Impossible" with "Tom Cruise" based on context or internalized-training of "Tom Cruise is the star of Mission Impossible" while not answering "Tom Cruise" to a much more general question like "who is covered in water" even if it had internalized a bit from a review like "there's a scene in Mission Impossible where Tom Cruise is covered in water..." unless it had context pointing it at that specific case.

Re:Is the reversal curse in LLMs real? by tysam_and on Tuesday November 14, 2023 @11:13PM (#38273283)
It's a bit of mathematical bikeshedding, hardcoding reversability would cause far more problems than it would help.

Best to simply scale log-likelihood-based training, next-token-based training trivially contains a requirement for learning all of the subproblems that predict said, next token, and hardcoding something to get warm human fuzzies would be creating a biased estimator (and move us back towards the 90s a bit).

Models already very constantly do context-dependent token utilization, it's an autoregressive feature based on the entire stream of incoming tokens. Humans have a bias to focus on the 'last token used', this is not what language models look at.

Re:Is the reversal curse in LLMs real? by thfuran on Wednesday November 15, 2023 @04:23AM (#38274820)
>it's an autoregressive feature based on the entire stream of incoming tokens. Humans have a bias to focus on the 'last token used', this is not what language models look at.

But human language is created for and by humans. Is not then operating on language in a categorically different manner an incorrect usage/understanding of language?

Re:Is the reversal curse in LLMs real? by tysam_and on Wednesday November 15, 2023 @03:06PM (#38281708)
Re:Is the reversal curse in LLMs real? by thfuran on Thursday November 16, 2023 @05:34AM (#38287882)
I'm not sure why you think that's a rebuttal.
Re:Is the reversal curse in LLMs real? by tysam_and on Thursday November 16, 2023 @05:55AM (#38288048)
It is because it is the foundation for the mathematics underpinning your question about communications systems, encodings, and their various structures. It also explains why the choice of the log likelihood is a better fit for estimating a token-based model than some other hand-crafted heuristic.

The version with the Weaver introduction is quite good as well, there are other versions of similar papers covering the topic from different angles, I find it to be well-worth the read.

Re:Is the reversal curse in LLMs real? by godelski on Wednesday November 15, 2023 @12:43AM (#38273710)
I mean transformers are definitely sequentially biased. There's also human speech bias. But I think it's pretty clear that humans are generally invariant to this kind of prompting as well (given that they have the knowledge. More in a different comment). My surprisal is far higher that the reversal "curse" is considered controversial or even surprising than it was when that sensational tweet dropped. It feels pretty well studied that sequential algorithms are sequentially biased.
Re:Is the reversal curse in LLMs real? by aade63482 on Wednesday November 15, 2023 @02:57AM (#38274349)
Re:Is the reversal curse in LLMs real? by TeMPOraL on Wednesday November 15, 2023 @04:49AM (#38274990)
> But I think it's pretty clear that humans are generally invariant to this kind of prompting as well (given that they have the knowledge. More in a different comment).

But are they? Unless I'm misunderstanding what you mean here, I'd say the opposite is clearly the case - learning "A is B" doesn't automatically mean learning the reversal; you either have to learn it from external source, or infer and memorize it - both involve an extra cognitive effort. This maps to LLMs as training, or "in-context learning" and then adding the inference to the training set.

Re:Is the reversal curse in LLMs real? by godelski on Wednesday November 15, 2023 @01:57PM (#38280809)
I think this would be reasonably testable actually (at least in a simplified case). Teach someone two relations that aren't meaningful naturally. Say Apples -> black holes and octopi -> industrial fan. You give them a few minutes to learn them. Then give some other unrelated tasks and say "if black holes -> apples, then what does industrial fan imply?" I feel pretty confident that humans would be able to do decently well on this task. Obviously got to account for people simply forgetting the forward relationship though.

In the non-simplified case I'd actually say that we have some natural experiments, but that might spoil this as well because you can in fact say that this is training for such invariance (which I'm unsure is problematic to my claim but pushback is definitely welcome). If we're learning history we'd often learn information such as "On December 7th 1941 Japan attacked Pearl Harbor and this was a major event that got America directly involved in WW2." But then on the test we'd see questions such as "What important event happened December 7th 1941?", "What was the date of the Pearl Harbor attack?", "What major event led to the US becoming a direct player in the war and when did this event occur?" and so on. Granted, because we do such testing I'd expect GPT to be able to reasonably answer many of these same questions but I'm very much under the impression that humans are far more robust/generalized and would quickly learn these reversals. And to stress, conditioned on knowing the forward direction to a strong degree. If you're fuzzy about the forward direction I'm not surprised if the reversal is even more fuzzy. Definitely biased. But more importantly, I do not think we have the same strong algorithmic bias in our encoding methods that transformers have. That's my main claim, just to clarify.

But I'm conjecturing a lot here. I think these are reasonable and we have some strong evidence for this. Maybe this is more situational than I'm presuming and I'm definitely working off of biased sampling. So discussion helps refine the ideas.

Re:Is the reversal curse in LLMs real? by og_kalu on Wednesday November 15, 2023 @09:21AM (#38276856)
>But I think it's pretty clear that humans are generally invariant to this kind of prompting as well (given that they have the knowledge. More in a different comment).

I think anyone who's used Anki to learn anything will tell you reversal is by no means free.

고양이 on the front deck, Cat on the back.

You can see this direction and remember cat is the correct answer every single time but completely blank in the other direction. Cat on the front. What Korean word is at the back ?

Re:Is the reversal curse in LLMs real? by godelski on Wednesday November 15, 2023 @01:42PM (#38280588)
Sure, definitely not "free" and why I say nearly invariant. But that is also a different condition that what I was attempting to express. What I was trying to say is under a condition where you already know 고양이 means cat, then the reverse should not be too difficult (though certainly not completely invariant as all language learners know that made up silly phrase half direct translation thing).

Conditions I mean: 고양이 => <concept of cat>; cat => <concept of cat>; either [고양이 => cat || cat => 고양이]. Under these conditions 고양이 == cat && cat == 고양이 should be known.

Your conditions: 고양이 ~> <concept of cat>; cat => <concept of cat>; [ 고양이 -> cat && cat ~> ...고양이?] (or something, trying to express you're preferentially learned one direction, usually mapping back to mother tongue while learning)

By no means are we strictly invariant. But I'd say that a good measure of your skills are in fact to be invariant. But also like you are pointing out, we also kinda train ourselves that way because it creates stronger pathways. Training methods are important too! And augmentation is critical to both human learning and machine learning. They're specifically critical to generalization abilities. You'll also see this in humans. I notice test focused educations tend (there's no "always") to create less generalization of concepts as you're over learning a thing presented in a specific way rather than focusing on the concept as a whole. Form of metric hacking if you will.

Side note: if you have tips for an extreme beginner learning Korean I'd really appreciate them. Trying to reduce the burden on my gf having to translate everything for me when we're around other Koreans.

Re:Is the reversal curse in LLMs real? by og_kalu on Thursday November 16, 2023 @12:38AM (#38286131)
If you haven't learned Hangul, then you can learn it from this playlist - https://www.youtube.com/watch?v=Z9ZxsgMAZmI&list=PLbFrQnW0BN... If you have learned Hangul, then you can start with Lingodeer(app), TTMIK(talk to me in Korean)’s Grammar books, or Billie's beginner playlist - https://www.youtube.com/watch?v=sx0yyQqkpqo&list=PLbFrQnW0BN.... These are all extremely beginner friendly. You can just look at the options and choose whichever works best for you. I personally tried lingodeer and ttmik both. I did a bit of lingodeer and then ttmik levels 1 to 3. I didn't try Billie's playlist, but he's a great teacher, so I recommend it if you think that would work better for you. So in the beginning stages, it doesn't really matter so much, but eventually you're going to have to start thinking about how you’ll be learning the big 6, vocabulary and grammar (what I’ve spoken on so far covers grammar and TTMIK takes you pretty far in grammar if you stick with it) then speaking, listening, reading, writing, because believe me, there isn’t as much transfer learning as you would expect or hope. I mean, you don't have to stress over it or anything, just keep in mind that you have to eventually think about how you're going to address those things, and the sooner, reasonably, the better. So this is kind of where my training diverges from most traditional approaches. I know I used Anki from my example and a lot of learners use that with pre made decks from the community for vocabulary, but honestly, I just couldn't use it then. Part of it was because at the time, learning Korean words was like drawing blood for stone. For me, it was so hard. Even five words a day could be a challenge. My brain was like, “what the hell are you doing?”. It just wasn't going in. Come to think of it, you know grokking in NN’s? Learning a language, you quickly realize the same phenomenon can occur in our biological counterparts. It’s like one day I was struggling to learn these new words, I don’t do anything drastic or different and suddenly the next day, learning new words felt so much easier, it’s crazy. Progress isn’t necessarily linear that’s for sure. Part of it was also because I just didn't like the Anki experience, memorizing hundreds, thousands of words in isolation. It just wasn't really doing much for me. So, I just kind of dropped it. If traditional anki works for you then go for it but gin, you’ll need to figure out the remining 4. No matter how much isolated grammar and vocabulary you learn, you’ll need to practice doing each of those things for it to sink in. The typical process is to learn a few thousand works before sinking into the 4. Makes things a lot less frustrating. What I found was this amazing audiobook series. It's a graded reader series. 100 books with audio, all free(start from the oldest). https://audioclip.naver.com/channels/57. Here the books are further divided into stories. At first, each story is really a few pages but it does get longer and longer as the series progresses. graded readers are specifically simplified literature created to help language learners progress. It's also so that you can read in your target language much earlier than you otherwise would have because, well, you might see a lot of people say, “oh, just read, just watch or read children's shows or children's books.” That's a trap because like, children are native speakers man. Don't make the mistake of thinking that they aren't. The complexity of the stuff they read or watch or whatever, is well beyond the beginner learner. So if you go into children's media and learning some few hundred words thinking, “oh, this should be easy, then, yeah, it may become very demoralizing because it won’t be in fact easy”. And just to clarify, I mean children’s stuff not baby stuff. Yeah, baby stuff is simple, but you're going to get bored of that very, very fast. So, yeah, it's a graded reader series and the idea is just to get started. Simplified stories you might find more interesting than baby stuff. So, I really like reading. And I don't know, I just felt like it would be better because, you see, what Anki does is SRS, spaced repetition system, right? But when you think about reading, it's really a natural form of that. So, I just felt like, okay, this is what I'm going to try. So, I was even thinking, oh, I could use this to knock almost all the birds with one stone, you know, it’s vocab, grammar, reading, and listening practice at the same time. But the book series, it starts with a pretty high level. I don't know if you're familiar with the CEFR levels. It starts at about a low B1(bottom end of low intermediate) or so and ends at a high C1(top end of low advanced). So, yeah, coming from where I was, where I knew at best, maybe 100 or 200 words and jumping in, it was difficult. And honestly, I would not have been able to do it without Mirinae. So, Mirinae is a grammar parser - https://mirinae.io/. And what it does is, so basically, Korean and English are so far apart that you could know the meaning of every word in a sentence, and you would be absolutely lost as to the meaning of the sentence itself. So, what Mirinae did, or basically took what would have been impossible for me and made it achievable. I learnt a shitton of grammar this way. You place the sentence in, and it would basically parse the grammar on the sentence. You could see the explanations of different grammar parts, different nouns, objects, stuff like that, how this affected this and all that. It was very, very, incredibly helpful. To to this day, I think that at least for distant languages, a good grammar parser is by far the most useful tool, better than a dictionary, better than just a translator. So, the first story, I was pasting every sentence. So, it took me about a week to get through it, a few hours every day. The amazing thing was that you could the progress, the reduction in time it takes you to complete things, because the second story took only a few days in comparison. By the third or fourth story, I think it took only a few hours. I mean, I didn't finish it in a day, but I could have if I wasn’t a bit lazy. So, yeah, that's the benefit of graded readers. Whether you start this as early as I did or not, it’s genuinely an amazing resource. Earlier this year, I came across this Anki deck series with natural audio -https://ankiweb.net/shared/by-author/374470252 So, basically, what the guy managed to do was, he took a machine learning Korean speech dataset, and he kind of configured a lot of the sentences, which were, you know, a single woman speaking sentences, about 12,000 or so of those sentences. So, he reduced it to about 7,000, and he rearranged, as much as possible to be i+1 comprehensible. i+1 is just basically the idea that you come across a sentence, and there’s only one word you don't know. So, it's much easier to grasp the meaning of that sentence quickly and easily. Then the next sentence, only one word, then the next sentence, only one word, then, and so on and so on. Now, this deck isn't perfectly i+1. But going through it, it's very good. So, you know, you could also explore that too after the beginner grammar resources, I suggested. I’ve also noticed these guys, https://umiapp.co/.ly. It’s an app tailored for learning words in context, comprehensible input style. I really liked the looks of what I saw from the other languages. Korean isn’t there yet but is coming soon. By the time you’re ready for it, it’s hopefully there.

Anyway, best of luck.

Re:Is the reversal curse in LLMs real? by godelski on Thursday November 16, 2023 @01:54PM (#38293715)
Wow this was an incredible response. I don't even know how to properly respond to it but I've favorited it and bookmarked it. Thanks a ton!!!!
Re:Is the reversal curse in LLMs real? by p1necone on Tuesday November 14, 2023 @08:53PM (#38272415)
I don't think it's as simple as that - "the apple is red" is "single thing belongs to category", whereas "Olaf Scholz was the ninth Chancellor of Germany" is "single thing is single thing" - the latter is reversible, the former is not. I would expect a good language model to be able to parse both sentences correctly.
Re:Is the reversal curse in LLMs real? by willsoon on Tuesday November 14, 2023 @10:10PM (#38272853)
You are right. You are thinking correctly. But "the apple is red" might not mean that this particular apple belongs ---to put it in your wording--- to the category red, but that the category of things we call apple also belongs to the category of things that are red. And generally speaking, I think that is the meaning.
Re:Is the reversal curse in LLMs real? by umanwizard on Wednesday November 15, 2023 @12:48AM (#38273724)
> but that the category of things we call apple also belongs to the category of things that are red

No, in English this would be “apples are red”, not “the apple is red”.

Re:Is the reversal curse in LLMs real? by bloak on Wednesday November 15, 2023 @02:25AM (#38274166)
I don't disagree though perhaps it's worth mentioning that sentences such as "the great spotted woodpecker is a medium-sized woodpecker" are used in English with the meaning "great spotted woodpeckers are medium-sized woodpeckers" so it seems to me that "apples are red" is grammatically a possible meaning of "the apple is red" even if it would be stylistically and pragmatically so weird that nobody would ever do that except perhaps as some kind of joke.
Re:Is the reversal curse in LLMs real? by karatinversion on Wednesday November 15, 2023 @03:44AM (#38274595)
Indeed, and even with apples, we can say "the apple is native to Central Asia" without meaning a particular apple.
Re:Is the reversal curse in LLMs real? by SAI_Peregrinus on Wednesday November 15, 2023 @11:13AM (#38278305)
Except that apples can also be green, whereas great spotted woodpeckers are always a medium-sized woodpecker species. So 'the apple is red" implies at least a red variety of apples, never all apples, so "the" doesn't cover the whole group. But "the great spotted woodpecker is a medium-sized woodpecker" does cover the whole group (species). "The" can be either a definite or indefinite article, depending on context. That in turh changes "is" between equivalence and implication.

"An apple is red" does not imply that "Red is an apple". Use of the indefinite article makes the non-equivalence clearer.

Re:Is the reversal curse in LLMs real? by smegsicle on Wednesday November 15, 2023 @01:10PM (#38280115)
grammatically you'd capitalize Great Spotted Woodpecker, and similarly if speaking of all apples as a category, Apple should form a proper noun
Re:Is the reversal curse in LLMs real? by foobarqux on Tuesday November 14, 2023 @09:34PM (#38272640)
But that's the problem isn't it? In some cases they are equivalent and in some cases they are not and a next-word-predictor needs to have "explicit" training data (i.e. it is not doing "reasoning") whereas a human can infer them.

This isn't surprising if you think about how the machine actually works rather than treating it like a sacred magical box.

Re:Is the reversal curse in LLMs real? by og_kalu on Wednesday November 15, 2023 @06:57PM (#38284123)
LLMs can already reverse logical implications. Literally this is not a problem in context. The model can infere all this just fine. Even the original paper makes this clear. This is a recall from training problem, not a logical inference one.
Re:Is the reversal curse in LLMs real? by foobarqux on Thursday November 16, 2023 @06:19PM (#38297067)
I don't understand what you are saying. LLMs can't generally reverse implications, that's what the paper says. This in turn suggests that what you are observing in-context is some other statistical heuristic, not a "logical inference capability".

I don't know in what way this is some trivial "recall" problem as you suggest. Does the reversed implication in question need to be in the training data explicitly or not? If it does I don't understand how you can claim a logical inference capability.

Re:Is the reversal curse in LLMs real? by og_kalu on Thursday November 16, 2023 @08:23PM (#38298065)
>LLMs can't generally reverse implications, that's what the paper says

No that's not what the paper says. It says training won't immediately store this information in a way as to make it reversible.

Let's get one thing straight. This is a common problem for human learning as well. Anyone who has used Anki for language learning will tell you that if you just train on target language word on the front and native language word on the back, you will fail the reverse unless you specifically train for that.

This is specifically a problem of recall. Not a problem of making the logical inference. If you ask the human language learner immediately he has learnt the new word for the reverse direction, he will obviously tell you the correct word.

But later he may not recall the reverse even if he remembers the original. Again this is a problem of recall rather than the ability to make logical inferences.

In the same vein, if you give the LLM the original direction in context and immediately ask the reverse, it will correctly tell you. It can make the logical inference.

Re:Is the reversal curse in LLMs real? by foobarqux on Friday November 17, 2023 @11:41AM (#38305979)
Humans have reasoning capabilities that are separate from memory. If you want to show that LLMs have reasoning capability you try to create carefully constructed adversarial experiments that try to distinguish between that hypothesis and others, you do not just show that there are cases that favor your hypothesis.

And although it's a complete waste of time because the answer is obvious when you do do these types of adversarial experiments, like adversarial blockworld, you find that LLMs are not internalizing abstract principles inherent to reasoning and are instead doing something like string-pattern-patching.

Re:Is the reversal curse in LLMs real? by foobarqux on Friday November 17, 2023 @08:43PM (#38313818)
edit: I meant to say "consistent with your hypothesis" not "favor your hypothesis"
Re:Is the reversal curse in LLMs real? by notahacker on Tuesday November 14, 2023 @10:03PM (#38272820)
the examples are about relations in natural language rather than formal logic though. Mary Lee Pfeiffer being Tom Cruise's mother definitely does imply that Tom Cruise is a valid answer to questions about who Mary Lee Pfeiffer's son is (it doesn't necessarily imply she doesn't have other sons or there isn't another lady of that name who is childless, but that isn't what's tripping the model up). And there is absolutely nothing ambiguous about the failures of the fine-tuned model where the author gave it specific phrases exclusively associated with a fake name in the fine-tuning training set and when prompted for "who is $specific_phrase", supplied different names exclusively associated with completely different phrases (unlike the author, I don't see [serendipitously or otherwise] picking name words from the right training set as "B kinda-has-something-to-do-with A generalization", not when it's lost so much information that the combination of name words which exclusively appears in sentences with that phrase isn't treated as a more probable response. Never mind emergent understanding of syntax, it isn't even making obvious inferences from proximity here)

If GPT4 rarely makes those errors it's clearly not an insurmountable problem at this level of training, but it does imply a lot more difficulty fine-tuning models to reliably retrieve correct information from specific text.

Re:Is the reversal curse in LLMs real? by tysam_and on Tuesday November 14, 2023 @10:25PM (#38272939)
Bit of a nitpick, "red is the apple" is both a valid sentence and one that also conveys the original relationship held by the opposite phrasing, so, in this case, "the apple is red" does indeed imply "red is the apple", and accurately so.
Re:Is the reversal curse in LLMs real? by emme on Tuesday November 14, 2023 @10:42PM (#38273058)
A proper example is probably "an apple is red" and "red is an apple".
Re:Is the reversal curse in LLMs real? by tikimcfee on Tuesday November 14, 2023 @10:46PM (#38273091)
What you’re missing that is “red is an apple” is also possibly saying in a metaphorical sense that red is like an apple to someone - delicious, a treat, perhaps otherwise representative. In that way, the encoding of “is”’ is exactly correct - it’s an ordered pair of glyphs that imply a weak form of assignment or description. : apologies, replied to the wrong post, meant to push this up one.
Re:Is the reversal curse in LLMs real? by cryptoz on Tuesday November 14, 2023 @11:04PM (#38273230)
The correct sentence would start with a capital letter: “Red is an apple.” This is also completely valid as in a cartoon character of an apple named Red. The subject being the start of the sentence compounds the uncertainty in meaning.
Re:Is the reversal curse in LLMs real? by tysam_and on Tuesday November 14, 2023 @11:15PM (#38273290)
Yes, this is because there's no assignment happening up front w.r.t. the word 'red'. However, you'll notice the same kind of ambiguity for the word 'apple' in the reversed sentence, as the word 'The' can imply quite a few things following it.

The entropy gotta get slung around somehow.

Re:Is the reversal curse in LLMs real? by eru on Wednesday November 15, 2023 @12:32AM (#38273666)
Perhaps have a look at this famous syllogism instead:

(1) Mortal was Socrates.

(2) All humans are mortal.

(3) Therefor all humans are Socrates.

Re:Is the reversal curse in LLMs real? by trimethylpurine on Wednesday November 15, 2023 @01:47AM (#38273990)
This isn't exactly on topic. A claim about the apple's color is attributable to the apple and vice versa. An apple can contextually help someone understand the color red by example. There is no "therefore" in such a claim, and in fact the algorithm is simply gauging context statistically. Claim 3 in the syllogism would statistically be selected against, because a "therefore" that is false obviously weighs it in the opposite direction from truth. That's not the case for the apple. Essentially it's not difficult for the LLM to win on this one, just as it is not difficult for a human and for the same reasons.
Re:Is the reversal curse in LLMs real? by moffkalast on Wednesday November 15, 2023 @02:12AM (#38274104)
Diogenes: If I were mortal I would be Socrates as well.
Re:Is the reversal curse in LLMs real? by TeMPOraL on Wednesday November 15, 2023 @03:49AM (#38274625)
True, but only in the implicit, very narrow world typically assumed when doing logic exercises. "Red is the apple", obviously, because our whole world consists of "The apple is red" and some inference rules. In that world, "Red is the" can only be completed by "apple". Drop the narrowing though, and suddenly there's a lot of other completions, many of them much better ones (I'd guess "blood" will be one of the more frequent ones - "red is the blood of" shows up a lot in songs and poems).

Or in short: LLMs will handle "The apple is red. Red is the " just fine, because the first part is heavily biasing the answer. They won't often complete "Red is the " alone with "apple", because why should they?

Re:Is the reversal curse in LLMs real? by anon291 on Wednesday November 15, 2023 @12:45AM (#38273715)
> skeptic side of the LLM spectrum

Can you explain what you are skeptical of? There is ample evidence that LLMs are what they say they are: a series of transformer (usually) functions with learned weights that can successfully be used to generate human like text in many domains. Do you disbelieve this? Or are you skeptical of something else.

Re:Is the reversal curse in LLMs real? by johnfn on Wednesday November 15, 2023 @02:00AM (#38274055)
You're thinking of LLMs as basically pattern matching "a is b", but that's not really how they work. In fact, the incredible thing that LLMs can do is that they can understand (some) colloquial language and shades of meaning. LLMs can grasp all sorts of strange textual nuance; they can't grasp the cases "Foo is Bar's mother" strictly implies "Bar is Foo's son"?
Re:Is the reversal curse in LLMs real? by og_kalu on Wednesday November 15, 2023 @02:33AM (#38274216)
>they can't grasp the cases "Foo is Bar's mother" strictly implies "Bar is Foo's son"?

Correction. The Model can. Training cannot.

Re:Is the reversal curse in LLMs real? by TeMPOraL on Wednesday November 15, 2023 @02:47AM (#38274287)
I'm starting to wonder, why should it in the first place? Very late stages, or fine-tuning, I'd perhaps understand. But early on? Everything is possible, and "Foo is Bar's mother" doesn't imply much over "these tokens come together, sometimes".

It's not that humans aren't suffering from this too. It's possible to spot it when you're learning, or even easier, when you're teaching someone a new thing. A person who learned that "A is B" does not automatically learn that "B is A"; they need to first process it, perhaps run the reversion explicitly in their head. I'd say that checking if the student can infer "B is A" having learned "A is B" is a good way to tell whether they're starting to comprehend the material, vs. just memorizing it.

Re:Is the reversal curse in LLMs real? by ryukoposting on Wednesday November 15, 2023 @02:00AM (#38274057)
The (purported) point of an LLM is its ability to represent language. The inability to represent such a critical nuance would represent a fundamental failure in that regard.
Re:Is the reversal curse in LLMs real? by Grimblewald on Wednesday November 15, 2023 @02:53AM (#38274322)
While red is the apple is not a correct logical statment using conventional understanding of each term, it is still an understandable english sentence, a structure which likely pops up a fair bit. Even if just for scripts of yoda lines. It just goes to show truly how fucky language is and how amazing it is that something even remotely comprehensible comes out of LLMs
Re:Is the reversal curse in LLMs real? by foldr on Wednesday November 15, 2023 @04:43AM (#38274942)
This is explained very clearly in the paper. They are not looking at all sentences of the form "A is B":

>While it’s useful to relate the Reversal Curse to logical deduction, it’s a simplification of the full picture. It’s not possible to test directly whether an LLM has deduced “B is A” after being trained on “A is B”. LLMs are trained to predict what humans would write and not what is true (Lin et al., 2022). So even if an LLM had inferred “B is A”, it might not “tell us” when prompted. Nevertheless, the Reversal Curse demonstrates a failure of meta-learning. Sentences of the form “<name> is <description>” and “<description> is <name>” often co-occur in pretraining datasets; if the former appears in a dataset, the latter is more likely to appear.4 This is because humans often vary the order of elements in a sentence or paragraph.5 Thus, a good meta-learner would increase the probability of an instance of “<description> is <name>” after being trained on “<name> is <description>” . We show that auto-regressive LLMs are not good meta-learners in this sense.

Re:Is the reversal curse in LLMs real? by bob1029 on Wednesday November 15, 2023 @05:56AM (#38275388)
This is approximately where I wound up. I had an initial knee-jerk reaction after reading the paper, but your kind of reasoning brought me back down to earth.

I don't know that I even want these things to generalize. I get it in academic terms, but from a CTO perspective how much this matters to the business? We already know our policies and procedures and aren't exactly excited about the idea of something getting curious with flipping things around.

I don't want it to generalize and start making weird assumptions like "some men are tall". I want it to say "I don't know", or provide a statistical signal indicating the same.

Re:Is the reversal curse in LLMs real? by user_named on Wednesday November 15, 2023 @06:07AM (#38275455)
Then you don't want an LLM you want something deterministic
Re:Is the reversal curse in LLMs real? by bob1029 on Wednesday November 15, 2023 @06:18AM (#38275522)
There is no opportunity for nuance?
Re:Is the reversal curse in LLMs real? by sgt101 on Wednesday November 15, 2023 @08:54AM (#38276607)
There's an opportunity to build a completely different technology.

LLM's have a specific architecture that makes them good at approximate retrieval. They have a specific learning process that makes them able to do this over a vast training set.

Doing things like reasoning about facts is possible using either symbolic or specific sub symbolic structures, but combining these with an LLM is a bit tricky. It's something that could be done for a demo in a 6hr/day/week project (depends on the demo) but to do it for real in an application... or as a robust bit of science... well... 6 people for 6 mths/years/?

Re:Is the reversal curse in LLMs real? by croes on Wednesday November 15, 2023 @08:52AM (#38276583)
But humans know when "is" means equal.
Re:Is the reversal curse in LLMs real? by mistermann on Wednesday November 15, 2023 @10:04AM (#38277335)
It only takes two humans getting it correct once for your statement to be technically true though, demonstrating how easily seemingly innocuous and straightforward language can be misleading.

The opposite statement, humans don't know when "is" means equal is also a true statement, perhaps even more true.

Re:Is the reversal curse in LLMs real? by croes on Wednesday November 15, 2023 @12:58PM (#38279943)
But you wouldn't think of the latter group of humans as the next big thing for many important tasks.

I doubt MS would put their service in lot of their products.

Re:Is the reversal curse in LLMs real? by mistermann on Thursday November 16, 2023 @03:34PM (#38295063)
[delayed]
Re:Is the reversal curse in LLMs real? by bastawhiz on Wednesday November 15, 2023 @09:44AM (#38277090)
> "A is B" does not imply "B is A" in the first place

Not to Bill Clinton this, but I think you are considering this for the wrong interpretation of "is". In this case, "RMS is the founder of the FSF" is the sort of statement implied here. Nobody else was or ever will be the founder of the FSF. So yes, for what the author is describing, "B is A" should always hold. B, in this case, isn't a category, it's an exact identity. The author doesn't explicitly state this, but it's clear this is what they're talking about.

Re:Is the reversal curse in LLMs real? by mistermann on Wednesday November 15, 2023 @09:51AM (#38277179)
You are using your mind to determine what the proper usage is in this specific concrete instance, LLM's do not have your mind to perform that step. LLM's have to work at higher levels of abstraction, and there the multiple meanings of "is" (which is also very commonly used to mean it is my opinion that X "is" Y) makes sorting things out very difficult.

This problem exists for both LLM's and humans, I think it may be fundamental to reality itself, as it currently is at least.

I wonder if they changed the training data to consistently use "equals" where possible (even if it sounds weird to the reader) would make a difference.

Re:Is the reversal curse in LLMs real? by bastawhiz on Wednesday November 15, 2023 @10:39AM (#38277854)
> there the multiple meanings of "is" (which is also very commonly used to mean it is my opinion that X "is" Y) makes sorting things out very difficult.

I'm not going to hype the technology more than it needs, but it seems to do a pretty damn good job of just this. And to the author's point, it does get this right.

And in fact, I'd suspect many of the cases where the LLM gets this wrong are caused by lots of examples in the training data which were written at different times, where someone else was chancellor. Or where the LLM gets numbering wrong (which is a well established problem).

Re:Is the reversal curse in LLMs real? by mistermann on Thursday November 16, 2023 @09:30AM (#38289938)
Sure, but here you are describing your subjective[1] opinion on the matter. I do not disagree that this is your opinion, but the fact of the matter is similar but quite different thing.

And this is just one thing that makes sorting out what's going on here difficult - essentially, we have biologically LLM's [thinking they are] decoding silicon LLM's, of course the results are going to be weird and counterintuitive.

[1] Examine the specific language you are using, but also the colloquial ~interpreted/virtualized assertion that one is left with, if they are reading your comment "in good faith".

Re:Is the reversal curse in LLMs real? by thomastjeffery on Wednesday November 15, 2023 @10:40AM (#38277861)
LLMs don't derive or follow rules. LLMs don't have anything to do with rules.

They implicitly recognize (and model) patterns in text, then continue those patterns.

While the patterns that an LLM has modeled may align to the high abstraction we call language, LLMs actually work at a much lower level of abstraction: plain text.

It's the content of that text that is significant. We encode language into text, and LLMs infer something "close enough" to language by blindly modeling it.

Re:Is the reversal curse in LLMs real? by mistermann on Thursday November 16, 2023 @09:31AM (#38289950)
You don't actually know what LLM's are "doing", comprehensively. You are describing your map/intuition of what is going on - it is a cultural convention (and a well enforced one at that), so an easy mistake to make.
Re:Is the reversal curse in LLMs real? by naasking on Wednesday November 15, 2023 @10:40AM (#38277871)
LLMs effectively disambiguate in an arguably similar way humans would: look at the same term in multiple contexts to reduce confidence in incorrect interpretations, leaving only correct interpretations.
Re:Is the reversal curse in LLMs real? by mistermann on Thursday November 16, 2023 @09:33AM (#38289965)
[delayed]
Re:Is the reversal curse in LLMs real? by marcosdumay on Wednesday November 15, 2023 @10:32AM (#38277752)
LLMs are supposed to derive a huge amount of those rules from their training sets. That's the one thing they are good at. They should be pretty good at differentiating the reflexive from the non-reflexive usage of "is" from the context pretty fine.

The fact that the current ones don't is surprising.