Live data from Hacker News

What is ChatGPT doing and why does it work?

writings.stephenwolfram.com

31–40 of 518 posts

Re: What is ChatGPT doing and why does it work?

#31
post #21

You can approximate your own ChatGPT on your iPhone by just randomly selecting words that appear in the autocomplete to form a sentence. This is basically how ChatGPT works but better and on a larger scale. Give it a try you’ll be surprised what comes out.

I don’t know what to do with my life right now. I just want to be able to be with you and I know that I am not alone in my feelings. Wow. Very “Valentines Day” meets therapy session.

> What is the best way to know what you want to do with the kids and the kids and the kids and the kids and the kids and the...

Excellent work, Gboard. This has a distinctly different flavor than ChatGPT.

Re: What is ChatGPT doing and why does it work?

#32
Wow this is 19,000 words. I like his summary at the end:

At some level it’s a great example of the fundamental scientific fact that large numbers of simple computational elements can do remarkable and unexpected things.

And this:

... But it’s amazing how human-like the results are. And as I’ve discussed, this suggests something that’s at least scientifically very important: that human language (and the patterns of thinking behind it) are somehow simpler and more “law like” in their structure than we thought.

Yeah I've been thinking along these lines. ChatGPT is telling us something about language or thought, we just havent got to the bottom of what it is yet. Something along the lines of 'with enough data its easier to model than we expected'.

Re: What is ChatGPT doing and why does it work?

#33

Well, aren't Beam Search and other searches also used and more sophisticated than greedy selection?

ChatGPT and other LLMs for that matter are most definitely not using beam search or greedy sampling.

Greedy sampling is prone to repetition and just in general gives pretty subpar results that make no sense.

While beam search is better than greedy sampling, it's too expensive (beam search with a beam width of 4 is 4x more expensive) and performs worse than other methods.

In practice, you probably just wanna sample from the distribution directly after applying something like top-p: https://arxiv.org/pdf/1904.09751.pdf

Re: What is ChatGPT doing and why does it work?

#34
post #15

The answer to this is: "we don't really know as its a very complex function automatically discovered by means of slow gradient descent, and we're still finding out" Here are some of the fun things we've found out so far: - GPT style language models try to build a model of the world: https://arxiv.org/abs/2210.13382 - GPT style language models end up internally implementing a mini "neural network training algorithm" (…

That Kenneth Li Othello paper is great. The accompanying blog post https://thegradient.pub/othello/ was discussed on HN here https://news.ycombinator.com/item?id=34474043

A lot of people didn't seem to get it when it was discussed on HN. A GPT had _only_ ever seen Othello transripts like: "E3, D3, C4 ..." and NOTHING else. It knows nothing of the board. It doesnt event know that there are two players. It learned Othello like it was a language, and was able to play an OK game of it, making legal moves 99.99% of the time. Inside its 'mind', by looking for correlations between its internal state and what they knew the 'board' would look like at each step in the games, they found 64 nodes that seemed to represent the 8x8 Othello board and representation of the two different colours of counters.

And this is the key bit: They reached into its mind and flipped bits on that internal representation (to change white pieces to black for example) and it responded in the appropriate way when making the next move. And by doing this they were able to map out its internal model in more detail, by running again and again with different variations of each move.

Re: What is ChatGPT doing and why does it work?

#35
post #6

It’s Just Adding One Word at a Time I'm curious how do you write?

I don't re-read the whole sentence before every word I type, contrary to transformers. Also, I can go back and correct my mistakes.

To correct your mistakes won't you read again, or be equivalently aware, of what you previously wrote?

Re: What is ChatGPT doing and why does it work?

#36

Earlier quoted context omitted.

My brain knows where it's going to go by the end of the sentence as well, it's conceptualized the whole sentence and my hands are on the road to completing the sentence, I'm not only aware of what I've written so far.

> My brain knows where it's going to go by the end of the sentence as well How would you know that? Sincere question, because to me it feels like my brain is improvising word by word when typing out this sentence. I often delete and retype it until it feels right, but in the process of typing a single sentence, I'm just chaining words one after another the way they feel right. In other words, my brain doesn't exactly…

> Sincere question, because to me it feels like my brain is improvising word by word when typing out this sentence. I often delete and retype it until it feels right, but in the process of typing a single sentence, I'm just chaining words one after another the way they feel right.

That’s your conscious experience, but it doesn’t necessarily match what your subconscious mind has actually been doing. I’d hazard a guess that it’s thinking several moves ahead, like a good chess player. What you end up being consciously aware of is probably just the end product of multiple competing models - including ones that want to stop writing altogether and go do something else.

Re: What is ChatGPT doing and why does it work?

#37
post #21

You can approximate your own ChatGPT on your iPhone by just randomly selecting words that appear in the autocomplete to form a sentence. This is basically how ChatGPT works but better and on a larger scale. Give it a try you’ll be surprised what comes out.

I don’t know what to do with my life right now. I just want to be able to be with you and I know that I am not alone in my feelings. Wow. Very “Valentines Day” meets therapy session.

I'm just curious if you're using SwiftKey. I just did a similar experiment with my autocomplete and the second phrase was "I am not sure what to do with my life". Ostensibly it's trained against my dictionary inputs, but I question how much it truly pulls from that.

Re: What is ChatGPT doing and why does it work?

#38
It was kinda long so I uhh fed it into chatgpt for a summary :

The author, Stephen Wolfram, describes the process of training ChatGPT using large amounts of text data, which allows the model to learn patterns and associations between words and phrases. He explains that ChatGPT uses a multi-layered approach to generate responses, starting with analyzing the input text and then generating a response based on the learned patterns.

Wolfram notes that ChatGPT's ability to generate human-like responses is due to the model's ability to capture context and incorporate knowledge from a wide range of sources. He also discusses the potential uses of ChatGPT, including as a tool for language translation, customer service, and educational purposes.

The article goes on to discuss some of the challenges and limitations of ChatGPT, such as its tendency to generate responses that are repetitive or irrelevant to the input text. Wolfram also acknowledges ethical concerns related to the use of AI for generating text, such as the potential for misinformation and the need for transparency in how the technology is used.

Overall, the article provides a detailed and informative overview of ChatGPT and its underlying technology, as well as the potential applications and challenges associated with AI-generated text.

Re: What is ChatGPT doing and why does it work?

#40
post #36

Earlier quoted context omitted.

> My brain knows where it's going to go by the end of the sentence as well How would you know that? Sincere question, because to me it feels like my brain is improvising word by word when typing out this sentence. I often delete and retype it until it feels right, but in the process of typing a single sentence, I'm just chaining words one after another the way they feel right. In other words, my brain doesn't exactly…

> Sincere question, because to me it feels like my brain is improvising word by word when typing out this sentence. I often delete and retype it until it feels right, but in the process of typing a single sentence, I'm just chaining words one after another the way they feel right. That’s your conscious experience, but it doesn’t necessarily match what your subconscious mind has actually been doing. I’d hazard a guess…

I don’t generally think in individual words when writing. When I want to write a sentence, the first thing I think about is the idea that I want to convey. Then clusters of words start to come into my mind, as ways of expressing that idea, and I select and organize those fragments into a sentence, sometimes fine tuning words to avoid undesirable connotations or emphasize desired ones. Finally I glue the tuned fragments together with syntax and connecting words. Throughout the process I’m constantly iterating.

I don’t think that what ChatGPT does is anything remotely like what I do to communicate. But maybe I’m weird.

Post reply on HN