Skip to content
ImagineWorld

A Marriage of Neurons and Symbols – Opportunities and Obstacles

node_idnode-book_neuro-symbolic-ai_chapter-06-a-marriage-of-neurons-and-symbols-opportunities-and-obstacles
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num6
chapter_titleA Marriage of Neurons and Symbols – Opportunities and Obstacles
pillar_membershipA — predictive_processing_active_inference + D — neuroscience_anchors
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 6 — A Marriage of Neurons and Symbols – Opportunities and Obstacles

Section titled “Chapter 6 — A Marriage of Neurons and Symbols – Opportunities and Obstacles”

A Marriage of Neurons and Symbols – Opportunities and Obstacles

Section titled “A Marriage of Neurons and Symbols – Opportunities and Obstacles”

Research interest in neuro-symbolic artificial intelligence (NSAI) is on the rise. Currently, most researchers and artificial intelligence (AI) practitioners rely on deep learning (DL) algorithms as solutions to their tasks. The drawbacks and limitations have been widely documented, ranging from extremely resource-hungry processes to ambiguous and complex inner mechanics rendering a certain lack of interpretability. The modern generation acknowledges the importance of producing systems that we can fully understand. We also understand the significance of developing efficient processes that can achieve high-performance levels with fewer resources. For example, the craze of cryptocurrency (especially Bitcoin) mining saw a huge spike in computing electricity consumption worldwide. Forbes estimates that Bitcoin mining consumes roughly 127 terawatt-hours of electricity annually. To put this into perspective, that is greater than the total annual power consumption of some countries such as Norway, the Netherlands, and the United Arab Emirates! (Refer to https://www.forbes.com/advisor/investing/cryptocurrency/bitcoins-energy-usage-explained/). Especially with the current political turmoil and the electricity crisis that the world is experiencing, the need for designing and developing sustainable, efficient, and scalable systems is proving to be detrimental.

The area of NSAI is quite promising, and some researchers are positioning NSAI to be the next revolution in the sphere of AI. As we previously discussed, the domain of AI (like most other fields of study) tends to go through various highs and lows of innovative progress (winters and summers). Most researchers believe that we are currently in an AI spring. The field of AI is well funded with strong interest. However, innovation feels like it’s slowing down.

DL has been around for some time now, and although we have witnessed some remarkable state-of-the-art breakthroughs thanks to DL, it still feels like we are missing something. This feeling is perhaps why the rise of NSAI has piqued the attention of several researchers. NSAI is hoping to help take us from the spring season to summer.

One of the ultimate objectives of AI is reaching the level of general AI – meaning that we no longer build specialized AI systems that can perform a single task but rather build an entity capable of performing several general tasks. Think of it like a humanoid robot that possesses all basic human skills. Researchers believe that NSAI can take us there thanks to its number of improvements over the DL family of techniques.

No technique or solution is perfect. Trade-offs will always exist, and compromises will always need to be taken. The goal of this chapter is to investigate the trade-offs involved when combining symbolic reasoning and DL. It will highlight why NSAI is providing hope to solve even more complex problems. Throughout this chapter, we will also discuss the main limitations currently faced by neuro-symbolic computing.

The first objective of this chapter is to deeply understand the motivation behind NSAI in terms of what it has to offer. We will discuss the current limitations of NSAI and the future research direction.

This chapter will go through the following topics:

  • The opportunities presented to us by NSAI
  • The current limitations and obstacles of NSAI
  • The current research gaps in NSAI

The benefits of combining neurons and symbols

Section titled “The benefits of combining neurons and symbols”

In the previous chapter, we mentioned several key elements that make NSAI attractive to researchers. The idea of merging two parent AI techniques and trimming away all their limitations sounds rather promising. NSAI research has explored this new generation of AI workers under different lights – each highlighting various opportunities presented by NSAI. Having said that, as argued by the director of the MIT-IBM Watson AI research lab, Dr. Cox, we can group the benefits of NSAI into three main categories. Throughout this section, we will introduce each of these categories and delve further into how they are accomplished by NSAI.

There is no denying that neural networks (NNs) have been the key to multiple state-of-the-art solutions. There is no denying the powerful capabilities offered by NNs to solve highly complex problems. However, NNs are incredibly data-hungry. As we discussed in the previous chapters, NNs require huge amounts of data to achieve the incredible performance figures that we so desire. This data-hungry characteristic of NNs renders them unusable in multiple use cases.

Out in the real world, especially in the business world, we are often faced with two main scenarios: no data and expensive data. Let’s consider some use cases.

The benefits of combining neurons and symbols

Section titled “The benefits of combining neurons and symbols”

Scenario A – no data

The use case is a data scientist at a business-to-business (B2B) start-up company developing a customer relationship management (CRM) platform for other businesses. The company manages a data warehouse that monitors customers’ general information and their respective transaction history. The data warehouse is populated through several data ingestion processes. The CEO of the company approaches you and asks you to build a fraud detection system to flag fraudulent transactions as part of the CRM platform. There are no collected samples of known fraudulent cases and the business does not currently have a team of fraud analysts set up. What do you do?

The short answer here is probably not much. Yes, more experienced data scientists can be creative and explore the problem from other angles. You might try unsupervised approaches to separate the customers based on their past transactions, or maybe even consult third-party datasets to help build a dataset for modeling. Lately, Generative Adversarial Networks (GANs) have also grown in popularity for generating synthetic datasets to use for model training. However, irrespective of the approach you end up taking, the outcome is highly likely to be inferior to a model that had access to the right data. In this case, the business per se does not currently have access to the right data; they may need to consult with other supplemental data sources. Solving the lack of data in this scenario can be done, but it is a time-consuming process with questionable performance.

Scenario highlights:

  • Access to no data points
  • Possible to collect new data points, but the process is time-consuming (and potentially manually exhaustive)

Scenario B – expensive data

The use case is that you are a data scientist working in the health industry. A novel virus has been declared a pandemic in the past few days and everyone is in panic mode, causing health responders to become overwhelmed. The CEO asks you to work on a system that, given a set of symptoms and other patient details, determines whether the patient requires hospitalization or not. Only a handful of research studies have been published investigating the various symptoms caused by the virus and their respective severity.

Here, we have no past data to exploit since this is a novel virus. However, we can leverage the mentioned research to build a small dataset. We can probably also attempt to draw influence from past similar events. Collecting new data points is incredibly time-consuming (almost impossible unless we have access to direct sources) and costly.

Scenario highlights:

  • Access to no or few data points
  • Collecting new data points is difficult, incredibly time-consuming, and expensive

In the past few years, we have witnessed the introduction of a new buzzword: big data. Everyone wanted it. No one knew what it meant. The data age was quickly transforming how businesses operate and leverage data. The focus was on adopting systems that can handle huge volumes of data and coming in at (seemingly) high velocity. Nowadays, businesses are starting to realize that a significant portion of their problems falls within the confines of scenarios A and B, which we discussed previously.

Building complex NNs using millions of data points suddenly lost its wow factor, mainly because most business problems don’t have millions of rows of data points to begin with. Even more so today, both businesses and researchers are attracted to the idea of achieving high levels of performance using smaller datasets. Perhaps this is one of the most intriguing benefits of NSAI techniques. If you recall Chapter 5, we discussed how one of the standard datasets used for NSAI was the CLEVR dataset. The researchers there evaluated their NSAI architectures against other state-of-the-art NN techniques. The NSAI framework reached high accuracy levels (significantly outperforming the other algorithms) with training on just 1% of the entire dataset. Using 10% of the dataset, NSAI achieved an almost perfect score of 99.8%!

Combining symbolic knowledge with neurons ultimately creates a beautiful harmony in training. The symbolic paradigm allows the NN to generalize faster and better when training on smaller datasets by regularizing it. Through NSAI, this smaller data is essentially reduced to a point where every single observation within that dataset represents its entity – its group. This behavior is mainly achieved through the symbolic program that is used to decompose the dataset into its constituent objects and relationships. The NSAI framework no longer requires seeing several instances of the same object or entity to learn its underlying structure. Rather, the symbolic execution enables it efficient enough to map its properties almost immediately with every sample it sees. Think about it – NSAI attempts to mimic human reasoning and thought processes. As humans, we do not need huge amounts of examples to learn a concept and understand its dynamics. As an analogy, consider Figure 6.1, which depicts a completely fictional and made-up object. Let’s creatively call this new object Four-Shapes.

Although this is the first time we’re seeing this object, we can still answer questions and reason quite effortlessly about it. Consider the two depictions as part of Figure 6.2:

Figure 6.2: Left – two Four-Shapes of varying sizes and a tree; right – three identical Four-Shapes

If someone were to ask you to count the number of Four-Shapes on the right-hand side, you would easily answer three (hopefully!). If the same question was asked about the left-hand side, we would also be able to answer correctly (that is, two). Even though the left image depicts the shapes in addition to another object (in this case, a tree), and varying sizes, our brain can still process, associate, and recognize the individual objects. If you look closely at the left image, you will realize that the smaller Four-Shape is slightly different than the others in the sense that left part of the shape is slightly more curved. However, we still would count this as a Four-Shape object.

When we see the first sample of the new object (as shown in Figure 6.1), our brain immediately begins to decompose the shape into its different properties. Although we do not understand how it relates to the physical world (for example, does it grow on trees?), we can still quickly identify it in other scenarios. We can still reason about it and visualize it in different positions and orientations. Our brain has already built the “symbolic program” representing that object. We don’t need to see hundreds or thousands of images to start recognizing it. This property is one that NSAI is trying to replicate.

At this point, it is pretty much overstated that NNs have resulted in state-of-the-art solutions over the years. While that is true, some of the results obtained by DL are also arguably overstated. Consider the computer vision domain. It is perhaps the area that benefited the most from DL innovation. It is also believed by many that modern DL solutions have almost perfected computer vision – even capable of beating humans! Now, consider the following scenarios:

Figure 6.3: The panda versus gibbon adversarial attack (adapted from Goodfellow, I.J., Shlens, J., and Szegedy, C. (2015) Explaining and Harnessing Adversarial Examples, CoRR, abs/1412.6572)

The first example is shown in Figure 6.3. We start with an image of a panda. When passed to the state-of-the-art NN, we get a correct classification back with 57.7% confidence. If we were to add some imperceptible noise to the image, as depicted in the preceding figure, we would end up with an image that, to the human eye, remains identical to the original. We can all agree that the resultant image still shows a panda. However, the same NN is now 99.3% confident that this new image shows a gibbon.

The second example comes from the MIT-IBM curated ObjectNet dataset. The dataset was built using Amazon’s Mechanical Turk (MTurk) – a freelancing platform. The MIT-IBM researchers paid MTurk freelancers to take photos of various objects with two main characteristics: the objects should not be the center of attention (for example, they should be positioned in the photo’s corner), and their background should be different from the typical one (for example, a kitchen knife on a bathroom sink). State-of-the-art networks (which enjoyed a 97% accuracy on the ImageNet database) only achieved around 55% accuracy. Humans achieved over 90% on the same dataset. There are plenty of other documented examples where researchers succeeded in fooling an NN, including changing the color of a stop sign from red to brown causing it to not be detected by the NN (refer to https://link.springer.com/chapter/10.1007/978-3-030-10925-7_4) and fooling a human recognition system into using a custom t-shirt (refer to https://link.springer.com/chapter/10.1007/978-3-030-58558-7_39).

For this reason, DL is thought of as an 80-20 solution; it can get it right in 80% of the cases. The remaining 20% is often a combination of prediction error and black swan samples.

What is a black swan event? This is a super rare scenario within the problem space that tends to have significant repercussions. Black swan events are deemed by many as impossible to predict due to their extreme rarity; however, their impact can be catastrophic.

The director of the MIT-IBM Watson AI research lab, Dr. Cox, discussed the burning traffic light scenario as a great example of a black swan event. Consider a self-driving car approaching a busy intersection. The traffic lights at this junction are on fire. The probability that the self-driving car had a burning traffic light in its training sample is slim to none. As such, the probability that the self-driving car ignores the traffic light could potentially be rather high. One outcome of this negligence would see the self-driving car continuing through the intersection without stopping and being involved in a crash. Even though most of us have never really seen a burning traffic light (and probably won’t), if we ever were to encounter one, we would intuitively know how to act. We would know to stop and look out for oncoming traffic. We would wait for a safe moment to cross the intersection and proceed with extreme caution. As mentioned regarding the data efficiency argument, the human brain can quickly add one and two together to improvise a solution – even if we’ve never been in that specific situation before.

This task is something that NNs haven’t managed to get right. So far, researchers have observed how the symbolic component of an NSAI framework aids this process. Through symbolical integration, the machine would learn the inner embeddings of the world, resulting in two main achievements:

  • Improved object reasoning capabilities
  • Improved generalization and performance (especially on smaller datasets, as mentioned previously)

As with most things NSAI, the dynamics of integrating symbolic reasoning with an NN is still being studied. Nonetheless, the current research shows that NSAI does provide a degree of reasoning capabilities. The symbolic representation of objects and relationships renders the AI capable of information extrapolation beyond any previously observed knowledge. In Chapter 5, we discussed the CLEVRER study (refer to the Neuro-symbolic dynamic reasoning section). Here, the NSAI framework exhibited the ability to reason about the objects’ trajectories to answer counterfactual questions.

In Chapter 4, we discussed the field of Explainable AI (XAI) and its importance. We are living in a world dominated by technology – technology that is mostly powered by AI techniques. Most of us can agree that we need to seriously start regulating the field and holding machine learning accountable. It’s no longer enough to say, “Because the AI said so.” Any business and societal decision carries diverse critical and ethical considerations and the decision-maker must be fully aware of the entire thought process of any underlying algorithm.

Interpretability allows auditability. Auditability ensures fairness.

A byproduct of combining symbolic reasoning and an NN is a highly performant architecture thanks to the NN component, and a highly transparent system enabled by the symbolic component. It’s widely known that a trade-off typically exists in machine learning: the higher the complexity of the algorithm, the lower its transparency. A linear regression model offers strong interpretability properties but lacks predictive power. On the other end of the spectrum, an NN offers strong predictive power but significantly lacks interpretation. NSAI is promising in the sense that it offers the best of both worlds. The symbolic knowledge fed to the NN can ultimately provide the required transparency to understand its outcome. Let’s consider a CLEVRER use case again. Consider a scene with three balls: one red, one blue, and one yellow. The scene depicts the red ball colliding with the blue ball. We ask the NSAI the counterfactual question, “What if the yellow ball hits the red ball from the side before it collides with the blue ball?”

The NSAI architecture possesses a certain degree of intuitive knowledge of our physical world. As we discussed, the NSAI can reason about the various physical and spatial properties encapsulated without that specific scenario. The NSAI starts to map out the initially expected trajectory paths of the different balls. Plugging the counterfactual knowledge in which the yellow ball will hit the red ball, the NSAI system will start to adjust the objects’ projected movement and infer new paths. Through the symbolic component, the NSAI system knows that if an object is hit from its side, a change in momentum and direction is expected. All these considerations are represented within the network as symbolic propositions that we can access. Through symbolic representation, we can trace the network’s reasoning step by step – rendering it highly transparent and interpretable.

It is believed that for a system to be interpretable, it also needs to be constrained. More specifically, it needs to be limited using domain-specific constraints – rules that correctly define and represent the domain so that a domain expert can easily understand it. The symbolic component of NSAI does just that!

The benefits promised by the NSAI paradigm are nothing short of remarkable. It promises the best of both worlds (symbolic reasoning and deep learning). NSAI holds the potential to revolutionize how we think about implementing AI systems. However, the NSAI framework still faces several challenges and limitations that cannot be ignored. In the next section, we will study the main obstacles that we must address to fully leverage the power of NSAI workers.

The challenges of combining neurons and symbols

Section titled “The challenges of combining neurons and symbols”

So far, we have discussed the inner dynamics of NSAI and how this new class of computing promises to take machine intelligence to the next level. There are, however, a few obstacles that we need to overcome when designing an NSAI system. In this section, we will delve into the most prominent challenges and limitations of NSAI.

Perhaps one of the more prominent obstacles to face when designing NSAI systems is knowledge and symbol representation. As part of the symbolic component, we have two main challenges:

  • Robustly decomposing our problem space into symbols

  • Representing the extracted symbols in a way that a computer (more specifically, an NN) can understand In the previous chapters, we discussed how existing NSAI algorithms mostly rely on a domain-specific language (DSL) to represent the symbols and their respective relations as first-order logic. The DSL acts as a descriptor language of sorts to get this done through propositional logic – like the domain of inductive logic programming. Finding the optimal way to express both the symbolic relationships and their logical representations is perhaps the most challenging task of NSAI since this influences the rest of the architecture. The DSL should fulfill the following criteria:

  • The specific description language must be rich enough to appropriately cater to varying levels of abstraction of the logical propositions
  • It must be compositionally discrete (that is, capable of extrapolating logical knowledge beyond the existing or available data distribution) and fully explain the underlying local NN
  • Its rules must be correct and logically sound, and must efficiently represent the underlying relationships
  • For the sake of scalability and efficiency, the description language that’s selected must be as simple as possible

This open challenge is significantly limited by the constantly increasing complexity of tasks to solve. As a result, the main challenge here is to define a description language capable of handling the growing logical complexity while keeping the integrity and expressivity of the extracted logical propositions.

The majority of the current NSAI efforts are focused on knowledge extraction from some source of data. Suppose we are trying to solve a particular problem for which we have multiple sources of data. Let’s say that we have a set of unstructured text documents and structured tabular data. How can we combine and leverage both data sources for knowledge extraction and, in turn, build our symbolic knowledge base? This question is particularly difficult to answer.

The challenge here is to design a description language capable of extracting symbolic representations from both sources. Both data sources would likely have different data structures, encapsulate different relationships, and exhibit different data properties. Although both sources might represent knowledge on the same target objective, the characteristics of that knowledge might be different. The simple solution would be to design two different NSAI architectures (one for every source of data).

However, this strategy won’t get us far. Firstly, it suffers from significant scalability issues. What if we had 10 different data sources? Or maybe 100. It would quickly become a replicated and tangled web of symbolic and vector representations. Secondly, to achieve true knowledge reasoning, all architectures from the different data sources must somehow be communicating with each other. This is likely to cause catastrophic variations in both our knowledge base and knowledge reasoning. There are multiple considerations that you need to make. For example, how will you handle contradictory data points? As such, the current mechanisms of the NSAI framework don’t seem to consider the possibility of exploiting multiple data sources for enhanced performance. However, research efforts have been put into enabling this functionality. More notably, the PullNet (https://arxiv.org/abs/1904.09537) and GRAFT-Net (https://arxiv.org/abs/1809.00782) algorithms both provide a template on how the NN can extract answers from multiple data sources (in both cases, the network can either use textual data, a knowledge base, or both). Nevertheless, exploiting multiple sources of information remains a challenging and non-trivial task for NSAI systems.

Although the field of NSAI attempts to take the best of the symbolic and sub-symbolic AI worlds, one challenge from the symbolic AI sphere made its way into the paradigm of NSAI. If you recall, one of the biggest issues with symbolic AI is its complexity when it comes to updating the knowledge base with new information.

In NSAI, this process is still somewhat challenging. Especially in today’s world, data and events move rapidly, resulting in data points dynamically changing over time. For example, the statement “the president of the United States of America is Donald Trump” would have been valid in 2020. Today, not so much. As such, an NSAI should define a way to mine new logical rules and update (almost in a self-correcting manner) its knowledge base. Although knowledge extraction through an NN should help this cause, ensuring dynamic reasoning is an area that requires further study.

Query understanding for knowledge reasoning

Section titled “Query understanding for knowledge reasoning”

The user typically interacts with an NSAI system by providing a query as input and waits for the machine to provide an answer to that query. This property essentially means that the system needs to do the following:

  • Decompose and understand the user’s query
  • Traverse the knowledge base to retrieve the correct answer

This creates two challenges. The first is the challenge for the NSAI system to understand the user’s query, especially as query complexity increases. The second is the system’s ability to retrieve the correct answer efficiently, especially as the search space also increases in complexity. We have already seen drastic improvements regarding this with the introduction of the CLEVRER dataset, where that NSAI was now more capable of handling even more complex queries, including counterfactual questions. Nonetheless, query complexity can be significantly increased in the real world with multiple chained questions or questions requiring deep knowledge and understanding. In the CLEVRER example that we discussed in Chapter 5, we saw how the NSAI architecture could reason on spatial information. An example of increased query complexity could be to reason about an additional dimension, such as time.

In conclusion, the field of NSAI is far from full maturity. Several challenges and limitations are currently present that must be addressed for NSAI to reach its full potential. The results achieved by NSAI highlight its potential to develop explainable and robust systems to solve real-world problems. Nevertheless, the current challenges faced by NSAI offer us the opportunity to further refine the NSAI paradigm, propelling it to new heights in the process. Following this, we will shift our focus to discussing the main NSAI research gaps at present.

Although the field of NSAI has grown significantly in research interest and popularity, it is still maturing. NSAI is proving to be rather promising and is seeing major financial investment from strong research and technical institutions such as MIT and IBM. In this section, we will briefly highlight the future NSAI research direction and study avenues of interest:

  • Standardized datasets and comprehensibility tests for benchmarking: Like the existing CLEVR and CLEVRER datasets, the domain of NSAI would benefit from common datasets that can be used to benchmark existing and new techniques. These standardized resources are critical for comparative research.

  • Strategies for NN inference using symbolic propositions.

  • More comparative evaluations on the NSAI paradigm to determine the best NN architecture to use.

  • Context-aware semantics: Further investigation on how semantics can be constructed and influenced by the problem context.

  • Further studies on NSAI evaluation strategies: As classification and regression problems have evaluation metrics, which metrics should we monitor to evaluate NSAI? For example, should we monitor the algorithms’ performance decay as we reduce training data? Or maybe monitor their energy consumption? How can we reliably evaluate reasoning capabilities?

  • Pre-trained models: Investigate strategies to save and load already trained NSAI architectures to use for similar problems. A Marriage of Neurons and Symbols – Opportunities and Obstacles


  • Analogical reasoning via transfer learning:

Investigate how a pre-trained NSAI system on one domain can be fine-tuned and customized to solve another domain.

Transfer learning is the process of taking an already trained NN and re-training its final layer to fit a new problem. It has had great success in the DL world, and it would be interesting to see NSAI transfer learning experiments.

  • Online/incremental learning:

Online learning is the process of training a model in a sequential step-by-step process as data becomes available. In online learning, the model is simultaneously predicting and learning; new data points coming in are used to update the model and improve its performance on future incoming data points.

In conclusion, addressing the research gaps highlighted in this section is crucial for advancing the field of NSAI and unlocking its full potential. These challenges offer exciting opportunities for researchers and practitioners to collaborate and innovate, and we look forward to seeing future developments in this field. We’ll discuss these exciting topics in detail in Chapter 9.

With the current technological advancements, NSAI has high expectations to reach. So far, researchers are hinting at rather promising results achieved by NSAI. The field is still emerging and relatively niche, but its properties and inherent understanding present interesting opportunities for NSAI.

Throughout this chapter, we discussed some of the main benefits of NSAI, as highlighted by research so far. We saw how NSAI can achieve high performance with significantly few data points while being highly interpretable and transparent. Some challenges and limitations of its parent techniques, mainly those of symbolic AI, are somewhat evident in NSAI. Mainly, challenges revolve around the knowledge base and the symbolic integration with NN. We also discussed the future research direction of NSAI.

In the next chapter, we will discuss some real-life applications of NSAI in various businesses and industries.