AI Foundations
The topics in this session include foundational elements of logic and its application in AI (specifically Horn clauses and SLD resolution), different knowledge representation schemes (production rules, frames, and literals), methods for generalization and learning within these schemes (LGG, attribute-only space search, heuristic learning, and knowledge acquisition), and approaches to handling uncertainty in expert systems. Examples from various problem domains, such as mass spectrometry, symbolic integration, chemistry, music analysis, and student modeling, illustrate the practical application of these concepts.
Slide deck posted on the iCollege class site.
| Speaker | Text |
|---|---|
| Alex | Welcome back everybody for another deep dive. This time, um, we’re going to be tackling machine learning and knowledge representation. This is a good one. It is a good one. So we’re really going to be kind of exploring how computers learn and reason, and we’ve got some great material to guide us through this. Yeah, we do. Um, you know, if you ever like wondered how an AI can go from examples to actually like forming its own hypotheses, |
| Sam | well, it’s like almost like they’re becoming little scientists, right? Like we’re feeding them information and they’re coming up with their own conclusions, |
| Alex | yeah, and it’s, it’s like, you know, how do you, how do you teach a computer to think like that, you know what I mean. So that’s, that’s what we’re going to be looking at today, |
| Sam | yeah, and it’s all about like giving AI this background knowledge, you know, it’s like teaching it the rules of the game before we let it play. So it’s not just about the data itself, it’s about the context, the foundation, and that’s going to shape how they learn and reason. |
| Alex | Exactly. And we’ve got some excerpts from a paper on. Inductive logic programming I ILP for short and then also a chapter from a book on Just like the history of machine learning in general. |
| Sam | Oh, cool. So we’re going to get like the, the historical perspective, |
| Alex | yeah, like a crash course in how it’s evolved, you know, how AI is actually evolved over time, driven by experience, which is kind of what machine learning is all about, |
| Sam | exactly. We’re trying to like pull out those key insights that really change your perspective on AI, you know, like those aha moments. |
| Alex | OK, so the, um, the ILP paper uses this interesting example of trying to get an AI. To identify the last character of a string. |
| Sam | OK, |
| Alex | now that sounds pretty simple at first. Yeah, |
| Sam | yeah, it does at first, but the paper points out that without the right background knowledge, an AI might struggle with even understanding what a string is, you know, let alone analyzing it. That’s. It’s like asking someone to find the last page of a book when they don’t even know what a book is like they have no concept of a book, let alone pages. So |
| Alex | it’s not just about. The data we feed these systems, it’s also about the assumptions, the, the foundational knowledge that we give |
| Sam | it, yeah, and the stuff we don’t give it, yeah, yeah, |
| Alex | exactly. We’re shaping |
| Sam | their worldview |
| Alex | in a way. We are, we’re shaping their worldview, and that, that brings up some big questions, right, so about responsibility when we design these systems. Like what biases are we unintentionally building. Holding in, yeah, or |
| Sam | even intentionally, |
| Alex | yeah, or even intentionally, |
| Sam | what limitations are we imposing by choosing what knowledge to give them or not give them? |
| Alex | It’s like, yeah, we’re, we’re kind of playing God a little bit, aren’t we? |
| Sam | It’s a little scary when you think about it that way. |
| Alex | Yeah, so food for thought as we go deeper into this, right? OK, so back to ILP. It’s not just theory. This is actually being used in real life. |
| Sam | Oh yeah, absolutely right. This stuff’s being applied |
| Alex | and the paper actually mentions some pretty mind blowing applications of ILP. |
| Sam | Oh yeah, |
| Alex | like what? OK, so. For example, ILPs being used for everything from recognizing events in like video footage, I think, to like tracking the behavior of online communities. And even they’re applying this to the MIS data set. Oh yeah, |
| Sam | I’ve heard of that, |
| Alex | which is that massive collection of handwritten digits, |
| Sam | right, the one that everyone uses to train image recognition systems, exactly. |
| Alex | They’re using this for that too. |
| Sam | So we’re talking about teaching an AI to understand the nuances of online communities, like picking up on trends and behaviors. I mean, what kind of insights could that unlock? |
| Alex | Oh, the marketing teams must be drooling over this kind of stuff, |
| Sam | right? Yeah, the potential is huge, but it also raises some important ethical questions. Of course. How do we use this technology responsibly. How do we ensure privacy and prevent manipulation? |
| Alex | Yeah, exactly. |
| Sam | These are things we ought to think about as this technology keeps developing. |
| Alex | These are things we got to think about. Absolutely. Now, for some context, let’s take a look at the big picture of like machine learning history, OK. The book chapter we have, um, lays out three major periods of research in machine learning. The first period was all about like mimicking brain function. Ah, |
| Sam | so like the early days trying to recreate how we think, |
| Alex | yeah, like using neural modeling and decision theoretic techniques, right, |
| Sam | like trying to map the biological process onto a machine. |
| Alex | Exactly, |
| Sam | fascinating. |
| Alex | And then things kind of shifted toward a more symbolic approach to representing knowledge, |
| Sam | so less about the brain itself and more about the information, |
| Alex | exactly. And this led to things like expert systems. |
| Sam | Oh right, where they tried to capture human expertise, like turn it into a set of rules a computer could use, |
| Alex | right? |
| Sam | Exactly. Interesting. |
| Alex | And now we’re in the era of knowledge intensive learning, knowledge intensive, where the focus is on using massive amounts of data and preexisting knowledge to fuel these learning algorithms. |
| Sam | OK, so it’s not just about the rules anymore. It’s about the sheer volume of information. |
| Alex | Exactly. Wow, |
| Sam | it’s quite a journey, isn’t it? |
| Alex | It really is. It’s like AI has gone through its own learning process, wouldn’t you |
| Sam | say? That’s a great way to put it. It started with simple imitation, then moved to symbolic representation, and now it’s like utilizing vast amounts of knowledge to power its growth. It’s like |
| Alex | AI is learning how to learn. It’s |
| Sam | learning how to learn. |
| Alex | What do you think this tells us about how our understanding of learning itself has evolved? Oh, that’s a big question. It is a big question. Well, |
| Sam | it seems Like we’ve moved from focusing on replicating the brain to recognizing the power of knowledge itself, and it makes you wonder what’s that, what kind of knowledge will be most valuable to AI in the future and what role will WE play in providing it. |
| Alex | Oh, that’s a good question. Yeah. Now, the book chapter digs into two types of learning concept acquisition and descriptive generalization. All right, break those down for us. OK, so think of concept. Acquisition as like learning a classification rule from labeled examples. It’s like showing a child pictures of cats and dogs and saying this is a cat, this is a dog, |
| Sam | right, teaching them what features define each animal. Exactly, exactly. |
| Alex | OK, |
| Sam | so it’s about putting things in the right buckets, |
| Alex | yes, and the chapter actually uses a fun example with the concept of a philosopher, a philosopher, huh? Yes, so the, the AI is starting with. Very specific examples and then gradually builds a broader definition of what a philosopher is. So it’s learning to categorize based on these given examples. |
| Sam | Got it. So what about descriptive generalization? |
| Alex | OK, so descriptive generalization goes beyond predefined categories. |
| Sam | Ah, so it’s not about putting things in buckets anymore. |
| Alex | It’s not about that. It’s about finding patterns and relationships in data. Without needing those labels. |
| Sam | So it’s more about discovering |
| Alex | connections. Yes, and this can lead to some really unexpected discoveries. Oh, |
| Sam | cool. So if concept acquisition is like learning the rules of a game. Descriptive generalization is like discovering a whole new game we didn’t even know existed. Yes, exactly. Wow, that’s where things get really exciting. That’s where it gets exciting. AI can surprise us with connections we might have missed. |
| Alex | Absolutely. And it leads to another challenge. What’s that? The challenge of representation. Representation. How do we actually Describe knowledge in a way that an AI can understand and use, right? |
| Sam | Like how do we translate our human understanding into something a machine can grasp? It’s like we need a common language. We need |
| Alex | a common language. Yeah. |
| Sam | So the book chapter outlines three basic types of descriptors nominal, linear, and structured. |
| Alex | OK. And these are kind of like the building blocks for how an AI represents. The world internally, exactly |
| Sam | like the foundation of their understanding. So |
| Alex | nominal descriptors are like. Labels or categories, |
| Sam | right, like red or blue car or bicycle |
| Alex | exactly simple stuff and then linear descriptors deal with values along a scale like |
| Sam | temperature or height, OK? |
| Alex | And then structured descriptors have a hierarchy like a family tree or the classification of animal species. |
| Sam | Oh, I see. So it gets more complex as you go down the list. Yeah, exactly. So choosing the right descriptor is going to shape how an AI perceives information. |
| Alex | It really does. It’s like giving them the right language to understand the world, right? |
| Sam | Exactly. And the chapter uses the example of a shape descriptor calling an object square versus polygon conveys different levels of detail, and that influences how the AI reasons about it. |
| Alex | So it’s not just about what knowledge we give an AI, but also how we represent that knowledge, |
| Sam | right? We’re shaping their cognitive tools. It’s like giving them the right tools for the job. |
| Alex | And here’s a key point, even with well-defined descriptors. There could be many possible hypotheses an AI might form. |
| Sam | Oh, that’s interesting. |
| Alex | So how does it |
| Sam | choose, right? Like how does it decide which one is best? That’s |
| Alex | where preference criteria come in. |
| Sam | Preference criteria. |
| Alex | The chapter talks about simplicity criteria. Simplicity. It’s like Occam’s razor, right? The idea that the simplest explanation is often the best. Ah, |
| Sam | so the AI is looking for the most elegant. Yeah, |
| Alex | it prioritizes hypotheses that require the fewest assumptions. |
| Sam | Makes sense. It’s a kind of elegance in its reasoning process. It is. We do the same thing, right? |
| Alex | We do. We favor explanations that fit our existing knowledge with the least amount of mental gymnastics, |
| Sam | right? It’s like our brains are wired for efficiency too. So |
| Alex | we’ve gone from the basics of how AI learns from examples. To this idea that they have preferences for simpler explanations, much like we do. It’s |
| Sam | like we’re getting closer to understanding how AI thinks, wouldn’t you say? Yeah, |
| Alex | I think we are. |
| Sam | And as we delve deeper into how AI puts this knowledge into action, it’s going to get even more fascinating. |
| Alex | I can’t wait. We’ll be back with part two of our deep dive into machine learning and knowledge representation right after this. |
| Sam | Looking forward to it. All right. |
| Alex | Welcome back to our deep dive into machine learning and knowledge representation. So in part one, we explored the foundations of how AI learns. You know how these systems actually represent knowledge, yeah, like |
| Sam | the building blocks of AI understanding, right? OK, so now what? |
| Alex | So let’s see how AI puts all that knowledge into action. |
| Sam | Putting knowledge into action, I like that. It’s a good way to put it. |
| Alex | So our book chapter dives into this idea of knowledge compilation, knowledge compilation, which sounds very technical, but it’s actually when you really break it down. It’s a pretty intuitive concept. So is it kind of like AI is taking this raw information and turning it into something more. You know, streamlined and efficient, kind of like a chef prepping ingredients for a complex recipe. Exactly. |
| Sam | That’s a great analogy. Yeah. The book actually uses an example from the world of geometry. Imagine a series of logical deductions you need to make to prove a theorem, right? So with knowledge compilation, all those steps can be condensed into a single rule that the AI can apply instantly. |
| Alex | So it’s about making those reasoning processes much faster. |
| Sam | Yeah, efficiency is key, especially as the systems get more and more complex, |
| Alex | right, because if an AI needs to operate in real time, it can’t be stuck doing like these long chains of deductions every time it needs to make a decision, |
| Sam | right? It needs to be able to act quickly. |
| Alex | OK, this next concept is one that I’ve always found fascinating. Oh, which one? Analogical reasoning. Ah yeah, that’s a good one. So the book chapter talks about how AI can solve new problems by finding. Parallels to similar situations that it’s encountered before. |
| Sam | So it’s like AI is learning from its past experiences. That’s pretty cool. |
| Alex | And the chapter uses this really interesting example involving triangle geometry. Triangle geometry, right, and it highlights how just looking at superficial similarities between problems can actually lead to the wrong answer. So it’s not just about matching surface features. It’s about understanding. The deeper relationships between things, |
| Sam | the underlying structure. So true insight comes from recognizing that deeper logic. |
| Alex | Exactly. But how does AI learn to do that? |
| Sam | Yeah, that’s the question. |
| Alex | How do we teach it? To avoid being fooled by those superficial resemblances because let’s face it, we humans fall for that all the time. |
| Sam | We do, we do. Well, that’s where careful guidance comes in. AI needs to be trained. To look beyond the obvious, to analyze those deeper structures, those underlying principles. |
| Alex | So we’re not just building these AI systems, we’re teaching them how to think. |
| Sam | We’re teaching them how to reason. |
| Alex | It’s almost like we’re their mentors, wouldn’t you say? |
| Sam | I like that, the mentors of |
| Alex | AI. OK, now let’s move into an area that I think might make some people a little uncomfortable. |
| Sam | OK, I’m intrigued. |
| Alex | The possibility of AI generating new knowledge, |
| Sam | generating new knowledge. That’s a big one. The book chapter discusses this idea and how AI might use heuristics to do it. Heuristics. Yeah. Now remember, heuristics are basically rules of thumb that we use to guide problem solving. |
| Alex | Right, so is AI using those same rules of thumb in a way, |
| Sam | yes, |
| Alex | to explore new ideas and concepts. |
| Sam | It’s about going beyond just applying existing knowledge to potentially uncovering new concepts, but |
| Alex | can we really call that creativity? |
| Sam | Oh, that’s a good question. |
| Alex | Is it genuine creativity, or is it just, you know, a very clever recombination of Existing knowledge, |
| Sam | that’s the million dollar question, isn’t it? The debate about AI creativity is still very much alive, but the fact that we’re even having this conversation tells us how far AI has come. |
| Alex | It really does. I have to admit it’s both exciting and a little unnerving, |
| Sam | right? Like, where does this all lead |
| Alex | if AI can learn and generalize and potentially even create. You know, where does that leave us humans, right? |
| Sam | What roles will we play in a future where machines can do all this? |
| Alex | What will our purpose be? I don’t know. It’s a lot to think about. |
| Sam | It is. It’s a lot to think about. |
| Alex | It’s not just about the technology itself. It’s about what it means for us, for humanity, for humanity, and our |
| Sam | place in this whole thing |
| Alex | and our place in this rapidly. Changing landscape. |
| Sam | It’s getting pretty philosophical, isn’t it? |
| Alex | It is, but these philosophical questions are becoming more and more relevant as AI keeps evolving. We can’t ignore them. This deep dive has really taken us on a journey. We’ve gone from those really fundamental building blocks of how AI learns to these mind-blowing implications of. It potentially generating new knowledge. It’s a lot to process. It is. It’s a lot to process. fascinating stuff. We’ve seen how these systems, you know, learn from examples, how they generalize from data and even how they might be able to discover like new scientific principles. |
| Sam | It’s mind blowing when you really think about it. |
| Alex | It is, it’s a rapidly evolving field for sure. And you know, who knows what the future holds? Who knows? |
| Sam | But it’s an exciting time to be following this technology. |
| Alex | It is, it is. |
| Sam | Thanks for joining us on this deep dive. |
| Alex | Yes, thank you for joining us. We hope you’ve learned something new and maybe you even have a few new questions to ponder. Definitely some food for thought. Until next time, keep exploring. All right. Welcome back to our deep dive. We are in the final stretch here of our exploration of machine learning and knowledge representation. Feeling smarter already, a little bit, yeah, a little bit. So in parts one and two, you know, we’ve talked about all these different things like how AI learns from examples, how they generalize, how they represent knowledge, |
| Sam | right? |
| Alex | All the |
| Sam | foundational stuff, yeah, |
| Alex | how they. Put it into action, you know, turning |
| Sam | knowledge into |
| Alex | action. But now I kind of want to shift gears a little bit and talk about something that might seem really basic at first, but it’s actually one of the biggest challenges in all of AI research. Oh, |
| Sam | OK. I’m intrigued. What is it? |
| Alex | The question of how do we get all this knowledge into the AI system in the first place. |
| Sam | Ah, the knowledge acquisition problem. Like, where does all that information come from? |
| Alex | Where |
| Sam | does it |
| Alex | come from, right? It’s called knowledge acquisition. Makes sense and it’s a little bit like, I don’t know, trying to fill a giant library with books, but the books are constantly changing and evolving, |
| Sam | right? |
| Alex | It’s a moving |
| Sam | target. |
| Alex | It is a moving target. So |
| Sam | how do you keep up, |
| Alex | right? And the book chapter actually hinted at this a little bit. That this is like one of the biggest hurdles. It’s |
| Sam | a huge |
| Alex | bottleneck. |
| Sam | Yeah, |
| Alex | one of the biggest bottlenecks in AI development. |
| Sam | OK, so how did those early AI systems deal with this? |
| Alex | Those early systems really relied heavily on manual knowledge engineering, manual knowledge, which was a very painstaking process. Oh, I bet you can imagine like. Experts spending countless hours trying to articulate all of their knowledge in the form of rules, and then those rules had to be programmed into the system. |
| Sam | Uh, that sounds tedious. Super tedious, |
| Alex | but there’s got to be a better way, |
| Sam | right? Right. So the book actually mentions that there’s been a shift toward more automated approaches. |
| Alex | Automated. So the AI is doing some of the work itself, |
| Sam | exactly, where the AI can actually learn directly from the data like a. Students studying a textbook. |
| Alex | So it’s not just being spoon fed information anymore. It’s figuring things out on its own, |
| Sam | right? And that’s where machine learning comes in. These algorithms can like sift through these massive data sets, identify patterns, and extract knowledge without needing a human. To like explicitly program it all in. |
| Alex | So it’s like AI is becoming its own librarian, curating its own understanding of the world |
| Sam | right directly from the raw information. That’s powerful. It’s pretty powerful stuff and we’re seeing this happening in some really, really fascinating ways. |
| Alex | OK, like what? Give me |
| Sam | an example. So for example, the book talks about this system called Bacon. Bacon, |
| Alex | like the philosopher. |
| Sam | Not quite, no, |
| Alex | but it’s a program that rediscovers fundamental laws of science by analyzing experimental data. Hold |
| Sam | on, hold on. AI is rediscovering scientific laws. That sounds like science fiction. |
| Alex | It does sound like science fiction, but it’s real. |
| Sam | OK, but how does that even work? |
| Alex | So Bacon has been able to rediscover things like Ohm’s law. |
| Sam | Ohm’s |
| Alex | law, Archimedes’ principle of buoyancy. |
| Sam | Well, that’s impressive |
| Alex | just by looking at data. |
| Sam | So is it really doing science though? Well, |
| Alex | that’s a good question. |
| Sam | Like what’s going on under the hood? |
| Alex | So it’s using a set of data-driven heuristics to find regularities in both numerical and nominal data. So it |
| Sam | can spot those patterns, those connections. |
| Alex | Exactly. And it can detect constants, identify trends, and even formulate hypotheses just like a human. Scientists would. It’s |
| Sam | going through the scientific process. It is. |
| Alex | It’s like observing, experimenting, refining its understanding based on the results. |
| Sam | It’s mind |
| Alex | blowing. It is mind |
| Sam | blowing. So if it can rediscover known laws, could it potentially discover new ones too? That’s |
| Alex | the question researchers are exploring right now. |
| Sam | That’s a huge question. It’s a huge question. That could change everything. |
| Alex | It could change |
| Sam | everything about how we do science. |
| Alex | It really makes you think about the nature of discovery itself, right? |
| Sam | Yeah, like what does it even mean to discover something |
| Alex | if an AI can do it by just crunching numbers, |
| Sam | right? Are we just giving it the tools to do what we already do? |
| Alex | It’s a deep philosophical question. |
| Sam | It is. |
| Alex | But I think it’s important to remember that AI isn’t meant to replace human intelligence. It’s about augmenting it. |
| Sam | It’s like a partnership. It is. |
| Alex | It is a partnership. |
| Sam | AI and humans working together. |
| Alex | Imagine AI systems and human scientists working together, helping to sift through all of that data and identify promising avenues for research that we. Might have missed. I could accomplish so much more. We could accomplish so much more. It’s a very, very powerful partnership. |
| Sam | Absolutely. And as AI evolves, this kind of collaboration is only going to become more important. Yeah, |
| Alex | absolutely. This |
| Sam | has |
| Alex | been |
| Sam | a great deep dive. |
| Alex | This has been a really great deep dive. |
| Sam | We’ve covered so much. |
| Alex | We’ve covered so much from those basics of machine learning all the way to the philosophical implications. Of AI, you know, potentially generating new knowledge. |
| Sam | It’s amazing how far this field has come. |
| Alex | We’ve seen how AI learns from examples. How it generalizes from data and even how it might be able to like discover those scientific principles. |
| Sam | The future of AI is wide open. |
| Alex | It is. It’s a rapidly evolving field and who knows what’s next. |
| Sam | It’s an exciting time to be alive, that’s for sure. |
| Alex | It is an exciting time. |
| Sam | Thanks for joining us on this deep dive, |
| Alex | everyone. Yes, thank you all for joining us. |
| Sam | We hope you’ve learned a thing or two and |
| Alex | maybe even walk away with a few new questions. Definitely some food for thought. Until next time, keep exploring. |
Reading
- Textbook: Artificial Intelligence A New Synthesis by Nils J. Nilsson, 1998.
- Textbook: Machine Learning - An Artificial Intellegence Approach edited by R. S. Michalski and J. G. Carbonell T. M. Mitchell, 1984.
- Paper: Inductive Logic Programming At 30: A New Introduction by Andrew Cropper and Sebastijan Dumančić, 2022.
- Textbook: Principles of Expert Systems by Peter J.F. Lucas and Linda C. van der Gaag, 1991.
Other Resource
Formal Logic as a Foundation for AI:
The sources highlight the critical role of formal logic, particularly first-order predicate logic, as a rigorous basis for representing knowledge and performing inference in AI systems.
- Key Fact: Logic provides a well-defined syntax and semantics for expressing statements and relationships. Concepts like atomic formulas, terms, predicates, functions, variables, and constants are fundamental building blocks.
- Important Idea: Equivalence of formulas is a core concept, allowing for manipulation and simplification of logical expressions while preserving their truth values. De Morgan’s laws and implications are cited examples of such equivalences.- Important Idea: Converting logical formulas into Clausal Form (conjunctive normal form) is a crucial step for applying automated reasoning techniques like resolution. This involves eliminating implications, reducing the scope of negations, standardizing variables, and eliminating quantifiers.
- Quote: “An atomic formula, or atom for short, is an expression of the form P (t1, . . . , tn), where P is an n-place predicate symbol, n ≥ 0, and t1, . . . , tn are terms.” (Principles of Expert Systems.pdf)
- Quote: “A clause is a closed formula of the form ∀x1 · · · ∀xs(L1 ∨ · · · ∨ Lm) where each Li, i = 1, . . . ,m, m ≥ 0, is a literal…” (Principles of Expert Systems.pdf)
Horn Clauses and SLD Resolution:
A significant focus is placed on Horn clauses as a restricted but powerful form of clauses, particularly relevant to logic programming languages like PROLOG.
- Key Fact: A Horn clause contains at most one positive literal. This includes unit clauses (a single positive literal) and goal clauses (only negative literals).
- Quote: “A Horn clause is a clause having one of the following forms: (1) A← (2) ← B1, . . . , Bn, n ≥ 1 (3) A← B1, . . . , Bn, n ≥ 1” (Principles of Expert Systems.pdf)
- Important Idea: SLD (Selective Linear Definite clause) resolution is a specific, efficient proof strategy for Horn clauses, forming the basis for PROLOG’s execution model. It involves resolving a goal clause with a definite clause (a Horn clause with exactly one positive literal), selecting an atom in the goal, and using unification to find a most general unifier.
- Quote: “An SLD derivation is a finite or infinite sequence G0, G1, . . . of goal clauses, a sequence C1, C2, . . . of variants of input clauses and a sequence θ1, θ2, . . . of most general unifiers, such that each Gi+1 is derived from Gi =← A1, . . . , Ak and Ci+1 using θi+1 if the following conditions hold…” (Principles of Expert Systems.pdf)
- Important Idea: Unification is the core process in resolution (including SLD resolution) that finds a substitution to make two expressions identical. The Most General Unifier (MGU) is the most general such substitution. Renaming variables is crucial for correct unification.
- Quote: “A unifier θ of a unifiable set of expressions E = {E1, . . . , Em}, m ≥ 2, is said to be a most general unifier (mgu) if for each unifier σ of E there exists a substitution λ such that σ = θλ.” (Principles of Expert Systems.pdf)
- Important Idea: Structure sharing, where variable bindings are stored in an environment rather than physically creating new clauses, is a common implementation technique for SLD resolution (mentioned in the context of LISP implementation).
- Quote: “The variable bindings created during resolution are stored in a data structure which is called an environment.” (Principles of Expert Systems.pdf)
Production Rules and Inference Systems:
Production rules (if-then rules) are presented as a common knowledge representation formalism, particularly in expert systems.
- Key Fact: A production rule consists of an antecedent (conditions) and a consequent (actions or conclusions).
- Quote: “A production rule is a statement having the following form: 〈production rule〉 ::= if 〈antecedent〉 then 〈consequent〉 fi” (Principles of Expert Systems.pdf)
- Important Idea: Production rules can be related to logical implications, where the antecedent is a conjunction of conditions (potentially involving disjunctions) and the consequent is a conjunction of actions/conclusions. The translation from production rules to ground logical implications is described.
- Quote: “Further translation of a production rule into a logical formula is now straightforward. The general translation scheme is as follows: if c1,1 or c1,2 or . . . or c1,m and . . . . . . cn,1 or cn,2 or . . . or cn,p then a1 also a2 also . . . also aq fi” (Principles of Expert Systems.pdf)
- Important Idea: Inference in production systems can be either top-down (goal-directed, backward chaining) or bottom-up (data-driven, forward chaining). Examples of rules and their application in a system like DPS (likely a variant of OPS) and IPS are provided, illustrating conditions matching elements in a working memory (WM) and actions asserting new data or goals.
- Quote: “A rule (that is, a production) in DPS consists of a number of conditions and a number of actions.” (Machine Learning_ An Artificial Intelligence Approach ( PDFDrive ).pdf)
- Quote: “A method in IPS is a set of rules that work together to satisfy a goal.” (Machine Learning_ An Artificial Intelligence Approach ( PDFDrive ).pdf)
- Important Idea: Patterns and facts are central to rule matching. Patterns can contain variables (single or multi-valued), while facts are concrete instances without variables. Matching involves finding substitutions for pattern variables that make the pattern identical to a fact.
- Quote: “A fact is a finite, ordered sequence of elements… where each element fi… is a constant.” (Principles of Expert Systems.pdf)
- Quote: “The pattern variables occurring in a pattern may be replaced by one or more constants depending on the type of the variable…” (Principles of Expert Systems.pdf)
Frames and Inheritance:
Frames and semantic nets are introduced as alternative knowledge representation paradigms, emphasizing structured knowledge about objects and their relationships.
- Key Fact: Semantic nets use vertices (nodes) to represent objects/concepts and labelled arcs (links) to represent relationships between them.
- Important Idea: Inheritance is a key mechanism in frame-based systems, allowing subclasses to inherit properties (attribute values) from their superclasses. Both single (tree-shaped taxonomies) and multiple (graph-shaped taxonomies) inheritance are discussed.
- Quote: “For each pair (y1, y2) ∈ ≤ we have y1 ≤ y2 ∈ ΩT.” (Principles of Expert Systems.pdf - referencing inheritance chains in a taxonomy)
- Important Idea: Concepts like intermediaries and preclusion are introduced to handle potential conflicts or exceptions in inheritance hierarchies, especially in multiple inheritance scenarios where different paths might suggest conflicting information.
- Quote: “A class y ∈ K is called an intermediary to an inheritance chain y1 ≤ . . . ≤ yn ∈ ΩT… if one of the following conditions is satisfied…” (Principles of Expert Systems.pdf)
- Quote: “A chain y1 ≤ . . . ≤ yn[a = c1] ∈ ΩT… is said to preclude a chain y1 ≤ . . . ≤ ym[a = c2] ∈ ΩT… if yn is an intermediary to y1 ≤ . . . ≤ ym.” (Principles of Expert Systems.pdf)
- Important Idea: Frames can incorporate attributes with defined types (domains), and type functions help determine the expected values for attribute sequences within a taxonomy. Subtyping is related to the relationship between these attribute sequence types.
- Quote: “For each yi ∈ K, we define a type function τi : A∗ → K as follows…” (Principles of Expert Systems.pdf)
- Quote: “We say that y1 is a subtype of y2, denoted by is y1 ≤ y2, if the following two properties hold…” (Principles of Expert Systems.pdf)
Reasoning with Uncertainty:
Expert systems often need to handle uncertain information. Several models for representing and reasoning with uncertainty are presented.
- Key Fact: Probability theory provides a formal framework for reasoning about chance events, but its application in expert systems can be challenging due to the need for extensive probability assessments. Concepts like conditional probability and Bayes’ theorem are fundamental.
- Quote: “THEOREM 5.4 (Bayes’ theorem) Let P be a probability function on a sample space Ω. Let hi ⊆ Ω… be mutually exclusive and collectively exhaustive hypotheses… Furthermore, let ej1 , . . . , ejk ⊆ Ω… be pieces of evidence such that they are conditionally independent given any hypothesis hi. Then, the following property holds: P (hi | ej1 ∩ · · · ∩ ejk ) = [Formula]” (Principles of Expert Systems.pdf)
- Important Idea: Simplified models like the subjective Bayesian method and the certainty factor model (used in systems like MYCIN) were developed to address the practical difficulties of using full probability theory. Certainty factors represent degrees of belief or disbelief.
- Key Fact: The Dempster-Shafer theory offers an alternative approach using basic probability assignments and belief functions, allowing for representation of ignorance and combination of evidence using Dempster’s rule.
- Quote: “Let Θ be a frame of discernment, and let m be a basic probability assignment on Θ. Then, the belief function… corresponding to m is the function Bel : 2Θ → [0, 1] defined by Bel(x) = ∑ y⊆x m(y) for each x ⊆ Θ.” (Principles of Expert Systems.pdf)
- Important Idea: Network models, such as belief networks (Bayesian networks), represent dependencies between variables graphically and use propagation algorithms to update beliefs when new evidence is introduced.
- Quote: “Knowledge representation in a belief network… Evidence propagation in a belief network…” (Principles of Expert Systems.pdf - section headings)
Generalization and Learning:
The sources touch upon mechanisms for learning and generalization in symbolic AI systems.
- Important Idea: Least General Generalization (LGG) is a method in Inductive Logic Programming (ILP) for finding the most specific generalization of two logical clauses. This involves finding LGGs of terms and literals.
- Quote: “To define the LGG of two clauses, we start with the LGG of terms: * lgg(f(s1,. . .,sn), f(t1,. . .,tm)) = f(lgg(s1,t1),. . . ,lgg(sn,tn)). * lgg(f(s1,. . .,sn), g(t1,. . .,tm)) = V (a variable)…” (Inductive logic programming at 30.pdf)
- Important Idea: Generalization and specialization rules are fundamental operations in learning systems. Examples include dropping conditions, replacing constants with variables, and generalizing by internal disjunction.
- Quote: “G en er al iz at io n an d sp ec ia liz at io n ru le s: 3 D ro pp in g co nd it io n? Y es … C on st an ts t o va ri ab le s? Y es…” (Machine Learning_ An Artificial Intelligence Approach ( PDFDrive ).pdf)
- Important Idea: Learning can involve searching through hypothesis spaces, like the “attribute-only space” defined by a structural generalization, using techniques such as beam search.
- Quote: “Once the structure-only candidate set C has been built, each candidate generalization in C must be filled out by finding values for its attribute descriptors. Each candidate generalization g in C is used to define an attribute-only space that is then searched using a beam search technique similar to that used to search the structure-only space.” (Machine Learning_ An Artificial Intelligence Approach ( PDFDrive ).pdf)
- Important Idea: Systems like BACON are mentioned as examples of discovery systems that rediscover scientific laws by analyzing data and postulating properties (like density or the displacement law). This involves defining new terms based on observed data relationships.
- Quote: “The system defines the ratio term ic v/o, a conjectured property, which has the constant value 1.0 for all objects…” (Machine Learning_ An Artificial Intelligence Approach ( PDFDrive ).pdf - referring to BACON)
- Important Idea: Learning heuristics or production rules from examples, as seen in the LEX system learning symbolic integration operators or systems modeling student behavior in algebra, is another form of machine learning discussed.
- Quote: “Over 40 problem-solving operators are currently provided to LEX, some of which are shown in Figure 6-1. Each operator is interpreted as follows: If the general pattern on the left hand side of the operator is found within the problem state, then that pattern may be replaced by the pattern specified on the right hand side of the operator.” (Machine Learning_ An Artificial Intelligence Approach ( PDFDrive ).pdf)
- Quote: “Table 16-1: Rules and mal-rules in student models.” (Machine Learning_ An Artificial Intelligence Approach ( PDFDrive ).pdf)
System Implementation and User Interaction:
The implementation of AI systems using languages like PROLOG and LISP is discussed, highlighting their suitability for symbolic manipulation and logic programming.
- Key Fact: PROLOG is based on logic programming and uses Horn clauses. It is well-suited for implementing inference engines based on SLD resolution.
- Quote: “Horn clauses are employed in the programming language PROLOG. We will return to this observation in Section 2.7.2.” (Principles of Expert Systems.pdf)
- Quote: “B ← A1, . . . , An where B, A1, . . . , An, n ≥ 0, are atomic formulas. Instead of the (reverse) implication symbol, in PROLOG usually the symbol :- is used, and clauses are terminated by a dot.” (Principles of Expert Systems.pdf)
- Key Fact: LISP is a powerful language for symbolic processing, often used for AI research due to its flexible data structures (lists) and ability to manipulate code as data.
- Quote: “Fundamental principles of LISP… The LISP expression… The form… Procedural abstraction in LISP… Variables and their scopes.” (Principles of Expert Systems.pdf - section headings)
- Important Idea: Expert systems require user interfaces that can provide explanations (e.g., “how” and “why” facilities) to justify their reasoning.
- Quote: “User interface and explanation… A user interface in PROLOG… The how facility… The why-not facility…” (Principles of Expert Systems.pdf - section headings)
- Important Idea: Systems like NANOKLAUS demonstrate interactive knowledge acquisition, where the system learns new concepts and relationships by being told and asking clarifying questions, including handling units of measurement and conversions.
- Quote: “FEET - got it. Thanks. 5_ A meter’ is a unit of length How is it related to FOOT? There are 3.3 jeel in a meter. Now I understand METER. 6_ A physical object has a length So PHYSICAL OBJECTS have LENGTHS.” (Machine Learning_ An Artificial Intelligence Approach ( PDFDrive ).pdf)
- Quote: “Whenever an additional unit of a measure is declared, NANOKLAUS requests the factor for conversion to one of the previously declared units.” (Machine Learning_ An Artificial Intelligence Approach ( PDFDrive ).pdf)