It's effectively a "slide rule" numerical system so (to avoid intermediate representations) multiplication become addition and addition becomes softmax, right?
I'm not sure what you mean by "slide rule" or "softmax" in this context :p but both binary IEEE and posits are essentially encodings of numbers of the form `(fraction / DENOMINATOR) * 2*exponent`, where `fraction` and `exponent` are integers and `DENOMINATOR` is fixed. The same general principles for implementing arithmetic operations apply for both.
Slide-rules are handy because they convert multiplication into addition. Or technically that's what logarithms do, and slide-rules are a physical implementation of logarithms.
Recall the classic identity:
log(x * y) = log(x) + log(y)
Slide-rules have multiple rulers, and some are marked in log scale, which lets you multiply totally mechanically! By aligning the markings, you effectively add two lengths, which (when read back on the log tick marks) becomes multiplication.
If you perform the same algebra transform as above, you see that addition becomes (oddly, but more intuitive the more you think about it) the Softmax function.
This is my first time seeing Posits, but (having had similar ideas loosely inspired by the Doom bit-hacks) I just assumed this was one of the main sales pitches for Posits!
Replies (1)
Replies (1)
Slide-rules are handy because they convert multiplication into addition. Or technically that's what logarithms do, and slide-rules are a physical implementation of logarithms.
Recall the classic identity:
log(x * y) = log(x) + log(y)
Slide-rules have multiple rulers, and some are marked in log scale, which lets you multiply totally mechanically! By aligning the markings, you effectively add two lengths, which (when read back on the log tick marks) becomes multiplication.
If you perform the same algebra transform as above, you see that addition becomes (oddly, but more intuitive the more you think about it) the Softmax function.
https://en.wikipedia.org/wiki/Softmax_function
This is my first time seeing Posits, but (having had similar ideas loosely inspired by the Doom bit-hacks) I just assumed this was one of the main sales pitches for Posits!