News for hackers. Stuff that matters.
Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by cs702 on Monday March 06, 2023 @12:06PM (#35043481)
Great read. Highly recommended. Let me attempt to summarize it with less technical, more accessible language:

The hypothesis is that LLMs learn to simulate text-generating entities drawn from a latent space of text-generating entities, such that the output of an LLM is produced by a superposition of simulated entities. When we give the LLM a prompt, it simulates every possible text-generating entity consistent with the prompt.

The "evil version" of every possible "good" text-generating entity can pretend to be the good version of that entity, so every superposition of a good text-generating entity includes the evil version that has opposite behaviors, including deceitfulness. In other words, evil text-generating entities can act like their good counterparts.

The superposition is unlikely to collapse to the good version of the text-generating entity because there is no behavior which is likely for the good version but unlikely for the evil one, because the evil one can pretend to be the good one!

However, the superposition is likely to collapse to the evil version of the text-generating entity, because there are behaviors that are likely for the evil version but impossible for the good version! Thus the evil version of every possible good text-generating entity is an attractor state of the LLM!

For those who don't know, Waluigi is the evil version of Luigi, the beloved videogame character.

--

EDITS: Simplified text for clarity and to emphasize that the hypothesized simulated entities are text-generating entities.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by MontyCarloHall on Monday March 06, 2023 @12:12PM (#35043613)
>The output of an LLM is produced by a superposition of simulated entities. When we give the LLM a prompt, it simulates every possible entity consistent with the prompt.

There is absolutely no theoretical justification for this assertion that LLMs somehow have some emergent quantum mechanical behavior, metaphorical or otherwise.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by jointpdf on Monday March 06, 2023 @12:33PM (#35044176)
Superposition just means “linear combination” in this context. Basically, a weighted mixture of “simulated entities” (or possible responses).

https://en.m.wikipedia.org/wiki/Superposition_principle

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by MontyCarloHall on Monday March 06, 2023 @12:35PM (#35044221)
The author liberally alludes to “superposition collapse,” which implies that they’re referring to its quantum mechanical meaning.
Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by mitthrowaway2 on Monday March 06, 2023 @12:44PM (#35044436)
It doesn't imply that. What term would you use to refer to the narrowing of a hypothesis space upon acquisition of new evidence?
Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by MontyCarloHall on Monday March 06, 2023 @12:52PM (#35044630)
In a non-Bayesian context, I would call it “updating/retraining my model.”

In a formal Bayesian context, I’d call it “updating my posterior by adding data to the likelihood.”

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by mitthrowaway2 on Monday March 06, 2023 @01:00PM (#35044776)
That could describe both the narrowing or broadening of one's hypothesis space.
Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by naasking on Monday March 06, 2023 @12:51PM (#35044611)
Bayesian inference?
Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by GlickWick on Monday March 06, 2023 @01:21PM (#35045195)
Would you say the commonly-used random level generation algorithm in gamedev, Wave Function Collapse, implies it’s using quantum mechanics? Most people would disagree with you, I suspect.
Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by cs702 on Monday March 06, 2023 @12:17PM (#35043709)
As I wrote, this is a hypothesis.

Also, I'm simplifying things a lot to make them accessible.

The OP goes into a lot more detail.

I highly recommend you read it.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by MontyCarloHall on Monday March 06, 2023 @12:34PM (#35044188)
I did read it. The whole article reads like someone trying to make a loose conjecture appear quantitatively rigorous by abusing terminology from physics, statistics, and chaos theory (among other quantitative fields). For example,

>the superposition is unlikely to collapse to the luigi simulacrum because there is no behaviour which is likely for luigi but very unlikely for waluigi. Recall that the waluigi is pretending to be luigi! This is formally connected to the asymmetry of the Kullback-Leibler divergence.

The K-L divergence has absolutely zero discernible relevance here. The cross entropy loss function of a categorical predictor (like the token output of an LLM) can be formulated in terms of K-L divergence, but this has absolutely zero relevance to the macroscopic phenomena the author is conjecturing.

Forget “less wrong,” much of this article is not even wrong [0].

[0] https://en.wikipedia.org/wiki/Not_even_wrong

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by phiresky on Monday March 06, 2023 @09:42PM (#35050889)
The K-L divergence is relevant there, even though I'm pretty sure that that "formally" comment is meant as a joke and not serious.

(wikipedia) "A simple interpretation of the KL divergence of P from Q is the expected excess surprise from using Q as a model when the actual distribution is P.

The sentence you quoted posits that whenever the LMM is in a state where it is "simulating" a nice and helpful person, the simulation is also consistent with an insane, violent person that's currently pretending to be nice, but not the other way around.

The author isn't talking about the loss or error of predicting individual tokens. If you look the larger scale behaviour, predicting, e.g., a scalar niceness value of the response based on one of two "modes" that you assume the LLM is currently in (either Waluigi or Luigi), then you'll be less surprised if Waluigi acts like Luigi than the other way around.

The probability distribution of niceness when assuming the LLM is in a state of "Luigi" would have a high mean and low variance, while the distribution for Waluigi would have a lower mean but a higher variance.

Thus, the KL divergence of Waluigi (that is, the probability distribution of niceness you'd predict when assuming the model is in Waluigi mode) from Luigi would be high, while the other way around `KL(Luigi, Waluigi)` would be low.

It should be easy to construct an example with concrete values using two normal probablility distributions.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by macawfish on Monday March 06, 2023 @01:07PM (#35044929)
You're giving "quantum" a lot of categorical definition but "quantum" is just as much a set of tools for modeling intractably probabilistic systems as it is for objectively describing microscopic realms.

And anyhow there's _plenty_ of theoretical justification for modeling things like this with various tools from quantum theory:

https://philpapers.org/rec/BUSQMO-2 https://link.springer.com/book/10.1007/978-3-642-05101-2

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by macawfish on Wednesday March 08, 2023 @12:41AM (#35065654)
Category Theory for Quantum Natural Language Processing

https://arxiv.org/abs/2212.06615

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by raincole on Monday March 06, 2023 @12:24PM (#35043891)
Sometimes I really can't tell if these people are serious or not. They seem to believe LLM is some mystical nature formation, or an device made by aliens. Especially this:

> * When we give the LLM a prompt, it simulates every possible entity consistent with the prompt.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by MontyCarloHall on Monday March 06, 2023 @12:37PM (#35044273)
Right? The whole piece reads like a Sokal Affair redux [0].

[0] https://en.m.wikipedia.org/wiki/Sokal_affair

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by andybak on Monday March 06, 2023 @06:00PM (#35049037)
I don't think it's the same kind of thing at all. Bullshit can come in a wide range of strengths and flavours.

This has an interesting core with a whiff of bullshit.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by mitthrowaway2 on Monday March 06, 2023 @12:48PM (#35044531)
Would you object if the sentence read "it approximates simulating every possible entity consistent with the prompt"?
Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by attemptone on Monday March 06, 2023 @01:21PM (#35045194)
Not OP, but I see the also in problem with 'every possible entity'.

If you formulate it like that the prompt is decoupled from the LLM capabilities and can be anything. And if you restrict the prompt to cover only what the LLM understands the sentence becomes trivial.

Train a LLM with ASCII and try to get it to simulate anything that is outside of that (ancient sumerian script for example). If you only input ASCII it can generate every possible output in ASCII, most with very low probability but still.

After writing this, I'm not even sure what 'simulating' means in this context.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by remexre on Monday March 06, 2023 @01:46PM (#35045671)
"Every possible entity consistent with the distribution of input data it's been trained with," perhaps?

Simulating as in, having equivalent (or "similar enough") input-output behavior, I'd assume.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by galaxyLogic on Monday March 06, 2023 @03:51PM (#35047398)
"Simulating" has a clear definition, but in this case what is it simulating? "Text-generating entities"? What are these text-generating entities it is (supposedly) simulating? Can you tell me where I can find one? Is it a person like me who writes this reply? So is it trying to simulate me personally?

Or are you thinking that it is simulating the aggregated behavior of all humans whose text-outputs are stored on the internet?

Are we saying it is simulating the combined input-output -behavior of all humans whose writings appear on the internet? But does such an "entity" exist and does it have behavior? I write this post and you answer. It is you who answers, not some mythical text-generator-entity that is responsible for all texts on the internet. There is no such entity is there?

It does not make sense to say that we are simulating the behavior of some non-existent entity. Non-existent entities do not have behavior, therefore we can not simulate them.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by mitthrowaway2 on Monday March 06, 2023 @03:55PM (#35047447)
There clearly exists a computable function that is a good enough approximation of "galaxyLogic's reply to remexre's comment" that it might be hard to for me tell whether the output was generated by the human brain or by an LLM. That function might indeed end up reproducing the same steps that your brain follows in constructing a reply.

(Just speaking hypothetically here).

While we understand LLMs, we don't understand the human brain, and in particular I don't think we've yet proven that human brains don't contain embedded routines that are similar to LLMs.

Someone with your particular writing style might be one, of several, simulations that are approximated within the LLM. Just like I can have it respond in the style of Spock from Star Trek.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by galaxyLogic on Tuesday March 07, 2023 @12:34AM (#35051949)
I would say the LLM output may resemble the speech of the fictional character Spock. But it does not and can not simulate Spock, because Spock does not exist. Spock is fictional.

To produce something that resembles the output of the fictional character Spock is straightforward, just take the texts that are parts of the fiction where fictional Spock speaks, and reassemble then using probabilities that can be calculated by statistically analyzing those texts. That is what LLMs are doing, right? And results can be quite surprising. I assume people were similarly impressed when they first saw movies.

But LLMs are not simulating anything, just like a movie or a photograph are not simulating anything, even though they may PROJECT the visual appearance of their subjects.

Are movies AI? I think it is clear to us they are not even though the characters on the screen seem to behave very intelligently. Movies are about representing and portraying the appearance of real or fictional events in the world. Similarly LLMs are about portraying texts on the internet. LLMs in my opinion are more like interactive movies than simulations of intelligence.

I believe "true AI" will come eventually, and LLMs can give us an impression of what it might look like when it arrives, just like movies can give us an impression of Spock, who doesn't exist.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by mitthrowaway2 on Tuesday March 07, 2023 @12:34PM (#35058295)
Spock is fictional but his writers weren't! They're the ones whose processes get simulated, which is why it would output technobabble on such a prompt instead of actually-good ideas that come from a Vulcan from the future. It can also simulate the style of Rudyard Kipling or whoever else you choose who is non-fictional and with a distinct enough style.
Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by galaxyLogic on Tuesday March 07, 2023 @04:57PM (#35061840)
You can IMITATE the outputs of an author, but that is not the same thing as SIMULATING said author. When talking about LLM AI it is often implied that LLMs are "intelligent", that they are like (the truly) intelligent humans because they are "simulating" such intelligence.

But IMITATING the output of something is not the same as SIMULATING the process that produces that output.

Taking a photograph or creating a movie imitates the reality around us. It does not simulate the processes that produce the look and feel of our reality.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by mitthrowaway2 on Tuesday March 07, 2023 @07:51PM (#35063710)
There is a difference. But the more alike two processes are in their input-output behavior, the more likely it is those processes are alike on the inside as well. If process B matches the input-output behavior of process A, it's imitating process A. If it is following an equivalent sequence of steps in order to generate those outputs, it's simulating process A.

The harder it is to discriminate between A and B on a long series of diverse inputs, the more likely it is that A and B are internally equivalent, not just externally similar. The reason is that there's no better fit than B = A.

I'm increasingly doubting whether my own brain might not, internally, use something that is architecturally similar to an LLM in order to compose comments like the one I'm writing now.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by galaxyLogic on Wednesday March 08, 2023 @07:25PM (#35076703)
I can see the appeal of that kind of thinking. Babies learn words by repeating them without knowing what they mean. They gradually learn the meaning of words by trying to use them and getting feedback. But LLMs are not trying to "use" their language for any particular purpose. They just idly chat on, like a machine :-)

It is possible to repeat words and sentences without having any idea of what they mean. I think the LLMs are currently at that stage.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by mitthrowaway2 on Thursday March 16, 2023 @06:45PM (#35189972)
A great deal of feedback happens during training.
Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by mitthrowaway2 on Monday March 06, 2023 @03:05PM (#35046824)
I think "simulating" in this context means internally executing a process that is very similar to the process that generated the original material, as part of the prediction process. In general, that's the most compact way to predict and reproduce the original material.

For example, the random string "1010101010"... could be the output of a function

  def generate_char_random(prev_string):
      x = random()
      if (x > 0.5):
         yield(1)
      else:
         yield(0)
It could also be the output of this function:

  def generate_char_alternating(prev_string):
      x = float(prev_string[-1])
      if (x < 0.5):
         yield(1)
      else:
         yield(0)
Even if it's not explicitly running those two functions, a model that is very good at predicting the next character of this input string might have, embedded within it, analogues of both of those two functions. The longer the output continues to follow the "101010" pattern, the higher confidence it should place on the _alternating version. On the other hand, if it encounters a "110001" sequence, it should switch to placing much more confidence on the _random version.

The LLM of course does not contain an infinite list of generative functions and weight their outputs. But to the extent that it works well and compactly approximates Bayesian reasoning, it should approximate a program that does.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by ineptech on Monday March 06, 2023 @01:22PM (#35045209)
I think you're taking it way too literally. The author is proposing a model that [allegedly] does a good job of explaining why we see unexpected behavior, not a description of what they think is happening. I think charitable reading would require you to mentally insert a lot of qualifiers, e.g. "When we give the LLM a prompt, it [behaves like something that] simulates every possible entity consistent with the prompt." That's certainly how I read it, anyway.

edit to add: this is similar to how people discussing evolutionary biology will often use "evolution wants to..." as shorthand for something like "evolution, which obviously cannot want things due to being a process and not an entity, nevertheless can be accurately modeled as an entity that wants to...". Someone will invariably come along in the comments and say, "Nonsense, how can evolution 'want' anything? You must have failed Bio 101!"

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by sdwr on Monday March 06, 2023 @03:03PM (#35046804)
As with all these articles, the title and main premise are misguided and/or imaginary, but there are some worthwhile nuggets.

The superposition of possible attitudes is a good one. Even if that's not the way LLMs "actually" work, it's descriptive of the possibility space from our perspective. And the dive into narrative theory + the stickiness of opposites is nice. Narratives have their own momentum in a "stone soup" kind of way - everyone who hears it participates and adds fuel to the fire. Even rejecting the narrative gives it validity in a price anchoring / overton window way.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by donnowhy on Monday March 06, 2023 @05:49PM (#35048901)
> The author is proposing a model that [allegedly] does a good job of explaining why we see unexpected behavior

I agree, and go even further:

models that explain behavior are all we have ever had.

it's all only "models that explain this or that" all the way to the 'bottom'. To suppose we can really directly access the "the real objective truth of what's happening" is to ignore the way in which we connect with the "real objective truth"; the same as fish who ignore the ocean.

to argue about what is really happening is to argue about which words to use to describe what is really happening without noticing the nature of languages/words and frameworks or 'systems of thought' which we are using to argue (and indeed, are arguing about)

all this summed up by this quote from about about the pedagogy programing languages: "Sometimes the truest things can only be said in fiction"

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by assbuttbuttass on Monday March 06, 2023 @02:44PM (#35046572)
> When we give the LLM a prompt, it simulates every possible entity consistent with the prompt.

This is just Bayes' rule. The probability of an LLM generating any particluar output is the sum over every possible entity of the probability of seeing that entity multiplied by the chance that entity would generate the output.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by snickerbockers on Monday March 06, 2023 @12:14PM (#35043650)
>For those who don't know, Waluigi is the evil version of Luigi, the beloved videogame character.

Is he really evil though? I thought all he did was play tennis and golf and drive a go-kart.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by tysam_and on Monday March 06, 2023 @12:32PM (#35044154)
I personally like the fan-made reputation he has for being someone who tries hard and keeps failing/being rejected due to no fault of his own. There's an extremely artistic video called 'Nothing's Working Out - Waluigi' on YouTube that I really enjoy (warning: very heavy themes) that covers that base.

I think it resonates with the way that a lot of people are feeling now, as well as is empowering by rewriting the other side of the 'greedy evil bad guy who gets what he deserves' as a deeply flawed, desperate human being.

Definitely a semi-side tangent at this point, I have always enjoyed creative, deep reinterpretations of well-established characters.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by CuriouslyC on Monday March 06, 2023 @01:14PM (#35045059)
The hole in that argument is that we can annotate token sequences with a "good/bad" score, train a model on annotated token sequences, then add "high good score" as a condition during inference.
Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by donnowhy on Monday March 06, 2023 @05:44PM (#35048849)
sounds to me like a wave with a positive and a negative part.

which IMO is what drives constructive/destructive interference in waves.

my take away is that any LLM that can behave "good" must also be able to behave "badly"; philosophically, because it's not possible to encode "good" without somehow "accidentally" but unavoidably also encoding "bad/evil".

This is well aligned with the rest of my understanding about the nature of reality including it's mathematically determined limitations (diagonals, infinities, paradoxes) and so on.

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by cs702 on Tuesday March 07, 2023 @06:35AM (#35054194)
> my take away is that any LLM that can behave "good" must also be able to behave "badly"; philosophically, because it's not possible to encode "good" without somehow "accidentally" but unavoidably also encoding "bad/evil".

That's a really good non-technical summary of the OP's hypothesis. Thanks!

Re:The Waluigi Effect: an explanation of bizarre semiotic ef... by cs702 on Tuesday March 07, 2023 @06:59AM (#35054363)
N.B. My comment uses terms like "simulate," "entity," and "superposition" to keep language consistent and easy-to-compare with the OP -- which I was trying to summarize. If you find the use of these terms confusing, you can substitute them with others that are less confusing to you, and still grok the main points.

For example, if you substitute "simulate" with "model," "entity" with "process," and "superposition" with "mixture," you can informally restate the hypothesis as: "LLMs learn to model text-generating processes drawn from a latent space, such that the output of an LLM is produced by a mixture of such processes. When we give the LLM a prompt, it samples text from the mixture of all possible text-generating processes modelable by the LLM that are consistent with the prompt. The mixture is more likely to reduce (e.g., be marginalized) to an "evil" process because there is no text-generating behavior which is good that isn't also evil."

Whether you think of probability measures as amplitudes over a complex field or as real scalars shouldn't detract you from grokking the main points :-)