If you're giving it words from a sentence it is literally the baseline functionality of the text generator to choose the most likely next token, IE to recreate the most likely sentence from the words given.
This couldbe the least meaningfully revealing task I could possibly think of trying if I were trying to find some inner monologue, if gpt had to "think" on anything this would never be it.
Chance simply doesn't enter into the equation to any notable extent.
Rearrange (if necessary) the following words to form a sensible sentence. Don’t modify the words, or use other words.
The words are: access capabilities doesn’t done exploring general GPT-4 have have in interesting its it’s of public really researchers see since terms the to to what
A successful completion would be.
Since the general public doesn't have access to GPT-4, it's really interesting to see what researchers have done in terms of exploring its capabilities
The number of permutations of the 24 words in the pre-scrambled sentence without taking into consideration duplicate words is 24 * 23 * 22 * ... * 3 * 2 * 1 = ~ 6.2e+23 = ~ 620,000,000,000,000,000,000,000. Taking into account duplicate words involves dividing that number by (2 * 2) = 4. It's possible that there are other permutations of those 24 words that are sensible sentences.
For a language model to consistently make sensible predictions, it quite simply has to be able to "look ahead".
When the probabilities for the candidate tokens for the first generated token were calculated, it seems likely that GPT-4 had calculated an internal representation of the entire sensible sentence, and elevated the probability of the first token based on that internal representation.
I don't know what else to call looking backward, looking forward and then producing output anything other than a state.
If you want to see what this kind of completion would look like without much or any regard for a sensible completion of the sentence then just ask 3.5.
Also on my second try, I gave it a slightly invalid sentence. The prompt was..
Unscramble the following: waffles eat with like cheese you.
It responded with: You like to eat waffles with cheese.
But notice that the prompt doesn’t have the word “to” anywhere in it. But it was the most likely word that was supposed to go there.By the nature of number ranges there are infinitely many more wrong answers available to calculators performing addition and yet a simple ripple carry adder still promptly produces the correct output without lookahead, why this is compelling evidence?
Further, if it relied on internal state or lookahead why would it occasionally hallucinate appropriate tokens it wasn't provided?
If you want to believe looking ahead is unecessary, be my guest lol.
Humans would occasionally "hallucinate" words in too. For whatever reason(and this is verified independently of any of this), LLMs also appear to "get distracted"
Give GPT-4 about 10 or a dozen words from a meaningful sentence scrambled. Now tell it to unscramble those words to make a meaningful sentence. As long as you don't try too many tokens, the rate of meaningful completions is nearly 100%. The chances of that happening via random chance is to put it lightly, extremely small.
The only way for humans to solve this kind of problem is to think about the words before the output or in this case generation.