Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Generative Prompt Tuning for Relation Classification

About

Using prompts to explore the knowledge contained within pre-trained language models for downstream tasks has now become an active topic. Current prompt tuning methods mostly convert the downstream tasks to masked language modeling problems by adding cloze-style phrases and mapping all labels to verbalizations with fixed length, which has proven effective for tasks with simple label spaces. However, when applied to relation classification exhibiting complex label spaces, vanilla prompt tuning methods may struggle with label verbalizations with arbitrary lengths due to rigid prompt restrictions. Inspired by the text infilling task for pre-training generative models that can flexibly predict missing spans, we propose a novel generative prompt tuning method to reformulate relation classification as an infilling problem, which frees our approach from limitations of current prompt based approaches and thus fully exploits rich semantics of entity and relation types. In addition, we design entity-guided decoding and discriminative relation scoring to generate and align relations effectively and efficiently during inference. Extensive experiments under fully supervised settings and low-resource settings demonstrate the effectiveness of our approach.

Jiale Han, Shuai Zhao, Bo Cheng, Shengkun Ma, Wei Lu• 2022

Related benchmarks

TaskDatasetResultRank
Relation ClassificationTACRED K=8 low-resource original
Micro F10.357
11
Relation ClassificationTACRED K=16 original (low-resource)
Micro F136.6
11
Relation ClassificationTACRED K=32 original (low-resource)
Micro F137.4
11
Relation ClassificationTACRED Original (test)
Micro F175.3
11
Relation ClassificationTACREV K=8 low-resource revised
Micro F134.4
10
Relation ClassificationTACREV K=16 low-resource revised
Micro F134.6
10
Relation ClassificationTACREV K=32 low-resource revised
Micro F136.6
10
Relation ClassificationRe-TACRED K=8 low-resource re-evaluated
Micro F157.1
10
Relation ClassificationRe-TACRED K=32 (low-resource)
Micro F165.2
10
Relation ClassificationTACREV (test)
Micro F184
10
Showing 10 of 16 rows

Other info

Code

Follow for update