luís moniz pereira centria, departamento de informática universidade nova de lisboa...

29
Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa [email protected] Pierangelo Dell’Acqua Dept. of Science and Technology Linköping University [email protected]

Post on 20-Dec-2015

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Luís Moniz Pereira

CENTRIA, Departamento de Informática

Universidade Nova de Lisboa

[email protected]

Pierangelo Dell’Acqua

Dept. of Science and Technology

Linköping University

[email protected]

Page 2: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Our agents

We propose a LP approach to agents that can:

Reason and react to other agentsPrefer among possible choices Intend to reason and to actUpdate their own knowledge, reactions and goals Interact by updating the theory of another agentDecide whether to accept an update depending on the

requesting agent

Page 3: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Framework

This framework builds on the work:

Updating Agents - P. Dell’Acqua & L. M. Pereira

MAS’99

Updates plus Preferences - J. J. Alferes & L. M.

Pereira JELIA’00

Page 4: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Updating agents

Updating agent: a rational, reactive agent that can dynamically change its own knowledge and goals:

makes observations reciprocally updates other agents with goals and rules thinks a bit (rational) selects and executes an action (reactive)

Page 5: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Updates plus preferences

A logic programming framework that combines two distinct forms of reasoning: preferring and updating.

Updates create new models, while preferences allow us to select among pre-existing models

The priority relation can itself be updated.

A language capable of considering sequences of logic programs that result from the consecutive updates of an initial program, where it is possible to define a priority relation among the rules of all successive programs.

Page 6: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Preferring agents

Agents can express preferences about their own rules.

Preferring agent: an agent that is able to prefer beliefs and reactions when several alternatives are possible.

Preferences are expressed via priority rules.

Preferences can be updated, possibly on advice from others.

Page 7: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Agent’s language

Atomic formulae:

A objective atoms

not A default atoms

i:C projects

updates:- i C

Formulae:

A L1 Ln

not A L1 Ln

L1 Ln Z

Li is an update or an atom

active rule

generalized rules

Zj is a project

integrity constraint

false L1 Ln Z1 Zm

Page 8: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Agent’s language

i : ( A L1 Ln )

i : ( L1 Ln Z )

i : ( ?- L1 Ln )

A project i:C can take one of the forms:

i : ( not A L1 Ln )

goal

i : ( false L1 Ln Z1 Zm )

Note that a program can be updated with another program, i.e., any rule can be updated.

Page 9: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Agents’ knowledge states

Knowledge states represent dynamically evolving states of agents’ knowledge. They undergo change due to updates.

Given the current knowledge state Ps , its successor knowledge state Ps+1 is produced as a result of the occurrence of a set of

parallel updates.

Update actions do not modify the current or any of the previous knowledge states. They only affect the successor state: the precondition of the action is evaluated in the current state and the postcondition updates the successor state.

Page 10: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Projects and updates

A project j:C denotes the intention of some agent i of proposing the updating the theory of agent j with C.

denotes an update proposed by i of the current theory of some agent j with C .

wilma:C

:- i C

:- fred C

Page 11: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Priority rules

Let < be a binary predicate symbol whose set of constants includes all the generalized rules:

r1 < r2 means that the rule r1 is preferred to the rule r2 .

A priority rule is a generalized rule defining < .

Page 12: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Prioritized abductive LP

A prioritized LP is a set of generalized rules (possibly, priority rules) and integrity constraints.

Page 13: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Agent theory

The initial theory of an agent is a pair (P,R):- P is an prioritized LP.- R is a set of active rules.

An updating program is a finite set of updates.

Let S be a set of natural numbers. We call the elements sS states.

An agent at state s , written ,s , is a pair (T,U):

- T is the initial theory of .

- U={U1,…, Us} is a sequence of updating programs.

Page 14: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Multi-agent system

A multi-agent system M={1,s ,…, n,s } at state s is a set of agents 1,…,n at state s.

M characterizes a fixed society of evolving agents.

The declarative semantics of M characterizes the relationship among the agents in M and how the system evolves.

The declarative semantics is stable models based.

Page 15: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Distributed databases and cooperative agents

Then p can be characterized by (P,R), where

rC reject(rC) NrC

NrC t:NrC

P =

R =rC=residence of CarloNrC=new residence of Carlo

Communication and updates allow to integrate distinct agents.

Assume that we want to minimize the administrative procedure required for changing residence. For example, we may notify the new residence once in a public office (p). Then it is the responsibility of that office to inform all the relevant offices.

Page 16: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Representation of conflicting informationand preferences

This example models a situation where an agent, Fabio, receives conflicting advice from two reliable authorities.

Let (P,R) be the initial theory of Fabio, where R={} and

dont(A) fa(noA) not do(A) (r1)

do(A) ma(A) not dont(A) (r2)

false do(A) fa(noA)

false dont(A) ma(A)

r1 < r2 fr

r2 < r1 mr

P = fa=father advisesma=mother advisesfr=father responsabilitymr=mother responsability

Preferences may resolve conflicting information.

Page 17: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Representation of conflicting informationand preferences

Suppose that Fabio wants to live alone, represented as lA.

U1 =

His mother advises him to do so, but the father advises not to do so:

mother ma(lA) ,:- father fa(nolA):-

Assuming that there are no rejection clauses, Fabio accepts both updates, and therefore he is still unable to choose either do(lA) or dont(lA) and, as a result, does not perform any action whatsoever.

Page 18: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Representation of conflicting informationand preferences

U2 =

Afterwards, Fabio's parents separate and the judge assigns responsibility over Fabio to the mother:

judge mr:-

Now the situation changes since the second priority rule gives preference to the mother's wishes, and therefore Fabio can happily conclude ”do live alone”.

Page 19: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Updating preferences

Within the theory of an agent both rules and preferences can

Here internal projects of an agent are used to update its own priority rules.

The updating process is triggered by means of external or internal projects.

be updated.

Page 20: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Updating preferences

Let the theory of George be characterized by :

workLate not party (r1)

party not workLate (r2)

money workLate (r3)

r2 < r1

beautifulWoman george: wishGoOut

wishGoOut not money george: getMoney

wishGoOut money beautifulWoman: inviteOut

getMoney george: r1 < r2

getMoney george: not r2 < r1

P =

R =

partying is prefered to working until late

to get money, George must update his priority rules

Page 21: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Applications

Applications in which our agent technology can have a significant potential to contribute are internet applications, e.g.

- information integration

- web-site management

Page 22: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Engineering agent societies

We believe that the theory of our agents is rich and suitable to engineer configurable, dynamic, self-organizing and self-evolving agent societies.

Jennings argues that:

- open, networked systems are characterized by the fact that

there is no simple controlling organization.

- the computational model of these systems places several

requirements.

Page 23: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Engineering agent societies

Computational model’s requirements: the individual entities must be active and autonomous;

the individual entities need to be reactive and proactive;

the computational entities need to be capable of interacting with entities

that were not foreseen at design time;

any organizational relationships that do exist must be reflected in the behaviour and actions of the agents (i.e., the organizational relationships must be explicitly represented).

Page 24: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Engineering agent societies

Castelfranchi claims that:

- The most effective solution to the problem of social order in

multi-agent systems is social modelling.

- It should leave some flexibility and try to deal with emergent

and spontaneous form of organizations (that is, decentralized

and autonomous social control).

Problem: modeling the feedback from the global results to the local/individual layer

Page 25: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Introspection and meta-reasoningfor social modelling

To solve this problem we need two ingredients:

introspection

To dynamically change the organization, structure of the multi-agent system, agents must be aware (even if partially) of the structure and must be able to introspect about it.

Introspection

By using metareasoning the agent can evaluate it, obtain feedback from it and eventually try to modify it via preferences and updates in a rational way.

Meta-reasoning

metareasoning

Page 26: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Future work

The approach can be extended in several ways: Dynamically reconfigurable multi-agent system.

Introspective and meta-reasoning abilities.

Other rational abilities can be incorporated, e.g.,

learning.

Proof procedure for preference reasoning to be incorporated

into the current implementation of updates plus

abduction.

Page 27: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Conclusions - 1

To have dynamic, flexible agent societies we need to have suitable agent theories, otherwise the structure modeling the agent society will be rigid in the sense that it will not be modifiable by the agents themselves.

We believe that our theory of agents is a suitable basis for achieving this aim.

Page 28: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Conclusions - 2

We have presented an approach to agents that can:

Reason and react to the environment Update their own knowledge Interact with each other by action rules that allow to

express the intention to update the theory of another agent Decide whether to update their own knowledge depending

on the requiring agent Prefer among possible choices

Page 29: Luís Moniz Pereira CENTRIA, Departamento de Informática Universidade Nova de Lisboa lmp@di.fct.unl.pt Pierangelo Dell’Acqua Dept. of Science and Technology

Future work

The approach can be extended in several ways:

Agents’ language can be extended to (fully) generalized LP.

Agents may be given the ability to update the updating

mechanism itself.

Other rational abilities (eg. learning) can be incorporated.