NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Role of Foundation Models in Neuro-Symbolic Learning and Reasoning

Daniel Cunnington, Mark Law, Jorge Lobo, Alessandra Russo

TL;DR

The authors introduce NeSyGPT, a novel Neuro-Symbolic AI architecture that leverages the implicit knowledge of pre-trained vision-language foundation models to solve complex reasoning tasks. By decoupling perception and logical reasoning, NeSyGPT achieves state-of-the-art performance with minimal data labeling and eliminates the need for manually engineered symbolic rules.

What Problem Does This Paper Address?

Neuro-Symbolic AI (NeSy) aims to combine the perceptual power of neural networks with the interpretability and formal guarantees of symbolic logic. However, existing NeSy systems face a major bottleneck: symbol grounding—the process of mapping raw data (like pixels) to abstract symbols (like "card rank" or "digit value").

Current approaches generally fall into two camps, both with severe limitations:

  1. Sequential Pipelines: They train a neural network to extract symbols and then pass them to a rule engine. This requires massive amounts of labeled data for both stages and heavy manual engineering.
  2. End-to-End Systems: They try to learn perception and logic simultaneously via gradients. However, when a task involves many possible symbol combinations, these systems suffer from a combinatorial explosion, making them fail to scale.

The authors address this gap by asking: Can we use the implicit knowledge already embedded in foundation models to ground symbols efficiently with very little data, while still learning complex logical rules automatically?

Methods

NeSyGPT splits the problem into a two-stage sequential pipeline but uses foundation models and Large Language Models (LLMs) to eliminate the traditional data and engineering overhead.

Figure 1: NeSyGPT architecture with one data point in the Follow Suit task. The goal is to learn the rules of the game: The winner is the player with the highest ranked card with the same suit as Player 1. (a) BLIP is fine-tuned using playing card images and natural language questions and answers. (b) A hypothesis is learned from BLIP predictions. Note in (a), fine-tuning occurs with both suit and rank answers.
  1. Perception (BLIP Fine-Tuning): Instead of training a convolutional neural network from scratch, NeSyGPT uses BLIP, a pre-trained vision-language foundation model, operating in Visual Question Answering (VQA) mode. Because BLIP already understands general visual concepts, it only requires a handful of labeled images to be fine-tuned to answer task-specific questions (e.g., "What suit is this card?").
  2. Symbolic Rule Learning (LAS): The answers from BLIP are converted into logical facts. A state-of-the-art Learning from Answer Sets (LAS) symbolic learner (like FastLAS or ILASP) then automatically induces a set of logical rules in Answer Set Programming (ASP) to solve the downstream task.
  3. LLM as the "Glue": To minimize manual engineering, the authors use GPT-4 to automatically generate the VQA questions/answers used to fine-tune BLIP, as well as the Python code needed to format BLIP's text outputs into ASP facts for the symbolic learner.

Datasets

The architecture was evaluated across four diverse domains:

  • MNIST Arithmetic: Standard addition and a complex conditional task (E9P) requiring negation logic.
  • Follow Suit: A trick-based card game. The authors introduced a highly complex 10-player variant featuring $\sim 5.74 \times 10^{16}$ symbolic feature choices to test extreme scalability.
  • Plant Disease Hitting Sets: Real-world crop leaf images used to solve a variation of the NP-complete Hitting Set problem.
  • CLEVR-Hans3: A benchmark requiring the detection of multiple objects and their multi-modal properties (size, color, material, shape) within a single image.

Key Insights and Ideas

  • The Power of Decoupling: End-to-end NeSy architectures struggle because gradient signals get diluted across the combinatorial explosion of symbol choices. NeSyGPT proves that separating perception and reasoning is vastly superior if the perception module is a foundation model that can be aligned with minimal data.
  • Foundation Models as Efficient Grounders: Because foundation models possess rich latent representations, "fine-tuning" them for symbol grounding acts more like alignment than learning from scratch. This drastically lowers the data requirement to a fraction of a percent of standard datasets.
  • Automating the Neuro-Symbolic Interface: Historically, the code connecting neural network outputs to symbolic logic engines had to be meticulously hand-coded. NeSyGPT demonstrates that LLMs are highly capable of generating this programmatic interface automatically from high-level task descriptions.

Key Results

NeSyGPT consistently outperformed strong neural and neuro-symbolic baselines (such as NeurASP, SLASH, and Embed2Sym) across all tasks:

  • Data Efficiency: On MNIST tasks, BLIP achieved a high mean image accuracy of 92.16% using just 100 labels—only 1.67% of the available training data.
  • Scalability: In the massive 10-player Follow Suit task, where end-to-end baselines timed out or failed due to the massive search space, NeSyGPT achieved perfect task accuracy using only 10 task labels.
  • State-of-the-Art Object Reasoning: On CLEVR-Hans3, NeSyGPT outperformed the previous state-of-the-art method ($\alpha$ILP) while using 50% fewer downstream labels (achieving 0.9853 accuracy vs $\alpha$ILP's 0.9505).

Limitations and Future Work

While GPT-4 successfully automated much of the engineering, it still occasionally produced minor syntax or naming errors in the generated Python interface code, requiring small manual fixes from a human user.

Additionally, the current framework relies on a fixed symbolic search space (the rules the symbolic engine is allowed to consider). The authors note that future work will explore using LLMs to automatically generate this symbolic search space, moving closer to entirely automated neuro-symbolic system generation.

Summary updated

BibTeX
@inproceedings{cunnington2024role,
  author = {Daniel Cunnington and Mark Law and Jorge Lobo and Alessandra Russo},
  title = {{The Role of Foundation Models in Neuro-Symbolic Learning and Reasoning}},
  booktitle = {Nesy},
  year = {2024},
  doi = {10.1007/978-3-031-71167-1\_5},
}
Figure