News for hackers. Stuff that matters.
Re:Something weird is happening with LLMs and chess by topaz0 on Friday November 15, 2024 @09:47AM (#42147380)
Still an interesting direction of questioning. Maybe could be rephrased as "how much work is the grammar doing"? Are the results with the grammar very different than without? If/when a grammar is not used (like in the openai case), how many illegal moves does it try on average before finding a legal one?
Re:Something weird is happening with LLMs and chess by Jerrrrrrry on Friday November 15, 2024 @09:52AM (#42147422)
an LLM would complain that their internal model does not refelct their current input/output.

Since LLM's knows people knock off/test/run afoul/mistakes can be made, it would then raise that as a possibility and likely inquire.

Re:Something weird is happening with LLMs and chess by causal on Friday November 15, 2024 @01:44PM (#42149652)
This isn't prompt engineering, it's grammar-constrained decoding. It literally cannot respond with anything but tokens that fulfill the grammar.
Re:Something weird is happening with LLMs and chess by int_19h on Friday November 15, 2024 @02:26PM (#42150017)
A grammar is really just a special case of the more general issue of how to pick a single token given the probabilities that the model spits out for every possible one. In that sense, filters like temperature / top_p / top_k are already hacks that "do the work" (since always taking the most likely predicted token does not give good results in practice), and grammars are just a more complicated way to make such decisions.
Re:Something weird is happening with LLMs and chess by gs17 on Friday November 15, 2024 @05:14PM (#42151815)
I'd be more interested in what the distribution of grammar-restricted predictions looks like compared to moves Stockfish says are good.