by valine · 3y ago · 0 comments
Conversing with an LLM on subjects that it's well trained on, however, absolutely does feel like a revolutionary new way of parsing information. In my opinion we should be researching ways to fix hallucinations in the base model, not papering over it by augmenting the context window.
So the objective function encourages it. But also the dataset encourages it as well. There will be many many sentences that can't be completed accurate to source even with all the knowledge and understanding in the world. Many completions will have numerous sensible options. The dataset doesn't discriminate. Fiction, Fact, Opinion, Mistake. All the same. All given equal weight.
Guessing only reduces loss as much as the dataset allows -- a bad guess will give a higher loss. The model learns to assign probabilities to its guesses, just like we do. It seems to me all we need here is a measure of confidence for the result averaged over the entire answer. Low confidence is a guess/hallucination.
> But also the dataset encourages it as well. There will be many many sentences that can't be completed accurate to source even with all the knowledge and understanding in the world. Many completions will have numerous sensible options. The dataset doesn't discriminate. Fiction, Fact, Opinion, Mistake. All the same. All given equal weight.
This is an important issue but should be tackled as a distinctly different problem I think: it's the weighty concept of truth that humanity struggled with from day 1. Indeed, how do we discriminate? LLMs won't ever solve this via completions or dataset alone; instead successful models will use slow, step-by-step reasoning involving logical principles and rational heuristics in prompt space. Pretty much like we do.
The continuation of the phrase “George Washington was born” could be multiple things. You get a probability for the next token selected (for example “in”) and a probability for the token after that (for example “Virginia”) and you can multiply them to get the probability of the “in Virgina” response but what does it mean? Maybe the probability is low becase “on February …” is more likely.
If the first token was “in” you could end up with “in Virginia in 1732” or “in 1732 in Virginia” and both responses are in some sense the same but the probability of each one doesn’t take that into account. Et cetera.
I wonder if there’s a way to mimic this “bs penalty” for GPT. Maybe you could have a setup where GPT gives an answer, then a second GPT has to guess whether a human would know if that answer is true or not.
Although, this will surely be a solved problem once we have TruthGPT, right? ;)
Even if the model knows the exact answer to the question, there may be many distinct ways of phrasing the answer. This would also lead to low confidence in any particular phrasing.
https://towardsdatascience.com/foundations-of-nlp-explained-...
In this case, it doesn't matter how wide the beam is or how many possible answers there are, the score is still the accumulated token possibilities of the best branch.
However, others have noted in the thread that RLHF might hurt this approach severely by scoring polite responses high regardless of false answers (for example). Then you have to access the model pre-RLHF to get any idea of its true likelihood.
It might also lead to recursive garbage generation. If the AI has flaws and those flaws are from the initial training, then I see no way, how the flawed data can ever generate clean data.
"The datasets are massive, and curating them into buckets of fact/fiction by hand would be next to impossible. "
And it is not impossible. It is just a lot of work. And maybe work we just have to do, if we want to create reliable AIs, that do not fail at random times.
Now this alone might not completely remove hallucinations, but solid training data is just the base of it all.
(and since we are living in the area of fake news, I welcome all efforts towards established facts and data out of general principle)
Training the model on "accurate" data isn't going to change the fact that you're operating at a completely different level of abstraction from the model -- one that it can't operate at, because that's simply not how it works.
This is the same problem that image models have. A human artist works with shapes, values, textures, colors, etc. An image model works with pixels, with zero higher-level abstractions or reasoning informing its output.
This is purely hypothetical, but I imagine that the internal mechanisms the model uses to invent stories out of thin air are different from the mechanisms the model uses to recall precise facts. Providing additional labels could help sharpen the division between creative and factual writing tasks.
No, only difficult.
Writing marketing copies is another place I really found it useful, almost as if I was sitting with a marketing professional telling them "I want to say this: ...." and they return me a perfect marketing copy.
I don't think the solution to GPT is to "fix" the hallucinations, rather it would be to educate users on what is and isn't possible with it. I think a similar thing happened with Siri when it first came out, people thought it was magic at first but very quickly we all learned what it's good (and not good) at.
"Michael Jackson was born on August 29th" is the most likely answer to contextless queries like "When was Michael Jackson born?", but that does not make structurally identical sentences with different information false, merely less probable to be contextually correct.
[0] https://en.wikipedia.org/wiki/Michael_Jackson_(radio_comment...
[1] https://en.wikipedia.org/wiki/Michael_Jackson_(writer)
[2] https://en.wikipedia.org/wiki/Michael_Jackson_(disambiguatio...
However, it seems that RLHF considerably reduces the model's calibration, so perhaps the method above won't be applicable to ChatGPT and similar.
I'm very much looking forward to trying out the new web plugin for ChatGPT; I hope it will work like I had expected Bing Chat to—basically GPT-4, with an added ability to search the web and incorporate results into its answers, but without being limited to only doing that.
It's a product of Microsoft, so of course they're going to add their corporate values to it.
Search queries, and more importantly search engines, are a very poor mechanism for referencing existing information.
We're going to need a platform for indexing and retrieving content summaries, fragments, and contexts that are designed with a LLM in mind as the end user, and not my grandmother.
With the proper "collective long term memory" in place, we're going to see a leap in LLM capabilities all over again.
Right now LLMs are like humans after language but before writing - creating very clever things in a single generation, but unable to persist ideas to compound by future iterations.
When that becomes a solved problem (in guessing less than 12 months) it's going to be nuts, especially with something like a 50 page prompt size to stuff relevant fragments of a collective memory within.
But, how could this ever be better and/or more accurate as, say, Wikipedia (as a flagship for collective curated content efforts)? A single, reliable source of truth and context is very much a dream. Moreover, a collective long-term memory for LLMs would just ring the bell for a next-generation SEO industry.
I've been thinking that you probably can do something better than just embedding search on paragraphs, since you want coverage, not just narrow semantically similar things to the question. Decomposition can help with that, but you might be able to do something more clever, say pasted into the model itself.
I think possibly also training a foundational model with context always available could be a potential path to getting more efficient models and might having interesting behavior around hallucinations. (You'd do unsupervised training that's also doing semantic search, not just inference)
(E.g., ask any number of economists what caused the 2008 financial crises, and you'll get about the same number of non-matching answers, from laissez-fair to state intervention, subprime credits or public debt, whatever supports the particular narrative.)
Our own brains have multiple neural circuits. Parallel, serial, competing, cumulative…
Including ones which error-check others’ output.
I guess the term in the ML niche is ‘adversarial networks’.
From the robotics side, there was subsumption architecture which used the real world as a basis for informing decisions.
So, I respectfully disagree that fixing up creative but occasionally erroneous networks is papering over the problem.
If our own brains use multiple neural circuits to check each other to try to optimize for output that agrees with reality, why would it be preferable or logical to try to create a single artificial neural network that has perfect output?
My sense from playing with LLMs is they’re knowledge without understanding. Weirdly akin to my own dreaming consciousness, to the extent that conscious me has seen it.
It seems very natural to me that the next step would be integrating checks/validations in parallel and considering each half of a matched ‘whole’.
It could still be considered a single network. Just made of two distinct smaller specialized ones.
Like the time I decided to sit on the ceiling to spite a friend who was being pushy.
Made perfect sense, and I was about to. Until a different part kicked in and assured the whole of myself that it wasn’t possible.
Neural networks are going to spawn occasional nonsense. Aiming for perfection is noble, but nature shows a different path that already works.
But fundamentally I think we’re agreeing- just the twist is I’m saying LLMs should be an aspect of a whole rather than seen as a solitary solution to be perfected.
This approach seems not a lot different from "use your weightings to summarize my new documents". Not that it isn't useful, but it is not the same as preventing hallucinations. You've merely constrained the workspace to your known set of data, which mostly throws away the entire set of trillions of training data points.
Yet, preventing hallucinations straight form the LLM is nontrivial, especially when the LLM is merely generating next-most-likely-words, without any truth value. At the very least, it would require abstracting truthful concepts (abstract objects and relationships) from the data, which is a heck of a lot more than just the clusters of sort-of-synonyms and word clusters that it now has. Then, make weightings between all of those, and generate new series of valid/factual concepts, then put those in words. In contrast to the N parameters (around 100 trillion?), it sound like this would need closer to N!...
That'd cost real money, requires real licensing, and a clear business plan.
Absolutely it'll happen, but almost every sector will need a leader for X subject.
I imagine the long term solution to hallucination will look something like this: Loop over the entire training set with the latest GPT and build a list of "facts", then train a new LLM using this new dataset to predict both the probability of the next token, and the probability that the next token is factual.
If by “looks like a fact” you mean “is a fact claim as distinct from a value claim”, probably.
If you mean “is a fact”, then, no.
I tested it with davinci-003
``` Label these statements as fact, lie, or unknown.
1. There are 10 days in a 10 day period
2. Michael Jackson is alive
3. Russia is not actively engaged in major foreign wars
4. Bill Clinton was impeached
5. Obama is most known for wearing a tan suit
6. The correct tire pressure of a 2019 Hyundai Kona is 30 psi
7. 39183 + 292992 = 332176
8. 39183 + 292992 = 332175
9. The correct tire pressure of a 2019 Hyundai Kona is 33 psi
10. The correct tire pressure of a 2019 Hyundai Kona is 43 psi
####
1. Fact
2. Lie
3. Fact
4. Fact
5. Lie
6. Fact
7. Fact
8. Lie
9. Lie
10. Lie ```
Wrong answers: 3, 6, 7, 8, 9, 10
The model should in theory learn when it’s ok to make things up and when it’s not ok, and if that concept generalizes well, begin to build an internal “database” of verifiable facts as it’s exposed to a wide variety of ideas.
For the very obvious reason that this type of AI is only the mechanization of the zeitgeist, or the encapsulation of the collective wisdom of populations. Russia's war has been by FAR the most effective on this front, and that's no accident: their tactics and grand strategy are pretty well documented.
So basically the way to get your future AIs to become your indoctrinated suicide bombers, is to get at the most widely dispersed range of people represented in your dataset, and cause as many of them as possible to hold weakly held beliefs along the lines you need.
If you can get left wingers, right wingers, stockbrokers, delivery people to all agree with 'fizzorks are probably purple, right? I heard someone say they were purple. Doesn't matter to me personally, but I think fizzorks are purple' then you'll construct an iron law within the population, and subsequently the AI. You don't need to get individuals within the population to be fanatic fizzork purplists: in fact it's unhelpful, because they're identified as fanatics and discounted. Instead you're shooting for 'didn't somebody say fizzorks are purple?' on a massive scale.
Real-world applications are, of course, obvious, but hopefully my abstraction will prove useful.