News for hackers. Stuff that matters.
Re:AI engineers claim new algorithm reduces AI power consump... by remexre on Saturday October 19, 2024 @02:48PM (#41889747)
Isn't this just taking advantage of "log(x) + log(y) = log(xy)"? The IEEE754 floating-point representation stores floats as sign, mantissa, and exponent -- ignore the first two (you quantitized anyway, right?), and the exponent is just an integer storing log() of the float.
Re:AI engineers claim new algorithm reduces AI power consump... by mota7 on Saturday October 19, 2024 @03:49PM (#41890236)
Not quite: It's taking advantage of (1+a)(1+b) = 1 + a + b + ab. And where a and b are both small-ish, ab is really small and can just be ignored.

So it turns the (1+a)(1+b) into 1+a+b. Which is definitely not the same! But it turns out, machine guessing apparently doesn't care much about the difference.

Re:AI engineers claim new algorithm reduces AI power consump... by amelius on Saturday October 19, 2024 @04:08PM (#41890382)
You might then as well replace the multiplication by the addition in the original network. In that case you're not even approximating anything.

Am I missing something?

Re:AI engineers claim new algorithm reduces AI power consump... by dotnet00 on Sunday October 20, 2024 @01:36AM (#41893129)
They're applying that simplification to the exponent bits of an 8 bit float. The range is so small that the approximation to multiplication is going to be pretty close.
Re:AI engineers claim new algorithm reduces AI power consump... by tommiegannert on Saturday October 19, 2024 @04:25PM (#41890513)
Plus the 2^-l(m) correction term.

Feels like multiplication shouldn't be needed for convergence, just monotonicity? I wonder how well it would perform if the model was actually trained the same way.

Re:AI engineers claim new algorithm reduces AI power consump... by dsv3099i on Saturday October 19, 2024 @09:14PM (#41892121)
This trick is used a ton when doing hand calculation in engineering as well. It can save a lot of work.

You're going to have tolerance on the result anyway, so what's a little more error. :)

Re:AI engineers claim new algorithm reduces AI power consump... by convolvatron on Saturday October 19, 2024 @02:55PM (#41889800)
yes. and the next question is 'ok, how do we add'
Re:AI engineers claim new algorithm reduces AI power consump... by kps on Saturday October 19, 2024 @03:19PM (#41889991)
Yes. I haven't yet read this paper to see what exactly it says is new, but I've definitely seen log-based representations under development before now. (More log-based than the regular floating-point exponent, that is. I don't actually know the argument behind the exponent-and-mantissa form that's been pretty much universal even before IEEE754, other than that it mimics decimal scientific notation.)
Re:AI engineers claim new algorithm reduces AI power consump... by dietr1ch on Saturday October 19, 2024 @03:06PM (#41889877)
I guess that if the bulk of the computation goes into the multiplications, you can work in the log-space and simply sum, and when the time comes to actually do a sum on the original space you can go back and sum.
Re:AI engineers claim new algorithm reduces AI power consump... by a-loup-e on Saturday October 19, 2024 @03:35PM (#41890126)
Not sure how well that would work if you're often adding bias after every layer