Applications of Neuro-Symbolic AI
local graph
Chapter 7 — Applications of Neuro-Symbolic AI
Section titled “Chapter 7 — Applications of Neuro-Symbolic AI”Applications of Neuro-Symbolic AI
Section titled “Applications of Neuro-Symbolic AI”Neuro-symbolic AI (NSAI) has ignited a new hope in machine-enabled human-level reasoning. The NSAI paradigm is being widely adopted in both business and academia. The number of NSAI applications has been on a steady increase, especially throughout the last 2 years or so. Both the research and business industries appear to be reacting positively toward this emerging framework. Since 2019, Google Scholar has ranked over 3,000 works of literature focusing on NSAI and its applications. Throughout this time, we have witnessed the birth of various NSAI use cases from a diverse pool of industries. Business investment in NSAI is a vital feat to achieve. Besides promoting further academic advancement, a healthy number of technical use cases also enable us to study and better understand the implications imposed by NSAI and assess its outlook. Testing out the technology in the wild is the perfect strategy to observe performance and reliability outside the lab environment.
This chapter aims to solidify the NSAI paradigm by discussing its various applications in the real world. We will look at the different NSAI architectures from different perspectives, highlighting their respective benefits and pitfalls. The purpose of this chapter is two-fold. Firstly, this chapter wants to collect applications at the forefront of the NSAI paradigm and study their implementation details. This chapter also wants to inspire creativity in adopting this composite AI framework. NSAI remains relatively emerging and niche. Recently, we saw some strides in studying development standards and system design principles for NSAI frameworks. Despite this, this area is yet to mature. Therefore, this chapter is crucial to understanding how we can better exploit NSAI and shape it to fit our use cases.
This chapter will be structured slightly differently from the ones before it. We will discuss NSAI applications from three different but relevant and significant industries. We will attempt to structure each application in the following manner: the problem statement and definition, and then the role of NSAI in the application.
Ultimately, this chapter will go over the thought process and architectures involved in designing real-world NSAI systems, as well as explore potential use cases for NSAI.
We will cover the following use cases in this chapter:
- Health – computational drug repurposing
- Education – student strategy prediction
- Finance – bank loan risk assessment
Disclaimer
Section titled “Disclaimer”None of the authors of this book are affiliated with any of the works mentioned, nor their respective institutions.
Application 1 – health – computational drug repurposing
Section titled “Application 1 – health – computational drug repurposing”Statista (source: https://www.statista.com/outlook/dmo/ecommerce/beauty-health-personal-household-care/health-care/worldwide) shows that the worldwide healthcare domain is projected to generate revenue figures exceeding US$63 billion in 2023 while enjoying an annual growth rate of 10.15%. Numbers aside, the health domain is one of the few industries directly affecting everyone. Subsequently, its relevance to the average Joe is significant.
The health industry is not new to the field of AI. Several AI applications exist, from disease research acceleration to drug discovery, medical imaging, and patient screening. More recently, AI played a massive role in accelerating the discovery of the COVID-19 vaccine (see https://sloanreview.mit.edu/audio/ai-and-the-covid-19-vaccine-modernas-dave-johnson/). It is safe to say that the health domain motivates AI research. Given its extreme sensitivity, one of the biggest challenges faced by AI in health is its lack of interpretability (as discussed in Chapter 4).
There is currently a focus in the AI field on creating more transparent AI and being less reliant on complex mathematical concepts that can be difficult to understand. This is especially important when technical solutions need to be regulated. For example, the Food and Drug Administration (FDA) is trying to stop animal testing in favor of AI methods (refer to https://www.nature.com/articles/d41586-022-03569-9). The goal is for a more transparent AI that is also easier to comprehend. For this reason, NSAI is anticipated to advance the role of AI in healthcare drastically.
Application details
Section titled “Application details”Drancé, M., Boudin, M., Mougin, F., and Diallo, G. (2021). Neuro-symbolic XAI for Computational Drug Repurposing. In Proceedings of the 13th International Joint Conference on Knowledge Discovery, Knowledge Engineering, and Knowledge Management – KEOD, ISBN 978-989-758-533-3; ISSN 2184-3228, pages 220-225. DOI: 10.5220/0010714100003064: https://dl.acm.org/doi/abs/10.1007/978-3-031-00129-1_51.
Application 1 – health – computational drug repurposing
Problem statement
Section titled “Problem statement”A 2019 study found that the average cost of developing a new drug is estimated to sit around the US$1.3 billion mark (source: https://jamanetwork.com/journals/jama/fullarticle/2762311) and likely involves several years of research and development. Billions of dollars are poured into drug research every single year. Due to this, this field of healthcare is rather attractive for researchers. The possible returns on investment stand to be significant while simultaneously influencing a tangible societal impact.
For this reason, drug repurposing has quickly become an exciting area of study for AI. Rather than researching for the discovery or development of an entirely new drug, the domain of drug repurposing is concerned with taking known and already studied drugs and applying them to newer diseases. This process is commonly referred to as linking, whereby we link an existing drug with a new application.
Deep learning techniques have been applied to link prediction in several instances. However, the consensus remains that AI should not be the decision-maker in these cases. Instead, AI should solely provide support to the medical expert and researcher. Machines cannot be held accountable, and in such critical applications, a human expert(s) must give the green light after extensive studies.
The role of NSAI
Section titled “The role of NSAI”The rise of NSAI has been an exciting avenue for the drug repurposing field. The computational complexity and lack of interpretability presented by deep learning solutions meant that researchers could not rely on or trust the results of these algorithms. NSAI inspired researchers in this domain with new hope. Its transparent and explainable nature meant that the researchers could fully understand the link predictions and potentially backtrack the process and adjust.
The symbolic nature of NSAI meant that researchers could interact with the algorithm during the training process, supplying it with background knowledge through logical rules. Let’s explore further how this was made possible through NSAI.
Understanding the data
Section titled “Understanding the data”This application’s researchers used the OREGANO dataset (refer to https://gitub.u-bordeaux.fr/erias/oregano/-/tree/oregano_app_4.0). OREGANO is a knowledge graph (KG) built from multiple open data sources and specifically for biomedical research. It consists of over 360k nodes (11 distinct types, such as drugs, symptoms, and diseases) and over 800k relations (19 distinct types, such as is_caused_by, associated_to, and is_substance_that_treats). You can see its complete schema in Figure 7.1: Figure 7.1: The OREGANO KG schema (adapted from Drancé, M., Boudin, M., Mougin, F., and Diallo, G. (2021), Neuro-symbolic XAI for Computational Drug Repurposing)
At its core, a KG is nothing more than a collection of symbols connected through relations. A KG maps its problem domain into a bunch of logical rules. This is perfect for satisfying the symbolic side of NSAI! One direct benefit of combining NSAI with KGs is the ease of extracting logical rules to integrate during training.
Considering the KG schema in Figure 7.1, we can start to identify how our logic propositions might look. The researchers in this study often refer to these rules as meta-paths (that is, the different paths you might take to eventually link two nodes, such as an existing molecule with another disease).
The structure of a meta-path might look something like this:
Figure 7.2: An example of a meta-path extracted from the OREGANO KG
The NSAI component
Section titled “The NSAI component”The NSAI framework implemented here involves combining a reinforcement learning algorithm (based on a long short-term memory (LSTM) network) and the logic rules encapsulated within the KG (in the form of meta-paths). One crucial aspect in extracting the meta-paths is that they should be represented as horn rules.
Defining horn rules
Section titled “Defining horn rules”Named after the logician Alfred Horn, a horn rule is any clause that describes, at most, one positive literal.
Suppose we want to describe the current weather in logical form. It is currently raining, so we come up with a statement like rain OR not sunny OR not snowing. Our statement comprises three literals (rain, sunny, and snowing), out of which only one is positive (rain). Therefore, our statement is considered to be a horn clause. If we were to change the statement to rain OR not sunny OR windy, we would have more than one positive literal and fail to satisfy the property of the horn clause. Due to this characteristic, horn clauses are commonly described as the disjunction of literals. It is important to note that the statement “not rain OR not windy OR not snowing” (that is, all literals are negative) is also considered a horn clause and referred to as the goal clause.
By representing knowledge as horn clauses, it is possible to use automated reasoning algorithms to infer new knowledge or find contradictions. Horn clauses are thus an essential component of many AI and expert systems applications.
In addition to the horn clause representation, this NSAI framework requires every single logic rule that’s extracted to be scored in terms of reliability. This scoring mechanism is essential during training when the reinforcement learning algorithm decides whether to punish or reward the individual prediction. The researchers opted to provide a reliability score ranging between 0 and 1 (0 representing poor, and 1 representing strong reliability).
The NSAI algorithm is called Policy-guided walks with Logical Rules (PoLo), and its training process follows that of a Markov Decision Process (MDP). MDP is a mathematical framework that enables computers to make decisions based on the probabilities of different things happening based on individual choices. The objective of PoLo is to find a reliable and successful linkage in drug repurposing. The process commences from an agent at an initial entity – usually a node representing a particular drug to be repurposed. Here, an agent is a worker or process that can execute several steps to move between different nodes. The agent aims to progress from one node to another until we reach another satisfactory entity (such as treating a disease or symptom). The agent can move to the next node or stay at the current node. This move is selected using a stochastic policy from the reinforcement learning algorithm. The extracted meta-paths are integrated with the training process through these stochastic policies. The entire travel history (called the chain of reasoning) between nodes is stored. This process is repeated until the agent receives a reward from the algorithm. The entire system can be seen in Figure 7.3: Figure 7.3: An overview of the NSAI architecture
The contribution of NSAI
Section titled “The contribution of NSAI”Explainability is achieved through the chain of reasoning’s transparency and the node traversal decision’s interpretability. The NSAI framework described in this use case achieved comparable results to the state-of-the-art across several evaluation metrics. Using NSAI, the researchers developed a more interactive training process that was enhanced with explainable results at no sacrifice in performance.
Application 2 – education – student strategy prediction
Section titled “Application 2 – education – student strategy prediction”The education sector is rapidly advancing and embracing new technologies to enhance the learning experience for students. AI is revolutionizing education by providing a more engaging, personalized learning experience for students. AI allows educators to tailor learning plans to each student’s needs and abilities, leading to more effective and personalized instruction. By utilizing AI, educators can personalize instruction, provide real-time feedback, and analyze data to improve educational outcomes. Furthermore, AI can assist with administrative tasks such as grading and course planning, allowing teachers to focus on their primary role of instruction. By integrating AI into the education industry, we can expect improved student outcomes and increased efficiency in delivering education.
Application details
Section titled “Application details”Shakya, A., Rus, V., and Venugopal, D. (2021). Student Strategy Prediction Using a Neuro-Symbolic Approach. International Educational Data Mining Society: https://eric.ed.gov/?id=ED615630.
Problem statement
Section titled “Problem statement”At the core of this application are Adaptive Instructional Systems (AISs). AISs are computer-based systems that can adjust (or, as the name implies, adapt) their content and learning material to meet the needs of the respective learner. Data and AI techniques often power these systems. They monitor student metrics such as time to answer to assess student performance. Every student is unique in their learning abilities, and understanding these styles will help ensure a more effective and engaging learning experience.
Nonetheless, matching students with their learning styles is not a trivial task. Multiple factors, including our expertise in the subject, level of interest or passion, and intellectual capacity, substantially influence how we learn. These factors all play a role in determining the most effective learning strategy. Ultimately, the main objective of an AIS is to understand the learning process of the individual student and their thought process when solving a task or problem.
The benefits of an AIS system become especially relevant in large learning settings. On a small dataset of pupils, a human expert might manage to extract student learning strategies. However, consider a school or university with thousands or even hundreds of thousands of students (for example, Indira Gandhi National Open University has more than four million students enrolled!). The manual process quickly becomes unfeasible, unscalable, and unrealistically expensive. Automating this process using AI systems ensures robustness, scalability, and consistency.
The role of NSAI
Section titled “The role of NSAI”AIS has been predominantly implemented using deep neural networks (DNNs). We have discussed the limitations of DNNs in Chapters 3 and 5, primarily their resource-hungry nature. Additionally, the researchers behind this application also note how DNNs are susceptible to overfitting, especially as we increase the datasets. The objective of NSAI here is simple: improve the generalization and scalability capabilities of DNN for AISs. Next, we will delve deeper into the NSAI solution behind this application.
Understanding the data
Section titled “Understanding the data”The primary datasets used for this application are the publicly available KDD Education Data Mining (EDM) datasets (see https://pslcdatashop.web.cmu.edu/KDDCup/rules_data_format.jsp). The dataset is in a structured tabular format and details the steps taken to solve a particular task (referred to as knowledge component (KC)) per student ID. Suppose we want to compute the area of a rectangle. First, we measure its length, then its width, and finally, multiply them to get the area. These three steps represent three KCs in the problem of calculating the area of a rectangle. Applications of Neuro-Symbolic AI
This data was collected by having students solve several KCs on a particular AIS. Also monitored per row is the number of hints a student uses at every step. One example where the AIS can ultimately adapt to provide a more tailored experience to the student is by anticipating at which steps the student would require more hints.
The NSAI component
Section titled “The NSAI component”The main objective of this use case is to aid in predicting the next instructional steps that a student is likely to follow. We can think of this problem as a sequencing task. The steps taken by a student to solve the problem are all connected, and one decision ultimately influences the other. In this application, we can see an NSAI architecture (shown in Figure 7.4) built on top of two popular sequencing techniques: hidden Markov models (HMMs) and DNN.
Regarding DNNs, LSTM is used to handle sequential data, where the order of the data points is essential. LSTMs are particularly useful for modeling if there are dependencies between data points spread over time. The critical feature of LSTMs is their ability to remember previous data points, allowing them to consider long-term dependencies. LSTMs accomplish this using a set of gates (input, forget, and output gates). These gates control the flow of information in and out of the network’s hidden state. We discussed this type of network in greater detail in Chapter 3.
LSTMs have been used in many applications, such as language modeling, speech recognition, and time series forecasting. They have been proven more potent than traditional recurrent neural networks (RNNs) because they can handle longer-term dependencies in the data. Nonetheless, they also have more extensive parameters and require more computational resources to train. The latter is perhaps their most significant flaw, as noted by the researchers of this application. The larger the training data, the slower and more expensive it becomes.
Furthermore, in LSTMs, every observation in the dataset is considered independent and identically distributed (IID).
A brief segment on independent and identically distributed variables
Section titled “A brief segment on independent and identically distributed variables”Independent random variables are random variables that are not affected by the value of any other random variable. Therefore, their probability distribution does not depend on the value of any other random variable. For example, the roll of a fair die is independent of the roll of another fair die.
Identically distributed random variables are random variables that have the same probability distribution. This means that all the random variables have the same probability density function or probability mass function, regardless of the variable. For example, all the fair dice rolls have the same probability of getting a number between 1 and 6. A sample is considered an IID if it is independent and identically distributed. This property is vital in many areas of statistics and probability as it allows us to make certain assumptions and simplify calculations. For example, in many statistical models, IID random variables represent the errors or noise in the data. Their IID property allows us to make assumptions about the distribution of the errors and use them for estimation and hypothesis testing.
The IID property in LSTMs is also partially problematic in this use case. The dataset records every single step in a student’s problem-solving exercise. This results in having multiple related individual instances belonging to the same student and potentially even the same task (differing only in sub-task or KC). For example, the same student will likely adopt the same strategy to solve the same KC but a different problem.
The NSAI framework is a composite between Markov Logic (a symbolic program based on the Markov process) and an LSTM architecture. Markov Logic combines the representational power of first-order logic with probabilistic graphical models. The resultant graph is called the Markov Logic Network (MLN). It allows for creating a knowledge base by combining a set of first-order logic formulas with a set of weight parameters. Every logic formula comprises two primary entities: a symbol and a relation.
This notation follows the symbolic logic structure we discussed in Chapter 2. A symbol represents an object (such as the student or the KC), while the relation specifies the logical connection between different objects. As such, the knowledge base in this application is constructed by extracting the domain logic encapsulated within the historical data in the form of first-order logic rules. Here is a trivial logic rule describing the relationship between a particular student and a problem:
Here, S represents the student, P represents the problem, and T represents a particular step.
The knowledge base can then be represented as an MLN. This MLN represents the symbols as nodes in the graph, connected through their relations. Figure 7.4 shows an example of an MLN describing the relationships between three different KCs and two problems. The MLN is constructed on first-order logic rules describing the relationships between KC1, KC2, KC3, P1, and P2 (where KC stands for knowledge component and P denotes a problem): Figure 7.4: A simple MLN architecture
With the logical formula defined, we can use the weight parameter to determine the strength of the rules and how likely they are to be true. The researchers use these weights as part of a critical sampling strategy to filter essential student strategies. This application’s NSAI architecture is different from the previous application.
Here, the primary purpose of the symbolic module is to improve the generalization and scalability performance of the LSTM rather than to augment the training process. This goal is achieved by using the extracted MLN to discover symmetrical student strategies (that is, homogenous strategies) and ultimately create a smaller subset of the dataset that retains the original dataset’s information.
For instance, consider Figure 7.4. We can observe that both P1 and P2 are connected to nodes KC1, KC2, and KC3. Therefore, P1 and P2 are symmetric since they relate to the same KCs (that is, they can be solved through the same steps).
The researchers transform the student and problem logic rules from the MLN into their respective vector embeddings (using the Obj2Vec algorithm at https://github.com/eangius/obj2vec) and cluster them. The subset is created by taking random samples per cluster. The weight parameters discussed previously assign an importance weighting per cluster. This cluster importance weight determines the number of samples taken from every cluster (that is, the higher the cluster weight, the higher its student strategy rules’ importance).
The objective here is to end up with different clusters of strategies with a high inter-cluster distance and a low intra-cluster separation. The result becomes a smaller dataset that drastically improves the efficiency of the training process.
The role of Markov Logic (and, as a result, the symbolic AI component from the NSAI framework) in this application is knowledge representation. The researchers finally trained a one-to-many LSTM model using the embedding vectors. These embeddings are one-hot-encoded and passed as inputs to the LSTM, and the model outputs a sequence of predicted KCs that students might follow to solve the respective problem. This NSAI architecture can be seen in Figure 7.5:
Figure 7.5: An overview of the student strategy NSAI solution
The contribution of NSAI
Section titled “The contribution of NSAI”This NSAI architecture uses the symbolic AI component as a sub-sampling strategy to reduce the training set’s size while retaining the same information. The symbolic rules do not actively interact with the training process and rather enable the resource-hungry LSTM network to train faster and more efficiently. The NSAI framework was evaluated and compared against two standalone solutions, one using HMM and the other a pure LSTM implementation. The NSAI approach outperformed both techniques and proved better in performance and scalability, all using a considerably smaller training dataset. Applications of Neuro-Symbolic AI
Application 3 – finance – bank loan risk assessment
Section titled “Application 3 – finance – bank loan risk assessment”In the ever-evolving world of finance, there is a growing need to stay ahead of the curve and be competitive. AI has proven to be a powerful tool in achieving this, providing financial institutions with real-time data processing, generating accurate predictions, and automating mundane and repetitive tasks. AI is not restricted to large financial organizations. Small and medium-sized companies can also exploit AI to provide valuable insights into operations and customer behavior. As regulations become increasingly complex and the threat of fraud looms, AI can also assist financial institutions in complying with regulations and detecting fraudulent activities. As the finance industry continues to evolve and adapt to the digital age, the importance and necessity of AI will only continue to grow.
Application details
Section titled “Application details”Hatzilygeroudis, I. and Prentzas, J. (2011). Fuzzy and Neuro-Symbolic Approaches to Assessment of Bank Loan Applicants. In: Iliadis, L., Maglogiannis, I., Papadopoulos, H. (eds) Artificial Intelligence Applications and Innovations. EANN AIAI 2011. IFIP Advances in Information and Communication Technology, vol 364. Springer, Berlin, Heidelberg: https://link.springer.com/chapter/10.1007/978-3-642-23960-1_10.
Problem statement
Section titled “Problem statement”The problem at the center of this application is the risk assessment of bank loan applications. Assessing the risk of a loan application is crucial for banks and financial institutions. It allows them to identify potential defaults and mitigate financial loss. Issuing high-risk bank home loans (carrying a high probability of defaulting) was one of the most significant contributors to the devastating financial crisis of 2008, which saw eight million home foreclosures (source: https://www.newyorkfed.org/newsevents/speeches/2017/dud171106). However, the process can be immensely time-consuming and labor-intensive, with a large volume of data to analyze.
Additionally, traditional risk assessment methods, such as credit scoring, may not fully capture the complexity and uncertainty of the loan application process. AI techniques can automate and improve the loan risk assessment process, reducing processing time and mitigating additional risk.
The role of NSAI
Section titled “The role of NSAI”Support vector machines (SVMs) and genetic algorithms have been successfully employed in the bank loan risk assessment task. Due to its exceptional predictive abilities, there has also been a growing interest in using DNN for this purpose. Despite their effectiveness, a significant drawback of these algorithms is their lack of interpretability, making it difficult for bank loan officers to understand the reasoning behind the predictions. This lack of interpretability and the need for a more robust and capable system led the researchers to explore other approaches to this application.
One key aspect that’s overlooked in traditional algorithms is integrating domain knowledge from experienced banking loan officers. These experts possess a wealth of domain logic that can be leveraged to improve the performance of the AI system. However, acquiring and incorporating this knowledge has traditionally been challenging, requiring extensive data manipulation and feature engineering. This approach increases the system’s complexity and introduces the risk of human bias.
This paper presents two solutions: a fuzzy expert system and an NSAI expert system. In this section, we will focus on the latter, which aims to overcome the limitations of traditional algorithms by seamlessly integrating domain knowledge and providing interpretable and robust predictions.
Understanding the data
Section titled “Understanding the data”This problem presents two facades of looking at the task, which ultimately converge: the loan and personal sides. For a robust inferencing process, we must know about who (that is, the personal side) is applying for which (that is, the loan side) loan. The researchers described some of the monitored attributes. Here’s a table of them:
| Loan Attributes | Type of Loan Application Reason Supporting Documents Interest Details Loan Amount Loan Installment Types |
|---|---|
| Personal Attributes | Net Annual Income Overall Financial Status Number of Dependencies (for example, children) Age Social Status |
Table 7.1: Overview of the main attributes available in the dataset
The NSAI component
Section titled “The NSAI component”The basis of this NSAI system is neurules. Applications of Neuro-Symbolic AI
Defining neurules
Section titled “Defining neurules”A neurule is a hybrid AI system that combines neural networks and rule-based reasoning to make decisions. This approach allows a more flexible and adaptive system to learn from data and evolve.
Neurules use a neural network to learn patterns in data and use this knowledge to generate rules that can be used to make decisions. They are instrumental in applications such as natural language processing, computer vision, and decision-making, where the ability to handle complexity and uncertainty is required.
The symbolic component in neurules is given priority, and the neural network aspect is used primarily to improve the predictive performance. The neurules serve the purpose of knowledge base construction. This approach is advantageous because the knowledge base can retain the underlying structure and relationships of the production of symbolic rules. As we have discussed on several occasions, the main benefit of symbolic rules is their highly interpretable nature. The structure of neurules follows the symbolic rules (that is, in if-then-else format), rendering neurules to carry a robust interpretable property.
A neurule comprises one or more conditions, where every condition specifies a significance factor (SF). The purpose of the SF is to describe the condition’s importance. The symbolic aspect of the neurules is based on the production rules, while the neural network component uses adaptive linear units (ALUs). The researchers formally define a condition in the following manner:
Here, the variable is any object or symbol within our knowledge base, the predicate can either be an equality or an inequality, and the value represents the parameter assigned to the variable.
Suppose we want to extract a neurule that describes what we wear based on the weather. We can have the following conditions (depicted using the C prefix), along with their respective SF (note that the SF values here are purely random and fictitious):
- C1: Going out is true (0.8)
- C2: The wind is not strong (0.5)
- C3: Precipitation > 0 mm (0.5)
An example neurule might look something like this:
IF C1 (0.8), C2 (0.5), C3 (0.5) THEN BRING UMBRELLA As we can see, the neurule structure is straightforward, transparent, and traceable. Every neurule is also assigned an “importance weight” parameter called the bias factor (BF). As a result, modeling a neurule as an ALU looks something like this:
Figure 7.6: An example of an ALU representation of a simple neurule
Neurules are either extracted historically using the existing datasets or using empirical data (through training patterns). The extracted neurules are then stored in a neurule knowledge base. Similarly, the various loan details described in Table 7.1 are stored in a separate knowledge base. The NSAI system communicates with both knowledge bases at inference. This process is repeated for every neurule extracted; thus, every single neurule becomes an ALU, as illustrated in Figure 7.6.
The inputs of the ALU are the actual conditions that make up the neurule. The input weights are defined using the condition’s SF and the BF of the neurule. The researchers trained the ALU using the Least Mean Squares (refer to the Further reading section) algorithm.
The outputs in this application can either be 1 (success) or -1 (failure). Generating explanations is trivial. Given a decision, we can trace back the neurules and their BF, along with their respective conditions and SF. This entire process can be seen in Figure 7.7: [figure outside: Figure 7.6] [figure outside: Figure 7.7] Applications of Neuro-Symbolic AI
Figure 7.7: The logic flow of the NSAI framework for the “bank loan risk assessment” application
The contribution of NSAI
Section titled “The contribution of NSAI”The researchers do not compare the results against other known benchmarks; however, they note how both approaches (the expert system and NSAI) seem to perform similarly. The NSAI, however, appears to be drastically more robust out of the two when we consider the sensitivity evaluation metric (NSAI obtained a score of 0.80 compared to the 0.66 achieved by the expert system).
Summary
Section titled “Summary”Throughout this chapter, we highlighted the importance and potential of NSAI in various real-world applications. By combining the strengths of both neural networks and symbolic reasoning, NSAI can handle the complexity and uncertainty of real-world problems, providing valuable insights and accurate predictions. This chapter discussed using NSAI in the healthcare, education, and finance industries in separate applications.
This chapter showed how NSAI can help solve real-world problems. As AI continues to evolve, the use of NSAI will become increasingly important. The investigated applications show that NSAI is a powerful tool for solving complex problems and offers the added benefit of interpretability, which is essential for real-life applications. A common theme in these NSAI applications is that we obtain improved learning using fewer data points. Reusing the existing knowledge base also results in a more reliable and robust model. The different applications leverage the NSAI concept in varying and exciting ways and are inspired by different NSAI advantages.
In the healthcare example, we saw how we could leverage NSAI on graph structures. In this use case, symbolic rules in meta-paths are directly used to interact with the training process, influencing how the agent traverses the graph. The primary motivation behind this NSAI system was prediction explainability.
The education example presented an exciting twist to the NSAI architecture. In this case, symbolic AI was used as a knowledge reasoning and representation language on a tabular dataset. First-order logic rules were used to logically represent the knowledge base and generate an enhanced version of the training dataset (consisting of significantly fewer data samples that provide the same information gain as the original dataset). As such, the symbolic AI component does not directly interact with the LSTM model used for training. Instead, it is used as a data processing and training preparation strategy. In this application, we saw a different angle to NSAI. The researchers exploited the NSAI paradigm to train a model that can generalize and scale better.
Finally, in the finance application, we observed an NSAI system that seemed to be a mix of the other two applications. In this example, neurules were extracted from a historical relational data store. The neurules were based on symbolic production rules and were represented as ALUs. Here, training is done directly on the neurules. Here, we observed how NSAI helped achieve consistent predictive performance and explainability.
In the next chapter, we will build a simple NSAI system using the Python programming language.
Further reading
Section titled “Further reading”To learn more about the topics that were covered in this chapter, take a look at the following resources:
- PoLo NSAI algorithm: https://arxiv.org/abs/2103.10367
- Markov Logic Networks: https://homes.cs.washington.edu/~pedrod/papers/mlj05.pdf
- Adaptive linear units: https://studyglance.in/nn/display.php?tno=5&topic=Adaptive-Linear-Neuron
- Least Mean Squares: https://danieltakeshi.github.io/2015-07-29-the-least-mean-squares-algorithm/
- NSAI design principles: https://link.springer.com/article/10.1007/s10489-021-02394-3