News for hackers. Stuff that matters.
Re:Does current AI represent a dead end? by zozbot234 on Friday December 27, 2024 @10:03AM (#42522610)
LLM's are non-deterministic: they'll happily give different answers to the same prompt based on nothing at all. This is actually great if you want to use them for "creative" content generation tasks, which is IMHO what they're best at. (Along with processing of natural language input.)

Expecting them to do non-trivial amounts of technical or mathematical reasoning, or even something as simple as code generation (other than "translate these complex natural-language requirements into a first sketch of viable computer code") is a total dead end; these will always be language systems first and foremost.

Re:Does current AI represent a dead end? by mapt on Friday December 27, 2024 @10:31AM (#42522908)
This confuses me. You have your model, you have your tokens.

If the tokens are bit-for-bit-identical, where does the non-determinism come in?

If the tokens are only roughly-the-same-thing-to-a-human, sure I guess, but convergence on roughly the same output for roughly the same input should be inherently a goal of LLM development.

Re:Does current AI represent a dead end? by zeta0134 on Friday December 27, 2024 @10:36AM (#42522977)
Most any LLM has a "temperature" setting, a set of randomness added to the otherwise fixed weights to intentionally cause exactly this nondeterministic behavior. Good for creative tasks, bad for repeatability. If you're running one of the open models, set the temperature down to 0 and it suddenly becomes perfectly consistent.
Re:Does current AI represent a dead end? by owenpalmer on Friday December 27, 2024 @11:21AM (#42523431)
You can get deterministic output with even with a high temp.

Whatever "random" seed was used can be reused.

Re:Does current AI represent a dead end? by zozbot234 on Friday December 27, 2024 @10:36AM (#42522965)
The model outputs probabilities, which you have to sample randomly. Choosing the "highest" probability every time leads to poor results in practice, such as the model tending to repeat itself. It's a sort of Monte-Carlo approach.
Re:Does current AI represent a dead end? by lifthrasiir on Friday December 27, 2024 @10:36AM (#42522971)
It is technically possible to make it fully deterministic if you have a complete control over the model, quantization and sampling processes. The GP probably meant to say that most commercially available LLM services don't usually give such control.
Re:Does current AI represent a dead end? by brookst on Friday December 27, 2024 @11:14AM (#42523369)
Actually you just have to set temperature to zero.
Re:Does current AI represent a dead end? by HarHarVeryFunny on Friday December 27, 2024 @10:39AM (#42523014)
The trained model is just a bunch of statistics. To use those statistics to generate text you need to "sample" from the model. If you always sampled by taking the model's #1 token prediction that would be deterministic, but more commonly a random top-K or top-p token selection is made, which is where the randomness comes in.
Re:Does current AI represent a dead end? by ninkendo on Friday December 27, 2024 @10:38AM (#42523003)
> If the tokens are bit-for-bit-identical, where does the non-determinism come in?

By design, most LLM’s have a randomization factor to their model. Some use the concept of “temperature” which makes them randomly choose the 2nd or 3rd highest ranked next token, the higher the temperature the more often/lower they pick a non-best next token. OpenAI described this in their papers around the GPT-2 timeframe IIRC.

Re:Does current AI represent a dead end? by ninetyninenine on Friday December 27, 2024 @11:25AM (#42523469)
Computers are deterministic. LLMs run on computers. If you use the same seed for the random number generator you’ll see that it will produce the same output given an input.
Re:Does current AI represent a dead end? by layer8 on Friday December 27, 2024 @11:31AM (#42523519)
The unreliability of LLMs is mostly unrelated to their (artificially injected) non-determinism.