Abstract
Neurosymbolic (NeSy) frameworks combine neural representations and learning with symbolic representations and reasoning. Combining the reasoning capacities, explainability, and interpretability of symbolic processing with the flexibility and power of neural computing allows us to solve complex problems with more reliability while being data-efficient. However, this recently growing topic poses a challenge to developers with its learning curve, lack of user-friendly tools, libraries, and unifying frameworks. In this paper, we characterize the technical facets of existing NeSy frameworks, such as the symbolic representation language, integration with neural models, and the underlying algorithms. A majority of the NeSy research focuses on algorithms instead of providing generic frameworks for declarative problem specification to leverage problem solving. To highlight the key aspects of NeSy modeling, we showcase three generic NeSy frameworks—DeepProbLog, Scallop, and DomiKnowS. We identify the challenges within each facet that lay the foundation for identifying the expressivity of each framework in solving a variety of problems. Building on this foundation, we aim to drive transformative action and encourage the community to rethink this problem in novel ways.
Keywords
Introduction
NeSy Frameworks
A NeSy framework should provide flexibility for modeling both neural and symbolic components and their interplay in a unified declarative framework, going beyond specific underlying algorithms and techniques (Kordjamshidi et al., 2016, 2015). On the symbolic side, a generic framework should support a symbolic representation language that can be seamlessly connected to neural components and cover various underlying symbolic reasoning mechanisms. On the neural side, we need to have the flexibility of connecting to various architectures, including various loss functions, sources of supervision, and training paradigms. More importantly, a NeSy framework should provide a modeling language for seamless integration of these two paradigms in building pipelines, joint decision-making models, and, in general, for arbitrary configurations of multiple models. Such a NeSy framework should support NeSy training and inference beyond specific integration algorithms. We distinguish between NeSy techniques and NeSy frameworks. By techniques, we mean when problem-specific algorithms are provided (Burattini et al., 2002; Lample & Charton, 2020). For example,
In this work, we illustrate these components by focusing on a selection of representative, generic NeSy frameworks. These frameworks are chosen for their contribution to advancing the development of general-purpose approaches.
In this paper, we characterize the more generic NeSy frameworks based on: (a) Symbolic knowledge representation language, (b) Representation and flexibility of Neural Modeling, (c) Model Declaration, (d) Interplay between symbolic and sub-symbolic systems, and (e) The usage of LLMs. Figure 1 shows the connection between these aspects. The neural representations and the symbolic representations are the two main components of a NeSy framework. The neural representation guides learning and obtains supervision from the data, while the symbolic representations leverage symbolic reasoning and exploit symbolic knowledge during training or inference. Table 1 shows an overview of the frameworks across selected factors. In the next sections, we focus on

An overview of various components of a NeuroSymbolic artificial intelligence (AI) framework. NeuroSymbolic AI is at the intersection of symbolic reasoning and neural learning, depicted in green and purple, respectively. The interplay techniques can be classified into six types, shown in the middle. Arrows indicate the connections between components (not the computation flow).
Comparison of Frameworks and Key Factors.
Lang: external language required; Knowledge Rep: knowledge representation; Model Dec: model declaration flexibility; Algorithm: supported algorithm(s) for learning and inference; Eff: computational efficiency considerations; LLM: use of large language models, FOL: first order logic.
Generic NeSy systems and frameworks use symbolic knowledge representation languages to encode constraints, facts, probabilities, and rules. Frameworks vary in how they represent and integrate this symbolic knowledge. Many employ classical formal logic, grounded in well-defined syntax and semantics, and adapt these representations and reasoning mechanisms within a unified integration framework. Some frameworks build on established formalisms such as logic programming or constraint satisfaction. In contrast, others take an entirely new hybrid semantics, while preserving conventional symbolic syntax. Table 2 compares the implementation of symbolic knowledge (concepts or facts) for the MNIST Sum task. In general, the domain knowledge consists of the two concepts of digits and the sum.
Comparison of Symbolic Representation Across Frameworks.
Comparison of Symbolic Representation Across Frameworks.
As can be seen, DomiKnowS represents a part of symbolic domain knowledge as a graph
The other core component of a NeSy system is the neural modeling that is integrated with the symbolic knowledge discussed above. The neural models are mostly wrapped up under the logical predicate names in most of the frameworks that have an explicit logical knowledge representation language. To best leverage the reasoning capabilities of the symbolic system available and the ability of neural models to learn abstract representations from data, the neural models are used as abstract concept learners for the concepts defined as logical predicates in the symbolic representation. The neural model representation is often used to predict probability distributions for the symbolic concepts based on raw sensory inputs. Given that NeSy frameworks are explicit about the symbolic concepts and relations, reading data into the symbolic representation requires special considerations for processing raw data, putting data into structure, and
Table 3 shows snippets of neural modeling expressions across frameworks, highlighting differences in implementation. Scallop utilizes relatively standard neural modeling using PyTorch, while needing an added context of symbolic rules. Although integrated into Python, the context relation and rule setup are verbatim from DataLog and only passed as a parameter to a function, which requires familiarity with DataLog and its semantics. DeepProbLog, on the other hand, needs manual configuration of the raw data and processing into queries built for ProbLog, on top of other standard neural components. This processed data is passed into the neural network which is then connected to a ProbLog program, such as
For Neural Integration, DomiKnowS Utilizes Sensors and Readers for Reading in Data, while a Learner Connects to a Network.
For Neural Integration, DomiKnowS Utilizes Sensors and Readers for Reading in Data, while a Learner Connects to a Network.
Most frameworks utilize neural components as abstract concept learners and use a symbolic component to reason over the learned concepts. Each learner is a model and model declaration refers to the flexibility of modularizing and connecting different learners. Each learner can receive supervision independently. In most NeSy frameworks, the supervision from data is usually provided based on the final output of the end-to-end model. For example, in an MNIST Sum task used throughout and detailed in Section 8, the neural and symbolic components are trained based on the final output of the sum, without access to individual digit labels in a semi-supervised setting. The task loss, for example, a Cross-Entropy Loss, is computed, and errors are backpropagated through the differentiable operations that led to the output generation. For example, in DeepProbLog, we can declare a single loss function associated with the entire neural component. Gradient computations differ across frameworks depending on whether losses are defined individually for each neural output or specified as a single global loss function. However, there remains a need for models capable of incorporating supervision at multiple levels of their symbolic representations. In DomiKnowS, loss computation can be defined for each symbol. Since each concept is linked to both learning modules and ground-truth labels, their losses can be integrated seamlessly. This enables joint training of all concepts alongside the target task, allowing each concept to be optimized more effectively—leveraging available data without relying solely on the target task’s output. In other words, it provides the flexibility of building pipelines of decision making, obtaining distant supervision in addition to joint training and inference. Model declaration is very well manifested in modern tools and libraries for building agentic frameworks, where multiple agents are structured into pipelines or graphs to make communicative decisions by passing the output of one agent as input to another (Plaat et al., 2025).
Interplay Between Symbolic and Subsymbolic
Kautz (2022) provides a characterization of the possible interplays between symbolic and sub-symbolic components. This interplay of NeSy can be explained by the concept of System 1 and System 2 thinking described in Kahneman (2011). Research in this field aims to create an ideal integration that seamlessly supports “thinking fast and slow” (Booch et al., 2021; Fabiano et al., 2023). Here, System 1 refers to the fast neural processing, while System 2 corresponds to the slower, more deliberate symbolic reasoning. Different methods for the integration of symbolic reasoning and neural programming have been explored such as employing logical constraint satisfaction, integer linear programming (ILP), differentiable reasoning, and probabilistic logic programming. In this section, we will discuss a system-level algorithmic comparison of the different frameworks.
Time and Space Efficiency for Each Framework Across 4 Tasks.
Time and Space Efficiency for Each Framework Across 4 Tasks.
Time and memory records are averaged over 5 runs. Times are in milliseconds per sample. Memory utilization is in megabytes and indicates the overall memory for training.
Large foundation models hold significant promise for overcoming the bottleneck of acquiring symbolic representations, which are essential for symbolic reasoning and consequently in NeSy frameworks.
Example Tasks
NeSy frameworks formulate problems in various ways based on their implementation and symbolic interpretation. In
MNIST Sum
The MNIST Sum task is an extension of the classic MNIST handwritten digit recognition task (Lecun et al., 1998), where given two images of digits, the task is to output their sum that is a whole number. The training examples consist of the two images of the digits and the ground-truth label of their sum. The individual labels of the digits are not available for training.
DomiKnowS
Problem Specification
DomiKnowS formulates the problem using graph representations of concepts, relations, and logic. For performing the MNIST Sum task in DomiKnowS, the first concept defined is image concept representing visual information. The digit concept, a subclass of image, is introduced to represent the output class, ranging from 0 to 9. To establish relationships between digit images, the image pair concept is defined as an edge connecting two digit concepts. The sum concept is then introduced under the image pair to represent the summation of the two digit concepts and the ground-truth output of the program. For this task, three constraints are defined. The first two constraints utilize exactL to ensure that the predicted digit and sum values belong to only one valid class. Another constraint enforces that the expected sum value matches the sum of the two digit predictions. This is implemented using ifL constraints, which verify whether the predicted digits form one of the possible solutions for a valid sum. If multiple solutions exist, the orL constraint ensures that at least one of the answers corresponds to the predicted digits.
Neural Modeling
The model declaration comprises standard neural modeling components, including data loading, pre-processing, neural network definition, and loss function specification. The process begins with the ReaderSensor, which reads the input image. Next, a relation concept is defined using another sensor, JointSensor, to establish connections between images. The module learner is then employed to generate an initial prediction for the digit concept, which is subsequently passed to another sensor, FunctionalSensor, to compute the sum of two images.
DeepProbLog
Problem Specification
DeepProbLog formulates a problem regarding probabilistic facts, neural facts, and nADs. In the MNIST Sum task, the fact
Neural Modeling
The neural modeling follows a standard neural network setup, such as a CNN-based classifier. It is preceded by data loading and pre-processing, which are performed separately from the ProbLog program. Thus, the neural model used in DeepProbLog can be initialized independently of the DeepProbLog model. Once the neural model is initialized, the framework passes it along with a probabilistic program as input.
Scallop
Problem Specification
Scallop formulates the problem in terms of relations, values, and (Horn) rules derived from Datalog. As discussed earlier, the concepts and constraints defined in this framework are similar to those in DeepProbLog. However, these rules can be directly embedded into a Scallop program through its API. The process begins by establishing the concepts digit1 and digit2 to represent the digit values of two given images. Based on the summation of these two values, it must be equal to the
Neural Modeling
Unlike DeepProbLog, the neural modeling is integrated with Scallop’s relation and rule declaration. The neural modeling remains a standard neural network.
Shapes
The
Positive examples are generated by programmatically placing a red object (circle, square, or triangle) above a blue circle. In negative examples, this specific spatial configuration is absent. To increase task complexity, every image also contains one to three randomly placed, non-overlapping distractor objects with varying shapes and colors. The dataset comprises 2,000 images, divided into perfectly balanced training and testing sets of 1,000 samples each. Examples of this benchmark are shown in Figure 2.

Examples from the shapes dataset for the question “Is there a red shape above a blue circle?” True example: A red triangle is above a blue circle and False example: No red shape is above a blue circle.
We decompose the system into: (i) a neural perception unit producing distributions over object attributes and pairwise relations; and (ii) a symbolic reasoning unit that consumes these as soft facts over the object domain and evaluates a single existential rule encoding the query. Supervision is a binary yes/no label optimized via a cross-entropy loss on the final answer distribution.
DomiKnowS
Problem Specification
DomiKnowS formulates the problem as a graph representation. It first declares the image concept to represent the visual input. The objects concept is then defined to represent the individual objects contained within the image. An explicit connection declaration is established in the framework between images and objects, indicating that each image may contain multiple objects. Under the image concept, two additional concepts—color and shape—are introduced to represent the attributes of each object for each shape and color considered. These two concepts serve as the outputs of the neural modeling component. Next, DomiKnowS defines a relation concept between pairs of objects to capture their relational structure within the same image. Finally, symbolic reasoning is expressed using existsL, which denotes the existence of a particular combination of queries. The inference takes the following form:
where the
Neural Modeling
DomiKnowS uses a class of functions called ReaderSensors to process the raw input data. A ModuleLearner is then employed to query the object-centric encoder, producing representations of the objects within the image. These representations are subsequently passed to three ModuleLearner to predict the color (red and blue) and shape (circle) attributes of the objects. A CompositionCandidateSensor is used to connect pairs of objects within the image, providing the information needed to compute their relations. Finally, the framework aggregates all information through predefined logical expressions, which are used to infer the final output.
DeepProbLog
Problem Specification
We use a ProbLog program with nADs for
A complementary
Neural Modeling
An object-centric encoder crops and embeds objects; heads output categorical distributions for color and shape per object and for relation per ordered object pair. These heads are wrapped as DeepProbLog networks and bound to the program’s neural predicates, enabling end-to-end training from the answer predicate.
Scallop
Problem Specification
We declare unary predicates over object indices for attributes (
Neural Modeling
Per-object (color, shape) and per-pair (relation) distributions from the encoder are converted to Scallop facts, respecting masks for padded objects and pairs. The Scallop context composes these facts with the rule to yield the answer distribution, providing gradients to the neural unit.
LEFT
Problem Specification
We express the query in first-order logic executed by LEFT’s generalized FOL executor:
The executor grounds over the object domain and evaluates the formula using attribute predicates for unary properties and a binary predicate for the relation, returning a scalar decision consistent with the query.
Neural Modeling
The object-centric encoder yields per-object attribute scores (for color/shape) and per-pair relation scores. These tensors parameterize the executor’s predicates, forming a differentiable perception–reasoning pipeline trained on the binary supervision.
Toy NER
For a simplified, toy version of the Named-Entity Recognition task (Tjong Kim Sang and De Meulder, 2003), we create a dataset of randomly generated embeddings representing persons and locations. The objective is to learn the concepts of “works_in,” that is, whether a person works in a location, and “is_real_person,” that is, whether a given embedding is a person or not. These concepts are learned using indirect supervision on two queries, that compose the atomic concepts.
DomiKnowS
Problem Specification
To perform the Toy NER task, DomiKnowS begins by constructing a graph representation of the problem. It first defines the person and location concepts to represent the entity types of interest. Under the person concept, three sub-concepts are declared to represent three individual persons, and under the location concept, three sub-concepts are introduced to represent distinct locations. A pair relation is then defined to connect a person and a location. This relation is used to create three separate work_in[i] concepts, each representing the output relation between person
Neural Modeling
The model declaration follows the standard pipeline of neural components. It begins with a ReaderSensor to process the raw input data. A ModuleLearner is then invoked, using the embeddings of either person or location to generate predictions based on the given representations. A JointSensor is subsequently employed to connect the person and location concepts in order to form the work_in[i] relation specified in the problem definition. Finally, model inference is carried out based on predefined queries, yielding the final output.
DeepProbLog
Problem Specification
DeepProbLog declares 6 concepts, is_real_person[i] for each person i and works_in[i] for each location
Neural Modeling
DeepProbLog uses two neural networks for the classification of the two concepts. The main challenge is the creation of the dataloader that reads from the raw data and converts it into the format necessary to send queries with the appropriate value substitutions for variables. This integration with ProbLog needs to be done by the user from scratch.
Scallop
Problem Specification
Scallop utilizes 6 concepts similar to DeepProbLog. The value of the two constraints is merged using a final module check(P1* P2 * W1 * W2 + P3 * W3). Here, the results of concepts is_real_person[i] (P1, P2, P3) and works_in[i] (W1, W2, W3) are passed instead of the embeddings themselves. This context is passed through Python itself, instead of a separate Datalog file.
Neural Modeling
The neural modeling component is standard with flexible loss declarations. To adapt from the raw data, an embedding generator NERDataset is created which is the same as the JSONDataset utilized in the DeepProbLog solution. However, there is no need to manually adapt the data to generate queries to the datalog component, as the forward function of the neural network is the final query and only requires the outputs of the neural networks passed to it.
Math Equation Inference
The Math Equation Inference task is designed to evaluate whether a neural network can learn local mathematical concepts from global supervision. The input to this task consists of two lists, each containing six real numbers sampled uniformly from the range
where
DomiKnowS
Problem Specification
For implementing this task in DomiKnowS, the first concept defined is the problem concept, which represents the overall mathematical inference problem. Next, the lst concept is introduced to represent a list of considered numbers. Under this lst concept, all possible condition concepts–is_cond1 and is_cond2–are defined to represent the output class of each list. Subsequently, two relation concepts, is_relation1 and is_relation2, are introduced between pairs of lst instances to capture the two relational conditions described in the problem statement. Importantly, all possible conditions and relations must be defined, even if some are not ultimately used in the final inference. To define the inference query, the logical operator andL is employed to combine the three relevant concepts. For example: andL(is_cond1(L1), is_relation1(L1, L2), is_cond2(L2)). This query corresponds to the case where the sum of
Neural Modeling
DomiKnowS begins with a ReaderSensor to process the two input lists of numbers. Then, CompositionCandidateSensor is employed to connect the two lists, forming the intermediate representation required for relation prediction in later stages. Four neural networks are instantiated using ModuleLearner—two dedicated to property concepts and two to relation concepts. These networks are trained to predict the respective properties and relations. The predicted concepts are subsequently integrated into the final query, which specifies the target relation for the given problem and serves as the prediction label during training and evaluation. It is important to note that DomiKnowS requires all possible inference queries to be explicitly represented in the graph. Each query is set as either active or inactive to obtain the correct prediction during inference.
DeepProbLog
Problem Specification
In this task, DeepProbLog defines four neural predicates: Two for the considered properties (is_property[i]_nn for object property
Neural Modeling
DeepProbLog employs four neural networks, corresponding to the defined concepts: Two for property concepts and two for relation concepts. The pipeline then proceeds with data loading, where all possible candidate lists of numbers are read separately and pre-processed to obtain the required model inputs. This also includes manually connecting the list of numbers within the same problem. Then, all defined neural networks are called to obtain all possible relations and properties output. Lastly, the query must be constructed in the exact predefined pattern to ensure that the system produces the correct output aligned with the desired inference condition.
Scallop
Problem Specification
Similar to DomiKnowS and DeepProbLog on this task, Scallop begins with the declaration of four concepts, that is, two property concepts and two relation concepts. However, Scallop only defines the one final module, inference(P1 * P2 * R), that accumulates the probability based on the output of the properties of
Neural Modeling
The neural modeling component in Scallop follows the standard pipeline. However, Scallop requires a manually defined connection between the model output and the declared final module. This requirement arises because the final module is specified in a general form, rather than being tied to a particular combination of inference concepts. In contrast, other frameworks explicitly define every possible query corresponding to a combination of properties and relations and refer only to those queries during inference.
Discussion and Future Direction
Table 1 summarizes the comparative aspects of existing frameworks and outlines future directions for optimizing, as we observe many columns marked with “✗,” implying most frameworks present challenges that hinder the application and flexibility of the frameworks. While current frameworks are functional, future developments should take a more holistic approach that considers all aspects from an end-user perspective, aiming to improve usability as general-purpose libraries and foster wider adoption of NeSy methods.
Conclusion
NeSy AI presents a promising path forward in addressing the limitations of purely symbolic or neural approaches to AI. By integrating symbolic reasoning with neural learning, NeSy frameworks offer a balance between interpretability, data usage, time efficiency, and generalization. In this paper, we characterize the core components of NeSy frameworks and provide an analysis of some existing ones—DeepProbLog, Scallop, and DomiKnowS, illustrating their comparative facets. We identified a number of facets, such as symbolic knowledge and data representation, neural modeling, model declaration, their method of integrating the symbolic and sub-symbolic systems, and LLMs integration. We identify key challenges in each facet that can guide us toward building the next generation of NeSy frameworks. Unifying ideas in the field and building flexible frameworks by incorporating strengths in every facet will ease the learning curve associated with NeSy systems and improve their application. Future NeSy frameworks should aim to provide user-friendly interfaces, scalability, algorithm coverage, and seamless integrations with foundation models. Recent advances in LLMs and vision language models provide promising solutions to longstanding knowledge engineering challenges, fostering more effective and scalable integration of symbolic representations, and advancing research in NeSy AI.
Footnotes
Acknowledgement
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This project is partially supported by the Office of Naval Research (ONR—grant N00014-23-1-2417).
Declaration of Conflicting Interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
