<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>The Art of Prompting: Event Detection based on Type Specific Prompts</title></titleStmt>
			<publicationStmt>
				<publisher>Association for Computational Linguistics</publisher>
				<date>08/15/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10527686</idno>
					<idno type="doi">10.18653/v1/2023.acl-short.111</idno>
					
					<author>Sijia Wang</author><author>Mo Yu</author><author>Lifu Huang</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[We compare various forms of prompts to represent event types and develop a unified framework to incorporate the event type specific prompts for supervised, few-shot, and zero-shot event detection. The experimental results demonstrate that a well-defined and comprehensive event type prompt can significantly improve event detection performance, especially when the annotated data is scarce (few-shot event detection) or not available (zero-shot event detection). By leveraging the semantics of event types, our unified framework shows up to 22.2% F-score gain over the previous state-of-the-art baselines.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>2019), or a few prototype event triggers <ref type="bibr">(Wang and Cohen, 2009;</ref><ref type="bibr">Dalvi et al., 2012;</ref><ref type="bibr">Pasupat and Liang, 2014;</ref><ref type="bibr">Bronstein et al., 2015;</ref><ref type="bibr">Lai and Nguyen, 2019;</ref><ref type="bibr">Zhang et al., 2021b;</ref><ref type="bibr">Cong et al., 2021)</ref>. These studies further encourage us to take another step forward and think about the following three questions:</p><p>(1) does the choice of prompt matter when the training data is abundant or scarce? (2) what's the best form of ED prompt? (3) how to best leverage the prompt to detect event mentions?</p><p>To answer the above research questions, we conduct extensive experiments with various forms of prompts for each event type, including (a) event type name, (b) prototype seed triggers, (c) definition, (d) event type structure based on both event type name and its predefined argument roles, (e) free parameter based continuous soft prompt, and (f) a more comprehensive event type description (named APEX prompt) that covers all the information of prompts (a)-(d). We observe that (1) by considering the semantics of event types with most forms of prompts, especially seed triggers and the comprehensive event type descriptions, the performance of ED under all settings can be significantly improved; (2) Among all forms of event representations, the comprehensive description based prompts show to be the most effective, especially for fewshot and zero-shot ED; (3) Different forms of event type representations provide complementary improvements, indicating that they capture distinct aspects and knowledge of the event types.</p><p>The contributions of this work are as follows:</p><p>&#8226; We investigate various prompts to represent event types for both supervised and weakly supervised ED, and prove that a well-defined and comprehensive event type prompt can dramatically improve the performance of ED and the transferability from old types to new types.</p><p>&#8226; A unified framework is developed to leverage the semantics of event types with prompts for supervised, few-shot, and zero-shot ED, and demonstrate state-of-the-art performance with up to 22.2% Fscore improvement over the strong baseline methods.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Related Work</head><p>Supervised ED: Most of the existing Event Detection studies follow a supervised learning paradigm (Ji and <ref type="bibr">Grishman, 2008;</ref><ref type="bibr">Liao and Grishman, 2010;</ref><ref type="bibr">McClosky et al., 2011;</ref><ref type="bibr">Li et al., 2013;</ref><ref type="bibr">Chen et al., 2015;</ref><ref type="bibr">Cao et al., 2015;</ref><ref type="bibr">Feng et al., 2016;</ref><ref type="bibr">Yang and Mitchell, 2016;</ref><ref type="bibr">Nguyen et al., 2016;</ref><ref type="bibr">Zhang et al., 2017;</ref><ref type="bibr">Lin et al., 2020;</ref><ref type="bibr">Wang et al., 2021b)</ref>. However, they cannot be directly applied to detect new types of events. Recently studies have shown that, by leveraging the semantics of event types based on type-specific questions <ref type="bibr">(Du and Cardie, 2020;</ref><ref type="bibr">Liu et al., 2020;</ref><ref type="bibr">Li et al., 2020;</ref><ref type="bibr">Lyu et al., 2021)</ref> or seed event triggers <ref type="bibr">(Bronstein et al., 2015;</ref><ref type="bibr">Lai and Nguyen, 2019;</ref><ref type="bibr">Wang et al., 2021a)</ref>, the event detection performance can be improved. However, it is still unknown whether they are the best choices for representing the semantics of event types.</p><p>Few-shot ED: Two primary learning strategies in few-shot classification tasks are Meta-Learning <ref type="bibr">(Kang et al., 2019;</ref><ref type="bibr">Li et al., 2021;</ref><ref type="bibr">Xiao and Marlet, 2020;</ref><ref type="bibr">Yan et al., 2019;</ref><ref type="bibr">Chowdhury et al., 2021)</ref> and Metric Learning <ref type="bibr">(Sun et al., 2021;</ref><ref type="bibr">Wang et al., 2020b;</ref><ref type="bibr">Zhang et al., 2021a;</ref><ref type="bibr">Agarwal et al., 2021)</ref>. Several studies have exploited metric learning to align the semantics of candidate events with a few examples of the novel event types for few-shot event detection <ref type="bibr">(Lai et al., 2020a;</ref><ref type="bibr">Deng et al., 2020;</ref><ref type="bibr">Lai et al., 2020b;</ref><ref type="bibr">Cong et al., 2021;</ref><ref type="bibr">Chen et al., 2021;</ref><ref type="bibr">Shen et al., 2021)</ref>.</p><p>Zero-shot ED: <ref type="bibr">Huang et al. (2018)</ref> first exploited zero-shot event extraction by leveraging Abstract Meaning Representation <ref type="bibr">(Banarescu et al., 2013)</ref> to represent event mentions and types into a shared semantic space. Recent studies <ref type="bibr">(Zhang et al., 2021b;</ref><ref type="bibr">Lyu et al., 2021)</ref> further demonstrate that by leveraging a large external corpus with abundant anchor triggers, zero-shot event detection can also be achieved with decent performance without using any training data.</p><p>Prompt Learning Prompt learning aims to learn a task-specific prompt while keeping most of the model's parameters frozen <ref type="bibr">(Li and Liang, 2021;</ref><ref type="bibr">Hambardzumyan et al., 2021;</ref><ref type="bibr">Brown et al., 2020)</ref>.</p><p>It has shown competitive performance in many applications of natural language processing <ref type="bibr">(Raffel et al., 2020;</ref><ref type="bibr">Brown et al., 2020;</ref><ref type="bibr">Shin et al., 2020;</ref><ref type="bibr">Jiang et al., 2020;</ref><ref type="bibr">Lester et al., 2021;</ref><ref type="bibr">Schick and Sch&#252;tze, 2021b)</ref>. Previous work either used a manual <ref type="bibr">(Petroni et al., 2019;</ref><ref type="bibr">Brown et al., 2020;</ref><ref type="bibr">Schick and Sch&#252;tze, 2021a)</ref> or automated approach <ref type="bibr">(Jiang et al., 2020;</ref><ref type="bibr">Yuan et al., 2021;</ref><ref type="bibr">Li and Liang, 2021)</ref> to create prompts.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Problem Formulation</head><p>Here, we first define each setting of the event detection task and then describe the various forms of event type prompts.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Settings of ED</head><p>For supervised ED (SED), we follow the conventional supervised event detection setting where the training, validation, and evaluation data sets cover the same set of event types. The goal is to learn a model f to identify and classify event mentions for the target event types.</p><p>For few-shot ED (FSED), there are two separate training data sets for few-shot event detection:</p><p>(1) A large-scale data set D base = {(x i , y i )} M i=1 that covers the old event types (named base types) where M denotes the number of base event types;</p><p>(2) a smaller data set D novel = {(x j , y j )} N &#215;K j=1 that covers N novel event types, with K examples each. Note that the base and novel event types are disjoint except for the Other class. The model f will be first optimized on D base , and then further fine-tuned on D novel . The goal is to evaluate the generalizability and transferability of the model from base event types to new event types with few annotations.</p><p>For zero-shot ED (ZSED), the training data sets are the only difference between zero-shot and fewshot event detection. In zero-shot event detection, there is only a large-scale base training data set</p><p>i=1 for the base event types. The model f will be only optimized on base event types and evaluated on the novel types.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Event Type Prompts</head><p>We compare the following five forms of prompts to represent the event types: (a) Event Type Name is the event class name, usually consisting of one to three tokens. (b) Definition can be a short sentence that formally describes the meaning of the event types. (c) Prototype Seed Triggers a list of tokens or phrases that are frequently identified as event triggers. (d) Event Type Structure consists of event key argument roles, indicating the core participants of the target event type. (e) Prompts can also be Continuous Soft Prompt, that is, a free vector of parameters to represent each event type. (f) We further define a more comprehensive description APEX Prompt that is manually written and covers all previous prompts except soft prompts. Examples of all event type prompts are shown in Figure 1 and Appendix A. Detailed prompt token selection is in Appendix B.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">A Unified Framework for ED</head><p>We adapt <ref type="bibr">(Wang et al., 2021a)</ref> and design a unified event detection framework (as shown in Figure <ref type="figure">1</ref>) which leverages event type specific prompts to detect events under supervised, few-shot, and zeroshot settings. Formally, given an input sentence W = {w 1 , w 2 , . . . , w n }, we take each event type prompt T t = {&#964; t 1 , &#964; t 2 , . . . , &#964; t m } as a query of M tokens to extract triggers for event type t. Specifically, we first concatenate them into a sequence</p><p>. We use a pre-trained BERT encoder <ref type="bibr">(Devlin et al., 2019)</ref> to get contextual representations for the input sentence W = {w 0 , w 2 , ..., w n } as well as the event type prompt T = {&#964; t 0 , &#964; t 1 , ..., &#964; t m } 2 . Given a prompt of each event type, we aim to extract corresponding event triggers from the input sentence. To achieve this goal, we need to capture the semantic correlation of each input token to the event type Thus we learn a weight distribution over the sequence of contextual representations of the event type prompt, to obtain event type t aware contextual representation</p><p>, where 2 In our experiments, the representation of each wi or &#964; i is based on the contextual embedding of the first sub-token. &#964; j is the contextual representation of the j-th prompt token. cos(&#8226;) is the cosine similarity function between two vectors.</p><p>With that, the event type aware contextual representation A t i will be concatenated with the original contextual representation w i from the encoder, and classified into a binary label, indicating whether it is a candidate trigger of event type t or not:</p><p>, where [; ] denotes concatenation operation, U o is a learnable parameter matrix for event trigger detection, and P i is the one-hot part-of-speech (POS) encoding of word w i . For continuous soft prompt based event detection, we follow <ref type="bibr">Li and Liang (2021)</ref> where a prefix index q is prepended to the input sequence W &#8242; = [q; W ]. The prefix embedding is learned by q = MLP &#952; (Q &#952; [q]), where Q &#952; &#8712; R |Q|&#215;k denotes the embedding lookup table for the vocabulary of prefix indices. Both MLP &#952; and Q &#952; are trainable parameters. Detailed learning strategy is in Appendix C.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Experiment Setup</head><p>We perform experiments on three public benchmark datasets, including ACE05-E + (Automatic Content Extraction), ERE (Entity Relation Event) <ref type="bibr">(Song et al., 2015)</ref>,and MAVEN <ref type="bibr">(Wang et al., 2020a)</ref>. On each dataset, we conduct experiments for SED, FSED, and ZSED. For SED, we use the same data split as the previous studies <ref type="bibr">(Li et al., 2013;</ref><ref type="bibr">Wadden et al., 2019;</ref><ref type="bibr">Lin et al., 2020;</ref><ref type="bibr">Du and Cardie, 2020;</ref><ref type="bibr">Lin et al., 2020;</ref><ref type="bibr">Nguyen et al., 2021;</ref><ref type="bibr">Wang et al., 2020a</ref>) on all the three benchmark datasets. For FSED and ZSED on MAVEN, we follow the previous study <ref type="bibr">(Chen et al., 2021)</ref> and choose 120 event types with the most frequent mentions as the base event types and the rest 45 event types as novel ones. For FSED and ZSED on ACE and ERE, previous studies <ref type="bibr">(Lai et al., 2020b,</ref>  Few-shot Event Detection Figure 2 shows the F-score distribution of all novel types based on various forms of event type prompts, from which we observe that: (1) The event type name, seed triggers, and APEX prompt generally perform better than definition and structure, as they carry more straightforward semantics of event types. (2) Event type name based prompts show lower performance on Personnel:End-Position, Personnel:Start-Position and Transaction:Transfer-Money than other event types, as the semantics of these event type names are less indicative than other event types. (3) Seed trigger based prompts perform worse than event type name and APEX prompts on two event types, Life:injure and Life:die, probably because the prototype seed triggers are not properly selected. (4) The structure based prompt outperforms the other prompts on Life:Injure as Life:Injure events require the existence of a person or victim. (5) APEX prompt shows consistently (almost) best performance on all the event types because it combines all the information of other prompts. (6) We also observe that the performance of Life:Be-Born, Life:Die, Life:Marry, and Personnel:Elect based on various forms of prompts are consistently better than the other types as the intrinsic semantics of those types the corresponding event triggers are concentrated.</p><p>Zero-shot Event Detection The proposed prompt-based method is more affordable to be generalized compared with the prior state-ofthe-art zero-shot approach <ref type="bibr">(Zhang et al., 2021b)</ref>.</p><p>The average length of created APEX prompts is less than 20 tokens. Thus manually creating them will not take much human effort. On the contrary, <ref type="bibr">Zhang et al. (2021b)</ref> requires an extensive collection of anchor sentences to perform zero-shot event detection, e.g., 4,556,237 anchor sentences for ACE and ERE. This process is time-consuming and expensive.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7">Conclusion</head><p>We investigate a variety of prompts to represent the semantics of event types, and leverage them with a unified framework for supervised, few-shot and zero-shot event detection. Experimental results demonstrate that, a well-defined and comprehensive description of event types can significantly improve the performance of event detection, especially when the annotations are limited (few-shot event detection) or even not available (zero-shot event detection), with up to 22.2% F-score gain over the prior state of the art.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Limitations</head><p>We have demonstrated that an accurate description can perform better for both supervised and weakly supervised event detection. However, the event types from most existing ontologies are not properly defined. For example, in ACE annotation guideline <ref type="bibr">(Linguistic Data Consortium, 2005)</ref>, transfer-money is defined as "giving, receiving, borrowing, or lending money when it is not in the context of purchasing something". However, it is hard for the model to interpret it accurately, especially the constraints "not in the context of purchasing something".</p><p>In addition, many event types from MAVEN, e.g., Achieve, Award, and Incident, are not associated with any definitions. A potential future research direction is to leverage mining-based approaches or state-of-the-art generators to automatically generate a comprehensive event type description based on various sources, such as annotation guidelines, example annotations, and external knowledge bases. Qi Li, Heng Ji, and Liang Huang. 2013. Joint event extraction via structured prediction with global features. In Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 73-82, Sofia, Bulgaria. Association for Computational Linguistics. Xiang Lisa Li and Percy Liang. 2021. Prefix-tuning: Optimizing continuous prompts for generation. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), abs/2101.00190. A APEX prompt examples for ACE</p><p>Table 4 and Table 5 show APEX prompt examples for ACE events.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B Prompt Token Selection</head><p>In our experiments, the event type names and event type structures are automatically extracted from the target event ontology, such as ACE <ref type="bibr">(Linguistic Data Consortium, 2005)</ref>, ERE <ref type="bibr">(Song et al., 2015)</ref> and MAVEN <ref type="bibr">(Wang et al., 2020a)</ref>. The prototype seed triggers are automatically selected from the annotated data for supervised and few-shot event extraction. For zero-shot event extraction, we manually select R words from the NLTK synonyms of each event type as its prototype seed triggers. The definitions and APEX prompts are based on the official annotation guides for each target event ontology <ref type="bibr">(Linguistic Data Consortium, 2005;</ref><ref type="bibr">Song et al., 2015;</ref><ref type="bibr">Wang et al., 2020a)</ref> and the available definitions in FrameNet <ref type="bibr">(Baker et al., 1998)</ref> with manual editing.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>C Learning Strategy</head><p>The learning strategy varies for supervised, fewshot, and zero-shot learning. For supervised learning, we optimize the following objective for event trigger detection L = -</p><p>1 |T ||N | t&#8712;T |N | i=1 y t i &#8226; log &#7929;t i , where T is the set of target event types and N is the set of tokens from the training dataset. y t i denotes the ground truth label vector. For few-shot event detection, we optimize the model on both base training data set and the smaller training data set for novel event types:</p><p>where T B and N B denote the set of base event types and tokens from the base training data set, respectively. T N is the set of novel event types. N N is the set of tokens from the training data set for novel event types. &#946; is a hyper-parameter to balance the two objectives. For zero-shot event detection, as we only have the base training data set, we minimize the following objective: L = -</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D Dataset</head><p>After defining the base and novel event types, we create the training, validation, and evaluation split for all three datasets. We use the sentences with only base event type mentions as the base training data set for few-shot event detection, and randomly select 10 sentences with novel event type mentions as the additional smaller training data set. We use the sentences with both base and novel event type mentions as the development set and use the remaining sentences with only novel event type mentions as the evaluation dataset. We use the same development and evaluation set as few-shot event detection for zero-shot event detection and remove the instances with novel event mentions from the training set. We randomly split the sentences without any event annotations proportionally to the number of sentences with event mentions in each set for both zero-shot and few-shot event detection.</p><p>Table <ref type="table">6</ref> shows the detailed data statistics for all the three datasets under the few-shot and zero-shot event extraction settings.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E Hyperparameters and Evaluation</head><p>For a fair comparison with the previous baseline approaches, we use the same pre-trained bert-large-uncased model for fine-tuning and optimizing our model with BertAdam. For supervised event detection, we optimize the parameters with grid search: training epoch is 3, learning rate &#8712; [3e-6, 1e-4], training batch size &#8712; {8, 12, 16, 24, 32}, dropout rate &#8712; {0.4, 0.5, 0.6}.</p><p>The running time is up to 3 hours on one Quadro RTX 8000. For evaluation, we use the same criteria as previous studies <ref type="bibr">(Li et al., 2013;</ref><ref type="bibr">Chen et al., 2015;</ref><ref type="bibr">Nguyen et al., 2016;</ref><ref type="bibr">Lin et al., 2020)</ref>: an event mention is correct if its span and event type match a reference event mention.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0"><p>The source code, model checkpoints and data are publicly available at https://github.com/VT-NLP/Event_ APEX.</p></note>
		</body>
		</text>
</TEI>
