A Boxology of Design Patterns forHybrid Learningand Reasoning Systems

Frank van Harmelen, Annette ten Teije · DOI

Introduction

The field of Artificial Intelligence is currently characterized by a fundamental dichotomy between two powerful but distinct paradigms: Machine Learning (ML) and Knowledge Representation (KR). While ML excels at pattern recognition and learning from raw data, it is often criticized for its opacity and high data requirements. Conversely, KR provides transparent, explainable, and precise reasoning but remains "brittle" when confronted with the noise and uncertainty of real-world environments.

In recent years, a surge of "neurosymbolic" or hybrid systems has emerged to bridge this gap. However, this rapid growth has led to a fragmented landscape. Researchers often use disparate vocabularies, architectures, and formalisms, making it difficult to compare systems or reuse components. This paper introduces a "boxology"—a standardized visual taxonomy and graphical language—designed to categorize and unify the design patterns of hybrid AI systems.

The Problem: Architectural Fragmentation

The primary challenge addressed by this research is the lack of a common framework for describing hybrid architectures. Without a shared language, the AI community struggles to identify commonalities between seemingly different systems, such as AlphaGo and Inductive Logic Programming. By focusing on how data and processes connect rather than the specific mathematical implementations inside the "boxes," the authors aim to provide a structural map of the field.

The Boxology Framework

The authors propose a compositional framework based on two primary distinctions that define the building blocks of AI systems:

  1. Process-based (Ovals): Distinguishing between Induction (the process of learning general rules from data, typically associated with ML) and Deduction (the application of rules to reach specific conclusions, typically associated with KR).
  2. Representation-based (Boxes): Distinguishing between Model-free data (raw numbers, pixels, or vectors) and Model-based symbols (relational structures, ontologies, or logic).

Using this simple graphical notation—ovals for algorithmic processes and boxes for data structures—the authors identify 15 distinct design patterns. These patterns range from simple "Learning from data to symbols" to sophisticated "Meta-reasoning" architectures where a symbolic system monitors and adjusts the hyper-parameters of a learning agent.

Validating the Taxonomy

As a conceptual and architectural study, the paper validates its framework not through traditional datasets like ImageNet, but through a comprehensive meta-analysis of the AI literature. The authors examined over 50 research papers from the last decade, demonstrating that every hybrid system encountered could be accurately mapped to one of their 15 proposed design patterns. This "dataset" of existing research proves the boxology's utility as a universal descriptor for the field.

Key Insights and Architectural Patterns

Compositionality as a Core Principle

A major insight of the boxology is that most complex AI systems are not entirely new inventions but are sequential or parallel compositions of simpler patterns. For instance, the authors reveal that "Graph Completion" is a specific sequence: Symbols → ML (Embedding) → Data → ML (Prediction) → Symbols. This perspective allows researchers to treat complex systems as modular pipelines.

AlphaGo as a Hybrid System

The framework clarifies the nature of famous systems like AlphaGo. While often discussed as a triumph of deep learning, the boxology reveals AlphaGo as a hybrid: it uses ML for board valuation and move selection, which then feeds into a classical (KR-style) Monte Carlo tree search. This structural view highlights the necessity of symbolic search in achieving superhuman performance.

Symbolic Priors and Explainability

The paper identifies the "Prior" pattern as a critical tool for data efficiency. By using symbolic knowledge as a "semantic loss function" to guide ML training, models can learn effectively with significantly less data. Furthermore, the framework frames Explainable AI (XAI) as a specific architectural pipeline where the output of an ML component is transformed into a symbolic representation, which a KR component then uses to generate a human-readable trace.

Results and Impact

The primary result of this work is a library of compositional patterns that successfully categorizes a decade of hybrid AI research. The boxology serves two main purposes:

  • Analytical Tool: It distinguishes between systems that appear similar but function differently (e.g., systems that learn from symbols versus those that learn about symbols).
  • Didactic Device: It provides a clear way to teach the landscape of modern AI without getting bogged down in the specifics of gradient descent or resolution theorem proving.

Limitations and Future Directions

Despite its success, the authors acknowledge several areas for growth. The distinction between "data" and "symbols" remains somewhat philosophical and lacks a crisp, formal definition. Additionally, the current boxology focuses on artificial agents; future iterations could include a third type of processor—the Human Agent—to describe "Hybrid Intelligence" systems where humans and AI collaborate.

Finally, the authors envision a "generative grammar" for AI. By formalizing the syntax of these boxes and ovals, it may be possible to automatically generate all syntactically valid hybrid architectures, potentially uncovering novel, undiscovered ways to build intelligent systems.

Summary updated

BibTeX
@inproceedings{harmelen2019boxology,
  author = {Frank van Harmelen and Annette ten Teije},
  title = {{A Boxology of Design Patterns forHybrid Learningand Reasoning Systems}},
  booktitle = {BNAIC/BENELEARN},
  year = {2019},
}
Figure