← EDRS project

Rational Closure

Daniel Schlesinger · SCHDAN066@myuct.ac.za

Contribution

I developed the EDRS workbench end to end and used it to evaluate the alignment theorem, which states that Rational Closure (RC) and Most Specific Wins (MSW) yield identical predictions on every instance of a rule set satisfying three structural conditions. I also designed an optimised RC procedure that reduces the satisfiability calls required to evaluate the largest rule set from 98,304 to 102.

Approach

The idea behind Rational Closure

Rational Closure orders the statements of a knowledge base by their degree of exceptionality. A query is answered by discarding the most general ranks until its premise is consistent with the remaining statements, and then testing whether the conclusion follows. The alignment theorem is formulated with respect to RC, and both Lexicographic Closure and System W extend its ranking.

How it is computed

BaseRank

Statements whose premise is inconsistent with the remaining knowledge base are removed iteratively. Each removed layer is assigned the next rank, and any statement never removed receives rank $\infty$.

$$\mathcal{E}_0 = \mathcal{K}, \qquad \mathcal{E}_{i+1} = \{ \alpha \dent \beta \in \mathcal{E}_i : \overrightarrow{\mathcal{E}_i} \models \neg\alpha \}$$
Base rank of a query

The lowest rank at which the premise is consistent with the statements at that rank and above.

$$br_{\mathcal{K}}(\alpha) = \min \{ i : \overrightarrow{\mathcal{R}_{\geq i}} \not\models \neg\alpha \}$$
Entailment

Each instance $F$ is queried twice, once for $m$ and once for $\neg m$.

$$\mathcal{K} \models_{RC} F \dent m \iff br_{\mathcal{K}}(F) \lt br_{\mathcal{K}}(F \land \neg m)$$

Optimisation

Verifying the theorem requires querying RC on every complete feature pattern. Bank Marketing has 16,384 of these, and each requires several calls to the SAT solver. The central observation is that MSW and RC depend on a pattern solely through the set of rules applicable to it. Since many patterns share the same applicable rules, the workbench partitions them into equivalence classes by a direct lookup that requires no solver calls. It evaluates each class once and weights the result by the size of the class. The procedure is exact, and it is verified against the ungrouped computation on every pattern. In addition, a binary search over the ranks determines each base rank in $O(\log k)$ solver calls.

Satisfiability calls for the full pattern-space check
Rule setPatternsBeforeGroupedSpeed-up
Breast Cancer64400646×
Mushroom1,0246,1446693×
Bank Marketing16,38498,304102964×

On Bank Marketing, execution time is reduced from 3.24 seconds to 0.10 seconds.

Implementation

Results

When the assumptions hold

Rule setHoldout instancesAll instancesComplete patternsMSW = RC
Breast Cancer17569964100%
Mushroom2,0318,1241,024100%
Bank Marketing11,30345,21116,384100%
Total13,50954,03417,472100%

When the assumptions are violated

On a small scholarship rule set that violates the theorem's assumptions, RC and MSW diverge on a single pattern out of 32, which is precisely the pattern identified by the validator. They agree on all remaining patterns.

Documents