• Keine Ergebnisse gefunden

3. Introduction: Rational Agents

N/A
N/A
Protected

Academic year: 2022

Aktie "3. Introduction: Rational Agents"

Copied!
5
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Foundations of Artificial Intelligence

3. Introduction: Rational Agents

Malte Helmert

University of Basel

March 3, 2021

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 3, 2021 1 / 19

Foundations of Artificial Intelligence

March 3, 2021 — 3. Introduction: Rational Agents

3.1 Agents 3.2 Rationality 3.3 Summary

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 3, 2021 2 / 19

Introduction: Overview

Chapter overview: introduction I 1. What is Artificial Intelligence?

I 2. AI Past and Present I 3. Rational Agents

I 4. Environments and Problem Solving Methods

3. Introduction: Rational Agents Agents

3.1 Agents

(2)

3. Introduction: Rational Agents Agents

Heterogeneous Application Areas

AI systems are used for very different tasks:

I controlling manufacturing plants I detecting spam emails

I intra-logistic systems in warehouses I giving shopping advice on the Internet I playing board games

I finding faults in logic circuits I . . .

How do we capture this diversity in a systematic framework emphasizing commonalities and differences?

common metaphor: rational agents and their environments German: rationale Agenten, Umgebungen

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 3, 2021 5 / 19

3. Introduction: Rational Agents Agents

Agents

? agent percepts

sensors

actions environment

actuators

Agents

I agent functions map sequences of observations to actions:

f : P + → A

I agent program: runs on physical architecture and computes f Examples: human, robot, web crawler, thermostat, OS scheduler German: Agenten, Agentenfunktion, Wahrnehmung, Aktion

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 3, 2021 6 / 19

3. Introduction: Rational Agents Agents

Introducing: an Agent

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 3, 2021 7 / 19

3. Introduction: Rational Agents Agents

Vacuum Domain

A B

I observations: location and cleanness of current room:

ha, cleani, ha, dirtyi, hb, cleani, hb, dirtyi I actions: left, right, suck, wait

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 3, 2021 8 / 19

(3)

3. Introduction: Rational Agents Agents

Vacuum Agent

a possible agent function:

observation sequence action

ha, cleani right

ha, dirtyi suck

hb, cleani left

hb, dirtyi suck

ha, cleani, hb, cleani left ha, cleani, hb, dirtyi suck

. . . . . .

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 3, 2021 9 / 19

3. Introduction: Rational Agents Agents

Reflexive Agents

Reflexive agents compute next action only based on last observation in sequence:

I very simple model I very restricted

I corresponds to Mealy automaton (a kind of DFA) with only 1 state

I practical examples?

German: reflexiver Agent

Example (A Reflexive Vacuum Agent) def reflex-vacuum-agent(location, status):

if status = dirty: return suck else if location = a: return right else if location = b: return left

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 3, 2021 10 / 19

3. Introduction: Rational Agents Agents

Evaluating Agent Functions

What is the right agent function?

3. Introduction: Rational Agents Rationality

3.2 Rationality

(4)

3. Introduction: Rational Agents Rationality

Rationality

Rational Behavior

Evaluate behavior of agents with performance measure (related terms: utility, cost).

perfect rationality:

I always select an action maximizing I expected value of future performance

I given available information (observations so far)

German: Performance-Mass, Nutzen, Kosten, perfekte Rationalit¨ at

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 3, 2021 13 / 19

3. Introduction: Rational Agents Rationality

Is Our Agent Perfectly Rational?

Question: Is the reflexive vacuum agent of the example perfectly rational?

depends on performance measure and environment!

I Do actions reliably have the desired effect?

I Do we know the initial situation?

I Can new dirt be produced while the agent is acting?

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 3, 2021 14 / 19

3. Introduction: Rational Agents Rationality

Rational Vacuum Agent

Example (Vacuum Agent) performance measure:

I +100 units for each cleaned cell I −10 units for each suck action I −1 units for each left/right action environment:

I actions and observations reliable

I world only changes through actions of the agent I all initial situations equally probable

How should a perfect agent behave?

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 3, 2021 15 / 19

3. Introduction: Rational Agents Rationality

Rationality: Discussion

I perfect rationality 6= omniscience

I incomplete information (due to limited observations) reduces achievable utility

I perfect rationality 6= perfect prediction of future I uncertain behavior of environment (e.g., stochastic

action effects) reduces achievable utility I perfect rationality is rarely achievable

I limited computational power bounded rationality German: begrenzte Rationalit¨ at

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 3, 2021 16 / 19

(5)

3. Introduction: Rational Agents Summary

3.3 Summary

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 3, 2021 17 / 19

3. Introduction: Rational Agents Summary

Summary (1)

common metaphor for AI systems: rational agents agent interacts with environment:

I sensors perceive observations about state of the environment I actuators perform actions modifying the environment

I formally: agent function maps observation sequences to actions

I reflexive agent: agent function only based on last observation

M. Helmert (University of Basel) Foundations of Artificial Intelligence March 3, 2021 18 / 19

3. Introduction: Rational Agents Summary

Summary (2)

rational agents:

I try to maximize performance measure (utility)

I perfect rationality: achieve maximal utility in expectation given available information

I for “interesting” problems rarely achievable

bounded rationality

Referenzen

ÄHNLICHE DOKUMENTE

Provide a worst-case runtime estimate of the algorithm based on cutset conditioning if your cutset from the first part of this exercise is used (i.e., compute an upper bound for

Perfom DPLL on the clause set {{A, ¬B}, {¬A, B}, {B, ¬D}, {C}, {¬C, ¬B, ¬D}, {C, D}}, always picking the variable occuring in the highest number of clauses and always considering

In cases where the precondition choice function is not deterministic, choose the precondition in alphabetical order.. Exercise 11.3

– one line for each table position: maximum number of blocks in the tower at this table position, followed by the IDs of the blocks in the initial state, starting from the surface

Successor nodes are generated by applying the following actions in order, ignoring the ones that are inapplicable in a given state: transport 2 missionaries, transport 1

(c) Test your implementation by verifying the statements on Slide 23 of Chapter 20 (print version), which state that hill climbing with a random initialization finds a solution

Provide a worst-case runtime estimate of the algorithm based on cutset conditioning if your cutset from the first part of this exercise is used (i.e., compute an upper bound for

The domain description (variables and actions) is given in the file bridges-once-domain.pddl, and the problem description (objects, initial state and goal description) is given in