30 points · by fzliu · 2y ago · 99 comments
Their results are statistic extrapolations from a big corpus of data. For them a "true" fact "looks the same" as a "false, but strongly correlated with the corpus" fact.
The piece that would make them distinguish "true" from "strongly correlated with the corpus" is not yet discovered, AFAIK. It would probably need to be a different, context-specific tool. For example, if you are asking a model to write a program for you, the "verification step" would be a test bench for said program.
As far as I understand, every time we are querying our memories we are also slightly changing them, so there's no guarantee when we are trying to remember something that it is a true representation of reality of what happened. See also reliability of witness testimonies.
Ultimately all knowledge and storage graph in humans and LLMs has to be compressed heavily and be statistical in its nature with compromises made about the accuracy vs how much you are able to store. We can't store 8k footage of everything we see in our brains and so we use a lot of compression techniques, likely statistical graphs in nature.
An LLM will see that "Dog" and "Woof" occur near each other in text a lot, but it doesn't know what a dog is or what a woof is. You do know that, because you have experienced an actual dog and heard it go woof.
In addition you can feed LLMs image, audio input as well, and in theory you could feed any sensory data that we get.
In fact it can describe what is on an image, to quite a lot of detail.
Is knowing what a dog is being able to recognize it on an image, and is knowing what a woof is being able to recognize it in an audio?
Ultimately, after all, all of it can be represented as input tokens, binary data or otherwise. We also receive constant input from the World, which could be represented in any various different forms and processing layers can transform it into different helpful symbolic things to problem solve based on that. LLMs in order to be able to logically consider what a dog might do given certain situations, would have needed to build some form of neural representation of the idea to be able to produce the output it can, that goes beyond parroting the training data in my view. I can give it an input in some interesting configurations and permutations and it's able to logically use the concepts to figure out what might happen.
https://chatgpt.com/share/68815b5f-7570-443a-bcdf-e6ef4d233b...
And connect the dots in such a way to develop this interesting scenario and at the same time consider so many different interactions between the room and the animals.
> The piece that would make them distinguish "true" from "strongly correlated with the corpus" is not yet discovered, AFAIK
That piece is what would categorize us into not "hallucinating". I don't think it has been discovered, and I don't know wether it exists. It could be just that that our corpus is huge.
LLMs are biased to try to answer in their training sets, so they will try to make an answer up, because otherwise they wouldn't be helpful enough as assistants.
You could train LLMs to bias more towards only answering when they are confident, e.g. "Paris is the capital of France", but they wouldn't be as useful then.
I would also think it's not really "hallucinating", because "hallucinating" is error in processing the input causing it to be malformed. It implies that the input text you put in as a prompt was somehow invalidly processed to something else.
When an LLM is wrong I would rather think it's trying to find an answer from a compressed dataset "hoping" it will be correct, because that's how it's finetuned to do.
Did that for old regional stories and the higher the score the easier I could verify the story or parts of it. It seems to know, at least in some cases
My impression was, while the resulting scores weren't entirely random, they were pretty much random when the input was difficult.
(I was mapping supermarket product descriptions to packaging materials - which is sometimes very easy, as sometimes it's obvious or the description includes explicit recycling information, and other times almost impossible, as for products like olive oil, glass and plastic bottles are equally plausible)
And if you ask gpt for an specific answer to something it can't actually know for sure it gets weird fast.
Asking it to guess how much of what it told is based on actual things it 'knows' at least seems like a reasonable question for a LLM with only one right answer.
Hallucinating should be about twisted input misinterpretation. E.g. if the text input you give them was malformed at some level.
What they are doing is try to give you an answer based on compressed knowledge, which might be true, but might not because it's compressed and lossy.
Because they are trained to bias to give an answer even if it's not 100% clear from compressed knowledge.
The larger the model, the less compressed the knowledge and better they would be able to differ when it is something they know vs something that they likely don't.
The former statement is a bold claim that would require some sort of evidence. The latter nobody really argues with.
And if the probability is low it should consider that as hallucinating?
They can't detect if a word is high or low probability because current LLMs can't detect anything. They don't reason as you or I understand it. They are really fancy word predictors and somewhere in the word prediction machinery it does have the probabilities stored but not in anyway accessible to the output.
Imagine you are typing on your phone and the word autocomplete comes up and you just keep clicking the next word it suggests. What could you type to get at the inference data in your phone's keyboard?
Of course a system that does this could be built, but that isn't how current LLMs or phone keyboards are built.
When you ask an LLM to estimate if a given answer was hallucinated, it converts internal probabilities into a token(s) that represent these probabilities.
Here you have an output of chatGPT where it estimates it's probabilities of hallucination - which I would argue are quite close to correct:
https://chatgpt.com/share/e/e10cbc17-cc35-432f-872b-cb061700...
I'm as sure as I can be that she didn't know she was wrong; I can definitely tell you that I didn't know that I was.
1) LLM has data from a large set of sources, but in some cases it has very little data on certain sub-topics. With so few sources of data, it is easier for some weird corner of the internet to have conflicting data, and some LLM models may randomly favour that instead of the valid answer.
So not hallucination in this case, instead, a wrong answer from wrong sources.
2) LLM doesn't know, but has seen from human behaviour that just "making shit up, when you don't know" is entirely acceptable for many humans. Here I'm not referring to people saying (as I am) "may be", but instead "No, it's this!" with immense surety, in order to win discussions. Combine this with 'temperature' settings many model interfaces have, and there you go.
2b) Alternatively, #2 is inline with "I believe in flying spaghetti monsters", and other beliefs such as astrology, ghosts, and endless other "there is zero proof, but humans have immense weird data on it".
So #2 is solvable by changing temperature, or keeping temperature but saying "Don't make things up". #1 may be temp + random choice of a lower probability pathway.
#2b, not sure what to think here. How will LLMs ingest data, and use it to determine what is acceptable logic processing, when a lot of stuff in category 2b has zero proof behind it. And with zero proof, people are absolutely positive of the status of said thing?
#2b trains LLMs that "just having a random idea and then even killing people that don't agree, seems OK for humans". (think religious wars, violent acts, burning witches, etc)
LLMs do not truly learn or understand; instead, they use their internal data repository to produce "hallucinations" of text that seem conversational.
While LLMs do not truly comprehend or understand, their "hallucinations" can be remarkably useful and even enable them to accomplish complex tasks, such as solving mazes or translating languages.
In any case, I fail to see the relevance to my post. I only a) said that NNs can learn categories (an obvious fact) and b) conjectured that the categories "factual" and "creative" may be learnable.
[1] https://www.lesswrong.com/posts/WBdvyyHLdxZSAMmoz/taboo-your...
Dunning-Kruger effect
What makes you think that? The fact that you can ask them to stop hallucinating and that this does reduce hallucinations seems to me like a strong indication of the opposite? That is what the OP's article is about.
> They don’t know when they don’t know something.
The bigger models tend to be able to articulate some of their limits? See e.g this recent article [0].
> They know facts but they have no reasoning.
Is that really true? They can solve many novel tasks that seem to require some level of reasoning. They do not possess the full range of reasoning capabilities most humans have, but do pretty well on the HellaSwag dataset which aims to test reasoning [1], even when test set leakage was not a big problem yet [2].
I have 10+ years of experience in machine learning, and I don't find your claims obvious at all. In fact, I see more and more indications of the opposite. Also if you look mechanistically at how LLMs work inside, there is nothing stopping self-knowledge, reasoning or hallucination-detection. LLMs are very black box.
[0] https://arxiv.org/abs/2305.18153
[1] https://deepgram.com/learn/hellaswag-llm-benchmark-guide
[2] https://paperswithcode.com/sota/sentence-completion-on-hella...
This is hyperbole to the point where it is more false than true. If it was true, OpenAI, Anthropic and Google would already have solved the problem of making models honest. Just adding a reference to some random arxiv paper doesn't automatically justify your bold assertion.
"Our approach is to train a classifier that outputs the probability that a statement is truthful, based on the hidden layer activations of the LLM as it reads or generates the statement. Experiments demonstrate that given a set of test sentences, of which half are true and half false, our trained classifier achieves an average of 71% to 83% accuracy labeling which sentences are true versus false, depending on the LLM base model."[1]
It's not entirely clear what they measured and whether what they measured is useful. Is this a major result?
We really need LLMs with a confidence metric. This doesn't seem to be it.
Instruction following is also useful and unlocks another tier of features. The fuzziness of the model behaviour plays a useful role because natural language is imprecise. The ability to interpolate this remains useful.
Once machines understand natural language our own psychology kicks in and assigns properties like "wisdom" and "knowledge" to agents that can "talk well".
This may lead us to expect something from tools that haven't been designed to perform a given task. For example our current LLMs are not very good at precise information retrieval because they haven't been designed for that.
They happen to be able to perform information retrieval as a side product of the mechanism that teaches them how to speak in the first place.
The raw output of the broca area in our brains is probably not something you want to connect directly to the mouth without mediation
# no bugs pls
“Write a one-paragraph summary of research since 2015 on the use of machine translation in second-language academic writing. Include five in-text citations to previous research, and include full reference information for each citation after the paragraph. Do not hallucinate any of the citations and references.”
When the last sentence was not included, four out of five of ChatGPT’s references were hallucinated; the fifth referred to an existing paper but had an incorrect year. All of Claude’s references were hallucinated.
When I included the last sentence, ChatGPT did a web search and came up with five genuine citations. Claude, which cannot do web searches, apologized that it could not write the paragraph or provide the references.
Maybe a better test of the effectiveness of "Do not hallucinate" would be prompts that might lead to hallucinated claims that the LLM cannot check using web searches, the execution of Python programs, or other external processes. Any ideas?
2023: LLM hallucinate
2024: hallucinations fixed with "do not hallucinate" prompt
2025: LLM consider their finding on the web trustworthy
But I don't think it's impossible - there's a certain psychedelic quality to hallucinations, they tend to over represent certain fundamental features of the thing that they believe they're representing.
I remember seeing a bunch of almost kaleidoscopic looking (as far as I remember, all were rotationally symmetrical) images, that had been generated by seeking out and exploring the latent spaces for given classifications.
The images that were generated this way always had more (apparently) in common with each other than genuine images of the type that they were classified as;
And I highly doubt that the characteristics of those images are so special that a bit of self evaluation could not detect them as a group.
For all the inputs it hasn't seen, its output is essentially undefined, but hoping that the distribution of the novel inputs matches the outputs means that it will output truthful info. When it doesn't, it hallucinates.
Since LLMs cannot distinguish the difference between the predicted distribution and the real one, it cannot be told to not hallucinate, in one pass.
What actually could work is getting the output of a given LLM, and feeding it into another one to try and check for divergences to check for hallucinations.
I guess if you could get it to use its own output as input that would be similar, but I think that it’s the additional information in the follow up that makes the difference.
Like it can write code, I run the code, there is an error, I paste the error and it corrects the code.
So WTF couldn’t it just produce the correct code the first time? Probably for the same reason I can’t.
The additional information of the error causes me to re evaluate the code in a different way than when I first wrote it.
As such I don’t think you can just tell it “do better the first time” any more than you can tell a human to “do better the first time”.
We and they both get additional information from failing.
We still know the gist of how they work and it's not like you do, and you can see when they fail that they don't fail for the same reasons either
I've seen GPT 3.5 fail to answer some questions correctly and subsequently (in another tab) get it right/choose not to answer if you just add the line "don't hallucinate"
I like the article's idea for why that is
>Presumably, "retrieving from memory" and "improvising an answer" are two different model behaviors, which use different internal mechanisms. Indeed, we can probe model inner layers and infer if it is "lying"1 or if "the question is unanswerable"2. These are very much related to "hallucinations".
I'm not that, but I'd wager attempts to limit hallucinations in the model itself would mess with creative writing exercises
Same as if you would ask it to write a short story for kids about a lion that loves green hats, then finish with "Don't hallucinate".
Absurd rituals that shouldn't work on machines they don't understand but for some reason they work.
The model only sees token correlations, and if you are lucky the things you type become shadow tokens that change the weights just enough that whatever you didn't want isn't as statistically likely to come out.
Because too much depends on randomness and accidental sources of randomness and in it there are whole pockets of multidimensional stability, just until you cross some invisible border you couldn’t even comprehend. This is a natural religion fuel.
So when you read any turorial, guide, best practice, etc, and there is not a hard proof of hours of thorough testing behind every claim, you may freely consider most claims religious, because they are.
https://www.youtube.com/watch?v=yBL7J0kgldU&t=2819s
and they experimentally proved that LLMs often do know something is not right, but they aren't trained to express it. Because they did not get enough examples of faulty reasoning and, most importantly, how to recover from it. Adding these examples to training set vastly improved the output.
https://gist.github.com/Hellisotherpeople/45c619ee22aac6865c...
That said I agree that LLM “prompt engineering” is much less actual engineering than in SD and is more “prompt writing”. Advanced SD feels like a fighter jet cockpit compared to LLM’s city car dashboard.
Also I wonder about the word. It’s a fairly recent one to describe this phenomenon. Perhaps a more verbose version works better? Or adding a definition of it to the prompt?
Is shouting at a model absurd?
Does it really help to use all uppercase and strong language or is it just wishful thinking - inappropriate anthropomorphization even?
What would be dumb is asking an LLM not to hallucinate when the only information available is a definition of it in describing how an LLM works. We're not quite there yet.
/s