Live data from Hacker News

Building a Minimal Transformer for 10-digit Addition

alexlitzenberger.com

11–12 of 12 posts

Re: Building a Minimal Transformer for 10-digit Addition

#11
post #6

I somewhat feel that using floating point arithmetic for what should be a symbol manipulation exercise is cheating. The deserialisation technique is interesting enough that I'm not really upset, though. > The codex solution reversed the order which makes sense for making carry logic easy, but it is less clean. That's the approach I'd have gone with. I've long been an advocate of little-endian numerical representation…

symbol manipulation in transformers is fp arithmetic?

That's an implementation detail. The behaviour of trained transformer models remains similar even if you quantise them to 4-bit floats, or make every floating point operation noisy. This model only works if you use double-precision floating point.

Re: Building a Minimal Transformer for 10-digit Addition

#12
post #5

I somewhat feel that using floating point arithmetic for what should be a symbol manipulation exercise is cheating. The deserialisation technique is interesting enough that I'm not really upset, though. > The codex solution reversed the order which makes sense for making carry logic easy, but it is less clean. That's the approach I'd have gone with. I've long been an advocate of little-endian numerical representation…

What's the difference between comprehending and understanding in this context?

"Understanding" is a metaphor, used to describe an upper bound on model capability without excess verbiage. "Comprehending" includes the ability to appropriately manipulate the concepts when they're taken out of their ordinary framing context, which in principle a transformer model should be able to mimic a lot better than the systems we have; but in practice the training processes we're using do not teach the models to do this.
Post reply on HN