Post

Introduction to Neuro Symbolic AI

Introduction to Neuro Symbolic AI

Neurosymbolic AI is defined as an approach that combines neural networks with symbolic reasoning. This approach gained wider adoption in 2025, partly to address hallucination issues in large language models.

The Components of Neurosymbolic AI

The term “Neurosymbolic” is simply the combination of “neuro” and “symbolic”.

The Symbolic Side

Symbolic AI relates to cognition and symbolism. The goal of the symbolic component is to translate some form of implicit human knowledge into a more formalized and declarative form based on rules and logic. It involves learning the internal symbolic representations of the world.

Key characteristics of Symbolic systems:

  • Fundamental Unit: Rules and symbols.
  • Data Type: Operates on structured data, such as logical rules, knowledge graphs, and time series data.
  • Reasoning: Includes logical deduction (entailment or logical consequences).
  • Knowledge Base (KB): Utilizes facts and rules of the world. For example, given $p \vee q$ and $\neg p$, the system can infer $q$ ($\vdash q$).
  • Logic Types: Uses First Order Logic (e.g., $\forall x ( IsFruit(x) \land IsRed(x) \implies IsApple(x) )$) and Propositional Logic (e.g., $p \lor q \implies r$).
  • Predicates: Boolean statements about properties, such as IsFruit(x), where IsFruit(Apple)=True and IsFruit(Egg)=False.
  • Examples: Classical logic programming, Answer Set Programming (ASP), and Inductive Logic Programming (ILP).

The Neural Side

The neural component (also called perception or connectionism) is associated with Sub-symbolic AI.

Key characteristics of Neural systems:

  • Data Type: Handles unstructured data, including texts, images, and videos.
  • Input Requirements: These systems do not require rules or symbolic representations as inputs.
  • Representation Learning: They learn implicit data representations on their own.
  • Fundamental Unit: The primary unit is the vector.
  • Inference: They are typically reactive, allowing for fast inference.

Why Combine Neuro and Symbolic? The Motivation

Neurosymbolic AI is motivated by combining the best aspects of both worlds, mitigating the significant drawbacks of relying solely on one system.

System TypeProsCons
Neural‑Only (N‑only)Unstructured data handling
Robust to noise
Fast/reactive inference
Weak generalization
Low interpretability
Data‑dependent
Symbolic‑Only (S‑only)Strong generalization
Interpretable
Knowledge‑driven
Poor with unstructured data
Lower robustness
Slow/complex reasoning

Neural-only systems are particularly criticized because scaling does not equal reasoning. While they may achieve “near-perfect accuracy on one data distribution,” they often do not generalize to other distributions within the same problem space, sometimes overfitting to statistical features. Scaling is also not sustainable due to combinatorial explosion with the number of dependent subgoals.

This dichotomy relates to the concept of Thinking Fast and Slow:

  • System 1 (Neuro): Fast, intuitive, rapid, unconscious, and habitual (e.g., recognizing a cat from an image).
  • System 2 (Symbolic): Slow, logical, conscious, algorithmic, and related to planning and reasoning (e.g., reasoning how we conclude it is a cat).

Categories and Examples of NS Systems

The NS community is often categorized into three main approaches:

  1. Learning for reasoning
  2. Reasoning for learning
  3. Learning-reasoning

1. Learning for Reasoning

In this category, neural networks often serve two main purposes: reducing the search space of the symbolic system to accelerate computation or facilitating symbolic reasoning by abstracting or extracting symbols from data.

A representative example is the Neurosymbolic Concept Learner (NS-CL), used for Visual Question Answering (VQA). NS-CL translates natural language questions into a machine-readable symbolic program using an encoder-decoder framework (semantic parsing module, $\Theta_s$). It also uses a visual perception module ($\Theta_v$) to generate bounding boxes and extract features (like object recognition and contextual information). This system learns visual concepts and language semantics simultaneously without needing explicit supervision or semantic programs for sentences. The resulting symbolic program is then subject to quasi-symbolic program execution.

3. Learning-Reasoning (Bidirectional Interaction)

The learning-reasoning approach involves a bidirectional interaction where perception and reasoning mutually benefit each other. This approach leverages abductive reasoning.

Abductive Reasoning: Abduction involves finding the best explanation for an observation. Unlike deduction (e.g., Rained $\implies$ WetGrass), abduction starts with the observation (Grass is wet) and proposes a possible cause (might have rained). Abduction is inherently uncertain.

A key example is Abductive Learning (ABL), which aims to bridge machine learning and logical reasoning.

  • Goal: Learn perception ($p: X \mapsto P$) and logical clauses ($\Delta_C$) simultaneously.
  • Process: ABL uses an optimization loop where it alternates between fixing perception to learn reasoning, and fixing reasoning to learn perception.
  • Perception Correction: In the optimization process, the system identifies wrongly perceived symbols (using a heuristic $\delta$ that measures perception confidence) and performs a label revision ($\Delta_\delta$) to obtain fixed, ‘correct’ symbols. The perception model is then retrained using these updated symbols.
  • Empirical Results: ABL models (e.g., CNN + Prolog) have demonstrated strong performance, especially ABL-short, which showed strong generalization. The perception and reasoning components were found to be mutually beneficial.

2. Reasoning for Learning

In this approach, reasoning provides additional knowledge or constraints to guide the learning process. While part of the categorization, the sources note that this category is still limited.

Conclusion

Neurosymbolic AI, by integrating the statistical strength of neural networks (handling unstructured data and perception) with the structural rigor of symbolic reasoning (generalization and interpretability), provides a framework for addressing complex problems beyond the scope of scaling laws alone.

This post is licensed under CC BY 4.0 by the author.

© . Some rights reserved.

Using the Chirpy theme for Jekyll.