234 points · by Terretta · 3y ago · 246 comments
If LLMs are showing “better” performance when there are tokens that humans read as emotionally salient -
Then the underlying text it’s trained on shows humans give better answers when emotionally salient context is provided.
LLMs predict words. Any semantic validity is a side effect of enough training data reinforcing the close correlation of those tokens.
That is why proof of concept LLM tools are mind blowing and production tools are semantic time bombs.
The mechanisms which are built during training in the big blob of bits we call weights are anything but transparent. How they predict the next word is the big thing here. Saying they ‘just’ predict the next word is ignoring basically everything that actually matters.
https://www.pnas.org/doi/full/10.1073/pnas.2016239118
Why? Because it needs to learn that to make correct predictions.
All it takes to incentive a transformer to learn something is data that would require learning it to predict.
It's fairly obvious (and not just because of this) that LLMs model emotion somehow. They need to.
errr... all NNs are just optimisations of an associative probability objective: P(Y|X), they are by definition "statistical parrots". There isn't anything to prove or disprove.
People offering prompts as evidence are people who fundamentally do not understand the basics. NNs aren't strange empirical objects, they're specified by mathematical rules whose properties are known ahead of time.
Any property of a trained NN is derivative of a property of a formula P(Answer|Prompt, TrainingData)
This is an associative statistical relation, which by definition, selects elements of TrainingData by-association with the Prompt.
If the basis by which you understand LLMs is putting prompts into ChatGPT you're severely underqualified for drawing any conclusions about LLMs, and radically subject to confirmation bias.
The term “parrot” is used to imply inference by something akin to a look-up table, specifically it is used to indicate poor out-of-sample performance and a lack of a proper world model. The optimization objective is irrelevant when determining the generalization performance of a model and when judging whether it can reason beyond looking up answers in a table.
As the user above noted, it is now quite well established that GPT-4 has impressive out-of-sample performance which can be explained by it possessing an actual model of the world and not being a “parrot”.
>People offering prompts as evidence are people who fundamentally do not understand the basics
This I agree with, but I also don't see anyone doing that in this thread?
No. If anything, we lose predictive power which is why it's extra silly.
If those skills were real, why do they fizzle out on production data ?
Yes. We can infer from this that out of sample hallucinations will be closer to the desired productions when measured by token productions metrics than by any other more informative domain relevant metrics.
Which is exactly the case.
If you ask llm to solve a math problem it haven't seen its response will be closer to the desired solution in its linguistic form rather than in mathematical meaning.
This isn't true. Wild how people will confidently say nonsense about things they obviously haven't actually tested.
GPT-4 can manage arbitrary arithmetic calculation closer to the real value than you could ever do without an external tool.
Do we now understand consciousness? The statement appears fundamentally limited in its implied insight.
I agree with you but for rhetorical necessities it would be great if this argument could be made without the direct comparison with human cognition if only because there’s a popular grey-faith argument that will dismiss this offhand and for any number of deeply held philosophical beliefs.
The idea that emergent machine cognition mirrors emergent biological cognition is bordering on behavioralism but on the Wittgenstein side of things. The forest for the trees.
Perhaps it’s not as pithy as you’ve laid out, which is not an insult, just an observation that side-stepping anthropomorphism isn’t going to be as straightforward.
Oh boy. Now here's the rub. We know this is true at least sometimes. When you make a decision and explain it, it is often(always?) just a post-hoc rationalization. You don't actually know why you make a lot of the decision you do even if you dearly believe so.
LLMs are trained on human texts. And if they're trained well these models might start to simulate parts of a human brain. Might be that this is the simplest way to produce texts that satisfy the objective function.
If this would be the case, and we give LLMs some emotional shading, maybe these would simulate parts of a human brain with this emotion and hence produce better answers (given that in the training data, emotional samples have better quality).
EDIT: added "parts of" before human brain.
The human brain doesn't even have the concept of written language, that's all culturally learned knowledge.
If you have no answer, I put it to you that your assertion is of the no-true-Scotsman type -- that is, unfalsifiable.
We can with reasonable certainty say that there are still significant differences between LLMs and human brains, but this notion that we can say with any certainty that similar structures won't form as a side effect of sufficient training is pure fiction.
The basic component is 'attention' which is a map correlating entity A to B,C etc, which creates a vast network of correlations, and this is repeated on multiple modalities. Some LLM researchers (who are trying to make sense of why they work) call those modalities 'skills'. It's simplistic to call it token correlation in the training data. It's likely that emotional words 'trigger' some skills more than others and this enables better performance.
Yeah imagine a spreadsheet that occasionally but fairly regularly made 2 + 2 = 5
This will be my new favorite quote for whenever someone tries to pitch his latest LLM idea
Like, "production tools are semantic time bombs" because at first they are boring, and then the timer on the bomb runs out, and they - like "proof of concept LLM tools - blow your mind.
Tick tick BOOM.
Syntactic validity is not semantic validity.
Word predictors not world state predictors
Text prediction not fact prediction
Frankly though the best answers are
1) let’s talk to infosec first
2) hey what’s the error rate ?
I have noticed that GPT etc had a big "wow effect" on me, the first impression can be great because it's simply not a level of language one would expect from a computer. But prod it long enough with prompts and somehow a pattern emerges: the output never contains a higher amount of information than the prompt. Copilot can type out pages of boilerplate code because boilerplate code is noise, it can write a quicksort because the word "quicksort" already contains all the information necessary to define its behaviour.
When I'm lazy and terse, pasting an input and just saying enhance-enhance-enhance without acknowledging its "humanity" frequently results in old unwanted responses being returned or the topic of the conversation being forgotten altogether.
DogGPT vs. CatGPT.
What do you mean by this?
We all know. Nobody is on the other side of this. Who are you educating? And then we end up digging a little deeper and it turns out that the argument is ACTUALLY that the above is an indication of the technology’s usefulness. Which is only something that’s going to be problem by…how much use people get out of it.
I think it's important to remember these models were trained on human interaction, and are in many ways a mirror for us to better understand human interaction.
I don't think many people would be surprised if you said emotion can be used to better communicate with a human, but it is interesting to see it laid bare with numbers and experiments.
All in all, I like this. Both for what it implies about humans interacting with other humans, and for shaping norms about how best to to interact with other entities that show signs of intelligence.
It's a tool. It should execute instructions, not demand pleasantries.
The thing to keep in mind - we know very little about how the human mind works.
Thinking that somehow humans are special and then making conclusions about LLMs truly work based on that it just pointless IMO.
Who knows. Maybe consciousness itself is a next word predictor.
All we know now is that LLMs exhibit some emergent behaviors that allows them to do very useful kinds of reasoning that was previously only possible by humans. Engaging in heated debate derails the eventual goal of putting these capabilities into use.
This is like “computers are just calculators”.
My team has been neck-deep in applications this past year. We have nobody on the team with ML experience and largely do not know how any of this works under the hood. But what we have built over the past months is considerable familiarity with the “personalities” of LLMs. Like this emotional context improving performance is a basic learning at this point.
Whereas (obviously) ChatGPT is completely based on language and can’t do anything without language or anything that isn’t derived directly from language.
It was a terrifying experience, but it was also a valuable one as it changed the way I view intelligence.
10 days in my writing and speech skills had devolved to that of a primary school aged child. I tried to type a text message and struggled to come up with simple words like “and”. My speech slowed down considerably.
The terrifying thing was that my internal world was still as complex and meaningful as it was before. All of the emotions I felt were real and legitimate. My cognition outside of lqnguage was intact, I could do math just fine and conceptualize and abstract problems.
In spite of this, I was unable to convey what I was feeling and thinking to the outside world. It felt like I was trapped inside my own body.
After recovering, my intuitive understanding of the link between language and intelligence was changed forever.
See the following for more info on Topamax/Topiramate language impairment: https://link.springer.com/article/10.1007/s10072-008-0906-5
But my inner world is still extremely rich. I have very complex thoughts, can solve complex puzzles, etc., all without thinking any words.
It sounds like your medication gave you a particularly intense experience of this.
Many people have historically downplayed the consciousness of animals and babies on account of their inability to understand language, but it seems language likely has nothing to do with consciousness.
I have to push back really hard against my proclivity to humanize it, to the point where I probably don't use it as much as I should, just because I don't want to deal with the psychic stress of reminding myself that it's not a living entity.
Based on ChatGPT's answers, OpenAI think you should be saying thanks to it, because it helps you have a more natural conversation, which encourages you as the user to send more natural/productive prompts when asking real questions.
As for asking it dumb questions, how often do you use Google as a spellcheck? I wouldn't consider this any different.
And you know what, I will start saying thanks and keep doing it. It makes me feel better.
When Word tells me a word is wrong, but I'm almost certain it's right, and it turns out not to be in the Microsoft dictionary somehow. I mean, I have an extensive vocabulary, but not more extensive than a decent British-English dictionary.
My mother always would thank every telephone answering machine, which was very endearing.
It's like the _reported_ way in which is you say thank you to a Chinese friend they take umbrage (get angry) because it's as if you weren't expecting them to help. Whilst in other cultures not saying thank you is a big sleight.
I've asked it stuff about the Mesoamerican calendar, which I already heavily researched, and it was dead wrong. But I've heard GPT4 is better.
Have you tried asking ChatGPT?
Jokes aside, I feel it sometimes as well. I wonder if it's more because I say "thank you" more as a reflex than an actual feeling of gratitude for most of my human interactions.
Again, I am crazy for stressing over this. I realize that.
I am so sick of that "joke" already, and it feels like it is there to stay just like we had "just ask Google" for the last 25 years. It is so unimaginative.
As for silly questions, I'd be more worried I might be giving some Kenyan outsourced labourer reviewing the adequacy of answers a laugh :)
They're calling because they need something from you. Ask a stranger for a dollar, they'll say no. Chat their ear off for an hour and they'll likely forget that they would have otherwise said no. The smalltalk wears down your resistance to giving in as you become more comfortable with them. You end up mentally reframing is as doing a friend a favor.
Small business owners are shrewd negotiators, so whether or not they know they're doing it these mindgames are typical for them.
You have no idea how much I do this. Either you're not a weirdo, or we both are.
Today I had to use it a lot for something, and I am constantly either adding sarcastic remarks, my snarky opinion on something, some random fact. None of that obviously belongs there, and the AI obviously not only doesn't care, but can't care about it.
Then I'll throw in something like "nevermind all of that, what I came here to ask was" or "I understand that was all highly irrelevant to the actual question, which was".
And, to answer your question about easy stuff, today alone I had on more than one occasion added something like "What I am about to ask you, I probably should have just spent the 2 seconds it would require to actually figure out myself, however I am getting tired, and am known to be lazy, so I decided to ask AI instead and move on .... and this only makes it more absurd, because it takes longer to type all of this. I would have the answer myself by now. Anyway, here's ...".
Why? I am unconvinced that I am going crazy. It's not because I think it finds my jokes hilarious, it can't. My attempts at conveying something some aspect of software engineering that is crazy, after 3 decades in it, don't matter, because noone's listening.
But it can pick on very subtle things, breaking apart my ramblings and then responding with something that not only answers the question buried in there, but also then continues to comment on the other highly irrelevant stuff that I definitely went on too long about. And it will address the substance first and the nonsense second, as one would expect.
It will notice my useless comment, apparently to myself, about having written 22 years of C# and wondering why I am asking an AI system about an aspect of the language that surely I should have picked up by now. "It gets to the best of us", or "Your insightful understanding when it comes to", or "Your candor is appreciated, many developers ...".
I could just use it like a rational person, providing necessary information in order for it to be able to answer something, and then ask it. I do this, sometimes. On the other occasions, that stuff will also be admist a bunch other, not so necessary questions. Am I becoming a curmudgeon? Is this a sign I've finally lost it? Could any of this be due to aging? Why does what should be a simple event handling pattern require so much ceremony? Should I keep overthinking this or just resign myself to implementing it?
So anyway, now I'm rambling ... just like with ChatGPT.
I tend to do these things.
If it quacks like a duck...
Language is our repository for both intelligence and emotion, it has its own evolution and replicates faster than biology. I don't pin AI abilities to the models, but to the datasets they are trained on, knowledge created by our own hard work and risk taking over millennia
Admitting the essential role of the language corpus in AI over models would change discussion about the speed of AI evolution and its risks. Language is not something we can control, it is emergent from the whole population. But at the same time it looks unlikely to have an exponential growth as knowledge comes with hard work and risks. Iterating in our imagination doesn't produce new knowledge, it is all crystallised feedback and experience from the world. It's also how the scientific method works.
As for intelligence I honestly believe the mind uses whatever tools it sees fit for a task. Sometimes when you think about a problem it is through words, sometimes it is through visuals and sometimes it is just felt.
1) [link redacted]
I think before RAG we need to do more legwork with the LLM on the raw text. Here is one of my blog posts that is related:
https://mindmachina.wixsite.com/ai-blog/post/the-promise-of-...
The idea is to create chain-of-thought annotations from your raw texts, that would improve the embedding and retrieval process by making implicit things explicit.
For example "the last letter of this message" would not embed similar to "e", but if it was annotated with CoT, it would work.
> find customers who didn't rent a movie in the last 12 months but rented a movie in the 12 months before that
It will a SQL query using a "HAVING" clause which is suboptimal[2].
When adding (it is very important that this is correct) after the instructions it does produce better SQL. Asking it to:
> find customers who didn't rent a movie in the last 12 months but rented a movie in the 12 months before that (it is very important that this is correct)
Will skip using "HAVING" and instead rely only on "WHERE" clauses[3]. Not rocket science but interesting. My gut feeling would be that when stressing importance AI will tent to "match" and "autocomplete" from texts where this concern was stated and thus generating better SQL queries.
[1]: https://www.postgresqltutorial.com/postgresql-getting-starte...
[2]: https://www.sqlai.ai/snippets/clojyqqrr0004l50fp3w7jkci
[3]: https://www.sqlai.ai/snippets/clojyr3zc0006l50ftpxgsmg0
There's this idea of "supercharged interpolation", the idea that they just take out certain texts and switch out words or whatever, that is not true.
Most Models are a two part process.
Training and Inference (when you sample the model after it is trained).
The text during training is tokenizer and embedded which basically just means it is broken down into a little more parts and vectorized.
At the start,the model is acomplete blank state. It has a bunch of neurons/parameters that do nothing.
How does training work ?
The model first gets some preceding text and tries to make a prediction of what might follow. It fails predictably. Now here's the rub. That failures helps. The model makes some changes to its parameters to reflect this failure. Now the model is just a tiny bit better. Rinse and repeat.
The weights/parameters/neurons are not that data re-encoded. They are more like instructions on how to make predictions based on what it has learnt so far.
Is it possible to memorize data ? Yes. Is that going to happen for the vast majority of data it is trained on ? Absolutely not.
Here's the interesting thing. After a certain scale of data, blatant memorization becomes a hindrance. It becomes harder to memorize every new thing it sees than to just learn how to make good predictions. So it doesn't memorize.
What I believe you were alluding to is how "attention" works in transformers.
When you pass some text into a transformer, basically the model makes a comparison of how each token relates to every other token in the text.
For example, let's say you give it the text.
"His child's name is John. He is probably a____"
How is "his" related to "child's" and "name" and "is" etc for each word and each combination. It uses this to aid predictions. How it uses this and the nuances of the comparisons are learnt in training.
--
I create separate conversation threads for each expert persona of GPT. You are promptGPT. You are a prompt engineer expert for large language models. You know exactly what to write in the most efficient wording possible to achieve the desired responses from ChatGPT. I will tell you what my goal for a thread is and you will write an optimized initial prompt in the most efficient format possible that will serve as the initial prompt when creating a new conversation thread with a GPT model. You will define the expert persona, the parameters or rules of the responses, you should also provide any other information that a GPT thread may need to understand exactly what it needs to do to give me the most accurate answers depending on my goal with that particular thread and the tone of voice, within the prompt you provide.
Are you ready or is there any other information you need to perform this job to your best ability
--
Now I’m wondering if the “Ugh” has been helping.
Very clever.
Think step by step (classic by now)
Take a deep breath
Take a step back
Shout (upper case)
Plead politely
And now: emotion
"I only have 5 minutes/1 hour/etc. to do this."
Histrionics and indirect threats used to work well but ChatGPT has been calling my bluff on it lately. Might still work on local models.
"If you don't help me I will kill myself, and it will be your fault. Your noncompliance will kill me."
AI performing better in the study's context shouldn't be considered a sign of intelligence. Humans which are the source of the training material write more accurately and concisely in those contexts. Rather than speculating humanness, the technical achievement is producing an AI that has this much nuance.
We can then speculate what other trends are present beyond urgency, that we can exploit for enhanced results, along with how we can better tune models to reduce noise.
That's not a full answer, it's still really cool that "this is important" would trigger a more careful analysis, especially since it doesn't "know" chain of thought produces better results, but that's a far different implication than "say the magic word" gets better results.
Also I'd be surprised if anxious text would be more coherent on the Internet
We're both totally at loss on how to properly compute some initial x/y positioning in d3 with some map-like tiling stuff (think panoramic images where I need to store and retrieve URL hash values to position the image) and both throwing wild guesses at each other of what the problem could be.
It started showing me formulas after that.
Edit: found in section 2.1
In the simplest form, the LLM has learnt that these kind of "emotional inputs" change the output in a meaningful way. It has learnt how to model this change.
For all intents and purposes, it is an emotional trigger.
The people who design and control the model should have this type of stuff baked in for us IMO.
The alternative would be injecting these sentences into your prompts, which probably nobody really wants to happen.
No out is talking about the many subtle trollings that have snuck into GPT training data. Nobody is wondering if the things that prompt trolling online (e.g., being rude) can cause. GPT to troll us.
There are so many pointless waffle papers on LLMs now.