Reasoning Under Uncertainty

What is symbolic artificial intelligence and how does it work?

Symbolic AI stores knowledge as symbols and IF-THEN rules, then draws conclusions with an inference engine. Learn its parts, a worked example and its limits.

On this page
  1. Symbols and rules
  2. The parts of a symbolic system
  3. How inference works
  4. Where symbolic AI was used
  5. Strengths and weaknesses
  6. How it differs from learning from data
  7. Summary

Symbolic artificial intelligence, often called symbolic AI, is an approach in which a program represents knowledge as symbols, such as words, labels or logical statements. It reaches new conclusions by applying rules to those symbols. A symbolic system works with a knowledge base, which holds facts and rules, and an inference engine, which applies the rules to derive new facts from known ones. For much of AI’s early history, from the 1950s into the 1980s, this was a dominant approach. In his 1985 book, John Haugeland called it “good old-fashioned AI,” and the short form GOFAI is still used.

Symbols and rules

A symbol is a label for a thing, a property or an idea. Words such as “bird,” “has feathers” and “can fly” are all symbols. A system does not need a picture of a bird to reason about birds. It needs the symbols and the rules that connect them.

Rules are usually written in an IF-THEN form:

IF an animal has feathers AND an animal can fly
THEN the animal is a bird

A rule like this is easy to read and easy to check. It is also strict. A penguin has feathers but cannot fly, so this rule would not classify a penguin as a bird. Rules that allow exceptions, or that express degrees of confidence, need more machinery, which is why uncertainty is a major topic in symbolic AI. Rules like this one are a simple form of logic. Logic with variables and quantifiers is covered in first order predicate logic in artificial intelligence examples.

The parts of a symbolic system

  • Knowledge base. The stored facts and rules. How that knowledge is structured is studied under knowledge representation approaches in AI, which covers frames, semantic networks and logic.
  • Inference engine. The procedure that applies rules to facts. It decides which rules can fire and what new facts they produce.
  • Working memory. Many systems keep the facts established during a session, so the engine can build on them as it goes.
  • Explanations. Many rule-based systems could show which rules led to an answer, which made their reasoning easier to check.

How inference works

Inference engines follow a few standard patterns, which are described in types of inference in artificial intelligence. Two of the most common are forward and backward chaining.

Forward chaining starts with known facts and applies rules until no new facts appear or a goal is reached. Here is a short example, with two rules and three starting facts.

  1. IF an animal has feathers AND an animal can fly, THEN it is a bird.
  2. IF an animal is a bird AND it can swim, THEN it is a swimming bird.

The starting facts are that the animal has feathers, can fly and can swim. Rule 1 fires, so the engine adds “it is a bird.” Now rule 2 can fire, so the engine adds “it is a swimming bird.” No rule adds anything new, so the process stops.

Backward chaining starts with a goal and works in reverse. To test whether the animal is a swimming bird, the engine finds rule 2, which needs “is a bird” and “can swim.” It then looks for a rule that concludes “is a bird,” finds rule 1, and checks that rule’s conditions against the facts. If they hold, the goal is proven.

This example is a toy. Real knowledge bases have many more rules, and the rules are often written in a more formal logic.

Where symbolic AI was used

Symbolic AI powered many expert systems in the 1970s and 1980s. These programs captured the knowledge of specialists as rules, and they were used for tasks such as diagnosing faults in equipment and configuring complex products. Planning programs searched through many possible states, guided by the methods in types of heuristic search in artificial intelligence.

Today, symbolic methods still appear in rules engines inside business software, in constraint solvers used for scheduling, and in knowledge graphs. Knowledge graphs are a modern relative of the graph-based structures in semantic network in artificial intelligence examples. Symbolic methods also form one half of many neuro-symbolic systems, which combine them with neural networks.

Strengths and weaknesses

Symbolic systems have real strengths:

  • The reasoning is transparent. You can trace which rules produced an answer.
  • Expert knowledge can be written down directly, without a large dataset.
  • Behavior is predictable on the cases the rules cover.

They also have clear weaknesses:

  • Someone has to write every rule, and collecting that knowledge is slow and costly.
  • The systems are brittle. A case the rules do not cover may get no answer or a wrong one.
  • Messy input, such as images or noisy sensor readings, is hard to turn into clean symbols.
  • Basic rules are all-or-nothing, so extra methods are needed for uncertain facts. The wider topic is symbolic reasoning under uncertainty in artificial intelligence.

How it differs from learning from data

Machine learning systems learn patterns from examples rather than from written rules. Symbolic systems take the opposite approach: experts supply the knowledge, and the system applies it. Learning from data copes well with messy inputs but can be hard to explain. Symbolic AI is easier to explain but depends on people writing the rules. Learning from labeled examples, the subject of supervised learning types with examples, is the usual alternative.

Summary

Symbolic AI stores knowledge as symbols and rules, then uses inference to draw conclusions. It is transparent and works well when knowledge can be written down clearly. It needs extra methods when facts are uncertain, and it struggles with messy data unless it is combined with other techniques.

The complete guide to reasoning under uncertainty

Symbolic Reasoning Under Uncertainty in Artificial Intelligence
Read the guide

Keep exploring

Guides from other topics

All topics →