Docsity

Exploring Knowledge Representation Systems: AnsProlog, smodels, XSB, and dlv, Papers of Computer Science

Toggle sidebar
bg1
Transcribed by William Cushing
Sep. 29th
Project Discussion
If you excel, could be a paper/thesis (master’s thesis) – so open-ended.
Most are related to AnsProlog, some are related to future topics.
1) Use AnsProlog to represent important (Chemistry, Physics, ...) knowledge.
(motivated by: www.projecthalo.com)
answer AP-level questions
provide justifications
2) As above, but use smodels + XSB
XSB-Prolog is a kind of prolog, use in order to handle nonfiniteness
(numbers, for example)
3) Knowledge Representation System
smodels – multiple answers
dlv
xsb – focused searching
constraint LP
integer linear programming (cplex (simplex method?)) – numeric methods
Combine strengths in order to build a better higher level system.
4) Integrating Knowledge Bases (using smodels)
avoid forming inconsistencies (multiple answer sets)
go further:
implement credibility
5) Learning AnsProlog rules (machine learning)
[link to resources]
Generalize from observations to rules.
A basis already exists, project must go further. (masters thesis, and various
papers)
Learning problems are typically focused on input of ‘good’ examples – come up with
rules to generate examples.
[Will] note that a related field is optimization – not just learn the rules, but learn the
optimal ones (under some value function (size or speed))
6) AnsProlog + probability
pf3
pf4
pf5

Partial preview of the text

Download Exploring Knowledge Representation Systems: AnsProlog, smodels, XSB, and dlv and more Papers Computer Science in PDF only on Docsity!

Transcribed by William Cushing Sep. 29th Project Discussion If you excel, could be a paper/thesis (master’s thesis) – so open-ended. Most are related to AnsProlog, some are related to future topics.

  1. Use AnsProlog to represent important (Chemistry, Physics, ...) knowledge. (motivated by: www.projecthalo.com) answer AP-level questions provide justifications
  2. As above, but use smodels + XSB XSB-Prolog is a kind of prolog, use in order to handle nonfiniteness (numbers, for example)
  3. Knowledge Representation System smodels – multiple answers dlv xsb – focused searching constraint LP integer linear programming (cplex (simplex method?)) – numeric methods Combine strengths in order to build a better higher level system.
  4. Integrating Knowledge Bases (using smodels) avoid forming inconsistencies (multiple answer sets) go further: implement credibility
  5. Learning AnsProlog rules (machine learning) [link to resources] Generalize from observations to rules. A basis already exists, project must go further. (masters thesis, and various papers) Learning problems are typically focused on input of ‘good’ examples – come up with rules to generate examples. [Will] note that a related field is optimization – not just learn the rules, but learn the optimal ones (under some value function (size or speed))
  6. AnsProlog + probability

How does one combine stochastic reasoning with logical reasoning? Languages of probability are very simple – too simple. Introduced Monte Hall Problem: Most people make mistakes because one is not forced to write down the high level reasoning, just the simple representations of the language of probability. Conclusion: Being forced to write one’s assumptions out clearly, and then write out the numbers as well, the chances of making a mistake are much lower.

  1. Adding object orientated syntax on top of smodels (F-logic). Being able to write high level object orientated knowledge, and have it automatically translated to the smodels engine.
  2. Specialized reasoning systems -Narrative -Counterfactual -Diagnostic Narrative: A narrative reasoning system is (writing a proposal for a question-answering system – ultimate goal is to take text, extract facts, and then answer a final set of questions) a system that reasons about a sequence of declarations, specifically, a sequence told in narrative form (has special assumptions – writers write in certain ways). One example is a geographic system that described the location of john in various ways at various times, and then asked where john was at a particular time. (john was in paris, was john in france?) Counterfactual: Reason about knowledge that is contrary to knowledge already gained. (for example, reasoning about preventing current states, or reasoning about future states that were prevented). Explanation (Diagnostic?): Provide a justification for the right answer. (why not?)
  3. Improve/extend the implementation of smodels (or dlv). Two ways to extend a language: Put a layer on top. Make it larger (hack it apart internally) In this, internally extend smodels. -more efficient -more capable (enlarge the language) -more capable (extended output choices and formats) [Will]

Proof of no-covering on tiles; construct a proper coloring of the tiles using two colors (a proper coloring has no tile adjacent to a tile of the same color). Argue that the number of tiles with one color exceeds the number of tiles with the other color; every application of the covering tile covers exactly one tile of each color. Therefore, no covering can cover a board with unequal numbers of each color. If we wish smodels to reason about this, the first question is – how do we represent the problem? Using tile(x,y,u,v) is poor – the exponential increase in the search space is unacceptable. It ‘blows up’. The book discusses an alternate, more efficient, representation. To estimate efficiency of a smodels rule is to count the total number of variables in a rule

  • and the number of different values that each variable takes. Compute the size of the grounding of that rule. (product of the cardinalities of the value sets) Zebra: 5 houses
    • colors
    • drinks
    • cigarettes
    • pet
    • country Coming up with a good representation is again key, since that determines whether or not it blows up under grounding. A poor representation would be: P(1,color,drinks,cig,pet,country) 6 variables, maybe more, over all values present. Breaking up into smaller sub-rules is far more efficient. Instead of this, use two-places: color(House,C) drink(House,D) cig(House,C) pet(House,P) country(House,C) associated(House,Value) -- figure out from the value what type it is. ([Will] requires disjoint values) if you want to refer to only the color predicate:

associated(House,Value), color(Value) It is easy to map constraint satisfaction, even dynamic constraint satisfcation, problems to smodels (or any AnsProlog). If you can map all of these different domains to the same language, then the focus of implementation is on that one language, and less duplication of effort takes place.