Why this matters

What is Neurosymbolic AI?

Neurosymbolic artificial intelligence is the idea that the two branches of AI can be united in one system: one that understands the real world, and still excels at reasoning.

In short

What this means in practice: a language model reads the facts, encoded rules make the decision, and every answer comes with the rules behind it. See it applied to GDPR breach notification

Symbolic AI failed once. It is back for a reason

Early artificial intelligence was symbolic. People wrote down rules and logic, and machines applied them. It worked on well-defined problems, and expert systems made real money for a while.

Then it ran into the real world. Rules had to be written by hand. Systems were brittle the moment a case fell outside their narrow domain. They could not perceive, could not cope with the ambiguity of language, and had no common sense. Twice, expectations outran results and support was cut back.

In July 1972 the mathematician Sir James Lighthill reported to the UK Science Research Council on the state of AI. He singled out one general cause of the disappointments: "failure to recognise the implications of the combinatorial explosion". He wrote that the report represented "only the personal view of the author". Source: Lighthill, Artificial Intelligence: A General Survey, July 1972, a copy kept by the University of Edinburgh.

The report led to a substantial curtailment of AI research in Britain. In the United States, the Mansfield Amendment of 1969 restricted defence support for basic research to projects with "a direct and apparent relationship to a specific military function or operation". Basic AI research had a hard decade, although the promise of applications kept overall funding up. Source: Nils J. Nilsson, The Quest for Artificial Intelligence, Cambridge University Press, 2009.

Expert systems made real money: by 1989, a paper on XCON and the related systems that configured orders for Digital Equipment Corporation's VAX computers estimated their net return to the company at over $40 million a year. The boom ended in the late 1980s, in what came to be called the AI winter. Between 1987 and 1989, DARPA's budget for basic AI and Strategic Computing research fell from $47 million to $31 million. Researchers had warned of it at a 1984 panel of the American Association for Artificial Intelligence on the "Dark Ages" of AI. Source: Nils J. Nilsson, The Quest for Artificial Intelligence, Cambridge University Press, 2009.

Neural networks took over, because they are good at exactly what symbolic AI could not do. With data and GPUs they perceive, read and write. Large language models are the latest result.

Now the weakness has swapped sides. Our view: a language model reasons unreliably, and reasons expensively. What it lacks is what symbolic AI always had: rules that hold exactly, and conclusions you can trace. The evidence on reliability and energy is on its own page.

Symbolic AI did not fail because logic is wrong. It failed because it could not see the world. The neural half now can. That makes the old idea newly relevant, and it is the lead-in to the argument below.

Two branches, two opposite strengths

Neural AI is the System 1 branch. It understands the real world: perception, language, pattern-matching. It is also unreliable and opaque.

Symbolic AI is the System 2 branch. It excels at reasoning: rules, logic, guarantees. It cannot deal with the real world on its own.

Each is strong exactly where the other is weak. That is the premise. The sensible move is to stop choosing between them.

Neural (System 1) and symbolic (System 2) calling each other, nested as deeply as you like, inside one unified system in one Python process

Neural and symbolic call each other, nested as deeply as you like. One unified system, one Python process: explainable, reliable, data-efficient, correctable.

The argument

Generative AI is a fine tool for exploring, drafting and searching. When a decision has to be right, being usually right is not enough. We make that case on Why this matters.

The way out is not a better-behaved model. It is to put the decision where it can be guaranteed: in rules that can be read, checked and corrected. The neural half then does what it is good at, reading the world and handling language. The symbolic half decides.

  • Explainable. Conclusions come from rules you can read and a derivation you can trace, not only from weights.
  • Reliable. Hard constraints such as regulations, safety rules and business policy hold exactly, every time, rather than approximately.
  • Data-efficient. Knowledge you can state as a rule does not have to be learned from examples.
  • Correctable. Change a rule and the behaviour changes. No retraining.

A bug is not a hallucination

Our view: there is a fundamental difference. A bug has a cause you can find. It can be fixed, and the fix can be verified.

A hallucination is a property of how neural networks work. They have so many states that no one can verify that every one of them leads to correct behaviour.

A formal result points the same way. In a formally defined world, Xu, Jain and Kankanhalli show that language models cannot learn all computable functions, and so will inevitably hallucinate if used as general problem solvers. They argue the result carries over to real-world models. Source: arXiv 2401.11817, January 2024, abstract read on 4 November 2026.

A rule-based system can have bugs too. Because its reasoning is a program you can read, we can fix a bug, and prove that it is fixed.

Our view: today's frontier AI research is only just beginning to focus on neurosymbolic AI. We think it will be the right way to deal with the difficult problems that need to be solved by AI, and we are building for that.

Made real: Clausal Prolog

Clausal Prolog

We built Clausal Prolog to realise that premise. It joins Python, the language of neural networks, and Prolog, the language of logic and constraints, in a single Python process.

  • A neural network can call symbolic logic, which can call neural predicates, nested as deeply as you like.
  • No serialisation, no second runtime, no glue code between the two.
  • Prolog implemented in Python, aiming at ISO Prolog conformity, with constraint solving (CLP(Z), CLP(B), CLP(Q), CLP(R)), tabling and DCGs.
  • PyTorch integration through clausal-torch.

It is open source under the MIT licence. We think it is the ideal platform for frontier neurosymbolic AI research, and we are confident enough to publish it so that you can check.

Documentation at clausal.pl Source on GitHub

Law as code: what we build on it