An Improved Constraint-Propagation Algorithm for Diagnosis

Hector Geffner, Judea Pearl

Introduction

In the late 1980s, model-based diagnosis (MBD) emerged as a powerful framework for troubleshooting complex systems, such as digital circuits. Traditional approaches, like the Assumption-based Truth Maintenance System (ATMS), typically relied on a two-phase cycle: predicting system behavior based on healthy component assumptions and then resolving conflicts through global set-covering algorithms. However, as systems scaled, the combinatorial explosion of conflict sets rendered these global methods computationally prohibitive.

Hector Geffner and Judea Pearl addressed this bottleneck by introducing a distributed diagnostic algorithm. Their approach merges prediction and conflict resolution into a single, incremental process using local constraint propagation, significantly reducing the computational overhead for many common system architectures.

Distributed Constraint Propagation

The core innovation of the Geffner-Pearl algorithm is treating component health as a dynamic variable rather than a static assumption. By representing the system as a constraint network, the status of each component (e.g., $ok$ or $\neg ok$) becomes a node that participates in local message passing.

Transformation of a component into a node within a constraint network

In this distributed scheme, nodes exchange messages consisting of triplets: a value (such as a logic state), a weight representing the minimum number of faults required to produce that value, and a support set identifying the specific diagnoses. This local interaction allows the system to maintain and update explanations for all possible behaviors simultaneously. To ensure global consistency through local means, the algorithm employs "orthogonalization," which prevents the redundant counting of faults during message assembly.

Handling Complex Topologies

While the algorithm achieves linear complexity in singly-connected networks (trees), real-world circuits often contain loops. To manage these "loopy" or multiply-connected networks, the authors utilize a "cycle-cutset" method. By identifying a minimal set of assumption nodes that break all cycles, the complex graph is effectively treated as a family of simpler trees. Additionally, the algorithm introduces the $\Omega$ placeholder—a symbolic representation for any value not explicitly calculated—to keep state representations concise even within infinite value domains.

The Benchmark Circuit

The algorithm's efficacy was demonstrated using a standard diagnostic benchmark circuit composed of three multipliers ($M_1, M_2, M_3$) and two adders ($A_1, A_2$). This circuit serves as a testbed for identifying multiple faults and observing how the system incrementally updates its beliefs as new observations are introduced.

The diagnostic benchmark circuit consisting of multipliers and adders

In this example, the algorithm successfully identifies the most likely (minimal fault) diagnoses without requiring a separate, non-local set-covering step. Because the network maintains supports for every possible value at every point, it also provides immediate guidance for optimal test-point selection to discriminate between competing hypotheses.

Key Results and Insights

The Geffner-Pearl algorithm represents a significant shift toward localized, probabilistic-inspired reasoning in diagnosis. Key findings include:

  • Efficiency: The method achieves linear complexity for tree-like structures. In loopy networks, complexity is tied to the size of the cycle-cutset rather than the total number of components.
  • Incremental Updates: New observations do not require a full system re-evaluation; instead, information propagates through the network, updating only the affected supports.
  • Probabilistic Foundations: Although presented as a deterministic logic for minimal faults, the algorithm is a specialized simplification of Bayesian belief networks, optimized for efficiency in diagnostic tasks.

Limitations

Despite its improvements, the algorithm is primarily biased toward "minimal fault" explanations, assuming all components are equally likely to fail. While it identifies optimal diagnoses, it does not guarantee the discovery of all possible irredundant diagnoses. Furthermore, the preprocessing required to find an efficient cycle-cutset remains an NP-hard problem, though it is often manageable for the sparse networks typical of physical systems.

Summary updated

BibTeX
@inproceedings{geffner1987improved,
  author = {Hector Geffner and Judea Pearl},
  title = {{An Improved Constraint-Propagation Algorithm for Diagnosis}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1987},
}
Figure