Re:Transformers Can Do Arithmetic with the Right Embeddings
by michaelnny on Tuesday May 28, 2024 @03:20AM
(#40498251)
I think the main problem is the way we turn the raw mathematics symbols or equations into tokens, and these suboptimal tokenization may decreases the performance
[ Parent
| on HN ]
Re:Transformers Can Do Arithmetic with the Right Embeddings
by threatofrain on Tuesday May 28, 2024 @04:35AM
(#40498682)
That doesn't stop decent code output for many computer languages.
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!