Abstract
This paper introduces SOFAI-v2, a neurosymbolic architecture designed to solve complex Graph Coloring Decision Problems by mimicking the "Thinking, Fast and Slow" cognitive framework. By integrating the rapid pattern recognition of Large Language Models (System 1) with the rigorous logical guarantees of symbolic solvers (System 2) through a sophisticated metacognitive governance layer, SOFAI-v2 achieves a 10.5% higher success rate and up to 30% faster execution than traditional solvers. This approach demonstrates the potential of iterative feedback and episodic memory in bridging the gap between neural intuition and symbolic precision.
Introduction
Constraint Satisfaction Problems (CSPs), such as scheduling and resource allocation, are fundamental to artificial intelligence but present a significant computational challenge. Historically, researchers have relied on two distinct paradigms:
- Symbolic Solvers (System 2): Mathematically precise and exhaustive, these solvers guarantee correctness but often struggle with scalability, becoming computationally prohibitive as search spaces grow.
- Large Language Models (System 1): Probabilistic and fast, LLMs excel at pattern recognition but are prone to hallucinations and violations of strict logical constraints.
SOFAI-v2 addresses this dichotomy by targeting the Graph Coloring Decision Problem: determining if a graph can be colored with $k$ colors such that no two adjacent nodes share the same color. The architecture seeks to leverage the speed of LLMs while maintaining the reliability of symbolic methods.
The SOFAI-v2 Architecture
The core innovation of SOFAI-v2 is its three-tier neurosymbolic structure, governed by a metacognitive layer that manages the interaction between "fast" and "slow" processes.
- System 1 (S1): Powered by the Mistral-7B LLM, S1 acts as the intuitive engine, attempting to generate rapid solutions based on learned patterns and episodic memory.
- System 2 (S2): A symbolic solver utilizing the DSATUR algorithm with backtracking, S2 provides the deliberative, accurate fallback when intuition fails.
- Metacognition (MC): This layer serves as the system's governor. It evaluates S1's outputs and, rather than immediately escalating to S2, initiates an iterative coaching loop. It provides structural feedback—identifying specific conflicting nodes—and retrieves similar past instances from episodic memory to guide S1 toward a valid solution.
Experimental Setup
To evaluate the system, researchers developed a benchmark using the Erdős-Rényi model to generate graphs of varying complexity:
- Scale: Graph sizes ranged from 5 to 50 vertices.
- Density: Edge probabilities ($p$) varied from 0.1 to 0.9.
- Solvability: The benchmark included 100% solvable, 100% unsolvable, and 50/50 balanced mixes, all stored in the standardized DIMACS format.
Key Results
Empirical testing demonstrated that SOFAI-v2 significantly outperforms standalone components and its predecessor, SOFAI-v1:
- Efficiency and Success: Under a 200-second time limit, SOFAI-v2 achieved a 10.5% higher success rate and was 30% faster than standalone symbolic solvers.
- Iterative Improvement: Unlike v1, which simply switched between systems, v2's iterative feedback allowed it to resolve many instances within the "fast" lane, reducing the need for expensive symbolic computation.
- Robustness on Unsolvable Instances: In challenging 50-node unsolvable scenarios, SOFAI-v2 maintained a 53.85% success rate in correctly identifying unsatisfiability (UNSAT), whereas S1 and SOFAI-v1 fell below 4%.
Discussion and Future Work
While SOFAI-v2 marks a major step forward, several challenges remain. A primary limitation is the "UNSAT Proof Gap": while S2 can prove a problem is unsolvable through exhaustive search, S1 currently lacks the ability to provide a formal mathematical proof for its negative declarations.
Future research will focus on scaling the architecture to real-world problems involving thousands of nodes, such as frequency assignment in telecommunications. Additionally, the authors propose developing "human-aligned probes" to investigate whether the system's internal conflict-resolution mechanisms mirror human cognitive effort when solving logical puzzles.
Summary updated