agents and environments
play

Agents and Environments Lecture 2 How do we characterize - PowerPoint PPT Presentation

Wentworth Institute of Technology COMP3770 Artificial Intelligence | Summer 2017 | Derbinsky Agents and Environments Lecture 2 How do we characterize environments? What is an agent? What characterizes rational behavior? Agents and


  1. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Agents and Environments Lecture 2 How do we characterize environments? What is an agent? What characterizes rational behavior? Agents and Environments May 11, 2017 1

  2. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Agenda • Interaction model • Rationality • Task environments • Types of agents Agents and Environments May 11, 2017 2

  3. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Agent-Environment Interaction sensors percepts ? environment agent actions actuators Agents and Environments May 11, 2017 3

  4. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Agent-Environment Interaction • An agent is anything that perceives its environment through sensors and acts via actuators – In AI: non-trivial decision-making + significant computation • Percept refers to sensor values at an instant; percept sequence is a complete history Agents and Environments May 11, 2017 4

  5. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Agent Behavior • Mathematically/externally, we consider the agent function as a mapping between an arbitrary percept sequence and an action f : P ∗ → A • As AI practitioners, we implement the function via an agent program Agents and Environments May 11, 2017 5

  6. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Example: vacuum-cleaner World A B Percepts : [location, status] (e.g. [ A , Dirty ]) Actions : Left , Right , Suck , NoOp Agents and Environments May 11, 2017 6

  7. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Example vacuum-cleaner Agent What is the right function? Agents and Environments May 11, 2017 7

  8. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Evaluating Behavior To evaluate agent behavior, we consider a performance measure f : S ∗ E → V Notes: • Evaluates environment states, not agent percepts (more on observability later) or states (i.e. no fooling ourselves) • One of many, not always easy to specify – Should be based upon desired outcomes, not expected agent design/operation Agents and Environments May 11, 2017 8

  9. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Example Performance Measures • One point per square cleaned – Penalize per move – Penalize for > k dirty squares … A B Agents and Environments May 11, 2017 9

  10. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Defining Rationality For each possible percept sequence, a rational agent should… select an action that is expected to maximize its performance measure, given… 1. the percept sequence, and 2. a priori (i.e. prior) knowledge. Agents and Environments May 11, 2017 10

  11. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Exercise Provide a reasoned argument as to whether an agent executing the program below is rational given the following assumptions: – One point for each clean square at each time step over 1000 time steps – Geography is known, but initial environmental state is not; clean stays clean, cleaning always works – Perception is always accurate Agents and Environments May 11, 2017 11

  12. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Exercise Provide a reasoned argument as to whether an agent executing the program below is rational given the following assumptions: – One point for each clean square at each time step over 1000 time steps; minus one point per Watt – Geography is known, but initial environmental state is not; clean stays clean, cleaning always works – Perception is always accurate Agents and Environments May 11, 2017 12

  13. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Rationality ≠ Omniscience Knowing the actual outcome of one’s actions. Agents and Environments May 11, 2017 13

  14. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Rationality ≠ Perfection Rationality implies information gathering, exploration, and learning – Agents that rely upon prior knowledge vs. percepts lacks autonomy DungBeetle Agents and Environments May 11, 2017 14

  15. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky PEAS Model • Before designing an agent, we should fully specify the task environment (i.e. problem) it is to solve • P erformance Measure • E nvironment • A ctuators • S ensors Agents and Environments May 11, 2017 15

  16. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky PEAS: Example • P erformance • Safe, fast, legal, comfortable, profit! • E nvironment • Roads, traffic, • A ctuators pedestrians, customers • S ensors • Steering, acceleration, brake, signal, horn, payment • Camera, sonar, speedometer, GPS, odometer, accelerometer, engine Agents and Environments May 11, 2017 16

  17. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Properties of Task Environments (1) • Observability – Partially vs. Fully • Agents – Single vs. Multi (competitive/cooperative) • Certainty – Stochastic vs. Deterministic Agents and Environments May 11, 2017 17

  18. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Properties of Task Environments (2) • Temporal independence – Episodic vs. Sequential • Environmental change [during deliberation] – Static vs. Dynamic • Representation [of states, time, percepts/actions] – Discrete vs. Continuous • A priori environmental model – Known vs. unknown Agents and Environments May 11, 2017 18

  19. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Environment: Example (1) • Fully observable • Sequential • Single agent • Static • Deterministic • Discrete • Known Agents and Environments May 11, 2017 19

  20. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Environment: Example (2) • Partially observable • Sequential • Multi-agent, semi- • Dynamic cooperative • Continuous • Stochastic • Known Agents and Environments May 11, 2017 20

  21. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Agent Structure • agent = architecture + program • The key challenge for AI is to write [smallish] programs that produce rational behavior given complex environments • We now examine 4 representative agent architectures Agents and Environments May 11, 2017 21

  22. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Reflexive Action Agents and Environments May 11, 2017 22

  23. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Simple Reflex Agents • Select actions based upon the current percept, ignoring Agent history Sensors What the world is like now Environment • Sees the world as it is, does not consider What action I Condition − action rules should do now future consequences Actuators Agents and Environments May 11, 2017 23

  24. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Adding Planning • To handle partial observability, the agent needs to maintain internal state – Information it can’t presently sense • Updating requires models of the world – How the world evolves – Results of actions Agents and Environments May 11, 2017 24

  25. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Model-based Reflex Agents • Agent uses model + state to expand inputs to rules Sensors State What the world How the world evolves is like now Environment What my actions do What action I Condition − action rules should do now Agent Actuators Agents and Environments May 11, 2017 25

  26. Wentworth Institute of Technology COMP3770 – Artificial Intelligence | Summer 2017 | Derbinsky Goal-based Agents • Incorporates both what the world is like, and goals are to be achieved Sensors State What the world How the world evolves is like now Environment What it will be like What my actions do if I do action A • More flexibility than rules: as long as new What action I Goals should do now information relates to Agent Actuators goals, can adapt Agents and Environments May 11, 2017 26

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend