It should be possible to replace a small tree of neurons with a smaller set of functions that back propagate more efficiently and are cheaper to calculate meanwhile using less ram/cpu per computation. It's not probable that our first shoot in the dark with neurons got the optimal math structure.
Why would multiplication and addition be the only needed math, and not xor gates.
On top of that, you can trivially construct an XOR gate with just 2 neurons in the hidden layer. Neural networks are already proven universal approximation schemes and they are differentiable, meaning you can train using gradient descent. These two facts are what gave rise to modern AI, not some half-motivated architecture or building block. Complexity is what you need, and gradient descent is what you use to tame it. There are probably still quite a few possible improvements to sections of the overall process, but the biggest revolution will probably come from making hardware more aligned with these ideas rather than making AI more aligned with traditional hardware.
I do think it'd be interesting to have some kind of localized snapping when subsets of neurons adjacent enough to segment from the network as a whole are close enough to a known family of functions over their inputs. Some kind of optimizing compiler over approximated neural circuitry
This paper is really hard to read but it seems like they're trying to optimize for fewest GEMMs instead of normalizing for the ones that run the fastest at the precision they need? I don't really understand why you would care about having fewer GEMMs.
Yikes. Is this paper supposed to be read by humans or agents? Seems like the authors spent very little time doing any kind of readability checks. The results do look super impressive though. can anyone more in the know on why one wants fp64 matmuls in practice? Iiuc doing it at low bit and aggregating into bf16 was good enough eg when computing dot products even on pretty long vectors.
In my corner of physics, the biggest theory breakthrough came from abandoning fp128 quad-precision and going to arbitrary precision libraries with tens to hundreds of (decimal!) digits.
Don't judge based only on LLMs. They are a special case coming from having a good amount of compression bias baked into their design. There are heaps of applications in scientific computing where you really need fp64 matmuls. The biggest issue comes with ill-conditioned matrices, where a low-precision matmul can cause catastrophic cancellation.
"same hardware" might be a misleading way to think about it. There's only a handful of fp64 units on the die, so it wouldn't be a big exaggeration to say the native performance is zero. This algorithm actually makes use of the computational power of the die. And going from near-zero to solid performance is automatically a near-infinite improvement factor.
The speed of this method is part of hardware selection for sure.
But I'm saying the native performance number is too low to care about, so the 83x ratio isn't meaningful. It's an important number divided by an unimportant number. If native was a little better and the ratio was 50x, or native was even worse and the ratio was 600x, that change in ratio would basically not matter.
Why would multiplication and addition be the only needed math, and not xor gates.
Ai should be used to find that set of functions.
I believe binary networks use quantization-aware training for exactly that reason as well.
My first home assignment after being introduced to NN was to draw an XOR gate on paper using neurons.
How to do it, is left as an exercise to the reader.
https://archive.ph/K2TX3
they happened to use gnu MP, yes, but for cobol, dynamic arbitrary float precision or "never overflow" ints are not the point.
If they can deploy aoftware and models, these benefits go into hardware selection.
But I'm saying the native performance number is too low to care about, so the 83x ratio isn't meaningful. It's an important number divided by an unimportant number. If native was a little better and the ratio was 50x, or native was even worse and the ratio was 600x, that change in ratio would basically not matter.