101 points · by zdw · 1y ago · 61 comments
The article you shared raises an interesting point by comparing human memory with LLMs, but I think the analogy can only go so far. They're too distinct to explain hallucinations simply as a lack of meta-cognition or meta-memory. These systems are more like alien minds, and allegories risk introducing imprecision when we're trying to debug and understand their behavior.
OpenAI's paper instead identifies hallucinations as a bug in training objectives and benchmarks, and is grounding the explanation in first principles and the mechanics of ML.
Metaphors are useful for creativity, but less so when it comes to debugging and understanding, especially now that the systematic view is this advanced.
[0] https://openai.com/index/why-language-models-hallucinate/?ut... [1] https://cdn.openai.com/pdf/d04913be-3f6f-4d2b-b283-ff432ef4a...
I honestly have no idea why OAI felt that they needed to publish a “paper” about this, since it is blazingly obvious to anyone who understands the fundamentals of transformer inference, but here we are.
The confusion on this topic comes from calling these suboptimal outputs “hallucinations” which drags anthropomorphic fallacies into the room by their neck even though they were peacefully minding their own business down the corridor on the left.
“Hallucination” implies a fundamentally fixable error in inference, a malfunction of thought caused by a pathology or broken algorithm.
LLMs “Hallucinating” are working precisely as implemented, only we don’t feel like the output usefully matches the parameters from a human perspective. It’s just unhelpful results from the algorithm, like any other failure of training, compression, alignment, or optimisation.
A: probably work around by prompting and properly structuring tasks
B: never completely rule out
C: not avoid at all in certain classes of data transformations where it will creep in in subtle ways and corrupt the data
D: not intrinsically detect, since it lacks the human characteristic of “woah, this is trippy, I feel like maybe I’m hallucinating “
These misconceptions stem from the fact that in LLM parlance, “hallucination” is often conflated with a same-named, relatable human condition that is largely considered completely discrete from normal conscious thought and workflows.
Words and their meanings matter, and the failure to properly label things often is at the root of significant wastes of time and effort. Semantics are the point of language.
The analogy may be much less wishy-washy than you imagine: check out "Source-aware training"
https://arxiv.org/abs/2404.01019
Everybody quickly learns to take note of who-claims-what: in kindergarten kids learn to detect each others lies, and learn to attach more credibility to the teachers / caretakers than dubious claims "I am allowed to hit you", to the point that precisely because they learn it they start crafting insidious lies "the teacher said I'm allowed to hit you", after which you learn to be skeptical of meta-claims etc.
Sadly no SOTA LLM's use source-aware training.
Perhaps start a petition on
change.org openpetition.eu openpetition.org
etc.
We already know that larger models hallucinate less since they can store more information, are there any smaller models which hallucinate less
excerpt: Claim: Avoiding hallucinations requires a degree of intelligence which is exclusively achievable with larger models. Finding: It can be easier for a small model to know its limits. For example, when asked to answer a Māori question, a small model which knows no Māori can simply say “I don’t know” whereas a model that knows some Māori has to determine its confidence. As discussed in the paper, being “calibrated” requires much less computation than being accurate.
They are merely an output that we find unuseful, but in all other ways is optimal based on the training data, context, and model precision and parameters being used.
From the article: "I think it’s because I don’t only know things: I remember learning them. My knowledge is sedimentary, and I can “feel” the position and solidity of different facts and ideas in that mass. I can feel, too, the airy disconnect of a guess."
I think this can be rephrased as a statement that episodic memory (i.e. recalling the act of learning) is associated with semantic memory (i.e. recalling the fact itself). And for people with more normal brains, it seems it often is.
For people with temporal lobe epilepsy, in many cases the episodic memory isn't there. TLE frequently damages the hippocampus. Often, immediately after taking my meds, I can't recall doing so. I only know I did because I mark it in a notebook when I do it. Things like that are common. However, I can absolutely learn things like structure of systems, API calls, and the like. I believe that I perceive when I'm not sure of something, or that I'm guessing.
Of course, this kind of perception is difficult to verify outside of a study. A lot of memory is very unreliable, even for normal people. Us lucky people with TLE are often more aware of this, because in my case, I have very vivid memories of events that certainly did not occur. These memories are some of the most vivid I have; they seem more real than reality. I have memories of events that I can't verify by comparing them to the current state of the world; I have no idea if they happened or not. Even with all that, I believe my semantic memory is reasonably good; I can do my job as a software engineer.
I guess it merged two tokens why learning the text.
Amazingly it also knows about difference between two constants, but referrs to the wrong one in both calculations and in hallucinating the quote.
It's tedious to always check for stuff like this.
Then I asked a different LLM and it turned out that actually the constant is monkey patched for specific contexts and both me and the first lying machine were wrong
It's a statement that /feels/ true, because we can all look "inside" our heads and "see" memories and facts. But we may as well be re-constructing facts on the fly, just as re-construct reality itself to sense it.
The brain definitely stores things, and retrieval and processing are key to the behaviour that comes out the other end, but whether it's "memory" like what this article tries to define, I'm not sure. The article makes it a point to talk about instances where /lack/ of a memory is a sign of the brain doing something different from an LLM, but the brain is pretty happy to "make up" a "memory", from all of my reading and understanding.
A distinction between semantic (facts/concepts) and episodic (specific experiences) declarative memories are fairly well established since at least the 1970s. That the latter is required to construct the former is also long posited, with reasonable evidence [1]. Similarly, there's a slightly more recent distinction between "recollecting" (i.e., similar to the author's "I can remember the event of learning this") and "knowing" (i.e., "I know this but don't remember why"), with differences in hypothesized recall mechanisms [3].
[1] https://www.science.org/doi/full/10.1126/science.277.5324.33... or many other reviews by Eichenbaum, Squire, Milner, etc
Humans can generally differentiate between when they know something or not, and I'd agree with the article that this is because we tend to remember how we know things, and also have different levels of confidence according to source. Personal experience trumps watching someone else, which trumps hearing or being taught it from a reliable source, which trumps having read something on Twitter or some grafitti on a bathroom stall. To the LLM all text is just statistics, and it has no personal experience to lean to to self-check and say "hmm, I can't recall ever learning that - I'm drawing blanks".
Frankly it's silly to compare LLMs (Transformers) and brains. An LLM was only every meant to be a linguistics model, not a brain or cognitive architecture. I think people get confused because if spits out human text and so people anthropomorphize it and start thinking it's got some human-like capabilities under the hood when it is in fact - surprise surprise - just a pass-thru stack of Transformer layers. A language model.
it does not store things in the way records of any sort do, but it does have a some store and recall mechanism that works.
To be fair, LLMs do this too - I just got ChatGPT to recite Ode to Autumn.
By what mechanism do you feel I "remember" last week?
Always amazes me when people want to replace a simple explanation with magic.
Did they not recently transfer memory of how to solve a maze from one mouse to another, giving credibility to what can store information?
Searching, I only find the RNA transfers done in 60s, which ran into some problems. I thought a recent study did transfer proteins.
Without fundamental changes to the LLMs or the way we think about agentic systems, high quality, comprehensive written knowledge is the best path to helping agents "learn" over time.
“We refute (based on empirical evidence) claims that humans use linguistic representations to think.” Ev Fedorenko Language Lab MIT 2024
It’s nice to know that this sort of appreciation is becoming more common. Somewhere between tech accelerationism and protestant resistance are those willing to re-interrogate human nature in anticipation of what lies ahead.
A different blog post from this month detailing an experience with ChatGPT that netted a similar reflection: https://zettelkasten.de/posts/the-scam-called-you-dont-have-...
"I’ll remind you that biologists do not, in the year 2025, know memory’s physical substrate in the brain! Plenty of hypotheses — no agreement. Is there any more central mystery in human biology, maybe even human existence?"
A hypothesis is very distinct from theoretical knowledge. A hypothesis lacks empirical evidence. A theory uses empirical information. That CS personnel are lacking both the scientific method and the ability to discern the current state of the art empirical research to disprove such wildly unsupported statements speaks to the field's total failure to develop present-day relevant tools. I would direct the author to two critical books
Evolution of Memory Systems
https://academic.oup.com/book/26033
How we remember: brain mechanisms of episodic memory
https://direct.mit.edu/books/monograph/2909/How-We-RememberB...
"Theory" and "hypothesis" are pretty interchangeable in colloquial usage, and the post's tone is very colloquial. On top of that, there are things referred to as hypotheses that have empirical evidence, like the amyloid beta hypothesis. There is empirical evidence that supports it, but there is also evidence that doesn't, and it's an open question (depending on who you ask).
I don't think it shows that the author lacks the ability to discern state of the art research or is making wildly unsupported statements, I think they were using plain-English terms to describe a state where there's a lot of uncertainty about the physical mechanism as opposed to say, how a car engine works (which at a certain point relies on theories of physics, but they're theories that are almost universally agreed upon).
The bizarre CS idea of using "plain English" as a propagandic thrust to infantilize complex scientific theory is suspect. Let's eschew the idea. "Plain English" is Orwellian dumbing down.
There is a general agreement which links ontogeny and phylogeny, details working memory, its relationship to the allocortex, and subsequent episodic memory. So the neural correlates have been worked out.
The working memory and episodic memory papers in the last few years have isolated the correlates, we a have a fairly empirical neurobiological description of memory function and process.
What we're lacking now are the molecular mechanisms.
Would you kindly provide some references? I'm very interested in this research as an armchair enthusiast, but in my own reading I've yet to find anything this confident.
LLMs - Lossy highly compressed knowledge which when prompted "hallucinates" facts. LLMs hallucinations are simply how the stored information is retrieved.
Memory (human in this case) - Extremely limited, but almost always correct.
Just an observation. No morals.
I feel from my own experience teaching, that it's repetition and pruning of information that really makes human memory and learning much more effective and not the act of storing the information the first time.
let's stop taking opinions on ai from randoms. please. they haven't a fkin clue.