Chapter 6 (continued): Neuro-Symbolic AI
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) | |
|---|---|---|
| Knowledge | written by people: rules, logic, graphs, models | learnt from data |
| Strengths | exact, explainable, works with little data, easy to correct | handles noise, perception (images, sound, language), scales with data |
| Weaknesses | brittle; someone must write the knowledge; struggles with raw perception | needs much data; opaque; can be confidently wrong; hard to correct one fact |
| Typical tools | search, CSPs, logic, planning, Bayesian networks, knowledge graphs | regression, 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¶
| Pattern | How it works | Examples |
|---|---|---|
| Neural perception → symbolic reasoning | a network turns raw input into symbols; a reasoner works on them | read handwritten digits, then solve the puzzle with a CSP solver (implementation notebook); a robot detects objects, then plans |
| Symbolic knowledge → neural learning | rules or graphs constrain or inform training | physics-informed networks; a knowledge graph as features or as a constraint |
| Neural guidance of symbolic search | a network scores options; search explores them | AlphaGo: networks + Monte Carlo tree search (Chapters 3, 14) |
| Language model + tools | the model decides; tools compute, look up, act | calculators, databases, search engines, code execution (Chapter 21) |
| Symbolic checks on neural output | rules verify what the network proposes | a 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.