Remix.run Logo
▲ peri-cl 7 hours ago

Or maybe they used next-token prediction with top-k on some kind of sliding window.

Much smaller search space than a grammar. If you predict the adjective "quasi-", conditioned on that, a good language model guesses "polynomial", because it has "complexity theory" in its context. There's hundreds of compounds that begin with "quasi-", but most[0] are very distant in topic matter. (And if you were brute forcing [adjective]-[noun] according to a grammar, you'd get a combinatorial explosion of noise, even if the noun list were very short).

[0] https://en.wiktionary.org/wiki/quasi-#Derived_terms

▲amluto 6 hours ago | parent [-]

You can do waaay better. Quasi-polynomial is a really obvious token in this context. So is power-of-two, “quantum algorithm” (a good model would handle plurals specially), and even “small rank”. Some basic bigrams would get integral lattice, module lattice, and quasi-polynomial quantum algorithm.