arithmetic
arithmetic at Beyond Market Intelligence is a file of 3 stories. The newest of them: “A small language model that teaches itself column arithmetic.”, “Run Your Data Analysis Where Your Data Lives”, and “Teaching a transformer exact arithmetic by hand, not training”. This is the kind of result that makes you question what small models actually need. Most dataframe work pulls data out of the database, then pushes it back after Python finishes its part. Acme AI is the next-generation, AI-powered spreadsheet platform built to replace Excel and redefine how analysts, data scientists, and enterprise teams work… The list below is every arithmetic story on Beyond Market Intelligence, newest first.
A small language model that teaches itself column arithmetic.
This is the kind of result that makes you question what small models actually need. A 348M-parameter model, trained on 22.7B tokens, hits 99.4% across nine arithmetic sub-tasks, beating GPT-3's 175B few-shot numbers by a wide margin. The clever part isn't just the accuracy; it's that the model learned place values it was never taught, inventing "millions" and "ten-millions" from zero examples. That's not brute force. That's pattern recognition. We've covered how AI reshapes data ownership, and this feels like a natural extension
Run Your Data Analysis Where Your Data Lives
Most dataframe work pulls data out of the database, then pushes it back after Python finishes its part. memFrame flips that script. It compiles your Python/DataFrame API calls directly into SQL, letting DuckDB, PostgreSQL, or ClickHouse do the heavy lifting where the data lives. That is a smarter default. The incremental release strategy is also a good discipline: get inspection, cleaning, and arithmetic solid before tackling groupby and window functions. For deeper Python performance thinking, our guide on advanced techniques pairs well here.
Teaching a transformer exact arithmetic by hand, not training
A single transformer model, its weights hand-set with no training, just averted the arithmetic meltdown that defines its peers. One version nails all three million possible three-digit products, and the same approach scales to twelve-digit multiplication. What stands out is the compiler work: turning the grade-school algorithm into a standard Phi-3 checkpoint through Torchwright. Frontier models crumble at seven digits, five scoring zero out of five hundred, while this one holds steady.