logoalt Hacker News

pas06/25/20251 replyview on HN

... why does reversing the all the digits help? could you please explain it? many thanks!


Replies

cschmidt06/26/2025

Math operations go right to left in the text, while we write them left to right. So if you see the digits 123... in an autoreressive manner, you don't know really anything, since it could be 12345 or 1234567. If you flipped 12345 as 543..., you know the place value of each. You know that the 5 you encounter first is in the ones place, the 4 is the tens place, etc. It gives the LLM a better chance of learning arithmetic.

show 1 reply