Prompt Learning with Structured Semantic Knowledge Makes Pre-Trained Language Models Better
Open Access
- 30 July 2023
- journal article
- research article
- Published by MDPI AG in Electronics
- Vol. 12 (15) , 3281
Abstract
Pre-trained language models with structured semantic knowledge have demonstrated remarkable performance in a variety of downstream natural language processing tasks. The typical methods of integrating knowledge are designing different pre-training tasks and training from scratch, which requires high-end hardware, massive storage resources, and long computing times. Prompt learning is an effective approach to tuning language models for specific tasks, and it can also be used to infuse knowledge. However, most prompt learning methods accept one token as the answer, instead of multiple tokens. To tackle this problem, we propose the long-answer prompt learning method (KLAPrompt), with three different long-answer strategies, to incorporate semantic knowledge into pre-trained language models, and we compare the performance of these three strategies through experiments. We also explore the effectiveness of the KLAPrompt method in the medical field. Additionally, we generate a word sense prediction dataset (WSP) based on the Xinhua Dictionary and a disease and category prediction dataset (DCP) based on MedicalKG. Experimental results show that discrete answers with the answer space partitioning strategy achieve the best results, and introducing structured semantic information can consistently improve language modeling and downstream tasks.Keywords
Funding Information
- National Natural Science Foundation of China (62276154, 2023A1515012914, JCYJ20210324120012033, JSGG20210802154402007, PCL2021A06, HW2021008)
- Research Center for Computer Network (Shenzhen) Ministry of Education (62276154, 2023A1515012914, JCYJ20210324120012033, JSGG20210802154402007, PCL2021A06, HW2021008)
- Beijing Academy of Artificial Intelligence (62276154, 2023A1515012914, JCYJ20210324120012033, JSGG20210802154402007, PCL2021A06, HW2021008)
- Natural Science Foundation of Guangdong Province (62276154, 2023A1515012914, JCYJ20210324120012033, JSGG20210802154402007, PCL2021A06, HW2021008)
- Basic Research Fund of Shenzhen City (62276154, 2023A1515012914, JCYJ20210324120012033, JSGG20210802154402007, PCL2021A06, HW2021008)
- Major Key Project of PCL for Experiments and Applications (62276154, 2023A1515012914, JCYJ20210324120012033, JSGG20210802154402007, PCL2021A06, HW2021008)
- Overseas Cooperation Research Fund of Tsinghua Shenzhen International Graduate School (62276154, 2023A1515012914, JCYJ20210324120012033, JSGG20210802154402007, PCL2021A06, HW2021008)
This publication has 31 references indexed in Scilit:
- BioBERT: a pre-trained biomedical language representation model for biomedical text miningBioinformatics, 2019
- Knowledge Enhanced Contextual Word Representations2019
- SciBERT: A Pretrained Language Model for Scientific Text2019
- Transfer Learning in Biomedical Natural Language Processing: An Evaluation of BERT and ELMo on Ten Benchmarking Datasets2019
- Improving Low Resource Named Entity Recognition using Cross-lingual Knowledge Transfer2018
- XNLI: Evaluating Cross-lingual Sentence Representations2018
- SWAG: A Large-Scale Adversarial Dataset for Grounded Commonsense Inference2018
- Linguistically-Informed Self-Attention for Semantic Role Labeling2018
- SemEval-2017 Task 1: Semantic Textual Similarity Multilingual and Crosslingual Focused Evaluation2017
- WordNetCommunications of the ACM, 1995