r/LocalLLaMA • • 8h ago

Funny Qwen4 self-correcting mid-sentence

I asked qwen4-35B to write me a configuration script, and after it did the job, the description it gave was:

- After going headless you stay on multi-user.target until you restore β€” that's intentional and keeps GPU free even across... well, not reboots; sddm stays enabled, so a reboot comes back graphical. Say the word if you'd rather it persist across reboots (systemctl set-default multi-user.target).

I find the "across... well, not reboots" part funny. Seems like it wanted to say "across reboots", but changed its mind when it came to generating the last token.

This is not a reasoning trace, actual response

31 Upvotes

22 comments sorted by

39

u/Objective-Stranger99 llama.cpp 8h ago

Yeah I had this too, but I prefer self correction to just plain wrong answers.

9

u/ErectiaMongusta 8h ago

I didn't say i don't like it. Just find it funny

1

u/Objective-Stranger99 llama.cpp 7h ago

I never assumed you did 😁, I'm just putting forward what I feel

0

u/kickbutt1 8h ago

Maybe it’s thinking in Chinese ?

2

u/ImpressiveSuperfluit 7h ago

No, these are just errors. LLMs just chain one token after another, if, for any reason, your last token was complete nonsense, you are in deep trouble. Because you obviously have to value the previous token extremely highly, since, you know, that's how sentences work. So what when you mean to say "you are very smart", but then you step through your tokens and find yourself at "you are not", because maybe temperature was a bit high, the quant a bit too low or some other noise messed with you - now what? The naive answer is to just keep doing your job, next token, no problem. Guess you're just NOT smart now, is what it is. And that's where you start your journey into self-reinforcing hallucination loops and... basically, just kill the process and revert, because this is gonna drive straight into a wall now.

This is probably(?) the number one source of hallucinated nonsense, where the LLM somehow manages to steer itself into a sequence of tokens it can't get out of anymore, and the simplest way is to just make up a fact that fills the role. Because that's a consequence of how we align these things, we tell them to produce a satisfactory and coherent outcome, facts just frankly don't get those ratings up, story of humanity, really.

We've then obviously quickly picked up on the fact that this behavior is rather... complete garbage, and mitigating this stuff is very deep in the learning now. It's probably the main inspiration for the excessive "But wait!" type thinking which may even be a tad overactive at this point. But you have to pull drastic measures if the catastrophically wrong token made it through, you can't just keep going because it will lead you straight into hallucination land, so you must force an abortion of that path. And thank fuck we're slowly figuring this out, because it's one of the biggest flaws of old models - the second they got their context corrupted with incompatible facts, the death spiral was only a matter of time. And that's WITH thinking, imagine (or remember?) how this behaved before thinking. Now the token is straight up in your user-facing final output, that's really fucking bad, you're so screwed at that point. It's one thing to behave like a lunatic in your thinking, but that's obviously not a desired outcome in your final output, so you're seriously in trouble when that happens.

And that's most likely what's happening here. It got itself into the "even across" mess, and probably started screaming internally because wtf are those tokens doing there, this makes no sense in context, which then triggers its dozen or so emergency tokens to pull out of it. You know, the "...", the "But wait!" or the "actually" or what have you. People love complaining about those, and kinda fair enough, it's a bit much sometimes, but boy do they not seem to remember how it was yesteryear, when this token sequence would've turned into the invention of a fact which then lives in context forever, happily corrupting absolutely everything until it all implodes. Personally, I prefer the "But wait!", even if it's probably somewhat overtuned at this point.

1

u/Nikom123 7h ago

I believe I read somewhere some or all Chinese models, internally they process/think in Chinese, don't quote me on that

9

u/No-Refrigerator-1672 vLLM 7h ago

You can see the twinging traces for yerself, it's an open model. It thinks in English. All of them do. You're probably refer to early days experiment of Deepseek, when they tried to allow model output whatever it wants into thinking, insted of explicitly teaching it to think, and got a model that was think8ng in a heavy mix of Chinese characters and half-words from other languages, that had no grammatical structure or resemblence of normal speech.

2

u/SwarfDive01 7h ago

And they never solved the decoder recovery? Hybrid symenatic glyph sounds like a really intelligent option. Some characters in mandarin or Japanese can store a fairly complex concept or meaning in a dense space. Most other languages also have better, condense words for meaning. Could have seriously saved on parameters for better representations that can just decode correctly for human readable output.

0

u/No-Refrigerator-1672 vLLM 4h ago

No, they store exactly as much meaning as every other token. The very first step of an LLM is to convert each token into a vector of values, and each vector has the same size. The most complicated Chinese character contains just as much information as "The" for an LLM. It's just that when unconstrained, Deepseek R1 Zero used all the tokens it has for reasoning, and Chinese characters visually stand out, and probably it had morw of them in vocabulary being Chinese model.

To the best of my knowledge, nobody used this technique ever since, including DeepSeek. I imagine you can achieve faster training if you actually provide examples how to reason, and we only can make such examples in natural speech.

0

u/Nikom123 7h ago

You are right

8

u/mikolak-net 8h ago

I mean, it's a moderately common, well not... rhetorical... device to indicate semantic relevance of the term used while also highlighting that it's not actually the *correct* word.

Should be ascribed to the – surely – many, many times it appears in the training corpora, and not some sort of emergent behavior.

4

u/CMDR_kamikazze 5h ago

That's one of the reasons I like Qwen. It feels somehow very human due to such things.

3

u/Hungry_Particular_14 7h ago

That's normal across LLMs in general, I've had opus 5.5 do that a few days ago, IIRC I was asking about specific words, and it gave me 2 words that didn't fit the constraint, then fixed itself mid sentence

3

u/rogu14 4h ago

I had this happen on 3.8 qfn which was actually hillarious, i don't remember full context but it was like "maybe I should... actually, nevermind"

2

u/Tagedieb 5h ago

I saw this the first time on inkling.

3

u/Depron 8h ago

Same for me! I have the convention of no emojis in chat or anywhere else. I've seen it twice now writing an emoji and then excusing that in the same sentence.

Something like:

"Enjoy [show it put on my firetv stick] [beer emoji] - okay, no emoji: enjoy [show]."

It's not been harmful so far. I find it rather amusing and endearing since it behaves quite well otherwise.

4

u/lukyjay 8h ago

That'll be annoying for TTS pipelines

1

u/arbv 7h ago

Happened to me with QFN, except Qwen actually mocked me - that was hilarious.

1

u/mazarax 5h ago

Perfectly human sentence that got scraped off stackoverflow or reddit as training data.

I bet if you google it, you may find the original!!!

1

u/jonahbenton 2h ago

The other qwens do this too, have seen this since 3.6 series, but get it a lot on qfn

0

u/Explor3Universe 8h ago

"across... well, not reboots" is the most honest sentence ever written about systemd