agent architectures and hierarchical control
play

Agent architectures and hierarchical control Overview: Agents and - PowerPoint PPT Presentation

Agent architectures and hierarchical control Overview: Agents and Robots Agent systems and architectures Agent controllers Hierarchical controllers D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 1 / 12 Example:


  1. Agent architectures and hierarchical control Overview: Agents and Robots Agent systems and architectures Agent controllers Hierarchical controllers � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 1 / 12

  2. Example: smart house A smart house will monitor your use of essentials, and buy them before you run out. Example: snack buying agent that ensures you have a supply of chips: ◮ abilities: buy chips (and have them delivered) ◮ goals: ◮ stimuli: ◮ prior knowledge: � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 2 / 12

  3. Agent Systems Agent A agent system is made up of a agent and an environment. Body An agent receives stimuli from the environment actions stimuli An agent carries out actions in the Environment environment. � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 3 / 12

  4. Agent System Architecture An agent interacts with the environment through An agent is made up of a body its body. and a controller. The body is made up of: ◮ sensors that interpret Agent stimuli Controller ◮ actuators that carry percepts commands out actions The controller receives Body percepts from the body. actions stimuli The controller sends commands to the body. Environment The body can also have reactions that are not controlled. � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 4 / 12

  5. Implementing a controller A controller is the brains of the agent. Agents are situated in time, they receive sensory data in time, and do actions in time. Controllers have (limited) memory and (limited) computational capabilities. The controller specifies the command at every time. The command at any time can depend on the current and previous percepts. � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 5 / 12

  6. The Agent Functions A percept trace is a sequence of all past, present, and future percepts received by the controller. Number in stock. Price. 300 250 200 150 100 50 0 0 20 40 60 80 Time A command trace is a sequence of all past, present, and future commands output by the controller. � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 6 / 12

  7. The Agent Functions A percept trace is a sequence of all past, present, and future percepts received by the controller. A command trace is a sequence of all past, present, and future commands output by the controller. � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 7 / 12

  8. The Agent Functions A percept trace is a sequence of all past, present, and future percepts received by the controller. A command trace is a sequence of all past, present, and future commands output by the controller. A transduction is a function from percept traces into command traces. � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 7 / 12

  9. The Agent Functions A percept trace is a sequence of all past, present, and future percepts received by the controller. A command trace is a sequence of all past, present, and future commands output by the controller. A transduction is a function from percept traces into command traces. A transduction is causal if the command trace up to time t depends only on percepts up to t . � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 7 / 12

  10. The Agent Functions A percept trace is a sequence of all past, present, and future percepts received by the controller. A command trace is a sequence of all past, present, and future commands output by the controller. A transduction is a function from percept traces into command traces. A transduction is causal if the command trace up to time t depends only on percepts up to t . A controller is an implementation of a causal transduction. � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 7 / 12

  11. The Agent Functions A percept trace is a sequence of all past, present, and future percepts received by the controller. A command trace is a sequence of all past, present, and future commands output by the controller. A transduction is a function from percept traces into command traces. A transduction is causal if the command trace up to time t depends only on percepts up to t . A controller is an implementation of a causal transduction. An agent’s history at time t is sequence of past and present percepts and past commands. � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 7 / 12

  12. The Agent Functions A percept trace is a sequence of all past, present, and future percepts received by the controller. A command trace is a sequence of all past, present, and future commands output by the controller. A transduction is a function from percept traces into command traces. A transduction is causal if the command trace up to time t depends only on percepts up to t . A controller is an implementation of a causal transduction. An agent’s history at time t is sequence of past and present percepts and past commands. A causal transduction specifies a function from an agent’s history at time t into its action at time t . � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 7 / 12

  13. Belief States An agent doesn’t have access to its entire history. It only has access to what it has remembered. � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 8 / 12

  14. Belief States An agent doesn’t have access to its entire history. It only has access to what it has remembered. The memory or belief state of an agent at time t encodes all of the agent’s history that it has access to. The belief state of an agent encapsulates the information about its past that it can use for current and future actions. � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 8 / 12

  15. Belief States An agent doesn’t have access to its entire history. It only has access to what it has remembered. The memory or belief state of an agent at time t encodes all of the agent’s history that it has access to. The belief state of an agent encapsulates the information about its past that it can use for current and future actions. At every time a controller has to decide on: ◮ What should it do? ◮ What should it remember? (How should it update its memory?) — as a function of its percepts and its memory. � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 8 / 12

  16. Controller memories memories Controller commands percepts Body Agent actions stimuli Environment � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 9 / 12

  17. Functions implemented in a controller memories memories commands percepts For discrete time, a controller implements: belief state function remember ( belief state , percept ), returns the next belief state. command function command ( memory , percept ) returns the command for the agent. � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 10 / 12

  18. Example: smart house A smart house will monitor your use of essentials, and buy them before you run out. Example: snack buying agent: ◮ abilities: buy chips (and have them delivered) ◮ goals: mimimize price, don’t run out of chips ◮ stimuli: price, number in stock ◮ prior knowledge: ?? Percept trace: Control trace: Transduction: Belief state: Belief state transition function: Control Function: � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 11 / 12

  19. Implemented Example Percepts: price, number in stock Action: number to buy Belief state: (approximate) running average controller: ◮ if price < 0 . 9 ∗ average and instock < 60 buy 48 ◮ else if instock < 12 buy 12 ◮ else buy 0 � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 12 / 12

  20. Implemented Example Percepts: price, number in stock Action: number to buy Belief state: (approximate) running average controller: ◮ if price < 0 . 9 ∗ average and instock < 60 buy 48 ◮ else if instock < 12 buy 12 ◮ else buy 0 Belief state transition function: average := average + ( price − average ) ∗ 0 . 05 � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 12 / 12

  21. Implemented Example Percepts: price, number in stock Action: number to buy Belief state: (approximate) running average controller: ◮ if price < 0 . 9 ∗ average and instock < 60 buy 48 ◮ else if instock < 12 buy 12 ◮ else buy 0 Belief state transition function: average := average + ( price − average ) ∗ 0 . 05 This maintains a discouning rolling avergage that (eventually) weights more recent prices more. (see agents.py in AIPython distribution http://aipython.org ) � D. Poole and A. Mackworth 2019 c Artificial Intelligence, Lecture 2.1 12 / 12

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