Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Lecture 36 of 42 Monday, 24 November.

Slides:



Advertisements
Similar presentations
Genetic Algorithms Representation of Candidate Solutions GAs on primarily two types of representations: –Binary-Coded –Real-Coded Binary-Coded GAs must.
Advertisements

1 Wendy Williams Metaheuristic Algorithms Genetic Algorithms: A Tutorial “Genetic Algorithms are good at taking large, potentially huge search spaces and.
1 Lecture 8: Genetic Algorithms Contents : Miming nature The steps of the algorithm –Coosing parents –Reproduction –Mutation Deeper in GA –Stochastic Universal.
A simple EA and Common Search Operators Temi avanzati di Intelligenza Artificiale - Lecture 2 Prof. Vincenzo Cutello Department of Mathematics and Computer.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Chapter 14 Genetic Algorithms.
Tutorial 1 Temi avanzati di Intelligenza Artificiale - Lecture 3 Prof. Vincenzo Cutello Department of Mathematics and Computer Science University of Catania.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Genetic Algorithms: A Tutorial
Computing & Information Sciences Kansas State University Lecture 37 of 42 CIS 530 / 730 Artificial Intelligence Lecture 37 of 42 Genetic Programming Discussion:
Genetic Algorithm.
Evolutionary Intelligence
Computing & Information Sciences Kansas State University Friday, 21 Nov 2008CIS 530 / 730: Artificial Intelligence Lecture 35 of 42 Friday, 21 November.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Evolution Strategies Evolutionary Programming Genetic Programming Michael J. Watts
Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)
CS 484 – Artificial Intelligence1 Announcements Lab 3 due Tuesday, November 6 Homework 6 due Tuesday, November 6 Lab 4 due Thursday, November 8 Current.
What is Genetic Programming? Genetic programming is a model of programming which uses the ideas (and some of the terminology) of biological evolution to.
1 Genetic Algorithms “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations.
Computing & Information Sciences Kansas State University Monday, 27 Nov 2006CIS 490 / 730: Artificial Intelligence Lecture 38 of 42 Monday, 27 November.
Computing & Information Sciences Kansas State University Wednesday, 19 Nov 2008CIS 530 / 730: Artificial Intelligence Lecture 34 of 42 Wednesday, 19 November.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Evolving Virtual Creatures & Evolving 3D Morphology and Behavior by Competition Papers by Karl Sims Presented by Sarah Waziruddin.
1 Machine Learning: Lecture 12 Genetic Algorithms (Based on Chapter 9 of Mitchell, T., Machine Learning, 1997)
1 “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations of things, solutions.
1 Chapter 14 Genetic Algorithms. 2 Chapter 14 Contents (1) l Representation l The Algorithm l Fitness l Crossover l Mutation l Termination Criteria l.
Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Friday, 16 February 2007 William.
Computing & Information Sciences Kansas State University Wednesday, 22 Oct 2008CIS 530 / 730: Artificial Intelligence Lecture 22 of 42 Wednesday, 22 October.
Artificial Intelligence Chapter 4. Machine Evolution.
Machine Learning Chapter 9. Genetic Algorithm
Chapter 9 Genetic Algorithms.  Based upon biological evolution  Generate successor hypothesis based upon repeated mutations  Acts as a randomized parallel.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 9 of 42 Wednesday, 14.
Edge Assembly Crossover
Genetic Algorithms Genetic algorithms provide an approach to learning that is based loosely on simulated evolution. Hypotheses are often described by bit.
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
Computing & Information Sciences Kansas State University Monday, 01 Dec 2008CIS 530 / 730: Artificial Intelligence Lecture 37 of 42 Monday, 01 December.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 5: Power of Heuristic; non- conventional search.
CpSc 881: Machine Learning Genetic Algorithm. 2 Copy Right Notice Most slides in this presentation are adopted from slides of text book and various sources.
Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Wednesday, 21 February 2007.
Computing & Information Sciences Kansas State University Monday, 27 Nov 2006CIS 490 / 730: Artificial Intelligence Lecture 38 of 42 Monday, 27 November.
Computing & Information Sciences Kansas State University Monday, 23 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 25 of 42 Monday, 23 October.
Computing & Information Sciences Kansas State University Friday, 20 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 24 of 42 Friday, 20 October.
Chapter 9 Genetic Algorithms Evolutionary computation Prototypical GA
Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Monday, 25 February 2008 William.
GENETIC ALGORITHM Basic Algorithm begin set time t = 0;
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Computing & Information Sciences Kansas State University Monday, 09 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 19 of 42 Monday, 09 October.
Computing & Information Sciences Kansas State University Wednesday, 04 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 17 of 42 Wednesday, 04 October.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Computing & Information Sciences Kansas State University Friday, 13 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 21 of 42 Friday, 13 October.
Genetic Algorithms. Solution Search in Problem Space.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
Presented By: Farid, Alidoust Vahid, Akbari 18 th May IAUT University – Faculty.
Computing & Information Sciences Kansas State University Lecture 42 of 42 CIS 732 Machine Learning & Pattern Recognition Lecture 42 of 42 Genetic Programming.
Chapter 14 Genetic Algorithms.
Genetic Algorithms.
Artificial Intelligence Chapter 4. Machine Evolution
Metaheuristic methods and their applications. Optimization Problems Strategies for Solving NP-hard Optimization Problems What is a Metaheuristic Method?
Artificial Intelligence Chapter 4. Machine Evolution
A Gentle introduction Richard P. Simpson
Machine Learning: UNIT-4 CHAPTER-2
Traveling Salesman Problem by Genetic Algorithm
Beyond Classical Search
Presentation transcript:

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Lecture 36 of 42 Monday, 24 November 2008 William H. Hsu Department of Computing and Information Sciences, KSU KSOL course page: Course web site: Instructor home page: Reading for Next Class: Sections 22.1, , Russell & Norvig 2 nd edition Genetic and Evolutionary Computation (GEC) Discussion: WEKA

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Lecture Outline Readings  Sections , Mitchell  Suggested: Chapter 1, Sections , Goldberg Evolutionary Computation  Biological motivation: process of natural selection  Framework for search, optimization, and learning Prototypical (Simple) Genetic Algorithm  Components: selection, crossover, mutation  Representing hypotheses as individuals in GAs An Example: GA-Based Inductive Learning (GABIL) GA Building Blocks (aka Schemas) Genetic Programming (GP) Taking Stock (Course Review): Where We Are, Where We’re Going

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Overfitting in ANNs Other Causes of Overfitting Possible  Number of hidden units sometimes set in advance  Too few hidden units (“underfitting”) ANNs with no growth Analogy: underdetermined linear system of equations (more unknowns than equations)  Too many hidden units ANNs with no pruning Analogy: fitting a quadratic polynomial with an approximator of degree >> 2 Solution Approaches  Prevention: attribute subset selection (using pre-filter or wrapper)  Avoidance Hold out cross-validation (CV) set or split k ways (when to stop?) Weight decay: decrease each weight by some factor on each epoch  Detection/recovery: random restarts, addition/deletion of weights, units

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Simple Genetic Algorithm (SGA) Algorithm Simple-Genetic-Algorithm (Fitness, Fitness-Threshold, p, r, m) // p: population size; r: replacement rate (aka generation gap width), m: string size  P  p random hypotheses// initialize population  FOR each h in P DO f[h]  Fitness(h)// evaluate Fitness: hypothesis  R  WHILE (Max(f) < Fitness-Threshold) DO  1. Select: Probabilistically select (1 - r)p members of P to add to PS  2. Crossover:  Probabilistically select (r · p)/2 pairs of hypotheses from P  FOR each pair DO PS += Crossover ( )// PS[t+1] = PS[t] +  3. Mutate: Invert a randomly selected bit in m · p random members of PS  4. Update: P  PS  5. Evaluate: FOR each h in P DO f[h]  Fitness(h)  RETURN the hypothesis h in P that has maximum fitness f[h]

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Selection and Building Blocks Restricted Case: Selection Only   average fitness of population at time t  m(s, t)  number of instances of schema s in population at time t   average fitness of instances of schema s at time t Quantities of Interest  Probability of selecting h in one selection step  Probability of selecting an instance of s in one selection step  Expected number of instances of s after n selections

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Schema Theorem Theorem  m(s, t)  number of instances of schema s in population at time t   average fitness of population at time t   average fitness of instances of schema s at time t  pc  probability of single point crossover operator  pm  probability of mutation operator  l  length of individual bit strings  o(s)  number of defined (non “*”) bits in s  d(s)  distance between rightmost, leftmost defined bits in s Intuitive Meaning  “The expected number of instances of a schema in the population tends toward its relative fitness”  A fundamental theorem of GA analysis and design

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Lecture Outline Readings / Viewings  View GP videos 1-3  GP1 – Genetic Programming: The Video  GP2 – Genetic Programming: The Next Generation  GP3 – Genetic Programming: Human-Competitive  Suggested: Chapters 1-5, Koza Previously  Genetic and evolutionary computation (GEC)  Generational vs. steady-state GAs; relation to simulated annealing, MCMC  Schema theory and GA engineering overview Today: GP Discussions  Code bloat and potential mitigants: types, OOP, parsimony, optimization, reuse  Genetic programming vs. human programming: similarities, differences Next Week: Computer Vision, NLP, Course Review

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Genetic Programming: Jigsaw Representation Efficiency  Does parsimony express useful inductive biases? What kind? Human-Centric  Is the GP approach cognitively plausible? Are its results? Why or why not?  Is this desirable? Parameters and Fine Tuning  What are advantages and disadvantages of GP for tuning ML problem parameters? Learning to Plan  Is GP suitable (and reasonable) for learning adaptive policies?  What issues are faced the users of the overall system?

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence GP Flow Graph Adapted from The Genetic Programming Notebook © 2002 Jaime J. Fernandez

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Structural Crossover Adapted from The Genetic Programming Notebook © 2002 Jaime J. Fernandez

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Structural Mutation Adapted from The Genetic Programming Notebook © 2002 Jaime J. Fernandez

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Genetic Programming: The Next Generation (Synopsis and Discussion) Automatically-Defined Functions (ADFs)  aka macros, anonymous inline functions, subroutines  Basic method of software reuse Questions for Discussion  What are advantages, disadvantages of learning anonymous functions?  How are GP ADFs similar to and different from human-produced functions? Exploiting Advantages  Reuse  Innovation Mitigating Disadvantages  Potential lack of meaning – semantic clarity issue (and topic of debate)  Redundancy  Accelerated bloat – scalability issue

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Code Bloat [1]: Problem Definition Definition  Increase in program size not commensurate with increase in functionality (possibly as function of problem size)  Compare: structural criteria for overfitting, overtraining Scalability Issue  Large GPs will have this problem  Discussion: When do we expect large GPs?  Machine learning: large, complex data sets  Optimization, control, decision making / DSS: complex problem What Does It Look Like? What Can We Do About It?  ADFs  Advanced reuse techniques from software engineering: e.g., design patterns  Functional, object-oriented design; theory of types  Controlling size: parsimony (MDL-like), optimization (cf. compiler)

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Code Bloat [2]: Mitigants Automatically Defined Functions Types  Ensure  Compatibility of functions created  Soundness of functions themselves  Define: abstract data types (ADTs) – object-oriented programming  Behavioral subtyping – still “future work” in GP  Generics (cf. C++ templates)  Polymorphism Advanced Reuse Techniques  Design patterns  Workflow models  Inheritance, reusable classes

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Code Bloat [3]: More Mitigants Parsimony (cf. Minimum Description Length)  Penalize code bloat  Inverse fitness = loss + cost of code (evaluation)  May include terminals Target Language Optimization  Rewriting of constants  Memoization  Loop unrolling  Loop-invariant code motion

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Genetic Programming 3 (Synopsis and Discussion [1]) Automatic Program Synthesis by Computational Intelligence: Criteria  1. Specification: starts with what needs to be done  2. Procedural representation: tells us how to do it  3. Algorithm implementation: produces a computer program  4. Automatic determination of program size  5. Code reuse  6. Parametric reuse  7. Internal storage  8. Iteration (while / for), recursion  9. Self-organization of hierarchies  10. Automatic determination of architecture  11. Wide range of programming constructs  12. Well-defined  13. Problem independent

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Genetic Programming 3 (Synopsis and Discussion [2]) 16 Criteria for Automatic Program Synthesis …  14. Generalization: wide applicability  15. Scalability  16. Human-competitiveness Current Bugbears: Generalization, Scalability Discussion: Human Competitiveness?

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Summary of Videos GP1: Basics of SGP GP2: ADFs and Problem of Code Bloat GP3: Advanced Topics  A. M. Turing’s 16 criteria  How GP does and does not (yet) meet them

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence More Food for Thought and Research Resources Discussion: Future of GP Current Applications Conferences  GECCO: ICGA + ICEC + GP  GEC  EuroGP Journals  Evolutionary Computation Journal (ECJ)  Genetic Programming and Evolvable Machines (GPEM)

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence More Food for Thought and Research Resources Discussion: Future of GP Current Applications Conferences  GECCO: ICGA + ICEC + GP  GEC  EuroGP Journals  Evolutionary Computation Journal (ECJ)  Genetic Programming and Evolvable Machines (GPEM)

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Terminology Evolutionary Computation (EC): Models Based on Natural Selection Genetic Algorithm (GA) Concepts  Individual: single entity of model (corresponds to hypothesis)  Population: collection of entities in competition for survival  Generation: single application of selection and crossover operations  Schema aka building block: descriptor of GA population (e.g., 10**0*)  Schema theorem: representation of schema proportional to its relative fitness Simple Genetic Algorithm (SGA) Steps  Selection  Proportionate reproduction (aka roulette wheel): P(individual)  f(individual)  Tournament: let individuals compete in pairs, tuples; eliminate unfit ones  Crossover  Single-point:   { , }  Two-point:   { , }  Uniform:   { , }  Mutation: single-point (“bit flip”), multi-point

Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Summary Points Evolutionary Computation  Motivation: process of natural selection  Limited population; individuals compete for membership  Method for parallelizing and stochastic search  Framework for problem solving: search, optimization, learning Prototypical (Simple) Genetic Algorithm (GA)  Steps  Selection: reproduce individuals probabilistically, in proportion to fitness  Crossover: generate new individuals probabilistically, from pairs of “parents”  Mutation: modify structure of individual randomly  How to represent hypotheses as individuals in GAs An Example: GA-Based Inductive Learning (GABIL) Schema Theorem: Propagation of Building Blocks Next Lecture: Genetic Programming, The Movie