Generative Prompt Tuning for Relation Classification

Jiale Han, Shuai Zhao, Bo Cheng, Shengkun Ma, Wei Lu
10/22/2022
cs.CL
lora-peft-merging

Official code: hanjiale/GenPT (20 stars, Python, last commit 2023-05-07).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

hanjiale/GenPTOfficial100%

[Findings of EMNLP 2022] Code of paper Generative Prompt Tuning for Relation Classification. https://arxiv.org/abs/2210.12435

204Python, ShellOct 8, 20223 years ago
emnlp2022prompt-tuningrelation-extraction

Similar Papers

Cite this paper

@article{han2022generative,
  title  = {Generative Prompt Tuning for Relation Classification},
  author = {Jiale Han and Shuai Zhao and Bo Cheng and Shengkun Ma and Wei Lu},
  year   = {2022},
  eprint = {2210.12435},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.12435}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.12435.svg)](https://codeofpaper.com/paper/2210.12435)

Discussion