Re:We Found an Neuron in GPT-2
by IgorPartola on Thursday February 16, 2023 @09:20PM
(#34829861)
Do an improv exercise with a friend. Construct a story about a sentient apple one word at a time. I guarantee you that at one point one of you will set up the other with an “an” in your story. This is how I believe this works.
Your friend is thinking ahead that the next word would be apple When they say ‘an’.
But GPT can’t think ahead what token it will add after the one it is on. Or can it? It could “predict” internally the word apple for the next “meaningful” word and output ‘an’ because of this.
Re:We Found an Neuron in GPT-2
by IgorPartola on Thursday February 16, 2023 @11:46PM
(#34830897)
Or it could keep outputting articles where appropriate until it outputs an “an” and then output apple having teed itself up.
To rephrase that for this case: what is the specific mechanism in GPT-2 that (1) makes it realise that the word 'apple' is significant in this prompt, and (2) use that knowledge to push the model to predict 'an'? Finding this neuron would only answer the some portion of (2).
(And to rephrase this for the general case, which gives us the initial question: How does GPT-2 know when, given a suitable context, to predict 'an' over 'a'?)