1 / 77

LECTURE 7: Agent Communication

LECTURE 7: Agent Communication. Based on An Introduction to MultiAgent Systems http://www.csc.liv.ac.uk/~mjw/pubs/imas Some examples from presentation by Nyik San Ting, spring 2003. Agent Communication.

jerica
Download Presentation

LECTURE 7: Agent Communication

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LECTURE 7: Agent Communication Based on An Introduction to MultiAgent Systemshttp://www.csc.liv.ac.uk/~mjw/pubs/imas Some examples from presentation by Nyik San Ting, spring 2003.

  2. Agent Communication • From this lecture on, we will cover the macro-aspectsof multi-agent systems: those issues relating to the agent society, rather than the individual agent: • communication;speech acts: KQML; FIPA ACLontologies: KIF, Ontolingua, OWL • cooperation:what is cooperation; the contract net protocol; cooperative versus non-cooperative encounters; prisoner’s dilemma; evolutionary games, agent negotiation, social norms

  3. Tuesday (18 Oct 2004) Speech Acts KQML, KIF FIPA ACL Ontology Thursday (20 Oct 2004) Ontology development KIF XML & RDF DAML Contents

  4. Speech Acts • Most treatments of communication in (multi-) agent systems borrow their inspiration from speech act theory • Speech act theories are pragmatictheories of language, they attempt to account for how language is used by people every day to achieve their goals and intentions • The origin of speech act theories are usually traced to Austin’s 1962 book, How to Do Things with Words

  5. Speech Acts - Austin • Communication = action • Doesn’t mean: • Motion of moving mouth • Changing the pressure of the air by talking. • Causing the avalanche by shouting. • The semantic meaning (effect) of the utterance • “Let’s send a bomb to Iraq.“

  6. Speech Acts • Austin noticed that some utterances are rather like ‘physical actions’ that appear to change the state of the world • Paradigm examples would be: • declaring war • christening • ‘I now pronounce you man and wife’ :-) • But more generally, everythingwe utter is uttered with the intention of satisfying some goal or intention • A theory of how utterances are used to achieve intentions is a speech act theory

  7. Come and have a free Pizza ! Utterance Speaker Hearer(s) Elements

  8. Speech Acts - Austin 3 aspects of Speech Acts: • Locutionary act • Illocutionary act • Perlocution

  9. Different Aspects of Speech Acts • From “A Dictionary of Philosophical Terms and Names”: • “Locutionary act: the simple speech act of generating sounds that are linked together by grammatical conventions so as to say something meaningful. Among speakers of English, for example, ‘It is raining’ performs the locutionary act of saying that it is raining, as ‘Grablistrod zetagflx dapu’ would not.” • Saying something that make sense using a language • Saying “Please make some tea” • Saying “Tuition fee will increase by 50% next year”

  10. Different Aspects of Speech Acts • “Illocutionary act: the speech act of doing something else – offering advice or taking a vow, for example – in the process of uttering meaningful language. Thus, for example, in saying ‘I will repay you this money next week,’ one typically performs the illocutionary act of making a promise.” • Action intended by the speaker • Niia: “Please, make me to make some tea” (request) • The President: “The tuition fee will increase by 50% next year” (announcement)

  11. Different Aspects of Speech Acts • “Perlocutionary act: the speech act of having an effect on those who hear a meaningful utterance. By telling a ghost story late at night, for example, one may accomplish the cruel perlocutionary act of frightening a child.” • Effect of the action • I know that I am asked to make tea for Niia (whether I make it / decline / forget is a different matter) • Everyone is informed and understands that the tuition fee will increase by 50% next year

  12. “Shoot her!” • Locutionary act of saying “Shoot her!” • Illocutionary force of ordering, urging, or advising the hearer to shoot her • Perlocutionary force of persuading, forcing,frightening the hearer to shoot her Example obtained from [2]

  13. Performative Utterance • “ I warn you that they will raise the gas price dramatically” • The first verb in the sentence emphasizes the goal of the speaker • “They will raise the gas price dramatically” • Compare the strength of this statement with prev. • Felicitous performative • Performative utterance that works successfully

  14. Felicity conditions • An accepted conventional procedure for the performative; the circumstances and persons must be as specified. • Procedure must be executed correctly and completely • Act must be sincere; uptake required must be completed as much as possible.

  15. Speech Acts • John Searle extended the work of John Austin in 1969 • Identified properties that must hold for a speech act performed between hearer and the speaker to succeed. • Systematic classification of the possible types of speech acts

  16. Speech Acts – Conditions for a speech act to succeed • Normal I/O conditions • HEARER can hear the utterance • Preparatory conditions • What must be true of the world in order that SPEAKER correctly choose the speech act? E.g. HEARER should be able to perform the ACTION; SPEAKER must believe that. It must be obvious that HEARER won’t do ACTION anyway. • Sincerity conditions • Distinguish the sincerity of the performance of the speech act, e.g. SPEAKER may not really want ACTION to be performed

  17. Speech Acts • Searle (1969) identified various different types of speech act: • representatives : Commits the speaker to the truth of an expressed proposition, such as informing, e.g., ‘It is raining’ • directives: Attempts on the part of the speaker to get the hearer to do somethinge.g., ‘please make the tea’ • commisives: Commit the speaker to doing something, e.g., ‘I promise to… ’ • expressives: Speaker expresses a mental state, e.g., ‘thank you!’ • declarations: Effect some changes in an institutional state of affairs, such as declaring war or christening

  18. Speech Acts • There is some debate about whether this (or any!) typology of speech acts is appropriate • In general, a speech act can be seen to have two components: • a performative verb:(e.g., request, inform, promise, … ) • propositional content:(e.g., “the door is closed”)

  19. Speech Acts • Consider: • performative = requestcontent = “the door is closed”speech act = “please close the door” • performative = informcontent = “the door is closed”speech act = “the door is closed!” • performative = inquirecontent = “the door is closed”speech act = “is the door closed?”

  20. Plan Based Semantics • How does one define the semantics of speech acts, so that a system can reason and plan? • Cohen & Perrault (1979) defined semantics of speech acts using the STRIPS formalism for planning: precondition-delete-add list • The world is a multimodal logic representation for the Beliefs, Abilities, Wants of the participants in the speech act • Note that a speaker cannot (generally) forcea hearer to accept some desired mental state • In other words, there is a separation between the illocutionary act and the perlocutionary act

  21. Plan-Based Semantics • Here is their semantics for request:request(s, h, f) pre: • Cando.pr: s believe h can do f (you don’t ask someone to do something unless you think they can do it) • Cando.pr: s believe h believe h can do f(you don’t ask someone unless they believe they can do it) • Want.pr: s believes want f(you don’t ask someone unless you want it!) post: • h believe s believe s want f(the effect is to make them aware of your desire) Note that request ensures only that h is aware of s’ desire – locution only!!

  22. Mediating act In order to ensure that there is perlocutionary force – need a mediating act: CauseToWant(A1, A2, ) Pre: Cando.pr (A1Believe (A2Believe (A2Want))) Want.pr X (nothing) Post: (A1Believe (A1Want)) By this definition, the agent will come to believe that it wants something, if it believesthat another agent believes it wants to do it (very agreeable A1!).This definition can be extended to contain more conditions related to social relationships, role etc.

  23. KQML and KIF • We now consider agent communication languages (ACLs) — standard formats for the exchange of messages • The best known ACL is KQML, developed by the ARPA knowledge sharing effort (KSE), in the early 1990ies. • KQML is comprised of two parts: • the knowledge query and manipulation language (KQML) • the knowledge interchange format (KIF)

  24. KQML and KIF • KQML is an ‘outer’ language, that defines an ‘envelope’ format for messages to explicitly state the intended illocutionary force • KQML defines various acceptable ‘communicative verbs’, or performativesExamples: • ask-if (‘is it true that. . . ’) • perform (‘please perform the following action. . . ’) • tell (‘it is true that. . . ’) • reply (‘the answer is . . . ’) • KIF is a language for expressing message content (ONTOLOGIES– later)

  25. Example (tell :content (= (temperatute m1) (scalar 83 Celsius)) :sender termometer-server :receiver heater :language KIF :ontology ONTOLOGY_NAME ) Inform another agent about some fact. Formal definition: S claims to H that C is in S’s VKB.

  26. Another example There are variants: ask-if, ask-all, ask-about (ask-one :content (PRICE ISM ?price) :receiver stock-server :language LPROLOG :ontology NYSE-TICKS ) Ask another agent a question where exactly one answer is required. Formal: S wants one of H’s answers to question C

  27. KQML shortcomings • Performative set not fixed in stone; different implementations of KQML can’t interoperate • Transport mechanisms for KQML messages are not defined – again hard to interoperate • Semantincs not rigorously defined; two agents claiming that they speak KQML may have different interpretations • Class of performatives (“Commissives” – expressing commitment) are missing • Too large, adhoc set of performatives

  28. FIPA • More recently, the Foundation for Intelligent Physical Agents (FIPA) started work on a program of agent standards — the centerpiece is an ACL • Basic message structure is similar to KQML: • performative20 performatives in FIPA • housekeepinge.g., sender, receiver, language, ontology, etc. • contentthe actual content of the message

  29. FIPA • Example:(inform :sender agent1 :receiver agent5 :content (price good200 150) :language sl :ontology hpl-auction)

  30. FIPA Definitions in text, pg. 176

  31. FIPA ACL Semantics • Semantics of ACL preformatives are given with respect to a formal SL (Semantic Language) • Represent beliefs, desires, uncertain beliefs of agents and actions that agents perform • Well defined, in contrast to KQML • Each FIPA ACL message can be mapped to a formula of SL • Defines a constraint that the sender must satisfy (Feasibility conditions) • Defines the rational effect of the action - the “purpose” of a message (cannot be guaranteed)

  32. “Inform” and “Request” • “Inform” and “Request” are the two basic performatives in FIPA ACL. All others are macrodefinitions, defined in terms of these. • The meaning of inform and request is defined in two parts: • pre-conditionwhat must be true in order for the speech act to succeed • “rational effect”what the sender of the message hopes to bring about

  33. “Inform” and “Request” • For the “inform” performative…The content is a statement.Pre-condition is that sender: • holds that the content is true • does not believe that the recipient is already aware of whether content is true or not Rational Effect • the recipient believe the content

  34. “Inform” and “Request” • For the “request” performative…The content is an action.Pre-condition is that sender: • believes recipient is capable of performing this action • does not believe that receiver already intends to perform action Rational effect: • action content to be performed

  35. Semantic Conformance Testing • Problem: We have an agent and an agent communication language with well-defined semantics. How can we know if the agent respects the semantics of the language when it communicates? • ACL semantics are generally developed in such a way as to express constraint on the sender of the message • Something like a program specification  • Can we not use program verification methods? • Problem: • Need to know the mental state of agents (what they believed, intended and so on) – Hard!

  36. Figure obtained from [5]

  37. References on Agent Communication Languages • “Austin’s Speech Act Theory” by Saeed http://www.ohiou.edu/dlcds/saaustin.htm • Speech Acts http://www.ccl.umist.ac.uk/teaching/material/5005/node24.html • “Cohen and Levesque - intention” http://www.csc.liv.ac.uk/~mjw/pubs/ker95/subsubsectionstar3_2_6_2.html 4 . “FIPA ACL Message Structure Specification” by FIPA http://www.fipa.org/specs/fipa00061/SC00061G.html 5. “FIPA Communicative Act Library Specification" by FIPA http://www.fipa.org/specs/fipa00037/SC00037J.html

  38. A “Football game on 11/02/03” B C “Soccer game on 11 Feb 2003” “Rugby game on Nov 02, 2003” Ontologies • Different understanding of the terminology

  39. Knowledge Sharing among Agents:KQML and KIF • In order to be able to communicate, agents must have agreed on a common set of terms • A formal specification of a set of terms is known as an ontology • The knowledge sharing effort has associated with it a large effort at defining common ontologies — software tools like Ontolingua for this purpose • Example KQML/KIF dialogue…A to B: (ask-if(> (size chip1) (size chip2)))B to A: (reply true)B to A: (inform(= (size chip1) 20))B to A: (inform(= (size chip2) 18))

  40. Why we need ontology? • To share common understanding of the structure of information among people or software agents • To enable reuse of domain knowledge • To make domain assumptions explicit • To separate domain knowledge from the operational knowledge • To analyze domain knowledge

  41. Ontology • ‘A systematic account of Existence’ in Philosophy • Explicit formal definition of the terminologies describing the concepts or objects (and their attributes) of a domain and the relations among them. • A specification of vocabulary/definition (human readable & machine interpretable) and their relations that model the real world • Ontologies are knowledge bodies that provide a formal representation of a shared conceptualization of a particular domain.

  42. KIF – Knowledge Interchange Format Based-on first order logic recast in a LISP (LISt Processing)-like notation. Used to state: • Properties of things in a domain (e.g., “Noam is chairman”) • Relationships between things in a domain (e.g., “Amnon is Yael’s boss”) • General properties of a domain (e.g., “All students are registered for at least one course”, “Everybody has a mother”)

  43. KIF (2) • “The temperature of m1 is 83 Celsius”:(= (temperature m1) (scalar 83 Celsius)) • “An object is a bachelor if the object is a man and is not married”:(defrelation bachelor (?x) := (and (man ?x) (not (married ?x)))) • “Any individual with the property of being a person also has the property of being a mammal”:(defrelation person (?x) :=> (mammal ?x))

  44. KIF (3) • Usual connectives • and, or, not, • Universal and existential quantifiers • forall, exist • Set Relation • Subset, /=, =, Member, Disjoint • Object type • Numbers (1,2,3 …) characters, strings • Object relation • Cos, Max, Log, <, *

  45. KIF (4) Define new class • “New class of ‘primary-color’ which take value of red, green, or blue” (define-class primary-color (?color) (member ?color (set red green blue)))

  46. KIF (5) Define new concept • “New concept of bachelor which is a man and this man is not married” (defrelation bachelor (?x) := (and (man ?x) (not (married ?x))))

  47. KIF (6) Define new relationships • “Any individual with the property of being a person also has the property of being a mammal” (defrelation person (?x) :=> (mammal ?x)) • Note: A mammal might not be a person!

  48. Extensible Markup Language -XML XML is • a method for embedding structure and meaning in data files. • a new technology for managing data, particularly suitable for web applications. • is text (humans and machines readable)

  49. Example Dr. John Cooke 57 Campus Drive, Saskatoon, SK S7N5A9

  50. Representation in HTML <P><B>Dr. John Cooke</B> <BR>57 Campus Drive, <BR>Saskatoon, SK S7N5A9</P> HTML tags describe how something should render. They don't contain any information about what the data is, they only describe how it should look. The set of HTML tags is fixed – as defined by the DTD (Document Type Definition).

More Related