argmax
argmax is a mathematical operation that identifies the input argument at which a function attains its maximum value. In AI decision-making it is commonly used to select the option with the highest probability from a probability distribution.
Timeline (last 90 days)
According to the IEEE 754 standard, comparisons of NaN with any value (including itself) return false, so argmax behavior is undefined when it encounters NaN.
After explicitly mapping NaN to -inf, NaN is smaller than any finite value and is thus deterministically excluded, making argmax output independent of hardware and implementation.
During generation, argmax flips due to floating-point noise only when the logprob gap between the top-1 and top-2 candidates is extremely small, and all 23 flipped responses the author traced back met this condition at their first point of divergence.
All Facts (3)
According to the IEEE 754 standard, comparisons of NaN with any value (including itself) return false, so argmax behavior is undefined when it encounters NaN.
50%UnverifiedAfter explicitly mapping NaN to -inf, NaN is smaller than any finite value and is thus deterministically excluded, making argmax output independent of hardware and implementation.
50%UnverifiedDuring generation, argmax flips due to floating-point noise only when the logprob gap between the top-1 and top-2 candidates is extremely small, and all 23 flipped responses the author traced back met this condition at their first point of divergence.
50%