Reactive and Hybrid Agents Jos e M Vidal Department of Computer - - PowerPoint PPT Presentation

reactive and hybrid agents
SMART_READER_LITE
LIVE PREVIEW

Reactive and Hybrid Agents Jos e M Vidal Department of Computer - - PowerPoint PPT Presentation

Prelude Subsumption Architecture Hybrid Agents Reactive and Hybrid Agents Jos e M Vidal Department of Computer Science and Engineering University of South Carolina September 2, 2005 Abstract We summarize [Wooldridge, 2002, Chapter 5].


slide-1
SLIDE 1

Prelude Subsumption Architecture Hybrid Agents

Reactive and Hybrid Agents

Jos´ e M Vidal

Department of Computer Science and Engineering University of South Carolina

September 2, 2005 Abstract

We summarize [Wooldridge, 2002, Chapter 5].

Vidal Reactive and Hybrid Agents

slide-2
SLIDE 2

Prelude Subsumption Architecture Hybrid Agents

Prelude

Deduction is slow.

Vidal Reactive and Hybrid Agents

slide-3
SLIDE 3

Prelude Subsumption Architecture Hybrid Agents

Prelude

Deduction is slow. Deduction is complicated.

Vidal Reactive and Hybrid Agents

slide-4
SLIDE 4

Prelude Subsumption Architecture Hybrid Agents

Prelude

Deduction is slow. Deduction is complicated. Maybe, rationality requires an environment!

Vidal Reactive and Hybrid Agents

slide-5
SLIDE 5

Prelude Subsumption Architecture Hybrid Agents

Prelude

Deduction is slow. Deduction is complicated. Maybe, rationality requires an environment! Maybe, intelligent behavior emerges from the interaction of simple behaviors [Minsky, 1988].

Vidal Reactive and Hybrid Agents

slide-6
SLIDE 6

Prelude Subsumption Architecture Hybrid Agents

Prelude

Deduction is slow. Deduction is complicated. Maybe, rationality requires an environment! Maybe, intelligent behavior emerges from the interaction of simple behaviors [Minsky, 1988]. These trends gave rise to behavioral, situated, reactive agent architectures.

Vidal Reactive and Hybrid Agents

slide-7
SLIDE 7

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

The Subsumption Architecture

Proposed by Brooks in [Brooks, 1986]: for robots. Extended it into a new view of AI, [Brooks, 1991a, Brooks, 1991b]. Key ideas:

Intelligent behavior does not require explicit representations. Intelligent behavior does not require abstract (symbolic) reasoning. Intelligence is an emergent property of certain complex systems.

Rodney A. Brooks

Vidal Reactive and Hybrid Agents

slide-8
SLIDE 8

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Subsumption Basic Ideas

Situatedness and embodiment- an agent sits in a world and has a body. Emergent Intelligence- an agent’s intelligence arises out of its interactions with the environment and is “in the eye of the beholder.” All these ideas are embodied in the subsumption architecture.

Vidal Reactive and Hybrid Agents

slide-9
SLIDE 9

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Subsumption Implementation

The agent has a set of behaviors which are purely reactive (action: S → A).

Vidal Reactive and Hybrid Agents

slide-10
SLIDE 10

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Subsumption Implementation

The agent has a set of behaviors which are purely reactive (action: S → A). Many of them can fire at the same time.

Vidal Reactive and Hybrid Agents

slide-11
SLIDE 11

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Subsumption Implementation

The agent has a set of behaviors which are purely reactive (action: S → A). Many of them can fire at the same time. We choose an action using the subsumption hierarchy.

Vidal Reactive and Hybrid Agents

slide-12
SLIDE 12

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Subsumption Implementation

The agent has a set of behaviors which are purely reactive (action: S → A). Many of them can fire at the same time. We choose an action using the subsumption hierarchy. Behaviors are arranged into layers, so that lower layers inhibit higher one. The lower layers have the higher priority.

Vidal Reactive and Hybrid Agents

slide-13
SLIDE 13

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Subsumption Implementation

The agent has a set of behaviors which are purely reactive (action: S → A). Many of them can fire at the same time. We choose an action using the subsumption hierarchy. Behaviors are arranged into layers, so that lower layers inhibit higher one. The lower layers have the higher priority. Formally,

Vidal Reactive and Hybrid Agents

slide-14
SLIDE 14

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Subsumption Implementation

The agent has a set of behaviors which are purely reactive (action: S → A). Many of them can fire at the same time. We choose an action using the subsumption hierarchy. Behaviors are arranged into layers, so that lower layers inhibit higher one. The lower layers have the higher priority. Formally,

a behavior b is a pair (c, a)

Vidal Reactive and Hybrid Agents

slide-15
SLIDE 15

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Subsumption Implementation

The agent has a set of behaviors which are purely reactive (action: S → A). Many of them can fire at the same time. We choose an action using the subsumption hierarchy. Behaviors are arranged into layers, so that lower layers inhibit higher one. The lower layers have the higher priority. Formally,

a behavior b is a pair (c, a) c ⊆ P. P is the set of perceptions.

Vidal Reactive and Hybrid Agents

slide-16
SLIDE 16

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Subsumption Implementation

The agent has a set of behaviors which are purely reactive (action: S → A). Many of them can fire at the same time. We choose an action using the subsumption hierarchy. Behaviors are arranged into layers, so that lower layers inhibit higher one. The lower layers have the higher priority. Formally,

a behavior b is a pair (c, a) c ⊆ P. P is the set of perceptions. a ∈ A. A is the set of actions.

Vidal Reactive and Hybrid Agents

slide-17
SLIDE 17

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Subsumption Implementation

The agent has a set of behaviors which are purely reactive (action: S → A). Many of them can fire at the same time. We choose an action using the subsumption hierarchy. Behaviors are arranged into layers, so that lower layers inhibit higher one. The lower layers have the higher priority. Formally,

a behavior b is a pair (c, a) c ⊆ P. P is the set of perceptions. a ∈ A. A is the set of actions.

We call c the condition and a the action parts.

Vidal Reactive and Hybrid Agents

slide-18
SLIDE 18

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Subsumption Implementation

The agent has a set of behaviors which are purely reactive (action: S → A). Many of them can fire at the same time. We choose an action using the subsumption hierarchy. Behaviors are arranged into layers, so that lower layers inhibit higher one. The lower layers have the higher priority. Formally,

a behavior b is a pair (c, a) c ⊆ P. P is the set of perceptions. a ∈ A. A is the set of actions.

We call c the condition and a the action parts. We define the inhibition relation ≺, and say b1 ≺ b2 when we mean that b1 inhibits b2

Vidal Reactive and Hybrid Agents

slide-19
SLIDE 19

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Action Selection

function action(p:P) : A var fired var selected begin fired ← {(c, a) | (c, a) ∈ ℜ ∧ p ∈ c} for each (c, a) ∈ fired do if ¬(∃(c′, a′) ∈ fired such that (c′, a′) ≺ (c, a)) then return a end-if end-for return null end

Vidal Reactive and Hybrid Agents

slide-20
SLIDE 20

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Mars Example

Steels’ Mars Exploration Problem. The objective is to explore a distant planet, and in particular, to collect sample of a precious rock. The location of the samples is not known in advance, but it is known that they tend to be clustered There is a gradient field that emanates from the mother ship. Agents carry radioactive crumbs which they can drop or pick up. What are the rules?

Vidal Reactive and Hybrid Agents

slide-21
SLIDE 21

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Solution

1 If detect an obstacle then change direction. 2 If carrying samples and at the base then drop samples. 3 If carrying samples and not at the base then travel up

gradient.

4 If detect a sample then pick sample up. 5 If true then move randomly.

1 ≺ 2 ≺ 3 ≺ 4 ≺ 5 OK, that works, but what if the samples are located in clusters?

Vidal Reactive and Hybrid Agents

slide-22
SLIDE 22

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Another Solution

1 If carrying samples and at the base then drop samples. 2 If carrying samples and not at the base then drop 2 crumbs

and travel up gradient.

3 If sense crumbs then pick up 1 crumb and travel down

gradient. 1 ≺ 6 ≺ 7 ≺ 4 ≺ 8 ≺ 5 See the Ants models in netlogo.

Vidal Reactive and Hybrid Agents

slide-23
SLIDE 23

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Limitations

Agents must have enough information in local environment to determine which action to take. How to take into account old or non-local information? How do reactive agents learn? Emergence (between agent and environment) is hard to

  • engineer. We don’t have a methodology.

It is very hard to build agents that have many behaviors.

Vidal Reactive and Hybrid Agents

slide-24
SLIDE 24

Prelude Subsumption Architecture Hybrid Agents Algorithm Example Limitations

Limitations

Agents must have enough information in local environment to determine which action to take. How to take into account old or non-local information? How do reactive agents learn? Emergence (between agent and environment) is hard to

  • engineer. We don’t have a methodology.

It is very hard to build agents that have many behaviors. On the plus side, it has been a very successful method for building robots, such as Roomba.

Vidal Reactive and Hybrid Agents

slide-25
SLIDE 25

Prelude Subsumption Architecture Hybrid Agents

Hybrid Agents

In horizontal layering all layers are connected to the inputs and output. At the end, a mediator is needed to determine which action to take. In vertical layering one-pass the input is connected to one layer, which is connected to the next, and so on until the last layer is connected to the output. Partial results are passed between them. Their functioning resembles that of a corporation. In vertical layering two-pass the message bounces off the last layer.

Vidal Reactive and Hybrid Agents

slide-26
SLIDE 26

Prelude Subsumption Architecture Hybrid Agents

Touring Machines

Perception subsystem Control subsystem Modeling layer Planning layer Reactive layer Control subsystem Action sub- system

Vidal Reactive and Hybrid Agents

slide-27
SLIDE 27

Prelude Subsumption Architecture Hybrid Agents

InterRRaP

Cooperation Layer Plan Layer Behavior Layer World Interface Perceptual Input Action Input Behavior Patterns World Model Planning Knowledge Social Knowledge Employs bottom-up activation and top-down execution.

Vidal Reactive and Hybrid Agents

slide-28
SLIDE 28

Prelude Subsumption Architecture Hybrid Agents

Brooks, R. A. (1986). A robust layered control system for a mobile robot. IEEE Journal of Robotics and Automation, 2(1):14–23. Brooks, R. A. (1991a). Intelligence without reason. In Proceedings of 12th International Joint Conference on Artificial Intelligence, pages 569–595. Brooks, R. A. (1991b). Intelligence without representation. Artificial Intelligence Journal, 47:139–159. Minsky, M. (1988). The Society of Mind. Simon & Schuster.

Vidal Reactive and Hybrid Agents

slide-29
SLIDE 29

Prelude Subsumption Architecture Hybrid Agents

Wooldridge, M. (2002). Introduction to MultiAgent Systems. John Wiley and Sons.

Vidal Reactive and Hybrid Agents