User Tools

Site Tools


public:t-720-atai:atai-19:lecture_notes_w2-2

T-720-ATAI-2019 Main
Links to Lecture Notes

T-720-ATAI-2019

Lecture Notes, W2-2: Agent Control Architectures







Introduction: System Architecture

What it is In CS: the organization of the software that implements a system.
In AI: The total system that has direct and independent control of the behavior of an Agent via its sensors and effectors.
Why it's important The system architecture determines what kind of information processing can be done, and what the system as a whole is capable of in a particular Task-Environemnt.
Key concepts process types; process initiation; information storage; information flow.
Graph representation Common way to represent processes as nodes, information flow as edges.

Relation to AI
The term “system” not only includes the processing components, the functions these implement, their input and output, and relationships, but also temporal aspects of the system's behavior as a whole. This is important in AI because any controller of an agent is supposed to control it in such a way that its behavior can be classified as being “intelligent”. But what are the necessary and sufficient components of that behavior set?

Rationality
The “rationality hypothesis” models an intelligent agent as a “rational” agent: An agent that would always do the most “sensible” thing at any point in time.
The problem with the rationality hypothesis is that given insufficient resources, including time, the concept of rationality doesn't hold up, because it assumes you have time to weigh all alternatives (or, if you have limited time, that you can choose to evaluate the most relevant options and choose among those). But since such decisions are always about the future, and we cannot predict the future perfectly, for most decisions that we get a choice in how to proceed there is no such thing as a rational choice.
Satisficing Herbert Simon proposed the concept of “satisficing” to replace the concept of “optimizing” when talking about intelligent action in a complex task-environment. Actions that meet a particular minimum requirement in light of a particular goal 'satisfy' and 'suffice' for the purposes of that goal.
Intelligence is in part a systemic phenomenon Thought experiment: Take any system we deem intelligent, e.g. a 10-year old human, and isolate any of his/her skills and features. A machine that implements any single one of these is unlikely to seem worthy of being called “intelligent” (viz chess programs), without further qualification (e.g. “a limited expert in a sub-field”).
“The intelligence is the architecture.” - KRTh



CS Architecture Building Blocks


Pipes & filters
Extension of functions.
Component: Each component has a set of inputs and a set of outputs. A component reads streams of data on its inputs and produces streams of data on its outputs, delivering a complete instance of the result in a standard order.
Pipes: Connectors in a system of such components transmit outputs of one filter to inputs of others.
Object-orientation Abstract compound data types with associated operations.
Event-based invocation Pre-defined event types trigger particular computation sequences in pre-defined ways.
Layered systems System is deliberately separated into layers, a layer being a grouping of one or more sub-functions.
Hierarchical systems System is deliberately organized into a hierarchy, where the position in the hierarchy represents one or more important (key system) parameters.
Blackboards System employs a common data store, accessible by more than a single a sub-process of the system (often all).
Hybrid architectures Take two or more of the above and mix together to suit your tastes.



Network Topologies

Point-to-Point Dedicated connection between nodes, shared only by a node at each end.
Bus A message medium, shared by all nodes (or a subset).
Star Central node serves as a conduit, forwarding to others; full structure of nodes forming a kind of star.
Ring All nodes are connected to only two other nodes.
Mesh All nodes are connected to all other nodes (fully connected graph); can be relaxed to partially-connected graph.
Tree Node connections forms a hierarchical tree structure.
Pub-Sub In publish-subscribe architectures one or more “post offices” receive requests to get certain information from nodes.
reference Network topology on Wikipedia



Coordination Hierarchies

A functional hierarchy organizes the execution of tasks according to their functions. A product hierarchy organizes production in little units, each focused on a particular product.
Several types of markets exist - here two idealized versions are show, without and with brokers. De-centralized markets require more intelligence to be present in the nodes, which can be aleviated by brokers. Brokers, however, present weak points in the system: If you have a system with only 2 brokers mediating between processors and consumers/buyers, failure in these 2 points will render the system useless.
Notice that in a basic program written in C++ every single character is such a potential point of failure, which is why bugs are so common in standard software.



Reactive Agent Architecture

Architecture Largely fixed for the entire lifetime of the agent.
Agent may learn but acts only in reaction to experience (no prediction).
Super-simple Sensors connected directly to motors.
Example: Braitenberg Vehicles.
Simple Deterministic connections between components with small memory.
Examples: Chess engines, Roomba vacuum cleaner.
Complex Grossly modular architecture (< 30 modules) with multiple relationships at more than one level of control detail (LoC). \\  Examples: Speech-controlled dialogue systems like Siri and Alexa.
Super-Complex Large number of modules (> 30) at various sizes, each with multiple relationships to others, at more than one LoC.
Example: Subsumption architecture.


Bottom Line
Most architectures are of this kind - towards the higher end of this spectrum very few exists.
What about complex control systems for power plants, manufacturing plants, etc - don't they contain an equal level of complexity (or greater) than the complex or super-complex end of this spectrum? Answer is: Perhaps so (depending on how it's measured), but bear in mind that none of them learn or adapt (except in some extremely trivial ways that are highly localized and specific).
Relying exclusively on constructionist methodologies, it is difficult to put learning into architectures at the high end of this spectrum, and when it's done it's difficult to keep the side effects securely within safe limits.



Subsumption Examples

Subsumption control architecture building block.
subsumption-arch-2.jpg
Example subsumption architecture for robot.
Subsumption architecture example, level 0.
Subsumption architecture example, level 1.
Subsumption architecture example, level 2.



Predictive Agent Architecture

Architecture Largely fixed for the entire lifetime of the agent.
Subsumes the reactive agent architecture, adding that the agent may learn to predict and can use predictions to steer its actions.
Super-simple These have fixed topology; mostly hard-wired control and perception. Prediction limited to one or a few hard-wired topics. No learning.
Simple Deterministic connections between components with small memory, where the memory makes learning and prediction possible. Example: Nest “intelligent” thermostat.
Complex Grossly modular architecture (< 30 modules) with multiple relationships at more than one level of control detail (LoC).
Example: Predictive management for powergrid of a state or nation.
Super-Complex Large number of modules (> 30) at various sizes, each with multiple relationships to others, at more than one LoC.
Examples: No obvious ones come to mind.
Bottom Line It is difficult but possible to integrate predictive learning and behavior control into complex agent architectures using constructionist approaches (hand-coding); better methodologies are needed.



Reflective Agent Architecture

Architecture Architecture changes over the history of the agent. Can demonstrate cognitive growth (cognitive developmental stages).
Subsume features of reactive and predictive architectures, adding introspection (reflection) and some form of (meta-)reasoning (as necessary for managing the introspection).
Super-simple These are above the complexity of super-simple architectures.
Simple These are above the complexity of simple architectures.
Complex Complexity stems from interaction among parts, many of which are generated by the system at runtime and whose complexity may mirror some parts of the task-environment (if task-environment is complex, and lifetime is long, the resulting control structures are likely to be complex as well). \\  Examples: NARS, AERA.
Super-Complex Complexity stems from two-level (or more) systems of the complex kind, where a meta-control layer is in charge of changing the lower level (self-rewriting architecture).
Examples: AERA (in theory - not experimentally validated).





Inferred AGI Architectural Features


Large architecture
An architecture that is considerably more complex than systems being built in most AI labs today is likely unavoidable. In a complex architecture the issue of concurrency of processes must be addressed, a problem that has not yet been sufficiently resolved in present software and hardware. This scaling problem cannot be addressed by the usual “we’ll wait for Moore’s law to catch up” because the issue does not primarily revolve around speed of execution but around the nature of the architectural principles of the system and their runtime operation.

Predictable Robustness in Novel Circumstances
The system must have a robustness in light of all kinds of task-environment and embodiment perturbations, otherwise no reliable plans can be made, and thus no reliable execution of tasks can ever be reached, no matter how powerful the learning capacity. This robustness must be predictable a-priori at some level of abstraction – for a wide range of novel circumstances it cannot be a complete surprise that the system “holds up”. (If this were the case then the system itself would not be able to predict its chances of success in face of novel circumstances, thus eliminating an important part of the “G” from its “AGI” label.)

Graceful Degradation
Part of the robustness requirement is that the system be constructed in a way as to minimize potential for catastrophic (and upredictable) failure. A programmer forgets to delimit a command in a compiled program and the whole application crashes; this kind of brittleness is not an option for cognitive systems operating in partially stochastic environments, where perturbations may come in any form at any time (and perfect prediction is impossible).
Transversal Functions The system must have pan-architectural characteristics that enable it to operate consistently as a whole, to be highly adaptive (yet robust) in its own operation across the board, including metacognitive abilities. Some functions likely to be needed to achieve this include attention, learning, analogy-making capabilities, and self-inspection.

Transversal Time
Ignoring (general) temporal constraints is not an option if we want AGI. (Move over Turing!) Time is a semantic property, and the system must be able to understand – and be able to learn to understand – time as a real-world phenomenon in relation to its own skills and architectural operation. Time is everywhere, and is different from other resources in that there is a global clock which cannot, for many task-environments, be turned backwards. Energy must also be addressed, but may not be as fundamentally detrimental to ignore as time while we are in the early stages of exploring methods for developing auto-catalytic knowledge acquisition and cognitive growth mechanisms.
Time must be a tightly integrated phenomenon in any AGI architecture - managing and understanding time cannot be retrofitted to a complex architecture!

Transversal Learning
The system should be able to learn anything and everything, which means learning probably not best located in a particular “module” or “modules” in the architecture.
Learning must be a tightly integrated phenomenon in any AGI architecture, and must be part of the design from the beginning - implementing general learning into an existing architecture is out of the question: Learning cannot be retrofitted to a complex architecture!
Transversal Resource Management Resource management - attention - must be tightly integrated.
Attention must be part of the system design from the beginning - retrofitting resource management into a architecture that didn't include this from the beginning is next to impossible!
Transversal Analogies Analogies must be included in the system design from the beginning - retrofitting the ability to make general analogies between anything and everything is impossible!

Transversal Self-Inspection
Reflectivity, as it is known, is a fundamental property of knowledge representation. The fact that we humans can talk about the stuff that we think about, and can talk about the fact that we talk about the fact that we can talk about it, is a strong implication that reflectivity is a key property of AGI systems.
Reflectivity must be part of the architecture from the beginning - retrofitting this ability into any architecture is virtually impossible!
Transversal Integration A general-purpose system must tightly and finely coordinate a host of skills, including their acquisition, transitions between skills at runtime, how to combine two or more skills, and transfer of learning between them over time at many levels of temporal and topical detail.





2019©K. R. Thórisson

EOF

/var/www/cadia.ru.is/wiki/data/pages/public/t-720-atai/atai-19/lecture_notes_w2-2.txt · Last modified: 2024/04/29 13:33 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki