logoalt Hacker News

peri-cl • yesterday at 9:01 PM • 0 replies • view on HN

Yeah, you need some further compression trick.

In principle you chain top-k primitives together to create a search tree, whose paths are highly plausible strings. That's a very, very large tree though.

Maybe one trick is akin to dynamic programming, i.e. since the tree has lots of local repetition, you convert it into a DAG. Something like, you only look at a sliding window of N tokens, and memoize the prediction for the N+1-th token given that smaller domain of lookbehind-N. The LLM generates that compressed search DAG, and the brute-force phase "inflates" it by enumerating all the paths it encodes.

Or, more generally, any other trick that has the LLM generating sub-phrases of shorter length, and a faster algorithm enumerating how they can be combined together.