News for hackers. Stuff that matters.
Re:Transformers Can Do Arithmetic with the Right Embeddings by ynik on Tuesday May 28, 2024 @04:44AM (#40498732)
I thinks that's far from the only problem. To me the most obvious problem is that we use right-to-left numbers (think about the order you're writing digits when doing long addition) in a left-to-right language. Without a special number-flipping step; the transformer is forced to produce the output token-by-token, i.e. from left-to-right. Without the ability to store additional internal state, this turns addition into an O(N²) problem purely due to the suboptimal output ordering!
Re:Transformers Can Do Arithmetic with the Right Embeddings by Shrezzing on Tuesday May 28, 2024 @06:14AM (#40499164)
The paper discusses this, and the approach taken in the paper implements a number-flip stage, so numbers are formatted with their least significant figure first.