9.1 The Circuit-Diagnosis Problem


9.1 The Circuit-Diagnosis Problem

The circuit-diagnosis problem provides a good test bed for understanding the issues involved in belief revision. A circuit consists of a number of components (AND, OR, NOT, and XOR gates) and lines. For example, the circuit of Figure 9.1 contains five components, X1, X2, A1, A2, O1 and eight lines, l1, , l8. Inputs (which are either 0 or 1) come in along lines l1, l2, and l3. A1 and A2 are AND gates; the output of an AND gate is 1 if both of its inputs are 1, otherwise it is 0. O1 is an OR gate; its output is 1 if either of its inputs is 1, otherwise it is 0. Finally, X1 and X2 are XOR gates; the output of a XOR gate is 1 iff exactly one of its inputs is 1.

click to expand
Figure 9.1: A typical circuit.

The circuit-diagnosis problem involves identifying which components in a circuit are faulty. An agent is given a circuit diagram as in Figure 9.1; she can set the values of input lines of the circuit and observe the output values. By comparing the actual output values with the expected output values, the agent can attempt to locate faulty components.

The agent's knowledge about a circuit can be modeled using an epistemic structure MdiagK = (Wdiag, diag, πdiag). Each possible world w Wdiag is composed of two parts: fault(w), the failure set, that is, the set of faulty components in w, and value(w), the value of all the lines in the circuit. Formally, value(w) is a set of pairs of the form (l, i), where l is a line in the circuit and i is either 0 or 1. Components that are not in the failure sets perform as expected. Thus, for the circuit in Figure 9.1, if w Wdiag and A1 fault(w), then (l5, 1) is in value(w) iff both (l1, 1) and (l2, 1) are in value(w). Faulty components may act in arbitrary ways (and are not necessarily required to exhibit faulty behavior on all inputs, or to always act the same way when given the same inputs).

What language should be used to reason about faults in circuits? Since an agent needs to be able to reason about which components are faulty and the values of various lines, it seems reasonable to take

where faulty(ci) denotes that component ci is faulty and hi(li) denotes that line li in a "high" state (i.e., has value 1). Define the interpretation πdiag in the obvious way:

πdiag(w)(faulty(ci)) = true if ci fault(w), and πdiag(w)(hi(li)) = true if (li, 1) value(w).

The agent knows which tests she has performed and the results that she observed. Let obs(w) value(w) consist of the values of those lines that the agent sets or observes. (For the purposes of this discussion, I assume that the agent sets the value of a line only once.) I assume that the agent's local state consists of her observations, so that (w, w) diag if obs(w) = obs(w). For example, suppose that the agent observes hi(l1) hi(l2) hi(l3) hi(l7) hi(l8). The agent then considers possible all worlds where lines l1, l2, l3, l7 and l8 have value 1. Since these observations are consistent with the circuit being correct, one of these worlds has an empty failure set. However, other worlds are possible. For example, it might be that the AND gate A2 is faulty. This would not affect the outputs in this case, since if A1 is nonfaulty, then its output is "high", and thus, O1's output is "high" regardless of A2's output.

Now suppose that the agent observes hi(l1) hi(l2) hi(l3) hi(l7) hi(l8). These observations imply that the circuit is faulty. (If l1 and l3 are "high" and l2 is "low", then the correct values for l7 and l8 should be "low" and "high", respectively.) In this case there are several failure sets consistent with the observations, including {X1}, {X2, O1}, and {X2, A2}.

In general, there is more than one explanation for the observed faulty behavior. Thus, the agent cannot know exactly which components are faulty, but she may have beliefs on that score. The beliefs depend on her plausibility measure on runs. One way of constructing a reasonable family of plausibility measures on runs is to start with a plausibility measure over possible failures of the circuit. I actually construct two plausibility measures over failures, each capturing slightly different assumptions. Both plausibility measures embody the assumptions that (1) failures are unlikely and (2) failures of individual components are independent of one another. It follows that the failure of two components is much more unlikely than the failure of any one of them. The plausibility measures differ in what they assume about the relative likelihood of the failure of different components.

The first plausibility measure embodies the assumption that the likelihood of each component failing is the same. This leads to an obvious order of failure sets: if f1 and f2 are two failure sets, then f1 1 f2 if (and only if) |f1||f2|, that is, if f1 consists of fewer faulty components than f2. The order on failure sets, in turn, leads to a total order on worlds: w1 1 w2 iff fault(w1) 1 fault(w2). Using the construction of Section 2.7, this ordering on worlds can be lifted to a total order s1 on sets of sets of worlds. Moreover, by Theorem 2.7.5 and Exercise 2.49, s1 can be viewed as a qualitative plausibility measure. Call this plausibility measure Pl1.

Pl1 can also be constructed by using probability sequences. Let μm be the probability measure that takes the probability of a component failing to be 1/m and takes component failures to be independent. Then for a circuit with n components,

It is now easy to check that Pl1 is just the plausibility measure obtained from the probability sequence (μ1, μ2, μ3, ) using the construction preceding Theorem 8.4.12 (Exercise 9.1(a)). Note that the probability of a component being faulty tends to 0 as the subscript increases. However, at each measure in the sequence, each component is equally likely to fail and the failures are independent.

In some situations it might be unreasonable to assume that all components have equal failure probability. Moreover, the relative probability of failure for various components might be unknown. Without assumptions on failure probabilities, it is not possible to compare failure sets unless one is a subset of the other. This intuition leads to a different order on failure sets. Define f 2 f iff f f. Again this leads to an ordering on worlds by taking w1 2 w2 iff fault(w1) 2 fault(w2) and, again, s2 determines a plausibility measure Pl2 on Wdiag. It is not hard to find a probability sequence that gives the same plausibility measure (Exercise 9.1(b)).

Pl1 and Pl2 determine structures M1 and M2, respectively, for knowledge and plausibility: Mi = (Wdiag, diag, diag,i, πdiag), where diag,i(w) = (diag(w), P1iw) and P1iw(U) = P1i(diag(w) U), for i = 1, 2.

Suppose that the agent makes some observations o. In both M1 and M2, if there is a world w compatible with the observations o and fault(w) = , then the agent believes that the circuit is fault-free. That is, the agent believes the circuit is faultfree as long as her observations are compatible with this hypothesis. If not, then the agent looks for a minimal explanation of her observations, where the notion of minimality differs in the two structures. More precisely, if f is a failure set, let Diag(f) be the formula that says that exactly the failures in f occur, so that (M, w) Diag(f) if and only if fault(w) = f. For example, if f ={c1, c2}, then Diag(f) = faulty(c1) faulty(c2) faulty(c3) faulty(cn). The agent believes that f is a possible diagnosis (i.e., an explanation of her observations) in world w of structure Mi if (Mi, w) B Diag(f). The set of diagnoses the agent considers possible is DIAG(M, w) ={f : (M, w) B Diag(f)}. A failure set f is consistent with an observation o if it is possible to observe o when f occurs, that is, if there is a world w in W such that fault(w) = f and obs(w) = o.

Proposition 9.1.1

start example
  1. DIAG(M1, w) contains all failure sets f that are consistent with obs(w) such that there is no failure set f with |f| < |f| that is consistent with obs(w).

  2. DIAG(M2, w) contains all failure sets f that are consistent with obs(w) such that there is no failure set f with f f that is consistent with obs(w). (Recall that denotes strict subset.)

end example

Proof See Exercise 9.2.

Thus, both DIAG(M1, w) and DIAG(M2, w) consist of minimal sets of failure sets consistent with obs(w), but for different notions of minimality. In the case of M1, "minimality" means "of minimal cardinality", while in the case of M2, it means "minimal in terms of set containment." More concretely, in the circuit of Figure 9.1, if the agent observes hi(l1) hi(l2) hi(l3) hi(l7) hi(l8), then in M1 she would believe that X1 is faulty, since {X1} is the only diagnosis with cardinality one. On the other hand, in M2 she would believe that one of the three minimal diagnoses occurred: {X1}, {X2, O1}, or {X2, A2}.

The structures Mi, i = 1, 2, model a static situation. They describe the agent's beliefs given some observations, but do not describe the process of belief revision—how those beliefs change in the light of new observations. One way to model the process is to add time to the picture and model the agent and the circuit as part of an interpreted plausibility system. This can be done using a straightforward modification of what was done in the static case.

The first step is to describe the agent's set of local states and the set of environment states. In the spirit of the static model, I assume that the agent sets the value of some lines in the circuit and observes the value of others. Let o(r, m) be a description of what the agent has set/observed in round m of run r, where o(r, m) is a conjunction of formulas of the form hi(lj) and their negations. The form of the agent's local states depends on the answers to some of the same questions that arose in the Listener-Teller protocol of Section 6.7.1. Does the agent remember her observations? If not, what does she remember of them? For simplicity here, I assume that the agent remembers all her observations and makes an additional observation at each round. Given these assumptions, it seems reasonable to model the agent's local state at a point (r, m) as the sequence o(r, 1), , o(r, m). Thus, the agent's initial state at (r, 0) is 〈〉, since she has not made any observations; after each round in r, a new observation is added.

The environment states play the role of the worlds in the static models; they describe the faulty components of the circuit and the values of all the lines. Thus, I assume that the environment's state at (r, m) is a pair (fault(r, m), value(r, m)), where fault(r, m) describes the failure set at the point (r, m) and value(r, m) describes the values of the lines at (r, m). Of course, o(r, m) must be compatible with value(r, m): the values of the lines that the agent observes/sets at (r, m) must be the actual values. (Intuitively, this says that the agents observations are correct and when the agent sets a line's value, it actually has that value.) Moreover, fault(r, m) must be compatible with value(r, m), in the sense discussed earlier: if a component c is not in fault(r, m), then it outputs values according to its specification, while if c is in fault(r, m), then it exhibits its faultiness by not obeying its specification for all inputs. I further assume that the set of faulty components does not change over time; this is captured by assuming fault(r, m) = fault(r, 0) for all r and m. On the other hand, I do not assume that the values on the lines are constant over time since, by assumption, the agent can set certain values. Let diag consist of all runs r satisfying these requirements.

There are obvious analogues to Pl1 and Pl2 defined on runs; I abuse notation and continue to call these Pl1 and Pl2. For example, to get Pl1, first define a total order 1 on the runs in diag by taking r1 1 r2 iff fault(r1, 0)) 1 fault(r2, 0); then s1 gives a total order on sets of runs, which can be viewed as a plausibility measure on runs. Similarly, the plausibility measure Pl2 on diag is the obvious analogue to Pl2 defined earlier on wdiag.

Pl1 and Pl2 determine two interpreted plausibility systems whose set of runs in diag; call them 1 and 2. Since Pl1 and Pl2 put plausibility on all of diag, 1 and 2 are actually SDP systems (see Section 6.4). In each system, the agent believes that the failure set is one of the ones that provides a minimal explanation for her observations, where the notion of minimal depends on the plausibility measure. As the agent performs more tests, her knowledge increases and her beliefs might change.

Let DIAG(, r, m) be the set of failure sets (i.e., diagnoses) that the agent considers possible at the point (r, m) in the system . Belief change in 1 is characterized by the following proposition, similar in spirit to Proposition 9.1.1:

Proposition 9.1.2

start example

If there is some f DIAG(1, r, m) that is consistent with the new observation o(r, m+1), then DIAG(1, r, m + 1) consists of all the failure sets in DIAG(1, r, m) that are consistent with o(r, m+1). If all f Bel(1, r, m) are inconsistent with o(r, m+1), then Bel(1, r, m + 1) consists of all failure sets of cardinality j that are consistent with o(r, m+1), where j is the least cardinality for which there is at least one failure set consistent with o(r, m+1).

end example

Proof See Exercise 9.3.

Thus, in 1, if an observation is consistent with the pre-observation set of most likely explanations, then the post-observation set of most likely explanations is a subset of the pre-observation set of most likely explanations (the subset consisting of those explanations that are consistent with the new observation). On the other hand, a surprising observation (one inconsistent with the current set of most likely explanations) has a rather drastic effect. It easily follows from Proposition 9.1.2 that if o(r, m+1) is surprising, then DIAG(1, r, m) DIAG(1, r, m + 1) = , so the agent discards all her pre-observation explanations. Moreover, an easy induction on m shows that if DIAG(1, r, m) DIAG(1, r, m + 1) = , then the cardinality of the failure sets in DIAG(1, r, m + 1) is greater than the cardinality of the failure sets in DIAG(1, r, m). Thus, in this case, the explanations in DIAG(1, r, m + 1) are more "complicated" than those in Bel(1, r, m), in the sense that they involve more failures.

Belief change in 2 is quite different, as the following proposition shows. Roughly speaking, it says that after making an observation, the agent believes possible all minimal extensions of the diagnoses she believed possible before making the observation.

Proposition 9.1.3

start example

DIAG(2, r, m + 1) consists of the minimal (according to ) failure sets in {f : f f for some f DIAG(2, r, m)} that are consistent with o(r, m+1).

end example

Proof See Exercise 9.4.

As with 1, diagnoses that are consistent with the new observation are retained. However, unlike 1, diagnoses that are discarded are replaced by more complicated diagnoses even if some of the diagnoses considered at (r, m) are consistent with the new observation. Moreover, while new diagnoses in DIAG(1, r, m + 1) can be unrelated to the diagnoses in DIAG(1, r, m), in 2 the new diagnoses must be extensions of some discarded diagnoses. Thus, in 1 the agent does not consider new diagnoses as long as the observation is not surprising. On the other hand, in 2 the agent has to examine new candidates after each test.

This point is perhaps best understood by example.

Example 9.1.4

start example

Suppose that in the circuit of Figure 9.1, the agent initially sets l1 = 1 and l2 = l3 = 0. If there were no failures, then l4 and l7 would be 1, while, l5, l6, and l8 would be 0. But if the agent observes that l8 is 1, then in both systems the agent would believe that exactly one of X1, A1, A2, or O1 was faulty; that would be the minimal explanation of the problem, under both notions of minimality. Now suppose that the agent later observes that l7 = 0 while all the other settings remain the same. In that case, the only possible diagnosis according to Pl1 is that X1 is faulty. This is also a possible diagnosis according to Pl2, but there are three others, formed by taking X2 and one of A1, A2, or O1. Thus, even though a diagnosis considered possible after the first observation—that X1 is faulty—is consistent with the second observation, some new diagnoses (all extensions of the diagnoses considered after the first observation) are also considered.

end example




Reasoning About Uncertainty
Reasoning about Uncertainty
ISBN: 0262582597
EAN: 2147483647
Year: 2005
Pages: 140

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net