News for hackers. Stuff that matters.
Re:AI Search: The Bitter-Er Lesson by cpill on Friday June 14, 2024 @06:58PM (#40685959)
I think the branching factor for LLMs is around 50k for the number of next possible tokens.
Re:AI Search: The Bitter-Er Lesson by refulgentis on Friday June 14, 2024 @07:08PM (#40686023)
100%, GPT-3 <= x < GPT-4o, 100,064, x = GPT-4o, 199,996. (My EoW emergency was the const Map that stored them broken the build, so these #s happen to be top of mind)
Re:AI Search: The Bitter-Er Lesson by kippinitreal on Saturday June 15, 2024 @12:17PM (#40690669)
I wonder if in an application you could branch on something more abstract than tokens. While there might by 50k token branches and 1k of reasonable likelihood, those actually probably cluster into a few themes you could branch off of. For example “he ordered a …” [burger, hot dog, sandwich: food] or [coke, coffee, water: drinks] or [tennis racket, bowling ball, etc: goods].
Re:AI Search: The Bitter-Er Lesson by sunnynagam on Wednesday June 19, 2024 @12:44PM (#40729942)
I was thinking along the same lines and I think where I end up is realizing searching though the possible space of token sequences isn't the way to do it as the text output space is too far removed from the ground truth for humans. As in text is already a biased projection of reality by humans, now we're searching through an LLM's crude estimation of a biased projection of this?

I think a deeper architectural change involving searching internally in the latent space of a model is required. That way we could search in "thought space" instead of "text space" and maybe then only convert the output to text after searching.

Re:AI Search: The Bitter-Er Lesson by Hugsun on Saturday June 15, 2024 @01:59PM (#40691430)
My guess is that it's much lower. I'm having a hard time finding a LLM output logit visualizer online, but IIRC, around half of tokens are predicted with >90% confidence. There are regularly more difficult tokens that need to be predicted but the >1% probability tokens aren't so many, probably around 10-20 in most cases.

This is of course based on the outputs of actual models that are only so smart, so a tree search that considers all possibly relevant ideas is going to have a larger amount of branches. Considering how many branches would be pruned to maintain grammatical correctness, my guess is that the token-level branching factor would be around 30. It could be up to around 300, but I highly doubt that it's larger than that.