Truth Maintenance Systems in Artificial Intelligence

Truth Maintenance Systems in Artificial Intelligence
— · 0 votes

A truth maintenance system is a reasoning component in artificial intelligence that records why the system believes each fact and revises those beliefs when something changes. It stores justifications for every conclusion, not only the conclusions themselves. When a fact is added, removed or contradicted, the system updates dependent beliefs and flags the ones that no longer hold.

  • A truth maintenance system keeps a justification for every belief so the knowledge base can be revised without starting over.
  • Justification-based, assumption-based and logic-based designs differ in how they record support and detect contradictions.
  • The system labels beliefs as in or out, and propagation changes those labels when a fact is added or retracted.
  • A contradiction triggers dependency-directed backtracking, which revises the smallest set of assumptions that caused it.
  • Knowledge representation and the TMS work together: one stores the facts, the other tracks why they are believed.

What a truth maintenance system does

A truth maintenance system, often shortened to TMS, is a component of an artificial intelligence program that manages the reasons behind each stored belief. The program's knowledge representation holds the facts and rules, while the TMS holds the justifications that connect them. This split lets the reasoning part focus on drawing conclusions and the TMS focus on keeping those conclusions honest.

Each belief in the system carries a record of what supports it. A conclusion is believed only while its support holds, so the TMS can withdraw it cleanly when that support disappears. Without such a record, a program would have to rebuild its entire knowledge base after every change, which becomes impractical as the base grows.

The TMS also protects the reasoning process from wasted work. When a fact is retracted, only the beliefs that depend on it are revisited. Unrelated conclusions stay in place, so the system avoids re-deriving everything from scratch.

Justifications and the in and out labels

A truth maintenance system marks each belief with a status, conventionally called in or out. An in belief is currently accepted, and an out belief is not accepted or has lost its support. Justifications define the conditions under which a belief becomes in or out.

A justification lists the beliefs that must be in for a conclusion to hold, and it can also list beliefs that must be out. The second kind lets the system reason from the absence of a fact, which is useful when a default applies unless something blocks it. Each change to a label can ripple through the justifications that mention it.

Tracking labels turns belief revision into a graph operation. The system follows justification links from a changed belief to its dependents and updates them in turn. Careful bookkeeping prevents loops where two beliefs support each other with no outside foundation.

Types of truth maintenance system

The types of truth maintenance system in artificial intelligence differ mainly in what they record and how they handle assumptions. The main families are justification-based, assumption-based and logic-based designs. Each family suits a different style of reasoning and a different way of representing knowledge.

A justification-based TMS records the support for each belief and revises labels when support changes. An assumption-based TMS separates the beliefs that follow from the current set of assumptions, so the system can reason about what would hold under different assumptions. A logic-based TMS treats the knowledge base as a set of clauses and uses a theorem prover to check consistency.

The choice among these designs depends on whether the program needs to explain beliefs, explore hypothetical situations, or prove consistency formally. A single application can combine ideas from more than one design, since the families describe mechanisms rather than rigid products.

TypeWhat it recordsWhere it fits
Justification-basedSupport links for each beliefExplanation and incremental revision
Assumption-basedBeliefs derived from named assumptionsHypothetical reasoning and contexts
Logic-basedClauses checked by a theorem proverFormal consistency checking

The truth maintenance cycle in operation

A truth maintenance system runs a repeating cycle of recording, propagating and repairing. The reasoning component adds a new conclusion and hands the TMS its justification. The TMS then decides whether the new belief is in and updates any beliefs that depend on it.

When the reasoning component retracts a fact, the cycle runs in reverse. The TMS marks the retracted belief out and follows the dependency links to any belief that relied on it. Dependent beliefs that lose all support are also marked out, while beliefs with another justification stay in.

Recording justifications at the moment a conclusion is drawn is cheaper than reconstructing them later. The system therefore treats the justification as part of the conclusion itself. This discipline keeps the dependency graph accurate as the knowledge base changes.

Handling contradictions with backtracking

A contradiction appears when the knowledge base supports two beliefs that cannot both be in. The truth maintenance system responds with dependency-directed backtracking, which traces the conflict back to the assumptions that produced it. The system then revises one of those assumptions instead of discarding unrelated work.

This repair is narrower than chronological backtracking, which undoes the most recent decision regardless of its role. Dependency-directed backtracking uses the recorded justifications to find the set of assumptions responsible for the conflict. Only that set is reconsidered, so the rest of the knowledge base keeps its state.

The result is a revised set of beliefs that avoids the contradiction while preserving as much prior reasoning as possible. The method works because the TMS knows why each belief is held, not merely that it is held.

Non-monotonic reasoning and defaults

Non-monotonic reasoning allows a system to withdraw a conclusion when new information arrives. A truth maintenance system supports this behavior because its beliefs depend on justifications that can be invalidated. Adding a fact can therefore remove a belief rather than only adding new ones.

Defaults illustrate the idea. A rule may conclude that a machine runs unless a fault is recorded, and the justification for that conclusion includes the absence of a fault. When a fault is entered, the justification fails and the conclusion is withdrawn automatically.

This behavior lets an artificial intelligence program revise its view of a situation as evidence changes. The TMS does not decide which default is right; it enforces the logical consequences of the justifications the program supplies.

Where truth maintenance fits in a larger system

A truth maintenance system is a supporting layer, not the whole reasoning engine. The knowledge representation supplies facts and rules, the inference engine draws conclusions, and the TMS tracks the support for those conclusions. The three parts cooperate, and the TMS stays useful only when the other two record their justifications faithfully.

Diagnostic and planning programs are natural hosts for this layer, because both revise conclusions as evidence arrives. A diagnostic system may withdraw a suspected cause when a test result rules it out. A planning system may drop a step when a precondition fails.

Building the layer requires care. The program must supply a justification for every belief it expects the TMS to manage, and it must report retractions honestly. A trained knowledge engineer or software specialist should design the representation and its justifications, because an error in the support links corrupts every conclusion that depends on them.

Limits to keep in mind

A truth maintenance system manages beliefs, not truth in any absolute sense. Its conclusions are only as sound as the facts and rules the program supplies, and a faulty justification produces a faulty revision. The mechanism organizes reasoning rather than validating its premises.

Dependency graphs can grow large, and propagating label changes through many justifications takes processing effort. The system also needs a policy for resolving contradictions, because the choice of which assumption to revise affects the outcome. These costs and choices belong to the design, not to the TMS alone.

For these reasons, a truth maintenance system is a tool for structured revision of a knowledge base. It rewards careful modeling and clear justifications, and it exposes weak reasoning as contradictions rather than hiding it.

Questions about truth maintenance systems

What are the types of truth maintenance system in artificial intelligence?

The main types of truth maintenance system in artificial intelligence are justification-based, assumption-based and logic-based designs. A justification-based system records support links for each belief, an assumption-based system reasons from named assumptions, and a logic-based system checks clauses with a theorem prover. The designs differ in what they record rather than in the basic goal of revising beliefs.

What is the difference between a TMS and a knowledge base?

A truth maintenance system tracks why beliefs are held, while a knowledge base stores the beliefs themselves. The knowledge base holds facts and rules, and the TMS holds the justifications that connect them. Together they let a program revise conclusions without rebuilding the whole store.

How does a truth maintenance system handle a contradiction?

A truth maintenance system handles a contradiction with dependency-directed backtracking. It traces the conflict back to the assumptions that produced it and revises one of those assumptions. Only the responsible set is reconsidered, so unrelated conclusions keep their state.

What does in and out mean for a belief?

An in belief is currently accepted by the system, and an out belief is not accepted or has lost its support. Justifications decide which label a belief receives. When support changes, the TMS propagates new labels to dependent beliefs.

Can a truth maintenance system reason with defaults?

Yes, a truth maintenance system supports default reasoning when the program writes the absence of a blocking fact into the justification. A default conclusion holds while that blocking fact is out, and the conclusion is withdrawn when the fact is added. This behavior is part of non-monotonic reasoning.

Does a truth maintenance system work on its own?

No, a truth maintenance system depends on a reasoning component that supplies justifications for each belief. The inference engine draws conclusions and reports retractions, and the TMS updates labels in response. The layer is only as reliable as the support links the program provides.

Read next

Preventive Maintenance

Latest articles