HNHacker News
TopNewBestAskShowJobs

MarcLore

62 karma · joined August 4, 2025

Building EvoLink (https://evolink.ai) - a unified AI API gateway for 40+ models. We help developers save 20-70% on AI API costs with smart routing and automatic failover. Previously worked on AI infrastructure and growth.
submissionscomments
MarcLore··on Smallest transformer that can add two 10-digit numbers
The gap between 36 hand-coded params and 311 trained params is fascinating and honestly underappreciated. It mirrors something we see repeatedly in ML: gradient descent finds solutions in a fundamentally different region of parameter space than a human engineer would design.

When you hand-code the weights, you're essentially implementing a known algorithm (carry-propagation) directly into the network topology. But trained networks often discover distributed representations that spread the computation across more parameters in ways that are harder to interpret but more robust to input distribution shifts.

I'd be curious whether the 311-param trained model generalizes better to bases other than 10, or to addition with different digit counts than it was trained on. In my experience, the 'messier' learned solutions sometimes capture more structural regularity than the clean engineered ones, precisely because they aren't locked into a single algorithmic strategy.