Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Chapter 6 (continued): Neuro-Symbolic AI

Open in Colab

Knowledge graphs are one meeting point of the symbolic and the statistical traditions of AI. This page looks at the meeting more generally: why real systems combine the two, and the patterns they use. The implementation notebook builds one such system: a Sudoku whose clues are handwritten digits.

6.10 Two Traditions, One Field

This course has followed two traditions of AI.

Symbolic (Chapters 2–6, 22–26)Statistical and neural (Chapters 7–21)
Knowledgewritten by people: rules, logic, graphs, modelslearnt from data
Strengthsexact, explainable, works with little data, easy to correcthandles noise, perception (images, sound, language), scales with data
Weaknessesbrittle; someone must write the knowledge; struggles with raw perceptionneeds much data; opaque; can be confidently wrong; hard to correct one fact
Typical toolssearch, CSPs, logic, planning, Bayesian networks, knowledge graphsregression, trees, neural networks, clustering, reinforcement learning

Neither is enough alone. A self-driving car needs neural networks to see pedestrians and explicit rules and search to obey traffic law and plan a route. A chatbot needs a language model to talk and retrieved documents or a database to be right. Psychologists describe human thinking in a similar way: a fast, intuitive mode and a slow, deliberate one (Kahneman’s “System 1” and “System 2”). Integration of the two is the theme of this page.

6.11 Neuro-Symbolic Patterns

PatternHow it worksExamples
Neural perception → symbolic reasoninga network turns raw input into symbols; a reasoner works on themread handwritten digits, then solve the puzzle with a CSP solver (implementation notebook); a robot detects objects, then plans
Symbolic knowledge → neural learningrules or graphs constrain or inform trainingphysics-informed networks; a knowledge graph as features or as a constraint
Neural guidance of symbolic searcha network scores options; search explores themAlphaGo: networks + Monte Carlo tree search (Chapters 3, 14)
Language model + toolsthe model decides; tools compute, look up, actcalculators, databases, search engines, code execution (Chapter 21)
Symbolic checks on neural outputrules verify what the network proposesa solver checks a proposed plan; a type checker rejects generated code that does not compile

A recurring lesson: perception is noisy, but constraints can correct it. If a digit reader is unsure whether a cell of a Sudoku holds a 3 or an 8, and only 3 is consistent with the rest of the grid, reasoning settles it. The implementation notebook shows exactly this.

6.12 Summary

  • Symbolic AI is exact, explainable and data-efficient but brittle; statistical AI handles noise and perception but is opaque and data-hungry.

  • Neuro-symbolic systems combine them: neural perception feeding symbolic reasoning, knowledge constraining learning, networks guiding search, language models calling tools, rules checking neural output.

  • Keeping the network’s uncertainty and letting the constraints decide beats reading first and reasoning second (implementation notebook).

Further Reading

  • A. d’Avila Garcez, L. Lamb, “Neurosymbolic AI: the 3rd wave”, Artificial Intelligence Review, 2023.

  • D. Kahneman, Thinking, Fast and Slow, 2011.

  • D. Silver et al., “Mastering the game of Go with deep neural networks and tree search”, Nature, 2016.