FP64 Is All You Want, INT8 Is All You Need, FP4/6/8 Is All You Have (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
Why would multiplication and addition be the only needed math, and not xor gates.
Ai should be used to find that set of functions.
Replies (10)
Replies (1)
Replies (1)
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.
Replies (1)
I believe binary networks use quantization-aware training for exactly that reason as well.
Replies (2)
Addition modulo 2 is special, because it is identical with subtraction modulo 2. This means that computer "XOR" has 2 possible interpretations, as addition modulo 2 and as subtraction modulo 2.
Because addition modulo 2 is special, some of the algorithms that work with additions in bigger fields also work modulo 2, but other algorithms are no longer applicable.
https://dnhkng.github.io/posts/m4-tinystories/
https://dnhkng.github.io/posts/isa-net-compression/
I think they may have popped up on HN already.
Replies (2)
The entire ML literature for the last 30 years has been playing genetic optimisation on model designs and architectures. We are reaching the exploitation phase because it is becoming clear that exploration is giving diminishing returns.
Replies (1)
https://proceedings.neurips.cc/paper_files/paper/2024/hash/7...
It uses XNOR (IFF, the opposite of XOR) as the activation function. This allows for a binary neural network that is trained directly in binary, not quantized later.
There is also a bunch of other papers that forego neural networks altogether and instead use something called "logic gate networks". Instead of neurons, they use logic gates. They don't have weights and use random connections instead. The learning consists in deciding which logic gate to use at each node ("neuron") in the network. They use conventional differentiation though, by "relaxing" the binary Boolean functions into continuous functions between 0 and 1, and then converting them to binary after training. I wonder whether the binary training approach from the paper above could be used for much faster training of these "logic gate networks". Currently they have extremely fast inference but slow training.
https://tom7.org/grad/murphy2023grad.pdf
https://tom7.org/grad/
Replies (1)
5/5 - I am now banned and can't reply
Replies (1)