Modular design patterns for hybrid learning and reasoning systems

Michael van Bekkum, Maaike de Boer, Frank van Harmelen, André Meyer-Vitali, Annette ten Teije

In the current AI landscape, there is a growing consensus that the future belongs to hybrid systems—architectures that combine the data-driven "intuition" of deep learning with the rule-based "logic" of symbolic reasoning. However, the literature remains a "Wild West" of inconsistent terminology and bespoke architectures, making it nearly impossible to compare systems without deep dives into specific codebases.

Van Bekkum et al. address this chaos by introducing a "boxology": a standardized set of modular design patterns for hybrid AI. This framework provides a unifying taxonomical vocabulary and a library of over 15 modular design patterns to describe neuro-symbolic systems.

The Need for a Unifying Framework

The primary challenge in hybrid AI is the lack of a common language. While statistical methods excel at pattern recognition and symbolic methods excel at transparent reasoning, combining them is difficult. Current research is highly diverse and mostly empirical. Because there is no standard way to describe these architectures, researchers in machine learning and knowledge representation often solve the same structural problems using different terminologies, hindering the identification of reusable components.

The Proposed Boxology

The authors approach this problem through the lens of software engineering design patterns, organizing their framework into three main layers:

1. Taxonomical Vocabulary

They define the basic "atoms" of AI systems, including instances (data vs. symbols), models (statistical vs. semantic), and processes (generation, transformation, and inference).

2. Elementary Patterns

These are the simplest functional units. For example, Pattern 1d illustrates a basic transformation process where symbols or data are converted into a data format.

Elementary pattern (1d) showing a basic transformation process.

3. Compositional Patterns

By "stitching" elementary patterns together, the authors describe complex, high-level behaviors. A prime example is Pattern 2d, which demonstrates how a semantic model can be used to guide an embedding transformation, bridging the gap between symbolic knowledge and vector-based data.

Pattern (2d) illustrating a semantic model-guided embedding transformation.

Other compositional patterns include:

  • Informed Learning: Using prior symbolic knowledge to guide neural network training.
  • Explainable Learning: Using symbolic reasoners to provide justifications for black-box predictions.
  • Learning to Reason: Training statistical models to emulate or accelerate symbolic reasoning.

Key Insights

  • Architectural Equivalence: Seemingly unrelated techniques—such as Inductive Logic Programming (ILP) and Knowledge Graph (KG) embeddings—actually share the same high-level architectural patterns.
  • Refining Kautz’s Taxonomy: The paper deepens Henry Kautz’s famous six-type neuro-symbolic taxonomy, showing that broad categories like "Type 4" can be broken down into more precise, modular sub-patterns.
  • Modularity as Engineering: By treating AI components as reusable blocks, development moves from bespoke craftsmanship toward systematic engineering, allowing developers to swap statistical and symbolic components without full system redesigns.

Real-World Applications

The paper maps various complex systems to these recurring patterns, providing blueprints for use cases such as:

  • Skills Matching: An HR system combining word2vec embeddings with a skills ontology to match job seekers to vacancies.
  • Robot Action Selection: A system using deep learning for object detection that feeds into a symbolic rule-base for decision-making.

Limitations and Future Work

While the taxonomy includes "actors" (humans or agents), they are not yet fully integrated into the formal patterns. Future work aims to model human-in-the-loop interactions and develop a formal "generative grammar" for these patterns. This would eventually allow for automated verification—a "compiler" for AI architectures—and drag-and-drop tooling for rapid prototyping.

Summary updated

BibTeX
@article{bekkum2021modular,
  author = {Michael van Bekkum and Maaike de Boer and Frank van Harmelen and André Meyer-Vitali and Annette ten Teije},
  title = {{Modular design patterns for hybrid learning and reasoning systems}},
  journal = {Applied Intelligence},
  year = {2021},
  doi = {10.1007/s10489-021-02394-3},
}
Figure