1 / 26

José Júlio Alferes Luís Moniz Pereira Centro de Inteligência Artificial - CENTRIA

A Compilation of Updates plus Preferences. José Júlio Alferes Luís Moniz Pereira Centro de Inteligência Artificial - CENTRIA Universidade Nova de Lisboa, Portugal. Pierangelo Dell’Acqua Dept. of Science and Technology - ITN Linköping University, Sweden. Contribution.

anaya
Download Presentation

José Júlio Alferes Luís Moniz Pereira Centro de Inteligência Artificial - CENTRIA

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A Compilation of Updates plus Preferences José Júlio Alferes Luís Moniz Pereira Centro de Inteligência Artificial - CENTRIA Universidade Nova de Lisboa, Portugal Pierangelo Dell’Acqua Dept. of Science and Technology - ITN Linköping University, Sweden

  2. Contribution • The paper presents a compilation of programs formalizing update plus preference reasoning into standard generalized logic programs, and shows the correctness of the transformation. • The compilation is based on: - a transformation into normal programs of sequences of general logic programs updates. - a transformation of logic programs with preferences.

  3. Update reasoning • Updates model dynamically evolving worlds. • Knowledge, whether complete or incomplete, can be updated to reflect world change. • New knowledge may contradict and override older one. New models may also be created by removing such contradictions. • Updates differ from revisions which are about an incomplete static world model.

  4. Preference reasoning • Preferences are employed with incomplete knowledge when several models are possible • Preferences act by choosing some of the possible models • They do this via a partial order among rules. Rules will only fire if they are not defeated by more preferred rules

  5. Preference and updates combined • Despite their differences preferences and updates display similarities. • Both can be seen as wiping out rules: • in preferences the less preferred rules, so as toremove models which are undesired. • in updates the older rules, inclusively for obtaining models in otherwise inconsistent theories. • This view helps put them together into a single uniform framework. • In this framework, preferences can be updated.

  6. LP Framework Atomic formulae: Aobjective atom not Adefault atom Formulae: L0¬ L1 ,... , Ln generalized rule every Li is an objective or default atom

  7. LP Framework Let N={ n1,…, nk } be a set of constants containing a unique name for each generalized rule. priority rule Zis a literal nr<nu or not nr<nu Z ¬ L1 , ... , Ln nr<nu means that rule r is preferred to rule u Let P be a set of generalized rules and R a set of priority rules. Then (P,R) is a prioritized logic program.

  8. Dynamic Prioritized Programs Let S={1,…,s,…} be a set of natural numbers. We call the elements iS states. Let (Pi,Ri) be a prioritized logic program for every iS, then {(Pi,Ri) : iS} is a dynamic prioritized program. Intuitively, the meaning of such a sequence results from updating (P1, R1) with the rules from (P2, R2), and then updating the result with … the rules from (Pn, Rn)

  9. Example Suppose a scenario where Stefano watches programs on football, tennis, or the news. (1) In the initial situation, being a typical italian, Stefano prefers both football and tennis to the news and, in case of international competitions, he prefers tennis over football. n1<n3 n2<n3 n2<n1¬ us x<y ¬ x<z, z<y f ¬ not t, not n (r1) t ¬ not f, not n (r2) n ¬ not f, not t (r3) P1 R1 In this situation, Stefano has two alternative TV programmes equally preferable: football and tennis.

  10. Example (2) Next, suppose that a US-open tennis competition takes place: P2 R2 us ¬ (r4) Now, Stefano's favourite programme is tennis. (3) Finally, suppose that Stefano's preferences change and he becomes interested in international news. Then, in case of breaking news he will prefer news over both football and tennis. not (n1<n3) ¬ bn not (n2<n3) ¬ bn n3<n1¬ bn n3<n2¬ bn P3 R3 bn ¬ (r5)

  11. Preferred Stable Models Let P = {(Pi,Ri) : iS} be a dynamic prioritized program, Q = { PiRi : iS }, PR = i(PiRi) , and M an interpretation of P. Def. Default and Rejected rules Default(PR,M) = {not A :  (A¬Body) in PR and M |=body} Reject(s,M,Q) = { r  PiRi : r’ PjRj, head(r)=not head(r’), i<js and M |=body(r’) }

  12. Preferred Stable Models Def. Unsupported and Unprefered rules Unsup(PR,M) = {r  PR : M |=head(r) and M |¹body-(r)} Unpref(PR,M) is the least set including Unsup(PR, M) and every rule r such that: • r’  (PR – Unpref(PR, M)) : M |=r’ < r,M |=body+(r’) and [not head(r’)body-(r) or(not head(r)  body-(r’) and M |=body(r))]

  13. Preferred Stable Models Def. Preferred stable models Let s be a state, P ={(Pi,Ri) : iS} a dynamic prioritized program, and M a stable model of P. M is a preferred stable model of P at state s iff M = least( [X - Unpref(X, M)]  Default(PR, M) ) where: PR = is(PiRi) Q = { PiRi : iS } X = PR - Reject(s,M,Q)

  14. Transformation Def. (s,P)transformation Let s be a state and P = {(Pi,Ri) : iS} a dynamic prioritized program. Let Q = isPi (s,P) = DLP(s,P)  rQ(r) DA  SPO

  15. DLP(s,P) Transformation The DLP(s,P) transformation models the dynamic aspects of update reasoning: DLP(s,P) = RP  UR  IR  DR  RR  CS

  16. DLP(s,P) Transformation (RP) Rewritten program rules Replace any rule in Fi=PiRi of the form: A¬ A1,…,An,not An+1,…,not Am with AFi¬ A1,…,An,A-n+1,…,A-m and of the form: not A¬ A1,…,An,not An+1,…,not Am with A-Fi¬ A1,…,An,A-n+1,…,A-m

  17. DLP(s,P) Transformation (UR) Update rules Ai ¬ AFi A-i ¬ A-Fi (IR) Inheritance rules Ai ¬ Ai-1, not A-Fi A-i ¬ A-i-1, not AFi (DR) Default rules A0-

  18. DLP(s,P) Transformation (RR) Rejection rules reject(nr)¬ AFt reject(nr)¬ A-Ft for any rule r in Fi=PiRi and for all i < t  s (CS) Current state rules A¬ As A-¬ A-s false¬ A, A-

  19. (r) Transformation The (r) transformation models preference reasoning. Notation If r = not A¬ A1,…,An,not An+1,…,not Am then ř = not ì Ă1,…, Ăn,not Ăn+1,…,not Ăm Let [.] be a function from literals to objective atoms: [A] = A [not A] = A-

  20. [head(ř)] ap(nr) bl(nr) bl(nr) ¬ ¬ ¬ ¬ ap(nr), not reject(nr) ok(nr), [body(r)], [body-(ř)] ok(nr), A-, Ă- ok(nr), C, Č (r) Transformation Suppose that Q = { r1,…, rk} (r) rules: consists of the following collection of rules, for Abody+(r), not Cbody-(r) and any rule uQ:

  21. ¬ ¬ ¬ ¬ ¬ ¬ ¬ ¬ ry(nr,nr1),…,ry(nr,nrk) not (nu< nr) (nu< nr), ap(nu) (nu< nr), bl(nu) ko(nu) reject(nu) not ok(nr), not reject(nr) [head(r)], C ok(nr) ry(nr,nu) ry(nr,nu) ry(nr,nu) ry(nr,nu) ry(nr,nu) false ko(nr) (r) Transformation

  22. Transformation (DA) Default atom rules Ă-¬ not Ă (SPO) Strict partial order false ¬nr< nr false ¬nr1< nr2, nr2< nr3, (nr1< nr3)-

  23. Properties of (r) Let s be a state, P = {(Pi,Ri) : iS} a dynamic prioritized program and M a stable model of P. Let Q = isPi . Then, the following properties hold: - rQ if reject(nr)M, then ok(nr)M - rQ if reject(nr)M, then ( ap(nr)M iff bl(nr)M ) - rQ if ko(nr)M iff rUnsup(Q,M) - rQ if reject(nr)M, then ( ko(nr) implies bl(nr) )

  24. Properties of (s,P) Thm. Correctness of  (s,P) Let s be a state and P a dynamic prioritized program. An interpretation M a stable model of (s,P) iff M, restricted to the language of P, is a preferred stable model of P at state s.

  25. Conclusions • We presented a compilation into normal programs of logic programs subject to updates and preferences combined under the stable model semantics. • The preference part of our transformation is modular or incremental wrt. the update part of the transformation. • The size of the transformed program (s,P) in the worst case is quadratic on the size of the original dynamic prioritized program P. • An implementation of the transformation is available at: http://centria.di.fct.unl.pt/~jja/updates/

  26. Future work • Garbage collection of dynamic logic programs. • Combining updates and preferences under the well-founded semantics. • Exploring some application areas: * abductive reasoning with updatable preferences. * dynamically reconfigurable web-sites which adapt to updatable user profiles.

More Related