Abstract
We propose a set of compositional design patterns to describe a large variety of systems that combine statistical techniques from machine learning with symbolic techniques from knowledge representation. As in other areas of computer science (knowledge engineering, software engineering, ontology engineering, process mining and others), such design patterns help to systematize the literature, clarify which combinations of techniques serve which purposes, and encourage re-use of software components. We have validated our set of compositional design patterns against a large body of recent literature.
Introduction
In the current AI landscape, there is a growing realization that neither pure Deep Learning (ML) nor pure Symbolic Reasoning (KR) is a silver bullet. While ML excels at pattern recognition from raw data, it is often opaque and data-hungry. Conversely, KR is interpretable and logic-driven but struggles with noisy, real-world data. The future belongs to "hybrid" systems, but until now, the research has been a fragmented "Wild West" of different vocabularies and architectures.
This paper provides a systematic "map" for this territory by proposing a visual language—a "boxology"—to categorize how these two families of AI can be combined. By providing a common graphical notation, we enable researchers to categorize, compare, and reuse components across a previously fragmented field.
The Boxology Framework
The core of the proposal is an informal graphical notation called a Boxology. The rules are simple and intuitive:
- Ovals represent algorithmic components: KR for deductive (reasoning) components and ML for inductive (learning) components.
- Boxes represent data structures: sym for symbolic/relational data and data for model-free/numeric data.
Using these building blocks, we identify 15 distinct design patterns found in the literature. These range from simple "Learning with symbolic output" to complex "Meta-reasoning for control," where a reasoning system monitors and adjusts the parameters of a learning system. Crucially, these patterns are compositional, meaning complex state-of-the-art systems can be broken down into sequences or hierarchies of these simpler motifs.
Validation and Key Insights
We validated this boxology against a meta-dataset of over 50 research papers from the last decade. Every hybrid system encountered in these references could be accurately mapped to one of the proposed design patterns.
Deconstructing AlphaGo
One of the most significant insights is the decomposition of famous systems. For instance, AlphaGo is not a monolithic ML system; it follows Pattern 10. In this architecture, an ML component (responsible for board valuation) feeds its output into a KR component (Monte Carlo tree search) to determine the final move.
Explainability via Plumbing
The boxology clarifies the different ways to achieve "Explainable AI." Some systems use a reasoner to reconstruct an explanation from ML output (Pattern 6), while others use a reasoner to "inspect" the internal behavior of the ML model by looking at both inputs and outputs (Pattern 8).
Semantic Loss and Priors
The framework also reveals hidden similarities between seemingly unrelated approaches. For example, "Logic Tensor Networks" and "Semantic Loss Functions" share the same underlying pattern where symbolic knowledge acts as a "prior" to guide a gradient descent learner.
Conclusion
The primary result of this work is a unified visual language that successfully categorizes diverse AI sub-fields—including Inductive Logic Programming (ILP), Graph Embeddings, and Reinforcement Learning with abstractions.
While the boxology is currently informal, future work aims to develop a formal grammar to automatically generate all syntactically possible hybrid architectures. This could potentially lead to the discovery of new, untried patterns. Additionally, we plan to incorporate human-in-the-loop components to describe "Hybrid Intelligence" systems where humans and AI collaborate.
This summary is based on the paper "A Boxology of Design Patterns for Hybrid Learning and Reasoning Systems" by Frank van Harmelen and Annette ten Teije.
Summary updated