Computer Science > Computation and Language
[Submitted on 15 Apr 2021 (v1), last revised 18 Sep 2023 (this version, v7)]
Title:KnowPrompt: Knowledge-aware Prompt-tuning with Synergistic Optimization for Relation Extraction
View PDFAbstract: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 this https URL for reproducibility.
Submission history
From: Ningyu Zhang [view email][v1] Thu, 15 Apr 2021 17:57:43 UTC (880 KB)
[v2] Wed, 25 Aug 2021 13:04:08 UTC (4,986 KB)
[v3] Mon, 30 Aug 2021 16:30:08 UTC (8,111 KB)
[v4] Fri, 3 Sep 2021 17:06:40 UTC (8,111 KB)
[v5] Thu, 9 Sep 2021 16:02:40 UTC (3,986 KB)
[v6] Sun, 23 Jan 2022 16:06:39 UTC (4,787 KB)
[v7] Mon, 18 Sep 2023 16:46:56 UTC (6,403 KB)
Current browse context:
cs.CL
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.