CSE 3521: Agent Design
[Many slides are adapted from the UC Berkeley. CS188 Intro to AI at UC Berkeley and previous CSE 3521 course at OSU.]
Recap: What is AI?
The science of making machines that:
Think like people
Act like people
Think rationally
Act rationally
maximizes some goal achievement (expressed by the expected utility/performance of outcomes)
Utility, Performance, Reward
Pre-defined utility
Learned utility
[OpenAI, https://openai.com/blog/chatgpt]
Recap: Turn a real-world problem into an AI solution
Environment
Agent
perception
action
Environments can change!
Today
Sample agents
Pacman
Spam Detector
Other sample agents
Navigation agent
[Kil et al., 20224]
[Song et al., CVPR 2022]
What makes an AI agent
Sensors
Actuators
Percepts
Actions
Agent
Environment
What makes an AI agent
Sensors
Actuators
Percepts
Actions
Agent
Environment
Agent Function (policy) – how does it choose the action?
?
What is a rational AI agent?
Types of agents
Reflex agent
Days
Buy or not?
percept
Stock price
Reflex agent
Buy or not?
Days
percept
memory
Stock price
Percepts vs. states
Not relevant; no need to be included into the state
Planning agent
Real world
Model of the world
Example
Planning-oriented Autonomous Driving [Hu et al., CVPR 2023]
Goal-based agent
Goal-based agent
Pacman
Spam Detector
Goal-based agent
Pacman
Spam Detector
…in as short a path as possible
Detect as many spam emails as possible!
Goal-based agent
Pacman
Spam Detector
…in as short a path as possible
Can also have a learning agent!
We’ll learn it later in the course!
Detect as many spam emails as possible!
Example: navigation agent
[Song et al., CVPR 2022]
Example: large language model (LLM)
[Bi et al., 2020]
Evaluation
Recap: AI – agents and environments
Questions?
Types of environments
Fully observable vs. Partially observable
�
Single Agent vs. Multiagent
[Credit: Jiaoyang Li’s website]
Deterministic vs. Stochastic
�
Episodic vs. Sequential
Static vs. Dynamic
[credits: Deva Ramanan et al., 2020;
Yan Wang et al., 2019]
Discreet vs. Continuous
These help to find how to approach a problem
Exercise
| Crossword puzzle | Driving |
Observability | | |
Deterministic vs. Stochastic | | |
Episodic vs. Sequential | | |
Static vs. Dynamic | | |
Discrete vs. Continuous | | |
Single vs. Multi Agent | | |
Partially |
Stochastic |
Sequential |
Dynamic |
Continuous |
Multi |
Fully |
Deterministic |
Sequential |
Static |
Discrete |
Single |
Summary
Next
Questions?
CSE 3521: Search
[Many slides are adapted from the UC Berkeley. CS188 Intro to AI at UC Berkeley and previous CSE 3521 course at OSU.]
Agents that plan ahead
Agents that plan ahead
Search problems
Search problems
(with actions, costs)
“N”, 1.0
“E”, 1.0
Start:
Goal(s): or or ……
Example: traveling in Romania
What’s in a state space?
The world state includes every detail of the environment
A search state keeps only the details needed for planning (abstraction)
State space sizes? How many possible states?
120 x (230) x (122) x 4
120
120 x (230)
Summary
Questions to you