[Paper Review] SymbolicAI: A framework for logic-based approaches combining generative models and solvers
SymbolicAI presents a modular neuro-symbolic framework that uses LLMs as semantic parsers to orchestrate solvers and build compositional computational graphs, backed by a VERTEX quality score and a benchmark.
We introduce SymbolicAI, a versatile and modular framework employing a logic-based approach to concept learning and flow management in generative processes. SymbolicAI enables the seamless integration of generative models with a diverse range of solvers by treating large language models (LLMs) as semantic parsers that execute tasks based on both natural and formal language instructions, thus bridging the gap between symbolic reasoning and generative AI. We leverage probabilistic programming principles to tackle complex tasks, and utilize differentiable and classical programming paradigms with their respective strengths. The framework introduces a set of polymorphic, compositional, and self-referential operations for multi-modal data that connects multi-step generative processes and aligns their outputs with user objectives in complex workflows. As a result, we can transition between the capabilities of various foundation models with in-context learning capabilities and specialized, fine-tuned models or solvers proficient in addressing specific problems. Through these operations based on in-context learning our framework enables the creation and evaluation of explainable computational graphs. Finally, we introduce a quality measure and its empirical score for evaluating these computational graphs, and propose a benchmark that compares various state-of-the-art LLMs across a set of complex workflows. We refer to the empirical score as the "Vector Embedding for Relational Trajectory Evaluation through Cross-similarity", or VERTEX score for short. The framework codebase and benchmark are linked below.
Motivation & Objective
- Introduce SymbolicAI, a logic-based framework for concept learning and flow management in generative processes.
- Enable seamless integration of large language models with a variety of solvers through a modular probabilistic programming approach.
- Provide tools to construct, evaluate, and explain computational graphs built from symbolic and sub-symbolic components.
- Propose a quality measure (VERTEX score) and a benchmark to compare state-of-the-art LLMs across complex workflows.
Proposed method
- Treat LLMs as semantic parsers that execute tasks from natural and formal language instructions.
- Utilize probabilistic programming principles to bind symbolic expressions with solvers and differentiable components.
- Define a set of polymorphic, compositional, and self-referential operations for data stream manipulation and graph construction.
- Support function composition to build hierarchical computational graphs that couple symbolic and sub-symbolic processes.
- Implement a domain-centric language (DSL) and prompting strategy to map inputs to solver calls and validate outputs via constraints.
- Provide a framework and benchmark release with codebases for SymbolicAI and its evaluation suite.
Experimental results
Research questions
- RQ1How can LLMs be leveraged as semantic parsers to orchestrate traditional and differentiable solvers in a unified NeSy framework?
- RQ2What design principles and data structures (symbols, expressions, DSLs) best support robust, explainable computational graphs in SymbolicAI?
- RQ3Can a quality metric (VERTEX score) effectively evaluate multi-step neuro-symbolic workflows across different foundation models?
Key findings
- SymbolicAI enables seamless transition between classical and differentiable programming within a unified framework.
- A modular pipeline uses a DSL and symbol-based representations to compose and evaluate computational graphs guided by solvers.
- The framework introduces a VERTEX score, an empirical quality measure for evaluating multi-step NeSy graphs.
- Evaluations compare multiple LLMs across tasks involving in-context learning, logic translation, and hierarchical graph planning.
- The benchmark and codebases provide practical resources for researchers to test state-of-the-art LLMs on complex workflows.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.