CPTuning: Contrastive Prompt Tuning for Generative Relation Extraction
Preprint
Abstract
Generative relation extraction (RE) commonly involves first reformulating RE as a linguistic modeling problem easily tackled with pre-trained language models (PLM) and then fine-tuning a PLM with supervised cross-entropy loss. Although having achieved promising performance, existing approaches assume only one deterministic relation between each pair of entities without considering real scenarios where multiple relations may be valid, i.e., entity pair overlap, causing their limited applications. To address this problem, we introduce a novel contrastive prompt tuning method for RE, CPTuning, which learns to associate a candidate relation between two in-context entities with a probability mass above or below a threshold, corresponding to whether the relation exists. Beyond learning schema, CPTuning also organizes RE as a verbalized relation generation task and uses Trie-constrained decoding to ensure a model generates valid relations. It adaptively picks out the generated candidate relations with a high estimated likelihood in inference, thereby achieving multi-relation extraction. We conduct extensive experiments on four widely used datasets to validate our method. Results show that T5-large fine-tuned with CPTuning significantly outperforms previous methods, regardless of single or multiple relations extraction.Keywords
All Related Versions
This publication has 25 references indexed in Scilit:
- Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language ProcessingACM Computing Surveys, 2023
- KnowPrompt: Knowledge-aware Prompt-tuning with Synergistic Optimization for Relation Extraction2022
- Curriculum Learning: A SurveyInternational Journal of Computer Vision, 2022
- PTR: Prompt Tuning with Rules for Text ClassificationAI Open, 2022
- SpanBERT: Improving Pre-training by Representing and Predicting SpansTransactions of the Association for Computational Linguistics, 2020
- BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension2020
- Curriculum Learning for Natural Language Understanding2020
- Uncertainty-Aware Curriculum Learning for Neural Machine Translation2020
- Norm-Based Curriculum Learning for Neural Machine Translation2020
- TACRED Revisited: A Thorough Evaluation of the TACRED Relation Extraction Task2020