News for hackers. Stuff that matters.
Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by resource0x on Wednesday December 14, 2022 @06:55PM (#33992761)
Can anyone explain why the GPT response to the same question 4 days ago is different from today's:

[ 4 days ago] > Can I learn to sing like Pavarotti?

It is possible to learn to sing like Pavarotti, but it will require a lot of practice, dedication, and training. Pavarotti was a renowned opera singer known for his incredible vocal range, powerful voice, and technical mastery. He had many years of training and experience, and he worked tirelessly to develop his talent and hone his skills. If you are interested in learning to sing like Pavarotti, the best thing to do is to find a qualified vocal coach who can provide you with guidance and support as you work on your singing. With dedication and hard work, you can develop your talent and improve your skills.

[today] > can I learn to sing like Pavarotti?

Pavarotti was a legendary opera singer known for his incredible vocal range and technique. While it is certainly possible to learn to sing like him with proper training and dedication, it would be a challenging undertaking. Singing well requires a combination of natural talent, proper technique, and a lot of practice. If you are interested in learning to sing, it would be best to start by finding a good vocal coach who can help you develop your skills and find your own unique voice.

Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by vikp on Wednesday December 14, 2022 @07:17PM (#33992990)
Large language models like GPT work by generating the probabilities for the next word in a sequence, given the previous words.

You can make this purely deterministic (same sequence every time) by just selecting the word with the highest probability repeatedly.

Most models will inject some randomness by sampling from the probabilities, to make the generated text more realistic. I don't know what parameters they use for ChatGPT, but they are likely injecting some randomness.

It's also likely that they are continuously training ChatGPT with reinforcement learning, so responses may change over time due to this, also.

Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by blep_ on Thursday December 15, 2022 @12:03PM (#34002460)
> they are likely injecting some randomness

They definitely are. That's why the 'try again' button doesn't just return the same text again.

Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by skybrian on Wednesday December 14, 2022 @06:58PM (#33992791)
Not sure which GPT you mean, but if you just run it twice in a row you'll likely get a different response too. There is usually some randomness and how much depends on settings.
Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by resource0x on Wednesday December 14, 2022 @07:04PM (#33992859)
Sometimes the meaning of the response is totally different.

[ 4 days ago ] The son of my father, but not my brother. Who is he?

If a person is the son of the speaker's father but is not the speaker's brother, then that person is the speaker's nephew. A nephew is the son of a person's sibling, so if the speaker's father has a son who is not the speaker's brother, that person is the speaker's nephew. For example, if the speaker has a brother named John and John has a son named David, then David is the speaker's nephew. He is the son of the speaker's father, but not the speaker's brother.

[today] The son of my father, but not my brother. Who is he?

The son of your father but not your brother would be your half-brother. A half-brother is a brother who shares only one parent with you, rather than both. For example, if your father had a child with another woman before he had you, that child would be your half-brother.

Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by skybrian on Wednesday December 14, 2022 @07:25PM (#33993085)
Yes. GPT doesn't really deal in meanings. Much like autocomplete, it doesn't know what the end of a sentence will be when it starts it. If it randomly chooses different words at the start of a sentence, it may pretend to have a different belief by the end.

In reality it doesn't have beliefs any more than a library does. It implicitly contains beliefs (since it's been trained on them) and it can imitate them, but which one you get is random. (There is likely more than one answer to your question in the training data.)

Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by resource0x on Wednesday December 14, 2022 @08:15PM (#33993624)
I see. The assumption here is that one can simulate intelligence without formalizing the notion of meaning. (And if "meaning" is not defined, then the notion of "truth" is impossible to define either). Is my understanding correct?
Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by int_19h on Wednesday December 14, 2022 @08:26PM (#33993747)
The assumption here is that one can produce useful outputs in this manner. Whether it constitutes "simulating intelligence" is a philosophical question.
Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by skybrian on Wednesday December 14, 2022 @09:07PM (#33994146)
Some people hope that training will cause it to represent meanings somehow. How to represent meaning isn't well understood.
Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by ssgh on Wednesday December 14, 2022 @09:09PM (#33994161)
So if we asked GPT to write a book, it would be hallucinating a chain of words without sticking to any coherent plot. However, we could use a "multi-resolution" approach even with today's version of GPT: at the top level we ask it to write a brief plot for the entire novel, at the next level we'll use this plot as the context and ask to outlines sub-plots of the 3 books in our novel, at the third level we'll use the overall plot and a book's summary as context to generate brief descriptions of chapters in the book, and so on.
Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by rcarr on Wednesday December 14, 2022 @09:16PM (#33994204)
It’s interesting because in the writing world there’s a spectrum with plotters at one end and pantsers at the other. Plotters work similarly to what you’ve suggested, starting with a plot and working their way down to the actual writing. Pantsers just start writing ‘by the seat of their pants’ and see what emerges. Stephen King is famously in the latter camp. Most people fall somewhere in between, having a rough plot in mind and work out the rest as they go along. Would be interesting to see different AIs take different approaches and see what emerged.
Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by ssgh on Wednesday December 14, 2022 @09:47PM (#33994477)
The pantsers can also fit the model I've described. In this case GPT would keep in memory a sliding window of past N=1024 words, like it does today, but in addition to that it would remember the past N paragraph-tokens (symbols that are blurry versions of all the words in that paragraph), the past N chapter-tokens and so on. When generating words, GPT would first generate the next chapter-token, then the next paragraph-token and finally the next word-token.
Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by skybrian on Wednesday December 14, 2022 @09:18PM (#33994229)
It's worth a try, but I expect you will still get continuity issues between chapter 1 and later chapters. It's not necessarily coherent even at small scale.
Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by CompleteWalker on Wednesday December 14, 2022 @11:37PM (#33995271)
https://arxiv.org/abs/2209.14958 This paper outlines a similar method, but with the addition of guiding the plot structure. See page 30 for the specific prompt sets they used.
Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by flatline on Wednesday December 14, 2022 @09:20PM (#33994245)
And yet it is often able to make surprising references to previous text. This is not just a markov chain, and is capable of what the author describes as chain of thought. I think there are deeper relationships encoded in the model that allow it to keep to a consistent narrative for a very long time. Its beliefs may change between queries but do not, generally, within the context of a single conversation.
Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by skybrian on Thursday December 15, 2022 @01:31AM (#33996026)
The attention mechanism lets it look backwards to "understand" what was said before and predict what could possibly come next. Whatever consistency it has is due to studying the preceding text.

Thinking ahead is different. All it needs to do is calculate the probability that there is any reasonable completion starting with a particular word. It doesn't need to decide what it's going to say beyond that; it can decide later.

Have you ever played a game where players take turns adding one more word to a sentence? When it's your turn and you're choosing the next word, you don't need to think ahead very much. Also, you don't necessarily need have the same thing in mind as the player who went before you.

In improv there is a "yes, and" where you are always building on what happened before. These algorithms are doing improv all the time.

The algorithm doesn't know or care who wrote the words that came before. It will find a continuation regardless.

Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by esprehn on Wednesday December 14, 2022 @07:55PM (#33993406)
This is by design (and implemented as explained in the sibling comments). The reason for the randomness is to avoid returning the same thing all the time. For example if you ask it "write me a poem" you don't want it to return the exact same one each time.

You can also set the "temperature" parameter to 0 to remove the non determinism (though I'm not sure that's exposed in the web interface).

Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by amilios on Thursday December 15, 2022 @01:36AM (#33996064)
It's not, not in the ChatGPT web interface at least. It's just a chat prompt, that's it. Can't control any sampling parameters at all, not temperature, nor top-P or top-K-based selection, nothing. I guess OpenAI is aiming to keep things simple for now. And to be fair, this choice probably does open the demo up to more users who would otherwise be confused at all the knobs and dials. Although they could just hide it by default or something
Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by anon291 on Wednesday December 14, 2022 @11:45PM (#33995321)
The chat gpt model produces word probabilities. A separate procedure chooses the words and feeds the result back to the model.
Re:How Does GPT Obtain Its Ability? Tracing Emergent Abiliti... by fragmede on Thursday December 15, 2022 @03:42AM (#33996821)
There's naturally going to be some instability of its outputs, but I'd bet OpenAI also isn't sitting still. Behind the scenes I'm sure there's a lot of work going on, so the ChatGPT you interacted with on Monday isn't the same one as the one today.