Rules Rule – GOFAI
In this series of articles, I would like to discuss the basic nature of categories of AI/ML algorithms and develop a common-sense perspective of the algorithms and their applications consciously not getting deeply into technical aspects as well as deal with those applications explicitly which touch our business and personal lives. In this first part I will bring out perspectives on so called ‘Good Old Fashioned Artificial intelligence (GOFAI)’
The thumb of Old-fashioned
We will start from where it all started and tell you what is now referred to as ‘Good Old Fashioned Artificial intelligence (GOFAI) which was prominent during mid-1950s to mid-1990s is still relevant. Not that all young people ignore elderly old-fashioned people. Trying to mimic experts was the earliest approach to install intelligence in machines. Rules and thumb rules of experts get processed through their knowledge base to come out with answers for questions which often surprised the ordinary souls.
How Rules rule?
In this approach knowledge is represented symbolically, and logical rules framed to simulate human intelligence. Knowledge can also be coded into rules and represented as trees which can be searched. Inverse deduction is one of the methods used to arrive at a result based on available conclusions. To get a feel of how GOFAI algorithms work lets take up a simple rule set and its implementation in prolog.
From the conclusions or data such as ‘Cow eats grass’, ‘Sheep eats grass’, ‘Horse eats horse grams’, ‘Grass is plant material’, ‘Horse grams is plant material’, ‘Herbivores eat plant material’, a general concept or result that ‘Horse is herbivores’ can be arrived at. The below prolog program can answer whether cow is a herbivore and lion is a carnivore.
% Facts
eats(cow, grass).
eats(sheep, grass).
eats(horse, horse_grams).
eats(deer, grass).
eats(lion, deer).
is_plant_material(grass).
is_plant_material(horse_grams).
is_animal_material(deer).
% Rule: Herbivores eat plant material
herbivore(X) :- eats(X, Y), is_plant_material(Y).
% Rule: Carnivores eat animal material
carnivore(X) :- eats(X, Y), is_animal_material(Y).
% Query: Is Horse a herbivore?
?- herbivore(horse).
% Query: Is Lion a carnivore?
?- carnivore(lion).
% Query: Is Horse a herbivore?
?- herbivore(horse).
Prolog program
We define the facts about what each animal eats and that grass and horse grams are plant material. The rule herbivore(X) states that an animal X is a herbivore if it eats something (Y) that is plant material. Finally, we query whether “horse” satisfies the condition of being a herbivore.
When we run this Prolog program, it will deduce that “Horse is Herbivores” based on the given data. Unlike the imperative programming languages such as python or Java where we explicitly specify control flow using if-then-else statements, Prolog is a declarative language where we specify what we want to achieve rather than how to achieve it. Programs in Prolog consist of a set of facts (statements about the world) and rules (logical relationships). Prolog’s execution model is based on resolution, which involves searching for solutions by unifying facts and rules.
Did GOFAI leave its mark?
GOFAI is well-suited for building expert systems that emulate human expertise in specific domains. Examples include medical diagnosis, legal reasoning, financial advice, and troubleshooting complex machinery. MYCIN was an early expert system developed in the 1970s by Edward Shortliffe at Stanford University. Its primary purpose was to assist doctors in diagnosing and recommending treatments for patients with blood diseases, particularly bacterial infections.
Limitations of GOFAI
There are several notable limitations that have influenced the shift towards other AI approaches like machine learning and neural networks. Here are some key limitations:
- They lack the flexibility to adapt to new or unexpected scenarios.
- GOFAI systems do not learn from experience.
- The challenge of connecting abstract symbols to real-world objects and experiences (known as symbolic grounding problem) makes it difficult for these systems to understand and interact with the world in a meaningful way.
- As the complexity of the problem domain increases, the number of rules and symbols required can grow exponentially, making the system difficult to manage and scale.
- GOFAI systems are not well-suited for dealing with uncertainty and probabilistic reasoning.
Why should we get along with this old-fashioned guy?
GOFAI provides a foundational understanding of AI principles and techniques. It is still taught in AI courses to help students grasp the basics of symbolic reasoning and logic. You may wonder the relevance of this old fashioned fellow in the current AI world where we hear a lot about LLMs like ChatGPT.
- GOFAI systems are often more transparent and easier to understand compared to complex machine learning models. This makes them valuable in applications where explainability is crucial, such as legal and medical decision-making.
- Many industries still rely on rule-based systems for tasks like business process automation, compliance checking, and expert systems. These systems benefit from the structured and deterministic nature of GOFAI.
- Modern AI often integrates GOFAI principles with machine learning techniques to create hybrid systems. For example, combining symbolic reasoning with neural networks can enhance the interpretability and robustness of AI models.
- GOFAI’s methods for knowledge representation, such as semantic networks and ontologies, are still used in fields like natural language processing and information retrieval.
I have pointed out how the AI world is taking a leap back to GOFAI in my earlier blog – ‘Back to basics: Machine Learning for Human Understanding ( http://ai-positive.com/2024/05/30/back-to-basics-machine-learning-for-human-understanding/ ). I will also discuss in future how the GOFAI concepts (if not the technology) can be used to make sense of the jungle of models and algorithms prevalent in AI.
Word press AI Feedback
The content provides a thorough overview of the Good Old Fashioned Artificial Intelligence (GOFAI), explaining its significance, limitations, and relevance in the current AI landscape. It effectively communicates the concepts and applications of GOFAI, making it informative for readers seeking to understand its fundamental principles.
Actions to consider:
- Consider breaking down complex sentences for easier comprehension.
- Provide more specific examples or case studies to illustrate the practical applications of GOFAI.
- Include visuals or diagrams to enhance the understanding of symbolic reasoning and logic for readers.