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

KnowPrompt: Knowledge-aware Prompt-tuning with Synergistic Optimization for Relation Extraction

About

Recently, prompt-tuning has achieved promising results for specific few-shot classification tasks. The core idea of prompt-tuning is to insert text pieces (i.e., templates) into the input and transform a classification task into a masked language modeling problem. However, for relation extraction, determining an appropriate prompt template requires domain expertise, and it is cumbersome and time-consuming to obtain a suitable label word. Furthermore, there exists abundant semantic and prior knowledge among the relation labels that cannot be ignored. To this end, we focus on incorporating knowledge among relation labels into prompt-tuning for relation extraction and propose a Knowledge-aware Prompt-tuning approach with synergistic optimization (KnowPrompt). Specifically, we inject latent knowledge contained in relation labels into prompt construction with learnable virtual type words and answer words. Then, we synergistically optimize their representation with structured constraints. Extensive experimental results on five datasets with standard and low-resource settings demonstrate the effectiveness of our approach. Our code and datasets are available in https://github.com/zjunlp/KnowPrompt for reproducibility.

Xiang Chen, Ningyu Zhang, Xin Xie, Shumin Deng, Yunzhi Yao, Chuanqi Tan, Fei Huang, Luo Si, Huajun Chen• 2021

Related benchmarks

TaskDatasetResultRank
Relation ExtractionTACRED (test)
F1 Score72.4
194
Relation ExtractionTACRED
Micro F136.33
97
Dialogue Relation ExtractionDialogRE (test)
F168.6
69
Relation ExtractionSemEval
Micro-F181.06
63
Relation ExtractionSemEval (test)
Micro F190.2
55
Relation ExtractionRe-TACRED
Micro F162.34
35
Relation ExtractionTACRED-Revisit
Micro F134.61
35
Relation ExtractionTACRED-Revisit (test)
Micro F182.4
19
Relation ExtractionTACRED v1.0 (5% train)
Micro F10.61
19
Relation ExtractionTACRED v1.0 (full)
Micro F172.4
16
Showing 10 of 37 rows

Other info

Code

Follow for update