techniques for analysis and calibration of multi- agent simulations manuel fehler franziska klügl...

30
Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche Intelligenz und Angewandte Informatik

Upload: barbara-bell

Post on 29-Dec-2015

217 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Techniques for Analysis and Calibration of Multi-

Agent Simulations

Manuel FehlerFranziska Klügl

Frank Puppe

Universität WürzburgLehrstuhl für Künstliche Intelligenz

und Angewandte Informatik

Page 2: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Outline

• Motivation and Problem Statement• Society Calibration Problem• Standard Solutions

• White Box Calibration Techniques• Discussion

Page 3: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Motivation and Problem Statement

Page 4: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Multi-agent society simulationGeneral starting point

• We want to understand and/or design societies by simulating them using multi agent simulation

Multi-Agent Simulation• Allows explicit representation of agents and societies from

original system in micro model• To learn from a society simulation model it must be valid in

terms of:• model structure• input parameter configuration controlling the structure

Calibration of society MASim• Model calibration means tuning the parameters so that some

desired (global) society goal(s) or behavior(s) are achieved• Validity of the current parameter configuration for a society

behavior must be evaluated by a goal function• Value of goal function for one parameter configuration is

computed by running the simulation

Page 5: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Society Calibration Problem

Calibrating multi agent society models is especially hard because:• Multi-agent society models often use much more

extensive sets of input parameters than other more restricted forms of modeling

• Model parameters influencing the simulation on a local or agent level have to be set in a way that a certain global society goal or behavior is reached

multi-level calibration problem society calibration problem

Page 6: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Standard Black Box CalibrationOverview:• Society simulation model as black box• Simulation computes some function, not explicitly written down• Try to obtain approximate relationship between input parameters

and simulation output to determine „optimal“ input settingExamples:

• Simulated Annealing, Genetic AlgorithmsAdvantages:

• Generally applicable to any simulation modelDisadvantages:

• Calibration of larger society simulation models possibly too complex to tackle:

• Large parameter configuration search spaces• Complex parameter relationships on different society levels• Multi-agent simulations very computationally expensive

Page 7: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

White Box Calibration Approach

Explicitly use model knowledge to enhance calibration process• Knowledge about structural model properties• Knowledge about inter-parameter dependencies

Goal of white box approach:• Reduce parameter configuration search space• Reduce complexity of parameter relationships

Faster convergence of black box search methods• Reduce computational cost of running multi-agent

society simulation Allow to test more parameter configuration

search space points in same amount of time

Page 8: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Simple bee hive example used for illustration

Simulation of major activities in a bee hivea) Foster bee brood:

• Keep the brood warm• Keep the brood fed up

b) Forage a patch environment around the hive for nectar• Find good nectar sources• Communicate to exchange information about source

positions

Nectar

New bees

Page 9: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Starting Points for White Box Calibration

Model decompositon techniquesModel abstraction techniques

Proposed techniques generally applicable to any multi-agent simulation fulfilling requirements for

a technique

Page 10: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Model Decomposition Techniques

General Idea:• Break MASim into smaller submodels, that can be

treated as individual models for calibration• Merge calibrated submodels afterwards

Dimensions of model decomposition:• Decomposition based on:

• functional model units• distributed problem solving in societies• behavioral agent models• temporal phases and situations

Page 11: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Model Decomposition Techniques 2

Decomposition based on functional model units• Identify mostly independent functional units and

calibrate them separatelyTechniques:

• Independent macro model parts as functional unit

Full simulation model

Independent macro model

part 1

Independent macro model

part 2

Page 12: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Model Decomposition Techniques 2

Functional decomposition• Identify mostly independent functional units and

calibrate them separatelyTechniques:

• Independent macro model parts as functional unit• Non-agent environment as functional unit

Some (sub)model

Agents acting in environmental

submodel

Non-agent environmental

submodel

DefinesConstraintsFor Agents

Example

Page 13: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Model Decomposition Techniques 2

Functional decomposition• Identify mostly independent functional units and

calibrate them separatelyTechniques:

• Independent macro model parts as functional unit• Non-agent environment as functional unit• Groups of agents as functional units

All agents in submodel

Agent Group 1 solving some

task

Agent Group 2 solving some

task 2 independent from task 1

Example

Page 14: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Model Decomposition Techniques 2

Functional decomposition• Identify mostly independent functional units and

calibrate them separatelyTechniques:

• Independent macro model parts as functional unit• Non-agent environment as functional unit• Groups of agents as functional units• Individual agents as functional unitsAll agents in

submodel

Agent Group 1 solving some

task

Agent Group 2 solving some

task 2 independent from task 1

Agent class 1 aiding group by

performing independent

subtask 1

Agent class 2 aiding group by

performing independent

subtask 2 Example

Page 15: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Model Decomposition Techniques 3

Decomposition based on distributed problem solving property• Decompose global problem solved by society into

subproblem hierarchy• Calibrate mostly independent subproblems

individually• Merge submodels and refine calibrationGlobal Goal

Maximum amount of

nectar

Subgoal 1All agents

collect from optimal patch

Subgoal 2Optimally

efficient nectar collection

flights

Subgoal 1.1Optimally

efficient scout flights

Subgoal 1.2Optimally

share patch information

among agents

Subgoal 1.3Make optimal

use of avaiable patch

information

Subgoal 1.3.1Stop search

flights if information is

avaiable

Subgoal 1.3.2Forget patches

of lesser quality to be

recruited

Simple Example from Biology

Page 16: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Model Decomposition Techniques 4

Decomposition based on behavioral agent models• Classify parameters based on

their relevance to different possible agent behaviors

• Identify individual goal functions for each behavior class

• Apply optimization with fewer parameters for each goal

Agent without a Task

Search for Task

Task Selection/Allocation

Task Accomplishment

Parameters that trigger willingness to accomplish

a task

Parameters that define searching routines/

success

Parameters that define selection of task/between

different tasksParameters that make agent abandon/switch

tasks

No task selected

Parameters that make agent become idle

Task accomplished

Simple Example

Page 17: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Model Decomposition Techniques 5

Decomposition based on situations and temporal phases

• Identify independent temporal phases or situations of mostly independent behavior during one simulation run not all behavior occurs at the same time

• Separate calibration of the simulation during those phases• Reduce inner simulation time for one simulation run• Reduce parameter space for one temporal phase• If one phase creates precondition for another phase

Submodel calibration ordered by phasesSome (sub)model

Submodel 1:Starting situation

Submodel 2:Typical

situation

Submodel 3:Some critical

situation

Simple Example

Page 18: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Model Abstraction Techniques

General Idea:• Enable faster computation and easier model analysis

by abstracting model aspectsTechniques:

• Abstraction by aggregation of functional groups

• Calibrate individual group agents replace individual agents on group by one agent representing whole group

• Calibrate group behavior constraints for individual group agents

Page 19: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Model Abstraction Techniques

General Idea:• Enable faster computation and easier model analysis

by abstracting model aspectsTechniques:

• Abstraction by aggregation of functional groups• Abstraction reducing heterogeneity

• Homogeneous environments or agent abilities may allow to learn initial parameter configurations for full model calibration

Page 20: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Model Abstraction Techniques

General Idea:• Enable faster computation and easier model analysis

by abstracting model aspectsTechniques:

• Abstraction by aggregation of functional groups• Abstraction reducing heterogeneity• Abstraction at model scale

• Calibrate model of reduced scale (environment, agent numbers)

• Scaling relationships must be known

Page 21: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Model Abstraction Techniques

General Idea:• Enable faster computation and easier model analysis

by abstracting model aspectsTechniques:

• Abstraction by aggregation of functional groups• Abstraction reducing heterogeneity• Abstraction at model scale• Reduction of mass agent systems for easier

analysis• Mass agent systems solve problems by solving

similar smaller subproblems very often• Calibration of individual agent for smaller

subproblem can solve mass system problem

Page 22: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Model Abstraction Techniques

General Idea:• Enable faster computation and easier model analysis

by abstracting model aspectsTechniques:

• Abstraction by aggregation of functional groups• Abstraction reducing heterogeneity• Abstraction at model scale• Reduction of mass agent systems for easier analysis• Implementation optimization techniques

• Abstraction of deterministic agent actions• Meta models for calibrated macro model parts

Page 23: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Sketch of White Box Calibration Method

Page 24: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Sketch of a White Box Calibration Method

1. Calibrate problem setting (e. g. calibrate non agent environment)

2. Temporal and situation based decomposition• May be repeated recursively

3. Goal and behavior based decomposition of submodels• After successful decomposition Goto 1

4. Model analysis• Reduce mass agent systems in submodels for easier

analysis• Generate constraints by calibration of abstracted models

5. Identify goal functions for each submodel and calibrate

6. Merge submodels and calibrate linking parameters• Use abstracted models of calibrated submodels

Page 25: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Sketch of a White Box Calibration Method

1. Calibrate problem setting (e. g. calibrate non agent environment)

2. Temporal and situation based decomposition• May be repeated recursively

3. Goal and behavior based decomposition of submodels• After successful decomposition Goto 1

4. Model analysis• Reduce mass agent systems in submodels for easier

analysis• Generate constraints by calibration of abstracted models

5. Identify goal functions for each submodel and calibrate

6. Merge submodels and calibrate linking parameters• Use abstracted models of calibrated submodels

Page 26: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Sketch of a White Box Calibration Method

1. Calibrate problem setting (e. g. calibrate non agent environment)

2. Temporal and situation based decomposition• May be repeated recursively

3. Goal and behavior based decomposition of submodels• After successful decomposition Goto 1

4. Model analysis• Reduce mass agent systems in submodels for easier

analysis• Generate constraints by calibration of abstracted models

5. Identify goal functions for each submodel and calibrate6. Merge submodels and calibrate linking parameters

• Use abstracted models of calibrated submodels

Page 27: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Sketch of a White Box Calibration Method

1. Calibrate problem setting (e. g. calibrate non agent environment)

2. Temporal and situation based decomposition• May be repeated recursively

3. Goal and behavior based decomposition of submodels• After successful decomposition Goto 1

4. Model analysis• Reduce mass agent systems in submodels for easier

analysis• Generate constraints by calibration of abstracted models

5. Identify goal functions for each submodel and calibrate

6. Merge submodels and calibrate linking parameters• Use abstracted models of calibrated submodels

Page 28: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Sketch of a White Box Calibration Method

1. Calibrate problem setting (e. g. calibrate non agent environment)

2. Temporal and situation based decomposition• May be repeated recursively

3. Goal and behavior based decomposition of submodels• After successful decomposition Goto 1

4. Model analysis• Reduce mass agent systems in submodels for easier

analysis• Generate constraints by calibration of abstracted models

5. Identify goal functions for each submodel and calibrate6. Merge submodels and calibrate linking parameters

• Use abstracted models of calibrated submodels

Page 29: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Sketch of a White Box Calibration Method

1. Calibrate problem setting (e. g. calibrate non agent environment)

2. Temporal and situation based decomposition• May be repeated recursively

3. Goal and behavior based decomposition of submodels• After successful decomposition Goto 1

4. Model analysis• Reduce mass agent systems in submodels for easier

analysis• Generate constraints by calibration of abstracted models

5. Identify goal functions for each submodel and calibrate6. Merge submodels and calibrate linking parameters

• Use abstracted models of calibrated submodels

Page 30: Techniques for Analysis and Calibration of Multi- Agent Simulations Manuel Fehler Franziska Klügl Frank Puppe Universität Würzburg Lehrstuhl für Künstliche

Discussion

Summary• Calibration of multi agent societies is a very hard problem in

terms of• Complexity of inter parameter dependencies• Size of parameter configuration search space• Computational complexity of running a simulation model

• Black box calibration methods fail in calibration of complex multi-agent society simulation models

• White box calibration methods can exploit structural modularity inherent to society MASims to simplify the calibration problem

• White box techniques need to be applied with great care in order to produce valid and usable results

Further Work• Bottom up calibration vs. top down calibration• Calibration for design