by happytiger · 3y ago · 0 comments
1) Hallucinations often appear because LLMs are designed to create fluent, coherent text.
2) LLMs have no understanding of the underlying reality that language describes.
3) LLMs use statistics to generate language that is grammatically and semantically correct within the context of the prompt.
It sacrifices accuracy for being good at conversations as it is designed to do. All these criticisms of hallucinations are missing the point.
Generative AI is generative and basically is a specialist at making things up. It’s going to take things like multiprompting, network AIs that fact check output, and a host of other technologies or even entirely new models of AI to solve these problems, but don’t make the mistake of thinking that the system is supposed to be working without hallucinations right now — that’s not what it’s optimized for.
What they just don't care about is communicating being out of distribution or making whack predictions. This becomes a problem for humans because they're perfectly fine making things up when the above fail.
But by all accounts, they do learn to distinguish these things. The computation is very much aware when it is going way off base.
GPT-4 logits calibration pre RLHF - https://imgur.com/a/3gYel9r
Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedback - https://arxiv.org/abs/2305.14975
Teaching Models to Express Their Uncertainty in Words - https://arxiv.org/abs/2205.14334
Language Models (Mostly) Know What They Know - https://arxiv.org/abs/2207.05221
The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasets - https://arxiv.org/abs/2310.06824
Predictions of what? LLMs aren't predicting anything. They are, as the GP says, generating text that appears to be fluent and coherent (as long as we don't inquire into actual semantic relationships with anything else) in the context of the prompt.
"Previous context" here means text. It does not mean "the actual world". Big difference.
LLMs absolutely have concepts that extend beyond just words. As early as 2008 (back when there were no large language models, only "regular" language models), we've been able to demonstrate things that seem to me like the model is learning abstract concepts. For a classic example, see Linguistic Regularities in Continuous Space Word Representations [0], a 2013 paper that talks about a model with a latent space where one can take the vector representations of the words "king", "queen", "man", and "woman" and literally perform the arithmetic `king - (man - woman) ≈ queen`. To me, this clearly demonstrates that the model "understands" the concept of gender, represented by a vector in the model's latent space. The set of numbers that you get from the subtraction `man - woman` represent the concept of the difference between the male and female genders, without needing a specific word tied to that representation of the concept.
It's debatable whether or not that counts as "understanding", but that's more of a semantic debate about what it means to understand, not a debate about the model's internal knowledge of the world and ability to do things with that knowledge.
I don’t mean to discount your excellent comment. I mean obviously these models are so complex already that their black box nature makes it difficult to derive conclusive results, but Arkham’s razor would imply that the simplest explanation — that is it recombined training data creating a heirarchy with multiple factors that provides context for the “correct” answer — that is more likely correct.
In other words a LlM can confer multiple related associations to output based on training data, and that is the most likely explanation for that behavior.
Just look at the poor performance with GPT-3 and the underlying data quality issues the Alpaca dataset team has discussed.
I’m no expert, and don’t mean to counter you as much as contribute my own limited thinking for discussion here.
Cheers!
I always find this point a bit odd because humans aren't "optimized" to be correct either.
> "LLMs have no understanding of the underlying reality"
I struggle with this one because I see both sides of it. I was making a prompt the other day and gave a CSV file as an input and told the LLM if could only answer with values from one column and it did exactly as I asked. It's hard for me to see things like that and not believe it has an understanding at some level.
It depends which subsystem.
The older the system in the body the less likely it is to have a high error rate, otherwise we'd die from cancer at a much higher rate or injure ourselves far more often. Of course this also depends on the definition of 'correct', if the system never changed we'd never evolve.
>> "LLMs have no understanding of the underlying reality"
This statement has always bothered me because it really depends on what you mean by 'underlying reality'. How many layers are we talking about? What does understanding mean? Because at the end of the day, humans don't really understand 'underlying reality, we just have a particular set of input devices we take in information and do some transformations on it... Where is the understanding happening?
Edit: there is also loads of evidence that our brains are wired to make incorrect decisions in many cases. Loss aversion is one example.
Humans at least have a concept of "being correct", even if we don't always set that as our primary goal when communicating.
LLMs don't even have a concept of "being correct". That would require having a concept of an "external world" that text refers to, which LLMs don't have. All they have is the text in their training data.
I would argue, human reasoning is conceptually not so much different from LLMs as one might think.
Wrong. Human beings can act on the world as well as perceive it, and humans have rich internal models of the world that get updated continously as a result of those rich two-way interactions.
> I would argue, human reasoning is conceptually not so much different from LLMs as one might think.
I would argue that this is either an incredible over-estimate of LLMs, or an incredibly impoverished view of humans.
They clearly do as plenty research indicates. You've just decided not to accept this. Pure confirmation bias in action.
I have seen plenty of researchers claim this. What I have not seen is actual support for such a claim.
One of the things that has been on my mind of late is the idea of how much of what humans call “correct” or “right” is actually socially generated pressures to conform.
Berns and Asch’s various research on social conformity around what we normally would consider objectively correct answers seems to have some potential applications worth testing in AI land. AIs may be much more performant with AI “social inputs” (and of course all the long term memory improvements currently lacking required to use it as a tool). I am very much excited about the network AI and pipeline work (small teams!) currently coming into vogue. Feels like the “right direction” to make incredible progress.
https://www.psychologytoday.com/us/blog/am-i-right/201404/th...
Otherwise agree with your points exactly. Good comment.
And the only reason that is even a thing is that we humans have a concept of actually being right, which we can distinguish from "responding to socially generated pressures to conform".
We recently started providing perception inputs, just like you’re talking about.
Obviously it’s nascent and not exactly a revolutionary statement, but it’s interesting to see the progression towards our experience.
I’m also interested in how the analog computing revolution is going to converge with AI in coming years, as we are making huge inroads into analog computing and that means cheap ubiquitous sensor inputs right in time for AI to start maturing.
I think about this difference a lot, and a fair bit of AI/ML attempts to reproduce this process to some degree.
LLM like have some form of understanding of the world, not sure if its anywhere near comparable to our understanding though. But they are still not general enough to really focus on facts. They can get close but the nature of statistics means there isn't hard checks to truth.
And we only just [mapped it for the first time](https://phys.org/news/2023-10-scientists-generate-single-cel...) so now much of what we are learning can potentially be applied to our “digital twins” in coming years.
I imagine a lot of progress with AI will involve similar networks, with governance providing evolutionary paths and guidance for multiple concurrent goals.
There are also lots of issues with training data and memory limits that make LLMs weak at continuity. Holes or weaknesses in the training data might “come through” in the behavior of hallucination.
Where do you think general AI is going right now that we should be looking at? I’m overwhelmed by how large this field has become in the last five years and am always interested in what others know.
Why we baby AI on this front, I have no idea.
Hallucinating on the other hand feels way more abstract. We speak of humans hallucinating answers rarely enough that they can use it for AI with a straight face. Heck, when we do talk about humans hallucinating it's often-as-not in the context of mind expanding experiences; maybe AI hallucinations are even a good thing!
It may be part of complex networks and intelligence, and humans may have a lot of it happening all the time but have ways of compensation or suppression of neurotic or hallucinating thoughts.
We have some intense “mental illnesses” that look a lot like what AI is presenting, where it can’t tell what is going on and fills in the gaps (schizophrenia maybe) or uses behavioral patterns to compensate for memory or intelligence inadequacy.
Obviously straight conjecturing here.
Not if people need to be reminded that, as you say, LLMs are not designed to give reliable answers. Many, many people appear to believe that they are, since they rely on the answers in all kinds of contexts. For example, in past HN threads on LLMs, I have seen people say that they rely on LLM-generated code.
The "verified by me" part is crucial, though, yes?
I'm talking about people, whom I have seen posting here on HN in other threads on this topic, who leave out the "verify" step and just rely on the LLM code as it comes.
To be more specific, I trust GPT-4 to handle tasks like "Rewrite this C++ struct into Rust". I still verify that it's correct as part of a normal code review process, but I trust GPT-4 in that scenario at least as much as I would a junior dev.
;)
Not true. They are slowly gaining an understanding of reality by reverse engineering the relationships built into human languages. The only reason LLMs are getting better is because they are better modeling the world. At some point the only way to improve token prediction is to gain an understanding of the world.
Perhaps the people building LLMs are doing this, but the LLMs themselves are not. LLMs are just generating text. They aren't "reverse engineering" anything.
> The only reason LLMs are getting better is because they are better modeling the world.
No, they are getting better at generating text that seems fluent and coherent, as long as you don't inquire into any actual semantic relationships with the world. LLMs can't model the world because they don't even have a concept of "the world". All they have is text.
But that confidence is based on intuition, not on any empirical observations. All the research we've seen so far points in the other direction: sufficiently trained LLMs do have a world model that you can find in their weights, changing these weights changes their completions in a way consistent with the new world model, etc. See OthelloGPT for the most blatant example.
I'm starting to wish we had something like a FAQ to point to, with a summary of all the research on the subject, because it's pretty settled by now.
I'm not asserting that they "couldn't possibly". I'm asserting that they don't--as in, none of the LLMs we have today have a world model. Perhaps someone might invent a different something in the future that they call an "LLM" that does have a world model, but no such thing exists now.
> that confidence is based on intuition, not on any empirical observations
No, it's not based on either of those. It's based on the explicit descriptions of how existing LLMs work by the people who made them. Their descriptions make clear that LLMs are just confabulating text based on a given prompt and their training data. The LLM doesn't make any connection at all between the text and anything else.
Contrast, for example, with Wolfram Alpha. If you give Wolfram Alpha the prompt "What is the distance from New York to Tokyo", it doesn't confabulate text based on that prompt and some corpus of training data. It first parses the text and infers that the correct response involves a lookup in its geographic database (note that you can skip this step by explicitly selecting the particular tool that does this); then it does the lookup; then it renders the response into text form and outputs it. That is what having a (rudimentary) world model looks like. LLMs do nothing of the sort.
This was always the conjecture of the “ghost in the machine” and mech futurist sci-fi writers.
Would you be willing to provide some reading about this? I’d love to see 1-2 things that could help me (and others) know more about what you know.
https://danangell.com/blog/posts/gpt-understands/
> The idea is that back when GPT-4 was being trained for it to really consistently get the next word correct, to do that reliably, it had to do more than just bullshit. It had to do more than guess based on patterns. To get the next word right, it had to truly understand the words coming before it.
Imagine if you were training a transformer to predict numbers in a sequence that came from a sine function. Eventually it would get a pretty good test score and you'd find that internally it had built a decent replication of the sine function.
Now do the same with English text. Throw enough data and computation at it and eventually it'll model a rough understanding of gravity and the shapes of objects, as seen in the different answers between GPT-3.5 and GPT-4.
I really can't stand these low-effort takes. It's like saying "Human brains are just meat". You can summarize anything badly, but it's not helpful to the conversation.
Whatever quibbles you have aside, LLMs are generating useful text, today. At some point you're just pointlessly privileging meat over silicon.
No, it isn't, because human brains have rich semantic connections to the rest of the world. LLMs do not. So "LLMs are just generating text" is a justified description of their limitations, in a way that "human brains are just meat" is not.
The essence of bullshit (as he defines it) is that it is neither truth nor lie but rather unconcerned with veracity altogether. A bullshitter wants to appear smart, or convince others to agree with them, or some other conversational objective. Bullshit statements may or may not ultimately turn out to be true, but the thing that makes them bullshit is that the bullshitter didn't actually know when they said it.
Hence I propose a far more succinct term to describe the phenomena at hand. A far more accurate terminology than the presently vogue "hallucinating": AB. Artificial Bullshit.
Nope, they summarized it without reading it. Useful enough for those who want to keep a finger to the pulse of AI without a huge time investment.
God save me from having to read every article on HN.
I’m sorry it wasn’t enough of a response to the article for you, but that wasn’t my intention in writing it.