Skip to main content
Neurosymbolic AI is the convergence of Neural Networks (deep learning, LLMs) and Symbolic Reasoning (logic, mathematics, formal methods).

The two paradigms

1. Neural (subsymbolic)

  • Examples: GPT-4, Claude, Llama
  • Strength: Pattern recognition, language understanding, creativity
  • Weakness: Cannot prove correctness, prone to hallucinations
  • Output: Probabilistic (unverified correctness)

2. Symbolic

  • Examples: Z3 (SAT Solver), SymPy (Computer Algebra), Prolog (Logic Programming)
  • Strength: Deterministic reasoning, mathematical proof
  • Weakness: Cannot understand natural language
  • Output: Deterministic (proven correct)

The neurosymbolic synthesis

QWED bridges both worlds:
Example: User Query: “What is the derivative of x²?” Neural Step (GPT-4):
Symbolic Step (SymPy):
QWED verifies: ✅ LLM said “2x”, SymPy proves “2x” → Verified!

Why neurosymbolic wins

Problem: LLM-only systems

Scenario: Healthcare AI diagnoses patient

Solution: QWED (neurosymbolic)


Research background

Neurosymbolic AI is backed by leading research:
  • Google DeepMind: AlphaProof (math theorem proving)
  • MIT CSAIL: Neurosymbolic programming
  • IBM Research: Neuro-symbolic learning
QWED is the first open-source implementation focused on LLM verification.

QWED’s neurosymbolic architecture

Neural components (untrusted translators)

  • OpenAI GPT-4
  • Anthropic Claude
  • Google Gemini
  • Ollama (Local LLMs)

Symbolic components (trusted verifiers)

  • SymPy → Math verification
  • Z3 → Logic verification
  • Python AST → Code security verification

The contract


Comparison: symbolic vs neural vs neurosymbolic


Real-world impact

Finance example

Old Way (LLM-only):
QWED Way (Neurosymbolic):

Code security example

Old Way:
→ No check → 🔓 Security breach
GPT: “Here’s the code” → AST analyzer detects ‘eval’ → 🛑 UNSAFE CODE → ✅ Blocked before execution