Week2_Lecture
Week2_Lecture
of Artificial Intelligence
Outline
§ What is AI?
§ Risks and Benefits of AI
§ Agents and Environments
§ The Concept of Rationality
§ The Nature of Environments
§ The Structure of Agents
What is AI?
• In this subject, we usually assume that the performance measure can be specified
correctly (although it is not always this case)
Good Behavior: The Concept of Rationality
• Wolves and sheep are placed at random
Game of “wolf versus sheep” • The wolves need to catch all the sheep in 20
seconds while avoiding some boulders.
• Our definition requires a rational agent not only to gather information but
also to learn as much as possible from what it perceives.
§ Agent architecture
§ some computing device with physical sensors and actuators
The Structure of Agents
§ We mainly focus on “agent program” in this subject
§ Agent program
§ Input: the current percept from the sensors
§ Output: an action to the actuators.
§ What if the agent’s actions need to depend on the entire percept
sequence?
§ Then the agent will have to remember the percepts.
The Structure of Agents
§ Let’s look at a rather trivial agent program
§ It keeps track of the percept sequence,
§ and then uses it to index into a table of actions to decide what to do.
• A model-based reflex agent keeps track of the current state of the world, using an
internal model. It then chooses an action in the same way as the reflex agent.
The Structure of Agents
Goal-based agents
§ The agent needs some sort of goal information that describes
situations that are desirable
§ It combines the goal information with the model to choose actions that
achieve the goal.
§ Goal-based action selection could be straightforward or tricky
§ Search and planning to find action sequences to achieve a goal.
§ More flexible because the knowledge that supports its decisions
is represented explicitly and can be modified
The Structure of Agents
• A model-based, utility-based agent uses a model of the world, along with a utility function that
measures its preferences among states of the world.
• It chooses the action that leads to the best expected utility, where expected utility is computed by
averaging over all possible outcome states, weighted by the probability of the outcome.
The Structure of Agents
Agents that are able to learn
§ How the agent programs “come into being?”
§ Build a machine that can learn and then teach them
§ The preferred method for creating state-of-the-art systems.
§ It allows the agent to operate in initially unknown environments and to
become more competent than its initial knowledge alone might allow.
§ A learning agent involves four conceptual components
§ learning element, critic
§ performance element, problem generator
The Structure of Agents
• A general learning agent. The “performance element” box represents what we have previously
considered to be the whole agent program. Now, the “learning element” box gets to modify that
program to improve its performance.
Summary
§ What is AI?
§ Risks and Benefits of AI
§ Agents and Environments
§ The Concept of Rationality
§ The Nature of Environments
§ The Structure of Agents
Thank you. Questions?