Neurosymbolic AI: How to Finally Get Language Models to Do Math
Language models still can't do arithmetic reliably, and the problem isn't model size or training quality. A researcher on Habr ran a series of experiments and reached a fundamental conclusion: neural networks are simply not built for discrete arithmetic. Their strength is continuous transformations. The proposed fix is a neurosymbolic architecture that combines the precision of classical symbolic AI with the generalization ability of neural networks. The approach could remove one of the most irritating weaknesses of modern LLMs.
AI-processed from Habr AI; edited by Hamidun News
The world's largest tech companies have poured tens of billions of dollars into language models that can write code, translate text and produce coherent reasoning on any topic. But ask any of them to divide 7429 by 17, and it turns into a lottery. Sometimes the answer is right, sometimes it isn't, and sometimes the model produces a confident hallucination that is impossible to tell apart from the correct result. This is not a bug that a patch can fix. It is a fundamental limitation of the architecture, and one researcher on the Habr platform has not only pointed out the problem but proposed a working solution.
Before getting to the solution, it helps to understand why the problem exists at all. Language models built on the Transformer architecture process information through continuous mathematical transformations: matrix multiplications, activation functions, the attention mechanism. All of this works brilliantly for tasks where patterns, context and approximate estimates matter. But arithmetic is a discrete operation. Two plus two is exactly four, not 3.97 or 4.02. When a neural network tries to imitate exact computation through approximation, it inevitably makes errors, especially on numbers that did not appear in the training set or fall outside familiar ranges.
The industry has tried workarounds. Chain-of-Thought prompting makes the model reason step by step, which improves results but does not eliminate the root cause: every step in the chain is still executed by the same approximating architecture. Fine-tuning on math problems helps in narrow scenarios but does not generalize. Enlarging the context window and the model's scale yields marginal gains at enormous computational cost. As a result, companies have landed on a paradoxical fix: wiring ordinary calculators into powerful neural networks through tool calls. It works, but it looks like a kludge bolted onto a spaceship.
The researcher took a different route and proposed a neurosymbolic architecture: a hybrid in which neural components handle what they are genuinely good at, while symbolic modules take over tasks that demand precision. The idea is not new in the academic sense. Neurosymbolic AI has been discussed in research circles for several years, and researchers such as Yoshua Bengio and Gary Marcus have long pointed to the need to combine the two paradigms. But the distance between theoretical argument and a working implementation is huge, and that is the gap the author tried to close.
The core of the proposed architecture is a semantic neural network in which the model does not try to compute directly. Instead, it recognizes the type of task and delegates execution to the appropriate symbolic module. The neural network acts as an intent interpreter and router, while exact operations are carried out by deterministic algorithms. This differs fundamentally from the external-tools approach: instead of a clumsy API call to a calculator, the symbolic logic is built directly into the model's architecture, which lets it work faster and more reliably.
The experimental results the author describes confirm that the approach is viable, though it is too early to talk about a revolution. The key question is scalability. Arithmetic is the simplest case of symbolic reasoning. Integrating symbolic modules for logical inference, planning or fact verification is much harder. If the architecture can expand into those areas, it will genuinely change the landscape. If not, it will remain an elegant but niche solution.
For the industry, the significance of this work goes beyond any single implementation. It highlights a trend that has been gaining strength in recent months: pure neural-network scaling is hitting a ceiling, and the future belongs to hybrid systems. OpenAI, Google and Anthropic are already experimenting with various forms of neurosymbolic integration, though they do not always say so openly. The fact that an independent researcher is offering competitive ideas with open code points to the maturity of the community and the democratization of AI research.
Ultimately, the work asks the right question: shouldn't we stop forcing neural networks to do what they were not built for, and instead let each component of the system do what it does best? The answer seems obvious. All that remains is to implement it at scale.
- Nov 2, 2026Meta's Muse assistant keeps dossiers on loved ones and gets root on Ubuntu by default
- Nov 1, 2026Local models lose to Opus and Codex: 0.21 on a MacBook versus 1.00 for Codex
- Nov 1, 2026Kimi scores 96.2% on a 1C database analytics test and emerges as a fallback if Claude access is blocked
- Nov 1, 2026OpenAI Rewrites GPT Behavior Rules: Five Values and a Chain of Command
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
The AI world, distilled — once a week
Seven stories that actually mattered, hand-picked. No noise, no reposts, no press releases.
Done! Check your inbox for a confirmation.