Automatic Synthesis of New Behaviors from a Library of Available Behaviors Giuseppe De Giacomo Università di Roma “La Sapienza”, Roma, Italy [email protected]

Sebastian Sardina RMIT University, Melbourne, Australia [email protected]

Behavior composition Key points

Target behavior description of the desired behavior expressed in terms of virtual actions

Environment is similar to an action theory!

Environment

Behaviors are similar to robot programs; capture possible executions

description of (virtual) actions, precoditions and effects

• Actions are virtual • Only available behaviors provide actual action execution • Must realize target behavior using fragments of available behaviors

Available behaviors descriptions of the behavior of available agents/devices expressed in terms virtual actions



Actual available behaviors Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

2

Behavior composition: the setting studied •

Environment: – – – –



Available behaviors: – – – – – –



Describe the capabilities of the agent/device Finite state (to get computability of the synthesis) Nondeterministic (devilish/don (devilish/dont know nondeterminism) Can access the state of the environment Can not access the state of the other available behaviors Represented as (finite) transition systems (with guards to test the environment)

Target behavior: –



Describe precondition and effect of actions (as an action theory) Finite state (to get computabiliy of the synthesis) Nondeterministic (devilish/don (devilish/dont know nondeterminism) Represented as a (finite) transition system (we are not concerned with representation in this work)

As available behavior but deterministic • it its a spec of a desired behavior: we know what we want!

Problem: synthesize a “scheduler” that realize the target behavior by suitably “composing” the available behaviors

Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

3

Example target behavior (virtual!) available behavior 1

a b

a

c

c

available behavior 2

scheduler

b c

Simplified case: available behaviors are deterministic finite transition systems Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

4

Example target behavior available behavior 1

a b

a

c

c

available behavior 2

scheduler

b c

A sample run action request: scheduler response: Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

5

Example target behavior available behavior 1

a b

a

c

c

available behavior 2

scheduler

b c

A sample run action request: scheduler response:

a a,1

Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

6

Example target behavior available behavior 1

a b

a

c

c

available behavior 2

scheduler

b c

A sample run action request: scheduler response:

a

c

a,1

c,1

Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

7

Example target behavior available behavior 1

a b

a

c

c

available behavior 2 b

scheduler

c

A sample run action request: scheduler response:

a

c

b

a,1

c,1

b,2

Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

8

Example target behavior available behavior 1

a b

a

c

c

available behavior 2 b

scheduler

c

A sample run action request: scheduler response:

a

c

b

c

a,1

c,1

b,2

c,2

Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India



Giuseppe De Giacomo

9

A scheduler program realizing the target behavior target behavior available behavior 1

a b

a

c

c

available behavior 2 scheduler program c:1

scheduler

a:1

b c

b:2 c:2 Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

10

Nondeterminism Devilish (dont know)!



Nondeterministic environment – –



Nondeterministic available behaviors – –



Incomplete information on effects of actions Action outcome depends on external (not modeled) events

Incomplete information on the actual behavior Mismatch between behavior description (which is in terms of the environment actions) and actual behavior of the agents/devices

Deterministic target behavior –

its a spec of a desired behavior: (devilish) nondeterminism is banned

In general, devilish nondeterminism difficult to cope with eg. nondeterminism moves AI Planning from PSPACE (classical planning) to EXPTIME (contingent planning with full observability [Rintanen04]) Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

11

Example nondeterministic behaviors target behavior behavior 1 a

a

b S10

a

S11

b

behavior 2

scheduler Devilish nondeterminism!

b

S20

Available behaviors represented as nondeterministic transition systems Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

12

Example nondeterministic behaviors target behavior behavior 1 a

a

b S10

a

S11

b

behavior 2

scheduler S20

Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

b

Giuseppe De Giacomo

13

Example nondeterministic behaviors target behavior behavior 1 a

a

b S10

a

S11

b

behavior 2

scheduler S20

Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

b

Giuseppe De Giacomo

14

Example nondeterministic behaviors target behavior behavior 1 a b

a

observe the actual state! S10

a

S11

b

behavior 2

scheduler S20

Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

b

Giuseppe De Giacomo

15

Example nondeterministic behaviors target behavior behavior 1 a b

a

observe the actual state! S10

a

S11

b

behavior 2

scheduler S20

Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

b

Giuseppe De Giacomo

16

Example: nondeterministic behaviors target behavior behavior 1 a b

a

observe the actual state! S10

a

S11

b

behavior 2

scheduler S20

Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

b

Giuseppe De Giacomo

17

A scheduler program realizing the target behavior target behavior behavior 1 a

a

b S10

a

S11

b

scheduler program

behavior 2

scheduler

S11:b:1 S11:b:1 S20

b

true:a:1 true:a:1

S10:b:2 S10:b:2 Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

18

Scheduler programs contains all the observable information up the current situation



Scheduler program is any function P(h,a) = i that takes a history h and an action a to execute and delgates a to the available behavior i



A history is a sequence of the form: (s10,s20,…,sn0,e0) a1 (s11,s21,…,sn1,e1) … ak (sk1,s2k,…,snk,ek)



Observe that to take a decision P has full access to the past, but no access to the future



Problem: synthesize a scheduler program P that realizes the target behavior making use of the available behaviors

Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

19

Technique: reduction to PDL Basic idea: • A scheduler program P realizes the target behavior T iff: –  transition labeled a of the target behavior T …





…  an available behavior Bi (the one chosen by P) which can make an a-transition …



… and  a-transition of Bi realizes the a-transition of T

Encoding in PDL:  transition labeled a … – use branching –  an available behavior Bi … use underspecified predicates assigned through SAT –  a-transition of Bi … : use branching again

Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

20

Structure of the PDL encoding  = Init  [u](0





i=1,…,ni



aux )

Initial states of all behaviors PDL encoding of the i-th available behavior + environment PDL encoding of target behavior

PDL additional domainindependent conditions

PDL encoding is polynomial in the size of the target behavior, available behaviors, and environment Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

21

Technical results: theoretical Thm Checking the existence of scheduler program realizing the target behavior is EXPTIME-complete. EXPTIME-hardness due to Muscholl&Walukiewicz05 for deterministic behaviors

Thm If a scheduler program exists there exists one that is finite state. Exploits the finite model property of PDL

Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

22

Technical results: practical Reduction to PDL provides also a practical sound and complete technique to compute the scheduler program eg, PELLET @ Univ. Maryland



Use state-of-the-art tableaux systems for OWL-DL for checking SAT of PDL formula  exponential in the size of the behaviors



If SAT, the tableau returns a finite model of 



Project away irrelevant predicates from such model, and possibly minimize polynomial in the size of the model



The resulting structure is a finite scheduler program that realizes the target behavior

Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

23

Conclusion •

Nondeterministic target behavior? – – –



loose specification in client request angelic (don (doncare) vs devilish (don (dont know) nondeterminism see ICSOC ICSOC04 for ideas

Distribute the scheduler? –

Often a centralized scheduler is unrealistic: eg. Robot Ecologies • • •

– – •

too tight coordination too much communication scheduler cannot be embodied anywhere

drop centralized scheduler in favor of independent controllers on single available behaviors (exchanging messages) we are actively working on it

Infinite states behaviors? – –

Important for dealing with data/parameters data/parameters this is the single most difficult issue to tackle • first results: actions as DB updates, see VLDB VLDB05 • literature on Abstraction in Verification

Automatic Synthesis of New Behaviors from a Library of Available Behaviors IJCAI’ IJCAI’07 - Jan 12, 2007 – Hyderabad, India

Giuseppe De Giacomo

24

Automatic Synthesis of New Behaviors from a Library of ...

Problem: synthesize a “scheduler” that realize the target behavior by suitably ... Giuseppe De Giacomo. 5. Example target behavior b c a a c b c. A sample run action request: scheduler scheduler response: available behavior 1 available behavior 2 .... Project away irrelevant predicates from such model, and possibly.

951KB Sizes 1 Downloads 160 Views

Recommend Documents

Automatic Synthesis of New Behaviors from a Library of ...
Imagine an intelligent system built from a variety of different components or ...... [8] L. P. Kaelbling, M. L. Littman, and A. R. Cassandra. Planning and acting in ...

Automatic Synthesis of Regular Expressions from Examples
Jul 5, 2013 - pression, for example by adding terms that should not be matched, until reaching a local optimum in terms of precision and recall. The proposal is assessed on regular expressions for extracting phone numbers, university course names, so

Automatic Synthesis of a Global Behavior from Multiple ...
Finite state (to get computability of the synthesis). Nondeterministic (devilish/don't ... Incomplete information on effects of actions in the domain. Action outcome ...

Automatic Synthesis of Regular Expressions from Examples - Core
Jul 5, 2013 - 12 different extraction tasks: email addresses, IP addresses, MAC (Ethernet card-level) addresses, web URLs, HTML headings, Italian Social ...

Synthesis of Monodisperse Microparticles from ... - Wiley Online Library
Mar 11, 2011 - Newtonian Polymer Solutions with Microfluidic Devices. Dr. A. R. Abate , Dr. S. Seiffert , Dr. M. Windbergs , Dr. A. Rotem ,. Dr. A. S. Utada , Prof. D. A. Weitz. Harvard University. School of Engineering and Applied Sciences and Depar

Synthesis of new fluorescent compounds from 5-nitro-1H - Arkivoc
Fluorescence is used as an analytical tool to determine the concentrations of ... spectrum, molecular ion peak at m/z 288 and microanalytical data strongly ...

A new blue-light emitting polymer: Synthesis ... - Wiley Online Library
RAPID COMMUNICATION. A New Blue-Light ... 3Department of Chemistry, Faculty of Education, Tanta University, Egypt ... Beijing University of Chemical Technology, 15 BeiSanHuan East Road, Beijing 100029, People's Republic of China.

A new synthesis of pleraplysillin-1, a sponge metabolite ... - Arkivoc
Jun 25, 2017 - In the recent past, we have been using β-halo-α,β-unsaturated aldehydes as building blocks for the synthesis of various heterocycles,. 1-5 including furophenanthraquinones. 6. In this context, our attention was recently drawn to ple

Who Benefits from Concentrated Affluence? A Synthesis of ... - jpmsp
pervades neighborhoods and their institutions, including schools. ...... accelerated placement programs), which often leads to greater variation in learning.

Who Benefits from Concentrated Affluence? A Synthesis of ... - jpmsp
on education outcomes according to race and gender. The findings show that the presence of ..... absolute income of the top quintile. Education Outcomes, the ...

A new methodology for the synthesis of N-acylbenzotriazoles - Arkivoc
Jul 21, 2017 - Abstract. A facile and economic path for an easy access of diverse N-acylbenzotriazoles from carboxylic acid has been devised using NBS/PPh3 in anhydrous ... different types of N-halosuccinimide with 1.0 equiv. of PPh3 and 2.0 equiv. o

Synthesis of new 2,3-disubstituted pyridines containing a 1,2 ... - Arkivoc
A series of 1,2,3-triazole-containing pyridines has been synthesized using the Cu(II) .... for (M. +. +1) ion of 11a. An array of novel triazole derivatives 11a-g was ...

recognition of 48 human behaviors from video
integrated into an application. Many reasonably ... of an item, this is the best clue that some item is being carried ... On a standard desktop pc, the processing time per clip ..... We have proposed a framework to recognize a set of 48 complex ...

On the Automatic Construction of Regular ... - ACM Digital Library
different application domains. Writing ... oped a tool based on Genetic Programming capable of con- ... We developed a web application containing a suite of ex-.

Plant energetics and the synthesis of population ... - Wiley Online Library
life-history traits, plant population and community dynamics. Introduction. If the plant ... tion in biogeochemical cycles (De Deyn, Cornelissen &. Bardgett 2008) or ... Beyond specific application to PEMs, the approach I advo- cate in this paper ...

51 Synthesis of Dual-Mode Circuits Through Library ...
energy-efficiency gain with 10 times loss in frequency [Kaul et al. 2012]. A practical use of NTV operation is to adopt it as a low-power and low-performance secondary mode in addition to a high-performance nominal mode. For example, for a DSP proces

Plant energetics and the synthesis of population ... - Wiley Online Library
cesses, on the other hand, involve the flow of energy and materials between plants, animals and microbes, and are thus closely related to the biomass dynamics ...

Total solid-phase synthesis of bombesin ... - Wiley Online Library
Journal of Peptide Science. J. Pept. Sci. 2007; 13: 487–492. Published online 8 June 2007 in Wiley InterScience (www.interscience.wiley.com).

Automatic Behavior Composition Synthesis
Jan 2, 2013 - bSchool of Computer Science and IT - RMIT University - Melbourne, Australia. ...... We stress that S1 decisions are required to be made in an “online” ...... the CG knows it ought to delegate such a request to arm BA, so as to ...