Zero-Shot Event Detection Based on Ordered Contrastive Learning and Prompt-Based Prediction

Senhui Zhang, Tao Ji, Wendi Ji, Xiaoling WangNAACL 2022

Introduction

Event Detection (ED) is a fundamental task in information extraction, aimed at identifying event triggers in text and classifying them into predefined types. Traditional supervised models perform well on known event types but struggle with "unseen" types that emerge in dynamic data environments. Zero-shot event detection aims to bridge this gap by identifying and categorizing these novel events without labeled training data.

Conceptual overview of zero-shot event detection mapping labeled and unlabeled mentions to known and new event types.

Existing zero-shot methods often rely on manual heuristic rules or external NLP tools like Part-of-Speech (POS) taggers and Abstract Meaning Representation (AMR) parsers. These dependencies introduce brittleness and error propagation. To address these issues, we present ZEOP (Zero-Shot Event Detection Based on Ordered Contrastive Learning and Prompt-Based Prediction), an end-to-end framework that utilizes ordered contrastive learning and prompt-based trigger identification.

Methodology: The ZEOP Framework

ZEOP eliminates the need for external linguistic tools by leveraging the latent knowledge in pre-trained language models (PLMs).

Prompt-Based Trigger Identification

Instead of traditional sequence labeling or rule-based candidate generation, ZEOP treats trigger identification as a cloze-style task. By using a BERT-based prompt—"This is event about [MASK]. <event mention>"—the model utilizes the contextual representation of the [MASK] token to pinpoint the trigger word. This approach avoids the accumulation of errors from external preprocessing pipelines.

Ordered Contrastive Learning (OCL)

A core innovation of ZEOP is the Ordered Contrastive Learning strategy. Unlike standard contrastive learning that uses binary positive/negative pairs, OCL teaches the model a hierarchy of similarity. The framework generates four types of samples with a predefined ranking of similarity to the original event mention:

  1. Dropout Sample: Created by passing the same input through the encoder with different dropout masks (highest similarity).
  2. Rewrite Sample: Generated via back-translation to maintain semantic meaning while changing textual structure.
  3. Homogeneous Sample: A different instance of the same event type (class-level similarity).
  4. Heterogeneous Sample: An instance from a different event type (lowest similarity).
The ZEOP architecture and the generation of ordered contrastive samples ranging from most to least similar.

The model is trained using an Ordered Contrastive Loss based on Wasserstein distance, which enforces this specific ranking in the embedding space. This gradient of similarity allows the encoder to learn more discriminative features for unseen event types, moving beyond simple binary classification.

Evaluation and Results

The ZEOP model was evaluated on the ACE-2005 and FewShotED datasets, split into "seen" types for training and "unseen" types for testing.

Performance Metrics

ZEOP demonstrated significant improvements over state-of-the-art baselines:

  • ACE-2005: Achieved an F1-Unseen score of 0.4591, a substantial increase from the previous best of 0.3509 (SS-VQ-VAE).
  • FewShotED: Reached an F1-Unseen score of 0.5814, significantly outperforming the baseline of 0.4364.

Ablation studies confirmed that each level of the ordered contrastive hierarchy contributes to the model's performance. Removing any sample type resulted in a measurable drop in F1 scores, validating the hypothesis that similarity is a spectrum rather than a binary state.

Discussion and Future Work

While ZEOP achieves state-of-the-art results, it faces certain challenges. The model's performance is sensitive to the estimated number of unseen event types, and there is a slight "tug-of-war" between supervised learning for seen types and contrastive learning for unseen types. Future research will focus on optimizing prototype matrix initialization to further reduce the need for large training samples and improve convergence speed.

By replacing brittle heuristics with prompt-based identification and binary contrast with ordered learning, ZEOP represents a significant step toward more robust, end-to-end zero-shot event detection.

Summary updated

BibTeX
@inproceedings{zhang2022zero,
  author = {Senhui Zhang and Tao Ji and Wendi Ji and Xiaoling Wang},
  title = {{Zero-Shot Event Detection Based on Ordered Contrastive Learning and Prompt-Based Prediction}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-naacl.196},
}
Figure