<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="91"/><title>Controlling Animated Agents in Natural Language</title><author surname="Funakoshi" givenname="Kotaro"><org  name="Tokyo Institute of Technology" country="Japan" city="Tokyo"/></author><author surname="Tokugana" givenname="Takenobu"><org  name="Tokyo Institute of Technology" country="Japan" city="Tokyo"/></author></firstpageheader><frontmatter><p><b>Controlling Animated Agents in Natural Language</b></p><p><b>Kotaro Funakoshi</b></p><p>Department of Computer Science, Tokyo Institute of Technology 2-12-1 Oookayama, Meguro, Tokyo 152-8552, Japan</p><p>koh@cl.cs.titech.ac.jp</p><p><b>Takenobu Tokugana</b></p><p>take@cl.cs.titech.ac.jp</p></frontmatter><abstract>This paper presents a prototype dia­logue system, <i>K3</i>, in which a user can instruct agents through speech input to manipulate various objects in a 3-D vir­tual world. In this paper, we focus on two distinctive features of the <i>K3 </i>system: plan-based anaphora resolution and handling vagueness in spatial ex­pressions. After an overview of the sys­tem architecture, each of these features is described. We also look at the future research agenda of this system. </abstract></header><body><section number="1" title="Introduction"><p>SHRDLU (?) can be considered as the most im­portant natural language understanding system. Although SHRDLU was not "embodied", hav­ing had only a small stick to manipulate objects, it certainly had several features that a conversa­tional agent is supposed to have. It had a great potential, and it was very promising for future re­search on natural language understanding.</p><p>Recently better technologies have become available in speech recognition and natural lan­guage processing. Major breakthroughs in the area of computer graphics have enabled us to gen­erate complex, yet realistic 3-D animated agents or embodied life-like agents in a virtual environ­ment. Researchers are now in a good position to go beyond SHRDLU by combining these tech­nologies (?). This paper presents a conversational animated agent system, <i>K3</i>.</p><p>Since all the actions carried out by an agent of the <i>K3 </i>system are visible, we can evaluate the performance of the system by observing its an­imation. Visualizing the agents' actions yields many interesting issues from a cognitive science point of view; more complex processes are in­volved than those found in most conventional nat­ural language understanding systems.</p><p>After sketching out the overview of the <i>K3 </i>sys­tem in section 2, Two distinctive features of <i>K3 </i>are discussed in section 3, and 4. Finally, sec­tion 5 concludes the paper and looks at future re­search agenda.</p></section><section number="2" title="System Overview"><p>A screen shot of <i>K3 </i>is shown in Fig. 1. There are two agents and several objects in a virtual world. The current system accepts simple Japanese utter­ances with anaphoric and elliptical expressions, such as "Walk to the desk." and "Further". The size of the lexicon is about 100 words.</p><figure caption="Figure 1: A screenshot ofK3"></figure><page local="2" global="92"/><p>The architecture of the <i>K3 </i>is illustrated in Fig. 2. system. The speech recognition module receives the user's speech input and generates a sequence of words. The syntactic/semantic anal­ysis module analyzes the word sequence to ex­tract a case frame. This module accepts ill-formed speech input including postposition omission, in­version, and self-correction. At this stage, not all case slots are necessarily filled, because of el­lipses in the utterance. Even in cases where there is no ellipsis, instances of objects are not identi­fied at this stage.</p><p>Resolving ellipses and anaphora, and identify­ing instances in the world are performed by the discourse analysis module. Anaphora resolution and instance identification are achieved by using plan-knowledge, which will be described in sec­tion 3.</p><p>The discourse analysis module extracts the user's goal as well and hands it over to the plan­ning modules, which build a plan to generate the appropriate animation. In other words, the plan­ning modules translate the user's goal into anima­tion data. However, the properties of these two ends are very different and straightforward trans­lation is rather difficult. The user's goal is repre­sented in terms of symbols, while the animation data is a sequence of numeric values. To bridge this gap, we take a two-stage approach - macro-and micro-planning.</p><p>During the macro-planning, the planner needs to know the physical properties of objects, such as their size, location and so on. For example, to pick up a ball, the agent first needs to move to the location at which he can reach the ball. In this planning process, the distance between the ball and the agent needs to be calculated. This sort of information is represented in terms of coordi­nate values of the virtual space and handled by the micro-planner.</p><p>To interface the macro- and micro-planning, we introduced the Space object to represent a lo­cation in the virtual space by its symbolic and nu­meric character. The Space object is described in section 4.</p></section><section number="3" title="Plan-based Anaphora Resolution"><subsection number="3.1" title="Surface-clue-based Resolution vs. Plan-based Resolution"><p>Consider the following two dialogue examples.</p><doubt alpha="56.4" length="94" tooSmall="False" monospace="0.0">(1-1) "Agent X, push the red ball." (1-2) "Move to the front of the blue ball." (1-3) "Pushit"</doubt><doubt alpha="57.9" length="38" tooSmall="False" monospace="0.0">(2-1) "Agent X, pick up the red ball."</doubt><doubt alpha="58.1" length="62" tooSmall="False" monospace="0.0">(2-2) "Move to the front of the blue ball." (2-3) "Putitdown."</doubt><p>The second dialogue is different from the first one only in terms of the verbs in the first and third utterances. The syntactic structure of each sen­tence in the second dialogue (2-1)-(2-3) is the same as the corresponding sentence in the first dialogue (1-1)-(1-3). However, pronoun "it" in (1-3) refers to "the blue ball" in (1-2), and pro­noun "it" in (2-3) refers to "the red ball" in (2-1).</p><p>The difference between these two examples is not explained by the theories based on surface clues such as the centering theory (<b>?</b>; <b>?</b>).</p><p>In the setting of SHRDLU-like systems, the user has a certain goal of arranging objects in the world, and constructs a plan to achieve it through interaction with the system. As Cohen pointed out, users tend to break up the referring and pred­icating functions in speech dialogue (<b>?</b>). Thus, each user's utterance suggests a part of plan rather than a whole plan that the user tries to perform. To avoid redundancy, users need to use anaphora. From these observations, we found that consid­ering a user's plan is indispensable in resolving anaphora in this type of dialogue system and de­veloped an anaphora resolution algorithm using the relation between utterances in terms of partial plans (plan operators) corresponding to them.</p><p>The basic idea is to identify a chain of plan op­erators based on their effects and preconditions. Our method explained in the rest of this section finds preceding utterances sharing the same goal as the current utterance with respect to their cor­responding plan operators as well as surface lin­guistic clues.</p><page local="3" global="93"/><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">dz:</doubt><p>Word sequence       <b>A       </b>Case frame</p><doubt alpha="65.9" length="44" tooSmall="False" monospace="0.0">„      , . Speech Syntactic/ Discourse Macro</doubt><p>Speech input r _    J. 1 . 1 . 1 .</p><doubt alpha="64.3" length="70" tooSmall="False" monospace="0.0">IrecognitionI| Semantic analysis |        |    analysis    || planning</doubt><doubt alpha="37.5" length="16" tooSmall="False" monospace="0.0">/ \ S  \SPACE/ ~</doubt><p>a <b>object✓</b></p><p>Language Word model dictionary</p><p>Ontology</p><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">Space</doubt><p>Micro planning</p><p>Basic movement</p><p>MovemenT recognition      Coordinate value generation</p><p>Animation</p><p>Virtual world</p><figure caption="Figure 2: The system architecture ofK3"></figure></subsection><subsection number="3.2" title="Resolution Algorithm"><p>Recognized speech input is transformed into a case frame. At this stage, anaphora is not re­solved. Based on this case frame, a plan opera­tor is retrieved in the plan library. This process is generally called "plan recognition." A plan operator used in our system is similar to that of STRIPS (<b>?</b>), which consists of precondition, ef­fect and action description.</p><p>Variables in the retrieved plan operator are filled with case fillers in the utterance. There might be missing case fillers when anaphora (zero pronoun) is used in the utterance. The system tries to resolve these missing elements in the plan operator. To resolve the missing elements, the system again uses clue words and the plan library. An overview of the anaphora resolution algorithm is shown in Figure 3.</p><p>When the utterance includes clue words, the system uses them to search the history database for the preceding utterance that shares the same goal as the current utterance. Then, it identifies the referent on the basis of case matching.</p><p>There are cases in which the proper preceding utterance cannot be identified even with the clue words. These cases are sent to the left branch in Fig. 3 where the plan library is used to resolve anaphora.</p><p>When there is no clue word or the clue word does not help to resolve the anaphora, the process goes through the left branch in Fig. 3. First, the system enumerates the candidates of referents using the surface information, then filters them out with linguistic clues and the plan library. For ex­ample, demonstratives such as "this", "that" are usually used for objects that are in the user's view. Therefore, the referent of anaphora with demon­stratives is restricted to the objects in the current user's view.</p><p>If the effect of a plan operator satisfies the pre­condition of another plan operator, and the utter­ances corresponding to these plan operators are uttered in discourse, they can be considered to intend the same goal. Thus, identifying a chain of effect-precondition relations gives important information for grouping utterances sharing the same goal. We can assume an anaphor and its referent appear within the same utterance group.</p><p>Once the utterance group is identified, the sys­tem finds the referent based on matching variables between plan operators.</p><p>After filtering out the candidates, there still might be more than one candidate left. In such a case, each candidate is assigned a score that is cal­culated based on the following factors: saliency, agent's view, and user's view.</p></subsection></section><section number="4" title="Handling Spatial Vagueness"><p>To interface the macro- and micro-planning, we introduced the Space object which represents a location in the virtual world. Because of space limitations, we briefly explain the Space object.</p><p>The macro planner uses plan operators de­scribed in terms of the logical forms. Thus, the<page local="4" global="94"/></p><doubt alpha="16.7" length="6" tooSmall="False" monospace="0.0">*    X</doubt><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Rendering</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><doubt alpha="64.3" length="14" tooSmall="False" monospace="0.0">Viewpoint \*^)</doubt><doubt alpha="64.3" length="14" tooSmall="False" monospace="0.0">front (1) Ball</doubt><figure caption="Figure 3: Anaphora resolution algorithm"></figure><p>Space object is designed to behave as a sym­bolic object in the macro-planning by referring to its unique identifier. On the other hand, a loca­tion could be vague and the most plausible place changes depending on the situation. Therefore, it should be treated as a certain region rather than a single point. To fulfill this requirement, we adopt the idea of the potential model proposed by Ya-mada et al. (?). Vagueness of a location is nat­urally realized as a potential function embedded in the Space object. The most plausible point is calculated by using the potential function with the Steepest Descent Method on request.</p><p>consider the following short conversation be­tween a human (H) and a virtual agent (A).</p><p>H: Do you see a ball in front of the desk?</p><p>A: Yes.</p><p>H: put it on the desk.</p><p>When the first utterance is given in the situation shown in Fig. 1, the discourse analysis module identifies an instance of "a ball" in the following steps.</p><doubt alpha="50.0" length="10" tooSmall="False" monospace="0.0">(4). right</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">(3)back</doubt><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">left &lt;2)</doubt><figure caption="Figure 4: Adjustment of axis"></figure><doubt alpha="66.1" length="56" tooSmall="False" monospace="0.0">(A)space#1 := new inFrontOf(desk#1, viewpoint#1, MIRROR)</doubt><doubt alpha="61.8" length="34" tooSmall="False" monospace="0.0">(B)list#1 := space#1.findObjects()</doubt><p>(c) ball#1 := list#1.getFirstMatch(kindOf(BALL))</p><p>In step (A), an instance of Space is created as an instance of the class inFrontOf. The construc­tor of inFrontOf takes three arguments: the ref­erence object, the viewpoint, and the axis order. Although it is necessary to identify the reference frame, we focus on the calculation of potential functions given a reference frame.</p><p>Suppose the parameters of inFrontOf have been resolved in the preceding steps, and the discourse analysis module chooses the axis mirror order and the orientation of the axis based on the viewpoint of the light-colored arrows in Fig. 4. The closest arrow to the viewpoint-based "front" axis ((1) in Fig. 4) is chosen as the "front" ofthe desk. Then, the parameters of potential function correspond­ing to "front" are set.</p><p>In step (B), the method matchObjects() returns a list of objects located in the potential field of space#1 shown in Fig. 5. The objects in the list are sorted in descending order of the potential value of their location.</p><p>In step (c), the most plausible object satisfy­ing the type constraint (BALL) is selected by the method getFirstMatch().</p><p>When receiving the next utterance, "put it on the desk.", the discourse analysis module resolves the referent of the pronoun "it" and extracts the user's goal.</p><p>walk(inFrontOf(ball#1, viewpoint#1, MIRROR) AND reachableByHand(ball#1)</p><p>AND NOT(occupied(ball#1)))</p><p>The movement walk takes a Space object rep­resenting its destination as an argument. In this example, the conjunction of three Space objects<page local="5" global="95"/></p><doubt alpha="100.0" length="3" tooSmall="True" monospace="0.0">yes</doubt><p>Viewpoint</p><figure caption="Figure 5: Potential field ofspace#1"></figure><p>is given as the argument. The potential function of the resultant Space is calculated by multiply­ing the values of the corresponding three potential functions at each point.</p><p>As this example illustrates, the Space object effectively plays a role as a mediator between the macro and micro planning.</p></section><section number="5" title="Conclusions and Future Work"><p>We have introduced our prototype system <i>K3 </i>, two distinctive features of which are described in this paper. plan-based anaphora resolution enables <i>K3 </i>to interpret the user's intention more pre­cisely than the previous, surface-cue-based reso­lution algorithms. The Space object is designed to bridge the gap between the symbolic system (language processing) and the continuous system (animation generation) . In what follows, we de­scribe the research agenda of our project.</p><p><b>One-to-many Conversation. </b>conversational agent systems should deal with one-to-many con­versations as well as one-to-one conversations. In a one-to-many conversation, it is not easy to decide who is the intended listener. The situation gets worse when a speaker is concerned with only performing an action without caring who does it. In such cases, agents have to request clarifications or negotiate among themselves.</p><p><b>Agent Coordination. </b>In one-to-many conver­sations, agents must coordinate each other. Some sorts of coordination are explicitly requested by user, <i>e.g., </i>"Agent A and B tidy up the table, please." But other kinds of coordination are im­plicitly requested, <i>e.g., </i>"Agent A hands agent B the box, please." In this case, the speaker asks agent B nothing explicitly.   However, agent B must react to the request for agent A and coor­dinate with agent A to receive a box.</p><p><b>Parallel Actions. </b>Most intelligent agent sys­tems perform only one action at a time. Yet, ifwe want to make systems become more flexible, we must enable them to handle more than one action at a time. Hence, they must speak while walking, wave while nodding, and so on.</p><p><b>Memory System. </b>A history database is not enough to serve realistic dialogue in the domain of <i>K3 </i>. In such a domain, people often mention a previous state, <i>e.g., </i>"Put the ball back to the place where it was." To comply such a request, agents must have a human-like memory system.</p><p><b>Interruption Handling. </b>Agents sometimes misunderstand requests and perform not intended actions. In case of human conversations, a speaker usually interrupts hearer and try to repair misunderstanding. conversational agents also should be able to accept such interruptions. Interruption handling is also essential to request a next action before agents finish actions.</p><p><b>Acknowledgment</b></p><p>This work is partially supported by a Grant-in-Aid for Creative Scientific Research 13NP0301, the Ministry of Education, culture, Sports, Sci­ence and Technology of Japan.   The URL of the project is http://www.cl.cs.titech.ac. jp/sinpro/en/index.html.</p></section><references><p>P. R. Cohen. 1984. The pragmatics of referring and the modality of communication. <i>Computational Linguistics, </i>10(2):97-146.</p><p>R. E. Fikes. 1971. STRIPS: A new approach to the application of theorem problem solving. <i>Artificial Intelligence, </i>2:189-208.</p><p>B. J. Grosz, A. K. Joshi, and P. Weinstein. 1995. centering: A framework for modeling the local co­herence of discourse. <i>Computational Linguistics, </i>21(2):203-226.</p><p>H. Tanaka, T. Tokunaga, and Y. Shinyama. 2004. An­imated agents capable of understanding natural lan­guage and performing actions. In <i>Life-Like Char­acters, </i>pages 429-444. Springer.</p><page local="6" global="96"/><p>M. A. Walker, A. K. Joshi, and E. F. prince, editors. 1998. <i>Centering Theory in Discourse. </i>clarendon Press Oxford.</p><p>T. Winograd. 1972. <i>Understanding Natural Lan­guage. </i>Academic press.</p><p>A. Yamada, T. Nishida, and S. Doshita. 1988. Fig­uring out most plausible interpretation from spa­tial description. In <i>the 12th International Con­ference on Computational Linguistics (COLING), </i>pages 764-769.</p></references></body></article>