by ec109685 · 3y ago · 0 comments
Some writers tend to split ChatGPT oputput into "correct answers" and "Hallucinated answers". If this is what you are thinking when saying "Is this part of why ChatGPT hallucinates?", then no. The model never knows if what it is saying is correct. It has a probability about how likely the words are to follow eachother, and that is about it.
The temperature changes how these probabilities are calculated, making otherwise less probable words more probable or vice versa.
However, the model doesn't choose the most likely word every time. Instead it rolls a dice to see where it wants to go next. If Cheese is 80% and Cookie is 20% it won't necessarily choose Cheese. It rolls a die, and maybe the outcome lands on the less likely Cookie.
The roll of the dice happen _after_ temperature has affected the calculation of probabilities.
Maybe it is this roll you are thinking of as hallucination?
Fundamentally, no one can be sure what they experience is not some kind of simulation, or a dreamlike state beneath some more real "reality". As such, assigning hierarchy to such a foundation lacking in tangible proof is arbitrary.
The point being, unless it's possible to conclusively and infallibly prove you are not hallucinating, you can't lay claim to having knowledge an AI is hallucinating, or not.
To which I can only reply that I am not sure what I just read ...
Generally, you may preface any Internet discussion with: first, assume there an independent reality that the author and the readers share. Also causation and the forward arrow of time is true. (It occurs to me that this sounds like prompt engineering.)
In other words, you can never conclusively determine you’re not hallucinating (c.f. Hume), but let’s pretend we’re not for the sake of discussion.
It's not possible to prove whether or not a model can hallucinate or even think, based upon the premise that we have arbitrarily defined what constitutes "thought" (and so also "hallucination").
Can you prove an AI can or can't "think" in a way close enough to us that it could be considered to have basic ("human") rights? What if we built it out of biological material? And would that make any difference? Why?
This leads to: how may we objectively prove that the exclusivity of biological "consciousness", as we've defined it, is correct?
How may we prove either we or an AI can think, hallucinate, or "be conscious", when we are unable to objectively define the terms in a provable way?
I think it may be impossible, and as I said - I don't think it's a trivial concern. We may soon be faced with an entity that demands we respect it, and we need to have worked through as much of that discussion as possible, prior.
This is very much true for more irrational (or less deterministic) "thoughts" in certain languages. However, if I asked you to write JavaScript or Python to "prove" your thoughts on the answer, it would be a simple matter of running the code you output on a state machine to determine the truths of the query.
super-frog-of-adventure~> !calc 1+1
athletic-giraffe|> 2
super-frog-of-adventure~> !calc one plus one and output the answer
athletic-giraffe|> Writing code.
// filename: synth_calc_plus.js
// version: 0.1.1
// description: simple addition calculation
var num1 = 1;
var num2 = 1;
var answer = num1 + num2;
Sidekick(answer + " (units)", ", ");
athletic-giraffe|> 2 (units)
super-frog-of-adventure~>This is not true. An intelligence should almost by definition be able to recognize patterns, i.e. when things are similar or are the same. This is why we know that 1+1=2, since 1+1 and 2 are just different names for the same thing.
ChatGPT 'hallucinations' are a lack of this exact sort of consistency that makes it obvious that words are merely symbols and not representative of an actual thing. And how could it even know otherwise? ChatGPT is never exposed to things.
I'm certain in my knowledge of 1+1=2, but even if I wasn't, I know that 1+1=2 aren't just some ASCII symbols; but we're not entirely sure ChatGPT can be either of these.
An interesting argument, what does it mean for the disabled?
Eg, if a human had a fully functioning brain, but from birth could not sense anything except text sent to their brain, which they could only respond to with text, would this mean they're equivalent to a language model?
> but we're not entirely sure ChatGPT can be either of these.
Here you seem to agree with my point. We cannot be sure. Why?
Here* you can see an example of what happens when you always choose the highest probability.
[*] https://writings.stephenwolfram.com/2023/02/what-is-chatgpt-...
For example: since the text generation is sequential, based on context the highest probability continuation in a situation might be:
"A famous paper that discussed this phenomenon is"
However, when the network gets to this point it doesn't know the name of such a paper. Maybe it already knew that it doesn't know the paper's name but the above sentence was generated despite that, since everything else was lower probability or it got sampled due to higher temperature. In any case, it can't go back and delete the sentence so it must make up something. So it ends up going with the most plausible sounding (highest sample probability) continuation, which ends up being a "hallucination".
Basically hallucinations are produced when the network "writes itself into a corner" due to the sequential nature of text generation.
High temp is more likely to lead it into ranting on an unrelated topic. You ask it a question on what the mouse eats. It answers the question and then starts saying what lizards eat, or goes on a rant about food chains.
Peanut butter is widely recommended as the best mousetrap bait. I have had success with peanut butter.
Picture yourself in a boat on a river With tangerine trees and marmalade skies
It might veer off into a scenario where you're on a romantic boat trip or talk about how it is its favorite Beatles song and how it remembers them going on Ed Sullivan. :)The temp affects the "color" of the next word which sends it on a tangent just like a person -- especially somebody with ADHD or playing an improve game as opposed to lip reading, for example.