key: cord-0757344-gi8c1omv authors: Capotorti, Andrea; Formisano, Andrea title: Management of uncertainty orderings through ASP date: 2007-05-09 journal: Modern Information Processing DOI: 10.1016/b978-044452075-3/50012-1 sha: 93185810db7edfb5e3ecab72eee8a1f6b2ecd3f7 doc_id: 757344 cord_uid: gi8c1omv Traditionally, most of the proposed probabilistic models of decision under uncertainty rely on numerical measures and representations. Alternative proposals call for qualitative (non-numerical) treatment of uncertainty, based on preference relations and belief orders. The automation of both numerical and non-numerical frameworks surely represents a preliminary step in the development of inference engines of intelligent agents, expert systems, and decision-support tools. In this paper we exploit Answer Set Programming to formalize and reason about uncertainty expressed as belief orders. The availability of ASP-solvers supports the design of automated tools to handle such formalizations. Our proposal reveals particularly suitable whenever the domain of discernment is partial. We first illustrate how to automatically “classify”, according to the most well-known uncertainty frameworks, any given qualitative uncertainty assessment. Then, we show how to compute an enlargement of the assessment, to any other new inference target. Uncertainty orderings are receiving wider and wider attention in AI literature, either as theoretical tools to deal directly with belief management [1, 6, 8] , or inside the more articulated framework of decision-making theory [9] [10] [11] 13] . This burst of interest translates into a wider application of uncertainty orderings, as qualitative assessments better fit the nature of human judgments, while do not suffer intrinsic difficulties typical of numerical elicit at ions. As happened for numerical methods. there have been proposed various uncertainty orderings different from traditional probabilistic ones. The main purpose of all of these proposals is to generalize the "additive" character of (unconditional) probabilities. Clearly, different generalizations are possible and several families of qualitative judgments appeared in literature. All of them share common basic properties, but differentiate on the way of combining pieces of information. By following [5, 8, 16, 17] , in [2] [3] [4] various preference orderings have been fully classified according to their agreement with the most well-known numerical models; both for "complete" (i.e. defined on well structured and closed supports) and "partial" assessments (i.e. defined only among some of the quantities involved). Such axiomatic classifications revealed a coarser grained differentiation with respect to numerical models: different uncertainty measures share the same qualitative properties in combining pieces of information. The detected classes have been characterized by identifying specific axioms that the orderings must satisfy. Apart from qualitative probabilities, such axioms are of direct declarative reading, as they involve only logical and preference relations. As we will see, such a declarative character supports a straightforward translation of the axioms within the logical framework of ASP. Consequently, we immediately obtain an executable ASP-specification able to discriminate between the different uncertainty orderings. More specifically, this is done by exploiting an ASP-solver (in our case SModels, cf. [18] ) that determines which axioms are violated by the given preference relation expressing user's believes comparisons. Notice that, by proceeding in this way, we actually invert the usual attitude towards qualitative management of uncertainty. In fact, specific axioms are usually set in advance, so that only relations satisfying them are admitted. Here, on the contrary, given a fixed preference relation, our goal consists in ascertain which are the reasonable rules to work with. In this paper, we mainly focus on the treatment of partial orderings, even if also total relations can be dealt with by the very same machinery. The rational behind this choice is that incomplete assessments appear more realistic models of phenomena which are open to include new (and maybe unexpected) evidences or considerations. In this frame of mind, an interesting problem is that of finding an extension of a preference relation so as to take into account any further event extraneous to the initial assessment. This should be achieved in a way that the initial ordering and its extension satisfy the same axioms. Hence, first, the initial (partial) preference relation is classified by identifying its characterizing rules Then, by exploiting the same approach the extension sought for is determined. In [2] [3] [4] axioms have been introduced to distinguish alternative possible approaches to qualitative uncertainty. In particular, according to the major uncertainty frameworks, a full classification of partial orderings has been proposed in [4] . In what follows we face a problem left open in [4] . Namely, we propose an inferential system to classify a given partial ordinal relation into one of the classes. Let us start by briefly recalling the basic notions on uncertainty orderings and on their axiomatic classification. We will not enter into the details of the motivations for such classification, the reader is referred to [2] [3] [4] . The domain of discernment will be represented by a finite set of events £ = {Ei,... ^E^}, Among them, (p and Q. will denote the impossible and the sure event, respectively. The events in S are seen as the relevant propositions on which the subject of the analysis can, or wants, to express his/her opinion. Hence, usually S does not represent a full model, i.e. it does not comprehend all elementary situations and all of their combinations. For this reason, a crucial component of partial assessments is the knowledge of the logical relationships holding among the events ^^^'s. Usual relationships are those of incompatibility, implication, combination and equivalence. Anyhow, any logical constraint can be potentially expressed. Such constraints are usually represented as a set C of clauses among the Ei^s and such clauses are intended to be always verified. Taking into account C, the family 8 spans a minimal Boolean algebra As containing S itself. Note that As is only implicitly defined via S and C and it is not a part of the assessment. Anyway, As will be referenced as a supporting structure. More formally, we have: Definition 1. Let £^ be a set of events and C a collection of constraints on S. As is the minimal algebra {A, V, A,"", (/), Q) satisfying C and such that S <^ A. Clearly, such an algebra induces a lattice structure on A. The ATOMS of As are the minimal elements of the (sub-)lattice As \ {}• Consequently, each event corresponds to a set of atoms, and As is (partially) ordered by set inclusion. An useful piece of notation: in what follows, given any binary relation R, the writing ^{ARB) will mean that the pair {A,B) does not belong to R. As be an algebra of events. A binary relation =^* over ^ is a (TOTAL) PREFERENCE ORDER if it satisfies the following conditions: (Al) ^* is a pre-order, i.e. it is reflexive, transitive, and total; (A2) (/) ^* 1) and -(O ^* c/)); (A3) for afl events A,B, A C B ^ {A ^'^ B). Let =^* be a total preference order. Then, ~* is its SYMMETRICAL PART, i.e. \/Ei,E2 {El ~* E2 ^ El ^* E2 A E2 ^* ^1). Moreover, -<* is the ASYMMET-RICAL PART of ^*, i.e. yEi,E2 {El -<* E2 ^ Ei ^"^ E2 A -(E2 ~* £'1)). Let =^ and -< be two binary relations over a set of events f, such that El ^ E2 -^ El -i E2. The pair (^, -^) is a WEAK PREFERENCE STRUCTURE for S {w.p.s.^ for short) if exists a total preference order ^* over As such that: Ei,E2 e S {{El 4E2 ^ El ^* E2) A {El 0 sup X^ILi ^ii^i -bi) < 0 implies that Ai ~ Bi, for alH = 1,..., n (a^, bi denote the indicator functions of Ai^Bi, resp.). Comparative believes. A w.p.s. (=: <^, -<) for 8 can be extended to a total preference order ^* over As representable by a belief function or by a n-monotone function A-5^-(0^C). Comparative plausibilities. A w.p.s. (^, -<) for S can be extended to a total preference order =4* over As representable by a plausibility function or by a nalternating function (with n > 2) iff for all A^B^C^D e S s.t. A-.D). Comparative upper-probabilities. A w.p.s. {^, -<) for S can be extended to a total preference order ^* over As representable by an upper-probability function or by a ^-alternating function^ iff for all A.BeS A-r} and {q}. If we add the rule (actually, a constraint) ^-g to P, then we rule-out the second of these answer sets, because it violates the new constraint. This simple example reveals the core of the usual approach followed in formalizing/solving a problem with ASP. Intuitively speaking, the programmer adopts a "generate-and-test" strategy: first (s)he provides a set of rules describing the collection of (all) potential solutions. Then, the addition of a group of constraints rules-out all those answer sets that are not desired real solutions. To find the solutions of an ASP-program, an ASP-solver is used. Several solvers have became available (cf. [18] , for instance), each of them being characterized by its own prominent valuable features. In this work we choose smodels as solver, together with its natural front-end Iparse [14] . Expressive power of ASP, as well as, its computational complexity have been deeply investigated. The interested reader can refer to the survey [7] , among others. Let us give a simple example of ASP-program. In doing this, we will recall the syntax and the main features of Iparse/smodels which will be exploited in the rest of the paper (see [14] , for a more details). The problem we want to formalize in ASP is the well-known n-queens problem: "Given a n x n chess board, place n queens in such a way that no two of them attack each other". The two clauses below state that a candidate solution is any disposition of the queens, provided that each column of the board contains one and only one queen. (The fact that a queen is placed on the n^^ column and on the m*^ row is encoded by the atom queen(n,m).) ^ pos(l..n). l{queen(Col,Row) : pos(Col)}l :-pos(Row). The second rule is a particular form of constraint available in smodels' language. where: the conditions {searchspace) in the body define the set of objects of the domain to be checked; the atom {property.def) in the head defines the property to be checked; the conjunction (range-def) defines the possible values that the property may take on the objects defined in the body, namely by providing a conjunction of unary predicates each of them defining a range for one of the variables that occur in (property-de f) but not in {searchspace) \ k and m are the minimum and maximum number of values that the specified property may take on the specified objects. We now introduce two constraints, in order to rule out those placements where two queens control either the same row or the same diagonal of the board: ^ Here is one of the answer sets produced by smodels, when fed with our program (in this case we put n= 8): Answer: 1. queen(4,l) queen(6,2) queen(l,3) queen(5,4) queen(2,5) queen(8,6) queen(3,7) queen (7, 8) Notice that I parse offers some elementary built-in arithmetic functions (such as abs(), in the above clause) that can be used to perform simple arithmetics. More in general, I parse allows the user to employ user-defined C or C+H-functions within an ASP-program. The object code of these functions is linked with I parse at run time (cf. [14] ). We exploited this feature (not available in some other solvers) to implement a basic library of functions aimed at handling sets and operation on sets. The pair Iparse/smodels constitutes an essential and neat tool for fast prototypical development. Notable facilities come from the simple albeit useful integration capabilities with the C programming language, the prompt availability of the source-code and documentation, and the ease of use. Our first task consists in writing an ASP-program able to classify any given w. p. s. (^,^) w.r.t. the axioms seen in Sec. 1 (Except for (CP), that, up to our knowledge, does not admit a purely declarative formulation). We start by defining in ASP the predicates prec(•,•), precneq(•,•), and equiv(-,-), to render the relators =: <(, -<, and ~, resp. Moreover, the fact of "being an event" (i.e. a member oiS) is stated through the monadic predicate event(-).^ Auxiliary predicates/functions are used to render set-theoretical construes, such as fl, U, and C, whose implementations rely on user-defined C-libraries. The characterization of potential legal answer sets is done by asserting properties of prec(-,-), precneq(-,-), and equiv(-,-), as follows: Having in mind (B') of Sec. 1, this clause is of immediate reading: the fact failsBl is true (i.e. belongs to the answer set) whenever there exist events falsifying (B'). All other axioms have been treated similarly. When smodels is fed with such program and a description of an input preference relation (i.e., a collection of facts of the forms prec(-,-), precneq(•,•), and equiv(-,-)), different outcomes may be obtained: a) If no answer set is produced, then the input weak preference structure violates some basic requirement, such as axioms (A1')-(A3'). b) Otherwise, if an answer set is generated, there exists a numerical (partial) model representing the input weak preference structure. Moreover, the presence in the answer set of a fact of the form faiIsC (say failsLl, for example), witnesses that the corresponding axiom ((L') in the case) is violated by the given preference order. Consequently, the given order (as well as its extensions) is not compatible with the uncertainty framework ruled by C (in the case of failsLl, the given order cannot be represented by a partial Lower probability). prec(B,A) . precneq(C,D). precneq(E,C). precneq(E,D). precneq(F,A). equiv(AuE,AuC). Due to events' meaning, such order seems reasonable. If it is given as input to smodels, the answer set found includes the facts failsBl and failsWC. This means that the given preference relation agrees with the basic axioms, however it cannot be managed by using neither a Probability nor a Belief function. Nevertheless, one can use comparative Lower probabilities or comparative Plausibilities. D An interesting problem is that of finding an extension of a preference relation so as to take into account any further event extraneous to the initial assessment. This should be achieved in a way that the extension retains the same character of the initial order (e.g., both satisfy the same axioms). More precisely, let be given an initial (partial) assessment expressed as a (partial) order ^ over set of known events S. Assume that =<( satisfies the axioms characterizing a specific class, say C, of orders (cf. Sec. 3). Consider a new event S (not in £), imphcitly described by a collection C of set-theoretical constraints involving the events of S. In the spirit of [5, Thm. 3] , the problem we are going to tackle is: Determine which is the "minimal" extension ^+ (over £ U {S}) of =^, induced by the new event, which still belongs to the class 6. In other words, we are interested in ascertaining how the new event S must relate to the members of 8 in order that =^"^ still is in 6. To this aim we want to determine the sub-collections £$, >V£s, Us, and WZ^s, of S so defined: E e Cs iff no extension =4* of ^ can infer that S ^* ^ E G yVCs iff no extension ^* of ^ can infer that S ^* E E G ZYs iff no extension =<; * of ^ can infer that ^ ^* S E G WUs iff no extension =^* of ^ can infer that ^ ^* S Consequently, in order to satisfy the axioms characterizing 6, any weak preference structure (^~^,-<"^) extending (=^,^) must, at least, impose that: W^s, S -<+ E VE G ZYS, S ^+ E VE G WUS. We describe now an ASP-program that solves this problem by taking advantage from the computation done during the classification phase: It gets as input the knowledge regarding the satisfied axiom(s), the preference and logical relations on the original set of events, and the description of the new event (see Example 2) . The handling of the axioms is done by ASP-rules of the form (we give here the rule for (L'). Other axioms are treated similarly): :-holdsLl, event(A;B), empty(N), empty(AnB), precneq(N,A), prec(AuB,B). Rules of this kind (actually, constraints, in the sense described in Sec. 2), declare "undesirable" any extension for which the axiom is violated. For instance, consider a ground instance of the above rule; whenever the fact holdsLl is present (i.e. is true in an answer set), then to make the (ground) clause satisfied, at least one of the other literals must not belong to the answer set. (Notice that, these literals are all true exactly when (L') is violated.) Consequently, in order to activate this constraint (i.e. to impose axiom (L'), for the case at hand) it suffices to add the fact holdsLl to the input of the solver. A further rule describes the potential answer set we are interested in: This rule simply asserts that any computed answer-set must predicate on each pair A,B of events by stating exactly one, and only one, of the three facts precneq(A,B), equiv(A,B), and precneq(B,A). Then, smodeis calculates the answer sets fulfilling the desired requirements and encoding "legal" total orders. The collections Cs, W£s, Us, and WUs can be obtained by computing the intersection Cn of all these answer sets. (Or, equivalently, by computing the set of logical consequences of the ASP-program. Notice that, in general, Cn needs not to be an answer set by itself.) Unfortunately, not all the available ASP-solvers offer the direct computation of Cn as a built-in feature (DLV, for instance does, while smodels does not, cf. [18] ). In general, a simple inspection of the answer sets generated by smodels allows one to detect the minimal extension of the preference relation which is mandatory for each total order. We designed a simple post-processor which filters smodels' output and produces the imposed extension of =: <(. Example 2. Consider the weak preference structure of Example 1 and the new event S = The real state of having SARS subject to these restrictions: ScF and FflEcS. Since in Example 1 we discovered that the initial preference relation satisfies axiom (PL'), we want to impose such axiom and compute the extension of the initial order. Once filtered smodels' output, we obtained the following result:'^ precneq(S,AuC) precneq(S,AuE) precneq(S,D) precneq(S,A) precneq(S,17) prec(0,S) prec(S,F) ... showing that, apart from obvious relations induced by monotonicity, no significative constraint involving S can be inferred. Since S and E can be freely compared, this result suggests that either further investigation about relevance of the clinical test or a revision of the initial preference relation, should be performed. D The availability of automated tools able to extend preference orders, whenever new knowledge (new events) is acquired, directly suggests applications in expert systems and decision-support tools. In automated diagnosis, planning, or problem solving, to mention some examples, one could easily imagine scenarios where knowledge is not entirely available from the beginning. We could outline how a rudimental inference process could develop, by identifying the basic steps an automated agent should perform: 0) Acquisition of an initial collection of observations (events) about the object of the analysis, together with a (qualitative) partial preference assessment; 1) Detection of which is the most adequate (i.e., the most discriminant) uncertainty framework, through a "preference classification phase" (cf. Sec. 3); 2) Whenever new knowledge becomes available, refine agent's description of the real world by performing order extension (which substantially corresponds to knowledge inference. Cf. Sec. 4). The results of step 2) could be then exploited to guide further investigations on the real world, in order to obtain new information. Then, step 2) will be repeated and the process will continue until further pieces of knowledge are obtainable or an enough accurate degree of believe is achieved. ^ We list here only the portion of the extension involving the new event S. In this paper we started an exploration of the potentialities offered by ASP for building decision support systems based on qualitative judgments. The implementation of what could be thought as a kernel of an inference engine sprouted almost naturally. Certainly, our research is at an initial stage and the implementation we reported on is just a prototype. Next step in this research would consist in validating the proposed approach by means of a number of benchmarks aimed at testing our prototype on the ground of real applications. Results of this activity will help in consolidating the prototype. In this context, a further goal consists in completing our approach so as to handle comparative Probabilities too. Since no axiomatic characterization of comparative Probabilities is known (up to our knowledge), this aim should be achieved through integration with efficient linear optimization tools (such as the column generation techniques). More in general, we envisage the design of a full-blown automated system which integrates different (in someway complementary) techniques and methods for uncertainty management; comprehending mixed numerical/qualitative assessments and conditional frameworks. Fusing interval preferences Non additive ordinal relations representable by lower or upper probabilities Relationships among ordinal relations on a finite set of events Axiomatic characterization of partial ordinal relations Coherent qualitative probability Confidence Relations and Ordinal Information Complexity and expressive power of logic programming Belief Structure, Possibility Theory and Decomposable Confidence Measures on Finite Sets Decision-making under ordinal preferences and uncertainty A possibilistic logic machinery for qualitative decision A comparison of axiomatic approaches to qualitative decision making under possibility theory The stable model semantics for logic programming Generalized qualitative probability: Savage revisited Lparse 1.0 User's Manual Stable models and an alternative logic programming paradigm. The Logic Programming Paradigm: a 25-Year Perspective Varieties of modal (classificatory) and comparative probability Axiomatization of Qualitative Belief Structure Web resources for ASP solvers