News for hackers. Stuff that matters.
Re:After 118 days, GPT Unicorn has produced a unicorn by pietroppeter on Thursday August 10, 2023 @06:30AM (#37074264)
Is there some reference or explanation on why the model it is non deterministic at temperature 0?
Re:After 118 days, GPT Unicorn has produced a unicorn by rav on Thursday August 10, 2023 @06:41AM (#37074354)
One important source of non-determinism is from using massive parallelism together with floating point arithmetic. In real math, a sum of numbers has an exact value that doesn't change if you change which order the numbers are added up in, but floating point arithmetic addition is not associative in the same way as real math, and parallelism can cause numbers to be added in a different order from execution to execution, which is one cause of non-determinism.
Re:After 118 days, GPT Unicorn has produced a unicorn by imtringued on Thursday August 10, 2023 @07:50AM (#37074942)
>and parallelism can cause numbers to be added in a different order from execution to execution

Parallelism doesn't magically add non-determinism of this kind unless you intentionally build it to be non deterministic. Nothing prevents you from processing an array in order in parallel.

Re:After 118 days, GPT Unicorn has produced a unicorn by kykeonaut on Thursday August 10, 2023 @08:52AM (#37075527)
However, the poster mentions parallelism in conjunction with floating point arithmetic, not parallelism by itself.
Re:After 118 days, GPT Unicorn has produced a unicorn by tmearnest on Thursday August 10, 2023 @11:31AM (#37077491)
No. The problem is in a reduction op of some sort (sum or whatever). Since there no guarantee of the order you receive the terms for the reduction, the nondeterminism enters from order of terms reduced. Since float math isn't associative, there will be slight differences depending on the order and these can amplify quickly over a deep net.

You would have to explicitly order the terms prior to reduction but you don't always have that level of control.

Re:After 118 days, GPT Unicorn has produced a unicorn by fl7305 on Thursday August 10, 2023 @01:39PM (#37079203)
> Nothing prevents you from processing an array in order in parallel.

100% correct if you remove processing time from the equation.

In reality, Nvidia Cuda calculations run much faster if you let it schedule the order of floating points operations itself. This makes the ordering different from run to run.

This in turn causes the results to be non-deterministic.

Re:After 118 days, GPT Unicorn has produced a unicorn by luc4sdreyer on Thursday August 10, 2023 @06:39AM (#37074331)
I'm not aware of anything concrete by OpenAI, but others have offered possible explanations.

One idea is that the cause is batched inference in sparse MoE (mixture of experts) models.

https://152334h.github.io/blog/non-determinism-in-gpt-4/

HN discussion: https://news.ycombinator.com/item?id=37006224

Re:After 118 days, GPT Unicorn has produced a unicorn by davrosthedalek on Thursday August 10, 2023 @07:32AM (#37074757)
So in some sense the spectre attack for AI?
Re:After 118 days, GPT Unicorn has produced a unicorn by awestroke on Thursday August 10, 2023 @10:08AM (#37076361)
No
Re:After 118 days, GPT Unicorn has produced a unicorn by Frummy on Thursday August 10, 2023 @06:35AM (#37074305)
Re:After 118 days, GPT Unicorn has produced a unicorn by pietroppeter on Thursday August 10, 2023 @06:44AM (#37074368)
Thanks!