Using AI: Learning as Search. Introduction to Artificial Intelligence Semester 1, Lecture 3:

Slides:



Advertisements
Similar presentations
G5BAIM Artificial Intelligence Methods
Advertisements

CSC411Artificial Intelligence 1 Chapter 3 Structures and Strategies For Space State Search Contents Graph Theory Strategies for Space State Search Using.
Multi-Objective Optimization NP-Hard Conflicting objectives – Flow shop with both minimum makespan and tardiness objective – TSP problem with minimum distance,
Algorithms + L. Grewe.
Ai in game programming it university of copenhagen Reinforcement Learning [Outro] Marco Loog.
Lecture 12: Revision Lecture Dr John Levine Algorithms and Complexity March 27th 2006.
The Decision-Making Process IT Brainpower
Ant Colony Optimization: an introduction
Metaheuristics The idea: search the solution space directly. No math models, only a set of algorithmic steps, iterative method. Find a feasible solution.
Copyright R. Weber Search in Problem Solving Search in Problem Solving INFO 629 Dr. R. Weber.
CSM6120 Introduction to Intelligent Systems Other evolutionary algorithms.
Genetic Algorithms and Ant Colony Optimisation
Copyright R. Weber Search in Problem Solving ISYS 370 Dr. R. Weber.
Slides are based on Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems.
1 Local search and optimization Local search= use single current state and move to neighboring states. Advantages: –Use very little memory –Find often.
Search Methods An Annotated Overview Edward Tsang.
Constraint Satisfaction Problems (CSPs) CPSC 322 – CSP 1 Poole & Mackworth textbook: Sections § Lecturer: Alan Mackworth September 28, 2012.
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
Optimization with Neural Networks Presented by: Mahmood Khademi Babak Bashiri Instructor: Dr. Bagheri Sharif University of Technology April 2007.
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
Thursday, May 9 Heuristic Search: methods for solving difficult optimization problems Handouts: Lecture Notes See the introduction to the paper.
Algorithms and their Applications CS2004 ( ) 13.1 Further Evolutionary Computation.
Exact and heuristics algorithms
1 Genetic Algorithms and Ant Colony Optimisation.
Decision Trees Binary output – easily extendible to multiple output classes. Takes a set of attributes for a given situation or object and outputs a yes/no.
Introduction to Genetic Algorithms. Genetic Algorithms We’ve covered enough material that we can write programs that use genetic algorithms! –More advanced.
Genetic Algorithms CSCI-2300 Introduction to Algorithms
Optimization Problems
Data Mining and Decision Support
Reinforcement Learning AI – Week 22 Sub-symbolic AI Two: An Introduction to Reinforcement Learning Lee McCluskey, room 3/10
Evolutionary Computing Chapter 1. / 20 Chapter 1: Problems to be solved Problems can be classified in different ways: Black box model Search problems.
Introduction to Artificial Intelligence Revision Session.
 Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems n Introduction.
Artificial Neural Networks This is lecture 15 of the module `Biologically Inspired Computing’ An introduction to Artificial Neural Networks.
Chap 4: Searching Techniques Artificial Intelligence Dr.Hassan Al-Tarawneh.
Artificial Intelligence Solving problems by searching.
Optimization Problems
Introduction to Machine Learning
CSCI 4310 Lecture 10: Local Search Algorithms
BackTracking CS255.
Finite State Machines Dr K R Bond 2009
OVERVIEW Impact of Modelling and simulation in Mechatronics system
School of Computer Science & Engineering
CSE 473 Artificial Intelligence Oren Etzioni
Local Search Algorithms
Introduction Defining the Problem as a State Space Search.
Artificial Intelligence Lecture No. 5
ME 521 Computer Aided Design 15-Optimization
Data Mining (and machine learning)
Subject Name: Operation Research Subject Code: 10CS661 Prepared By:Mrs
Chap 4: Searching Techniques Artificial Intelligence Dr.Hassan Al-Tarawneh.
metaheuristic methods and their applications
Optimization Problems
Metaheuristic methods and their applications. Optimization Problems Strategies for Solving NP-hard Optimization Problems What is a Metaheuristic Method?
Multi-Objective Optimization
Genetic Algorithms CSCI-2300 Introduction to Algorithms
“Hard” Optimization Problems
The use of Neural Networks to schedule flow-shop with dynamic job arrival ‘A Multi-Neural Network Learning for lot Sizing and Sequencing on a Flow-Shop’
Artificial Intelligence Lecture No. 28
Boltzmann Machine (BM) (§6.4)
AI and Machine Learning
Chap 4: Searching Techniques
CSE (c) S. Tanimoto, 2002 State-Space Search
Artificial Intelligence CIS 342
Search.
Major Design Strategies
CSE (c) S. Tanimoto, 2004 State-Space Search
Search.
Major Design Strategies
Local Search Algorithms
Presentation transcript:

Using AI: Learning as Search. Introduction to Artificial Intelligence Semester 1, Lecture 3:

Overview. Computers and state spaces Black box model of computing Learning as search: – Spaces of possible solutions, – Decision/quality formulations – The Fitness Landscape Metaphor, – Optimality: Global vs. Local search. 2

Computers and States. computer + program +inputs = state. – e.g. finite state automata:

Computers and state 2: OR current situation of problem = state. e.g. noughts and crosses.

Computers and State 3; Either way: – thinking about possible states of the system, – and finding ways to count them, – enables to consider what might or might not be feasible with a computer. – We’ll return to this later

6 The Black box model of computing We have a program/function/method/routine Takes an input, or a sequence of them, Produces an output. The bit in between can the thought of as a model of those aspects of the real world we are interested in. Needn’t necessarily express our model explicitly as a FSM

7 Example: traffic sign recognition Input = video signal Model = image processing to pick out signs, classifier to recognise them Output = signal saying what signs are present – could be superimposed on original image This is an application of AI, but might still need to be hand- coded Wouldn’t it be better if we could use AI to automate the production of our system?

8 Problem Solving as Search. Can view problem solving as consisting of a search for the missing component of a three-part system: inputs, model, outputs. e.g.: recognising some inputs

Example: Inductive Learning Inductive Learning may be thought of as: – search through a set of possible hypotheses (models), – to find one that matches our current knowledge (input- output pairs), – and which correctly generalises (predicts the outputs for as yet unseen inputs). So for traffic sign recognition: – Input-output pairs are images and correct responses – Model is combination of IP and classifier 9

10 Two alternative formulations. Decision type problems have a yes/no response: – does the solution meet my requirements? Alternative is to consider a solution quality: – how well does the solution meet requirements? Some problems can be formulated either way. – choice of formulation might aid search process.

11 Problem type 1 : Optimisation. We have a model of our system and seek inputs that give us a specified goal.

12 Example search spaces: strategies. the problem of beating Brazil at football involves choosing a strategy: – many possible strategies /team formations, – some will nullify their attacking strengths, – some will exploit their defensive weaknesses, Strategy= inputs to a simulator/real team value of a given strategy = the final score, or decision model: win/lose.

13 Example search spaces : design optimisation. Hospital Widget X might be specified by: – several measurements describing its shape, – other variables describing the choice of materials, – could have several constraints. Design Widget must satisfy safety constraints solution = a value for each measurement & variable search space = all possible combinations of values. Solutions= inputs to safety testing model. Outputs: – decision formulation = all constraints satisfied ? – quality of solution = number of satisfied constraints.

14 Example Search Spaces: State Space Search in Finite State Machines. Often useful to consider the system as a FSM. Generally it is assumed that a goal state is defined. – decision type formulation Transitions of FSMs – State space is connected to form a graph. – Transitions are defined by the model Task is: – to find a route from where you are now to the goal state. – Search problem equates to finding a sequence of inputs.

15 Example: the 2 buckets problem Given pail of water, a 3 and 4 pint buckets. Task is to produce 2 pints of water. state of system = volume of water in buckets: – {(0,0),(0,3),(0,4),(3,0),(3,3),(3,4),…}. set of possible actions (inputs) : – {fill3, 3from4, fill4, empty3,empty4, 4from3}. We can define all the possible transitions.

16 How does search work here? As we’ve stated it, this is a decision problem: – you either have 2 pints, or you don’t. Could see this as optimisation: – model = FSM, – condition on output => state one of {(2,0),(0,2)…} – seek inputs =sequence to reach goal state. – problem: no info. to discriminate helpful states. Lots more on this next week.

17 Problem types 2: Modelling We have corresponding sets of inputs & outputs and seek model that delivers correct output for every known input

18 Example search spaces : learning to do medical image classification. Medical images described by a set of (hopefully relevant) numerical features. Have a database of images (inputs) and outcomes. Solution = model (classifier) that maps values of features onto medical outcome, e.g. – configuration + weight values for a Artificial Neural Network, – set of nodes specifying a decision tree … Search space = set of possible models. Quality of model = estimated accuracy on database.

19 Example : learning to recognise traffic signs. Want to be able to input an image and output if a sign is recognised. Typically we’d do the learning (modelling) off-line, and on-line we’d just use the classifier. Solution (model) maps images onto responses, e.g.: – a set of parameters for IP to detect signs. – plus nearest-neighbour classifier to recognise them. Quality = number of examples model gets right. Search space = set of possible models.

20 Problem type 3: Simulation We have a given model and wish to know the outputs that arise under different input conditions.

21 Simulation examples. Could see this as the final application of the systems we have built e.g.: – Controlling actuators, – Classifying images Also used as part of bigger decision system; – to aid selecting table tennis shots, – models of global warming, – other chaotic systems.

“Combinatorial Explosion” theories such as NP completeness: – showed that for a large class of problems: – the number of possible states/solutions explodes at a rate that is faster than polynomial in the number of variables. – x 2, x 789 are polynomial, so increase relatively slowly, but e.g. Travelling Salesperson: – shortest route that visits each city exactly once. – N cities : N! possible routes = N x N-1 x N-2 … – 10! = , but 20! =

23 Global Search and Heuristics. Global Optimisation = search for finding best solution x * out of some fixed set S. Deterministic approaches: – e.g. box decomposition (branch and bound etc). – guarantee to find x *, but may take too long. Heuristic Approaches (generate and test): – rules for deciding which x  S to generate next. – best solution found may not be globally optimal.

24 Adaptive Landscape Metaphor. Initially used to describe evolution, Now used more generally to image search spaces. Can envisage a solution with n traits as existing in a n+1-dimensional space (landscape) with height corresponding to quality. Point on the landscape = potential solution. Aim of search is to find the highest point, or one that is “high enough”. Can formulate as minimisation.

25 Example with two traits.

26 Local vs. Global Search. Many heuristics impose a neighbourhood structure on S. – Such heuristics may guarantee that best point found is locally optimal, – Often very quick to identify good solutions. – But problems often exhibit many local optima, Examples of local search methods include: – back-propagation to learn ANN weights, – Hill-Climbers, – Greedy Constructive Heuristics for TSP routes.

27 Meta-Heuristics. Meta-heuristics attempt to get around this problem, by using approaches such as: Population based search: – Evolutionary Computation, Ant Colony Optimisation. Accepting worsening moves: – Tabu Search, Simulated Annealing. Repeated Runs: – iterated local search + variants.

28 Caveat: landscape implies structure. for some problems the structure is natural. but sometimes “local” depends on how we move. e.g. neighbours of pawn, knight, bishop, rook in chess. PKBR

29 Summary Learning / problem solving = Search Possible formulations: – Decision; states = goal, invalid, partial – Quality: =>fitness landscape metaphor Global / Local search black box models: search space = – inputs => optimisation, goal seeking – models => building classifiers