1 / 24

The SG family

The SG family. Different kinds of knowledge facts , rules and constraints Generic deduction problem: given a KB K =(…) and a SG Q , is Q deducible from K ?.  Different formalisms obtained depending on the composition of K and the definition of deduction.

Download Presentation

The SG family

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. The SG family • Different kinds of knowledge facts, rules and constraints • Generic deduction problem: given a KB K=(…) and a SG Q, is Q deducible from K? Different formalisms obtained depending on the composition of Kand thedefinition of deduction E.g. SG formalism: K={facts} deduction = projection

  2. SREC SEC SRC inference rules evolution rules SR SGC +rules +constraints SG facts

  3. Rules • A ruleexpresses knowledge of form «if Hypothesis then Conclusion» R1 Researcher Project member « Every researcher is member of a project » R2 Location Location near near « The relation near is symetrical (on locations) » • NB: a fact can be seen as a rule with empty hypothesis

  4. SG bicoloré • UnSG bicoloré est un SG muni d'une coloration de ses sommets avec deux couleurs {0,1} • On impose que le sous-graphe induit par les sommets de couleur 0soit un SG syntaxiquement correct (i.e. si un sommet relation est de couleur 0, tous ses voisins aussi) sinon l'application de la règle peut produire un SG "mal formé"

  5. emp emp poss Sommet frontière : sommet concept de couleur 0 ayant au moins un voisin (relation) de couleur 1 Manager Person role Compagny agent Employee Decision role Person object Hypothèse de la règle : sous-graphe de couleur 0 Conclusion de la règle :sous-graphe de couleur 1+ sommets frontières Salary

  6. near near G’ near Rule application • A rule is applicable to a fact G if there is a projection from its hypothesis to G R2 Location Location near near G Office:#125 … Office:#124 • The result of the rule application is obtained by adding its conclusion to Gaccording to(each frontier node c of the conclusion is merged with P(c)) • (+normalization if necessary)

  7. emp emp emp poss G Manager role Man:J CarBuilder: P Manager Person role Compagny R agent Employee Decision Employee role Person object Manager Salary Tc

  8. Logical semantics F X (Y H[XY]  Z C[XZ]) X: frontier node variablesY : other variables of color 0 nodesZ : variables of color 1 nodes XY(…  Z…) y x Researcher Project member  x (Res(x)   y Project(y)  member(x,y)) x Compagny Person worksIn • x ( y Person (x)  (Comp(y)  worksIn(x,y))   z (Salary(z)  poss(x,z))) poss Salary

  9. Définition usuelle des règles • Un lambda SG est obtenu à partir d'un SG G en distinguant certains sommets concepts génériquesc1 ... cn, n  0. On note l c1 ... cn G • F(lc1 ... cn G) : comme F(G) mais en laissant libres les variables associées à c1 ... cn • Un SG = un lambda-SG sans sommet distingué (n = 0) • Règles et contraintes : couples de lambda-SGs avec même nombre de sommets distingués • (l c11 ... c1n G1, l c21 ... c2n G2)

  10. R = (l c11 ... c1n G1, l c21 ... c2n G2) • Application de R sur un SG G selon une projection P : G1 -> G • on ajoute G2 à G • puis on fusionne chaque c2i avec P(c1i) • Interprétation logique : • on associe la même variable à c1i et c2i notons x1 ... xn ces variables • on construit la formule :x1...xn(F(l c11 ... c1n G1)  F(l c11 ... c1n G1)) Voir cas "hypothèse vide" et "conclusion vide"

  11. SG bicoloré versus couple de lambda-SG SI Personne : *x Personne aPourEnfant ALORS Parent : *x (Plaçons-nous dans le cadre des types conjonctifs) Personne Personne aPourEnfant Il faut que la conclusion puissecomporter des liens de coréférence Parent

  12. SR : facts + rules Deduction problem: given a KB K ={facts, rules} and a SG Q, is Q deducible from K,i.e. is there a sequence of rule applications leading to a SG answering Q (ie Q projects to it)? K facts Q P ruleapplications Forward and backward chaining mechanisms

  13. Soundness and completenessof graph operations The forward and backward chaining mechanisms are sound and complete : Q deducible from KiffF(Q) logically deducible from F(K) F(S), F(facts),F(rules) [completeness up to normality conditions for forward chaining]

  14. Decidability ? • Deduction in SR is only semi-decidable • SR is a computation model , ie one can simulate a Turing machine (représentation du problème de l'arrêt d'une MdT – pour une entrée particulière – dans SR) • Decidable specific cases? ex: range-restricted rule : no generic concept in conclusion (frontier nodes excepted) (1) build the full SG F from the KB KF exists! (2) check whether Q projects to F

  15. Plus généralement: • Observation : une application de règle est inutile si elle produit un graphe équivalent au graphe d'origine • Def : un SG G est dit plein (full) par rapport à un ensemble de règles R si toute application d'une règle de R sur G produit un graphe équivalent à G. • Pté : étant donnés G et R , s'il existe une dérivation menant à un graphe plein, alors la forme irredondante de ce graphe est unique (modulo isomorphisme) • Def : ensemble de règles à expansion finie : tel que pour tout G, il existe une séquence (finie) d'applications de règles menant à un graphe plein. En ce cas, déduction décidable

  16. SREC SEC SRC inference rules evolution rules SR SGC +rules +constraints SG facts

  17. worksWith in in SGC: facts and constraints • A constraint expresses knowledge of form • « if A is found so must B » (C+) • « if A is found B must not » (C-) HeadOfGroup Secretary Person Person in in Office near Office Office Positive constraint C+ Negative constraint C- « The boss office must be nearall secretary offices » « Persons working togethershould not share an office »

  18. in in in in in HeadOfGroup Secretary:K. HeadOfGroup Secretary near Office:#3 near Office:#2 Office Office near Secretary:L. C+ near near G Office:#10 "Idea" : G satisfies a positive constraint C+ if every projection from Condition(C+) to G can be extended to a projection from C+ to G on verra par la suite que cette définition doit être précisée

  19. worksWith worksWith in in Person Person Researcher:K. Researcher in in Office Office:#3 Office C- G Def: G satisfies a negative constraint C- if no projection from Condition(C-) to G can be extended to a projection from C- to G There is no projection from C- to G

  20. But previous definition is not good enough r r r t t t t G1 C+ G2 G1 and G2 are equivalent. Thus they should be both consistent or both inconsistent w.r.t. C+

  21. Definition : G satisfies a positive constraint C+ if every projection from Condition(C+) to irr(G) (the irredundant form of (G)) can be extended to a projection from C+ to irr(G). Ce problème de graphes équivalents qui ne se comportent pas de la même façon face à une contrainte ne se pose pas avec les contraintes négatives. Pourquoi ?

  22. Let C- be a negative constraint. Let G1 and G2 be equivalent SGs. G1 satisfies C- iff G2 does. • Def: two constraints C1 and C2 are equivalent if any SG that satisfies C1 also satisfies C2, and reciprocally. • Any negative constraint can be colored in 1 (interdiction part) yielding an equivalent constraint. • Any negative constraint can be transformed into an equivalent positive constraint " ifC-must [NotThere]" Les contraintes négatives peuvent donc être vues comme un cas particulier de contraintes positives

  23. worksWith worksWith worksWith Person Person Person Person in in in in Office Office C- C'- Person Person in in C+ NotThere Office

  24. SGC : facts and constraints KB K = {facts, constraints} SGC-Consistency: Given a KB K, is Kconsistent, ie do the facts satisfy the constraints? If K is not consistent, nothing can be deduced from it SGC-Deduction: Given a consistent KB K and a SG Q, is Qdeducible from K (is there a projection from Q to facts)? [ Variante : Etant donnés K et Q, a-t-on :(1) K consistante et (2) Q se déduit de K ? ] • Complexity • - Consistency is 2P-complete- If negative constraints only, co-NP-Complete

More Related