31
WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Embed Size (px)

Citation preview

Page 1: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITHHETEROGENEOUS AD HOC AGENTS

Somchaya Liemhetcharat, Manuela Veloso

Presented by:

Raymond Mead

Page 2: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Problem• Written for RoboCup Rescue Simulator, where teams of

robots are used to solve tasks.• We want to choose the best team of robots to tackle a disaster.• Around 50 possible agents.

• How can we form the best team when everyone’s abilities, and how well people work together, are known?

• Given observations of groups and their performances, how can we generate a graph to model each person’s ability, and how well people work together?

Page 3: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Modeling Teams• For forming teams, we want to look at:

• The compatibility between members of the team.• Each person’s ability.

• Using a weighted graph:• Each vertex represents a person, who has a certain ability• Edges are used to show similarity between people

• A person’s ability is modeled as a normal distribution • For someone, , their ability is

Page 4: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Example Graph

Page 5: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Compatibility

• is the minimum distance between

• , is a compatibility function.• Models how well people work together.

• Larger distance → Less compatible• • , exponential decay

Page 6: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Synergy of a Pair• A pair of people: • For a pair’s Synergy, add their abilities, , and scale it by

how compatible they are, .

• Normal distribution ~

Page 7: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Synergy of a Team• Average the Synergy between all pairs in a team •

• Normal Distribution ~

Page 8: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Example Synergies

Page 9: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Evaluating a Team• -value of a team is s.t. .

• Probability of a team’s performance being is .

• If , then • high risk, high reward• low risk, low reward

• is better than if

• -optimal team: • Has largest

Page 10: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Problem: Finding the -Optimal Team• Among all possible teams, find the best team for given .

• Need to check all possible sizes of teams• Need to check most, if not all teams for each team size.

• NP-Hard• Reduce the Max-Clique problem to Finding the Optimal Team.• Max-Clique: Find the largest subgraph, where there is an edge

between every pair of vertices.• NP-Complete

Page 11: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Algorithm: -optimal team of size • Branch and Bound Algorithm:

• is a team used for exploring possible teams.• Bound performance of to decide to keep exploring or not.• is the current known best team, with .• Initially, , and .

• Check all pairs, unless a new best is not possible with the current members.

• if the best is known• otherwise

Page 12: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Algorithm: -optimal team of size

If , compare and Return if is better, otherwise.

For , where

• All nodes that can be added are assumed to be worst or best case• Min compatibility with min ability → worst• Max compatibility with max ability → best

Page 13: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Reducing the Max-Clique Problem• , is unweighted - want to find the max-clique.

• The max-clique in will be the largest optimal team.

• Create to run with • Each edge in corresponds to an edge of weight 1 in • Everyone’s ability is • , Evaluating a team only depends on mean, always 1.•

Page 14: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Max-Clique → Best Team• Evaluating :

, definition

, only mean matters

• only when there is an edge between a pair in • otherwise

• Maximized when there is an edge between every pair of

Page 15: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Approximation Algorithm• Simulated Annealing

• Looking at teams similar to the current best, and comparing them

• Generate a random team• Repeat constant times:

• Find a new team similar to the current best, swap a node in • Evaluate both teams

• Replace if the new team is better

• Return the best team found

• Runs in if is known.• Evaluating is , where

• if n is unknown

Page 16: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Approximation Algorithm

Repeat times

Compare and Replace if is better

Return

Page 17: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Comparison• Effectiveness of team is

• Where ’s performance fits between best and worst.

Page 18: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Learning the Synergy Graph

• We have observations, , containing all people, .• Each observation is , team , performance, .

• Find a synergy graph that best fits the observations.• Need to find ability of each person.• Need to find the compatibility between people.

• Strategy: Simulated Annealing

Page 19: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Learning Algorithm

:

Repeat constant times:

Compare scores of , and if is better

Return

Page 20: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Generating G and Finding Similar G’

• Vertices represent each person• Randomly put edges of random weights between vertices

• Do one of the following to :• Increase a random edge’s weight by 1• Decrease a random edge’s weight by 1• Remove a random edge• Add a random edge of random weight

Page 21: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Similar Graph:

Page 22: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Fitting Abilities to a Graph• Look at all teams of size 2 or 3 of , .

• Each , there are observations of , each with a performance.• Fit a normal distribution to the observed performance of .

• , is the observed distribution of • is the set of all

• We want the distribution of to match the distribution of .• Fit to as best we can choosing for each person

Page 23: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Fitting Abilities• For with of size 2:

• Similar for of size 3.

• Know , from the graph, and we want to fit to.• , matrix of , one row per team,

• Fit , for

• matrix of , one row per team, • Fit for

Page 24: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Code:

Page 25: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Log-Likelihood• Sum of log-likelihoods for each observation, given

synergy graph, and abilities.

• For an observation :

• Probability density of normal distribution at value .

Page 26: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Code

Page 27: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Evaluation

• Generate a hidden graph, with compatibility and abilities.• Generate a set of observations

• Run the learning Algorithm• Compare Log-Likelihood of learned graph with true graph.

Page 28: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Results

Page 29: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Results

Page 30: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Using for RoboCup

Page 31: WEIGHTED SYNERGY GRAPHS FOR EFFECTIVE TEAM FORMATION WITH HETEROGENEOUS AD HOC AGENTS Somchaya Liemhetcharat, Manuela Veloso Presented by: Raymond Mead

Thoughts:• Domain specific:

• Works well for the given problem, but may not be good for other applications.

• Tested for relatively small graphs.• May not be generalizable to large sparse graphs.

• Due to randomness of search.

• Modifying for learning large graphs:• Generate a better initial graph.• Make better choice for a similar graph.• More localized evaluation.