CSE 471598 Intelligent Agents TIP Were intelligent agents

  • Slides: 19
Download presentation
CSE 471/598 Intelligent Agents TIP We’re intelligent agents, aren’t we? Spring 2004 CSE 471/598,

CSE 471/598 Intelligent Agents TIP We’re intelligent agents, aren’t we? Spring 2004 CSE 471/598, H. Liu

Introduction An agent is anything that can be viewed as perceiving its environment through

Introduction An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators. Let’s look at Figure 2. 1 n n Is that me? An agent function maps percepts to actions CSE 471/598, H. Liu 2

All about Agents We will learn n How agents should act Environments of agents

All about Agents We will learn n How agents should act Environments of agents Types of agents w human, robot, software agents Why do we need to specify how agents should act? CSE 471/598, H. Liu 3

How Agents should act A rational agent is one that does the right thing.

How Agents should act A rational agent is one that does the right thing. n What is “right”? The issue of performance measure, not a simple one w You often get what you ask for. w Be as objective as possible w Measure what one wants, not how the agent should behave n A related issue is when to measure it. CSE 471/598, H. Liu 4

A rational agent is not omniscient Rationality is concerned with expected success given what

A rational agent is not omniscient Rationality is concerned with expected success given what has been perceived A percept sequence contains everything that the agent has perceived so far An ideal rational agent should do whatever action that is expected to maximize its performance measure n Perfection maximizes actual performance CSE 471/598, H. Liu 5

Four key components What is rational depends on PEAS: n n Performance measure Environment

Four key components What is rational depends on PEAS: n n Performance measure Environment Actuators – generating actions Sensors – receiving percepts Some examples n n A vacuum world with 2 locations (Fig 2. 2) Another example? Taxi driver (Fig 2. 4) w Let’s look at its performance measure CSE 471/598, H. Liu 6

Definition of a rational agent For each possible percept sequence, a rational agent should

Definition of a rational agent For each possible percept sequence, a rational agent should select an action that is expected to maximize its performance measure, given the evidence provided by the percept sequence and whatever built-in knowledge the agent has. CSE 471/598, H. Liu 7

From percept sequences to actions n n n A mapping with possibly infinite entries

From percept sequences to actions n n n A mapping with possibly infinite entries An ideal mapping describes an ideal agent It’s not always necessary to have an explicit mapping in order to be ideal (e. g. , sqrt (x)) An agent should have some autonomy. n n i. e. , its behavior is determined by its own experience. Autonomy can evolve with an agent’s experience and percept sequence - learning. CSE 471/598, H. Liu 8

External environments Without exception, actions are done by the agent on the environment, which

External environments Without exception, actions are done by the agent on the environment, which in turn provides percepts to the agents. Environments affect the design of agents n Types of environments CSE 471/598, H. Liu 9

Types of Environments Fully vs. partially observable Deterministic vs. stochastic n E is deterministic

Types of Environments Fully vs. partially observable Deterministic vs. stochastic n E is deterministic but actions are not =>strategic Episodic vs. sequential Static vs. dynamic n E does not change, performance score does => semi- dynamic Discrete vs. continuous Single vs. multiple agents What is the most difficult environment? Let’s look at some examples in Fig 2. 6 CSE 471/598, H. Liu 10

Design and Implementation of Agents Design an agent function that maps the agent’s percepts

Design and Implementation of Agents Design an agent function that maps the agent’s percepts to actions. n Or to realize how actions are selected/determined Implement the agent function in an agent program which is realized in an agent architecture Agent = Architecture+ Program From Robots to Softbots CSE 471/598, H. Liu 11

Some examples of agents All agents have four elements (PEAS): 1. Performance 3. Actuators

Some examples of agents All agents have four elements (PEAS): 1. Performance 3. Actuators 2. Environment 4. Sensors Fig 2. 5 demos some agent types n We can see that there are many ways to define these components and it’s difficult to enumerate all possibilities CSE 471/598, H. Liu 12

Starting from the simplest A look-up agent (Fig 2. 7) n Generates actions based

Starting from the simplest A look-up agent (Fig 2. 7) n Generates actions based on percept sequences Why not just look up? n An equivalent question is about the table size What else should we try? CSE 471/598, H. Liu 13

Types of agents Simple reflex agents - respond based on the current percept, ignore

Types of agents Simple reflex agents - respond based on the current percept, ignore the percept history. It cuts down a lot of possibilities. n n An example (Fig 2. 8) A simple reflex agent (Figs 2. 9, 2. 10) w Condition-action Rules n n Innate reflexes vs. learned responses What if the environment is not fully observable? CSE 471/598, H. Liu 14

Model-based reflex agents They can handle partial observability n Knowledge about how the world

Model-based reflex agents They can handle partial observability n Knowledge about how the world works is called a model of the world Simple reflex agents (Fig 2. 9) Maintain internal state to keep information of the changing environment and involve consideration of the future n Respond to a percept accordingly (Figs 2. 11, 2. 12) CSE 471/598, H. Liu 15

Goal-based agents They aim to achieve goals (F 2. 13) Goal: desirable states, n

Goal-based agents They aim to achieve goals (F 2. 13) Goal: desirable states, n Search for a sequence of actions, n Plan for solving sub-problems with special purposes n Goals alone are often not enough to generate high-quality behavior. Why? CSE 471/598, H. Liu 16

Utility-based agents They aim to maximize their utilities (F 2. 14) n n Utility:

Utility-based agents They aim to maximize their utilities (F 2. 14) n n Utility: the quality of being useful, a single value function Happy or not (a goal or not) vs. How happy when the goal is achieved resolve conflicting goals (speed vs. safety) evaluate with multiple uncertain qualities search for trade-off facing multiple goals CSE 471/598, H. Liu 17

Learning agents They can learn to improve (Fig 2. 15) n n Operate in

Learning agents They can learn to improve (Fig 2. 15) n n Operate in initially unknown environments and become more competent Four components: (1) problem generator, (2) performance element, (3) learner, (4) critic The above types of agents can be found in the later chapters we will discuss. CSE 471/598, H. Liu 18

Summary There are various types of agents who cannot live without external environment. Efficiency

Summary There are various types of agents who cannot live without external environment. Efficiency and flexibility of different agents. Using ourselves as a model and our world as environment (Are we too ambitious? ), you may: Describe options for future consideration Recommend a new type of agents CSE 471/598, H. Liu 19