Open-source Frame Semantic Parsing

David ChaninarXiv 2023

Abstract

While the state-of-the-art for frame semantic parsing has progressed dramatically in recent years, it is still difficult for end-users to apply state-of-the-art models in practice. To address this, we present Frame Semantic Transformer, an open-source Python library which achieves near state-of-the-art performance on FrameNet 1.7, while focusing on ease-of-use. We use a T5 model fine-tuned on Propbank and FrameNet exemplars as a base, and improve performance by using FrameNet lexical units to provide hints to T5 at inference time. We enhance robustness to real-world data by using textual data augmentations during training.

Introduction

Frame semantic parsing is a core Natural Language Understanding (NLU) task that involves identifying "frames" (events or situations) and their "elements" (participants or roles). For example, in the sentence "Jaclyn gave the box to Mark," a parser identifies the Giving frame, where Jaclyn is the Donor, the box is the Theme, and Mark is the Recipient.

Example of frame semantic parsing for the sentence 'Jaclyn gave the box to Mark'.

Despite its utility for dialog systems and intent recognition, the sub-field has historically suffered from an accessibility gap. Many state-of-the-art (SOTA) models are described in literature but lack publicly available code or weights. Furthermore, existing open-source tools like Open Sesame rely on older architectures that underperform compared to modern transformers. Frame Semantic Transformer addresses these issues by providing a production-ready, "plug-and-play" tool for developers.

Methods

The library treats frame semantic parsing as a series of three sequence-to-sequence (seq2seq) tasks, leveraging a fine-tuned T5 model.

  1. Trigger Identification: The model identifies words that evoke a frame (e.g., marking triggers in a sentence like *trying the *lift).
  2. Frame Classification: For each trigger, the model selects the appropriate FrameNet frame. To improve accuracy, the system uses in-context prompt hints, providing a list of candidate frames based on FrameNet Lexical Units (LUs) directly in the prompt.
  3. Argument Extraction: The model identifies participants. The prompt is augmented with a list of valid frame elements for the chosen frame to effectively constrain the search space.

Training and Robustness

The training pipeline utilizes a multi-stage strategy: initial pretraining on PropBank, followed by FrameNet Exemplars (~100,000 sentences), and final fine-tuning on FrameNet 1.7. To ensure reliability on "messy" real-world data, the author incorporates data augmentation (e.g., simulating typos and casing errors) during training. While this slightly lowers scores on clean academic benchmarks, it significantly improves real-world reliability.

Results

Frame Semantic Transformer (T5-base) significantly outperforms Open Sesame, the previous open-source standard, across all key metrics on the FrameNet 1.7 test set.

Performance comparison of Frame Semantic Transformer against Open Sesame and other SOTA models on FrameNet 1.7.

As shown in the results, the T5-base model achieves an F1 score of 0.75 for Argument Identification (Args ID) on the test set, a substantial improvement over Open Sesame's 0.61. It also approaches the performance of closed-source SOTA models like Kalyanpur et al. (2020), which reaches 0.76. Crucially, this is the first model of this caliber to be available via a simple pip install.

Discussion and Conclusion

By using prompts as constraints, the library effectively guides the T5 model without requiring complex architectural modifications. The use of multiple stemmers and lemmatizers (Snowball, Lancaster, WordNet) ensures robust matching between trigger words and Lexical Units.

While the current serial pipeline approach is susceptible to error propagation—where a mistake in trigger identification affects subsequent steps—the model's overall performance and ease of use represent a significant step forward. Future work will focus on expanding language support beyond English and integrating PropBank-style parsing directly into the library.

Summary updated

BibTeX
@misc{chanin2023open,
  author = {David Chanin},
  title = {{Open-source Frame Semantic Parsing}},
  year = {2023},
  eprint = {2303.12788},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.12788},
}
Figure