journal article·2022-02-19Open access

Commonsense Knowledge-Aware Prompt Tuning for Few-Shot NOTA Relation Classification

Bo Lv, Li Jin, Yanan Zhang, Hao Wang, Xiaoyu Li, Zhi Guo

Applied Sciences· Volume 12· Issue 4

Abstract

Compared with the traditional few-shot task, the few-shot none-of-the-above (NOTA) relation classification focuses on the realistic scenario of few-shot learning, in which a test instance might not belong to any of the target categories. This undoubtedly increases the task’s difficulty because given only a few support samples, this cannot represent the distribution of NOTA categories in space. The model needs to make full use of the syntactic information and word meaning information learned in the pre-training stage to distinguish the NOTA category and the support sample category in the embedding space. However, previous fine-tuning methods mainly focus on optimizing the extra classifiers (on top of pre-trained language models (PLMs)) and neglect the connection between pre-training objectives and downstream tasks. In this paper, we propose the commonsense knowledge-aware prompt tuning (CKPT) method for a few-shot NOTA relation classification task. First, a simple and effective prompt-learning method is developed by constructing relation-oriented templates, which can further stimulate the rich knowledge distributed in PLMs to better serve downstream tasks. Second, external knowledge is incorporated into the model by a label-extension operation, which forms knowledgeable prompt tuning to improve and stabilize prompt tuning. Third, to distinguish the NOTA pairs and positive pairs in embedding space more accurately, a learned scoring strategy is proposed, which introduces a learned threshold classification function and improves the loss function by adding a new term focused on NOTA identification. Experiments on two widely used benchmarks (FewRel 2.0 and Few-shot TACRED) show that our method is a simple and effective framework, and a new state of the art is established in the few-shot classification field.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Domain Adaptation and Few-Shot Learning · Topic Modeling · Multimodal Machine Learning Applications

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Aerospace Information Research Institute, Chinese Academy of Sciences, Beijing 100190, China

Key Laboratory of Network Information System Technology, Institute of Electronics, Chinese Academy of Sciences, Beijing 100190, China

School of Electronic, Electrical and Communication Engineering, University of Chinese Academy of Sciences, Beijing 100190, China

School of Information Science and Technology, North China University of Technology, Beijing 100190, China

Funding

Chinese Academy of Sciences

References (41)

Show source-provided references
1. Gao, T., Han, X., Zhu, H., Liu, Z., Li, P., Sun, M., and Zhou, J. (2019, January 3–7). FewRel 2.0: Towards More Challenging Few-Shot Relation Classification. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China.10.18653/v1/D19-1649 ↗
2. Devlin, J., Chang, M.W., Lee, K., and Toutanova, K. (2019). BERT: Pre-Training of Deep Bidirectional Transformers for Language Understanding, NAACL.
3. Revisiting Few-shot Relation Classification: Evaluation Data and Classification Schemes10.1162/tacl_a_00392 ↗
4. Radford, A., Narasimhan, K., Salimans, T., and Sutskever, I. (2022, January 16). Improving Language Understanding by Generative Pre-Training. Available online: https://www.cs.ubc.ca/~amuham01/LING530/papers/radford2018improving.pdf.
5. Sampath, P., Sridhar, N.S., Shanmuganathan, V., and Lee, Y. (2021). TREASURE: Text Mining Algorithm Based on Affinity Analysis and Set Intersection to Find the Action of Tuberculosis Drugs against Other Pathogens. Appl. Sci., 11.10.3390/app11156834 ↗
6. Zhang, H., Zhang, G., and Ma, Y. (2021). Syntax-Informed Self-Attention Network for Span-Based Joint Entity and Relation Extraction. Appl. Sci., 11.10.3390/app11041480 ↗
7. Han, X., Zhu, H., Yu, P., Wang, Z., Yao, Y., Liu, Z., and Sun, M. (November, January 31). FewRel: A Large-Scale Supervised Few-Shot Relation Classification Dataset with State-of-the-Art Evaluation. Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, Brussels, Belgium.10.18653/v1/D18-1514 ↗
8. Dou, Z.Y., Yu, K., and Anastasopoulos, A. (2019, January 3–7). Investigating Meta-Learning Algorithms for Low-Resource Natural Language Understanding Tasks. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China.10.18653/v1/D19-1112 ↗
9. Satorras, V.G., and Estrach, J.B. (May, January 30). Few-Shot Learning with Graph Neural Networks. Proceedings of the 2018 International Conference on Learning Representations, Vancouver, BC, Canada.
10. Mishra, N., Rohaninejad, M., Chen, X., and Abbeel, P. (May, January 30). A Simple Neural Attentive Meta-Learner. Proceedings of the 2018 International Conference on Learning Representations, Vancouver, BC, Canada.
11. Bengio, Y., Bengio, S., and Cloutier, J. (1991, January 8–12). Learning a synaptic learning rule. Proceedings of the IJCNN-91-Seattle International Joint Conference on Neural Networks, Seattle, WA, USA.10.1109/IJCNN.1991.155621 ↗
12. Ravi, S., and Larochelle, H. (2017, January 24–26). Optimization as a Model for Few-Shot Learning. Proceedings of the 2017 International Conference on Learning Representations, Toulon, France.
13. Li, Z., Zhou, F., Chen, F., and Li, H. (2017). Meta-SGD: Learning to Learn Quickly for Few Shot Learning. arXiv.
14. Geng, X., Chen, X., Zhu, K.Q., Shen, L., and Zhao, Y. (2020, January 19–23). MICK: A Meta-Learning Framework for Few-shot Relation Classification with Small Training Data. Proceedings of the 29th ACM International Conference on Information & Knowledge Management, Online.10.1145/3340531.3411858 ↗
15. Wang, Y., Bao, J., Liu, G., Wu, Y., He, X., Zhou, B., and Zhao, T. (2020, January 8–13). Learning to Decouple Relations: Few-Shot Relation Classification with Entity-Guided Attention and Confusion-Aware Training. Proceedings of the 28th International Conference on Computational Linguistics, Online.10.18653/v1/2020.coling-main.510 ↗
16. Dong, B., Yao, Y., Xie, R., Gao, T., Han, X., Liu, Z., Lin, F., and Lin, L. (2020, January 8–13). Meta-Information Guided Meta-Learning for Few-Shot Relation Classification. Proceedings of the 28th International Conference on Computational Linguistics, Online.10.18653/v1/2020.coling-main.140 ↗
17. Qu, M., Gao, T., Xhonneux, L.P., and Tang, J. (2020, January 13–18). Few-shot Relation Extraction via Bayesian Meta-learning on Relation Graphs. Proceedings of the 37th International Conference on Machine Learning, Online.
18. Seo, C.W., and Seo, Y. (2021). Seg2pix: Few Shot Training Line Art Colorization with Segmented Image Data. Appl. Sci., 11.10.3390/app11041464 ↗
19. Sung, F., Yang, Y., Zhang, L., Xiang, T., Torr, P.H., and Hospedales, T.M. (2018, January 18–23). Learning to Compare: Relation Network for Few-Shot Learning. Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.10.1109/CVPR.2018.00131 ↗
20. Ren, H., Cai, Y., Chen, X., Wang, G., and Li, Q. (2020, January 8–13). A Two-phase Prototypical Network Model for Incremental Few-shot Relation Classification. Proceedings of the 28th International Conference on Computational Linguistics, Online.10.18653/v1/2020.coling-main.142 ↗
21. Zhu, W., Tao, D., Cheng, X., Cui, P., Rundensteiner, E.A., Carmel, D., He, Q., and Yu, J.X. (2019, January 3–7). Large Margin Prototypical Network for Few-shot Relation Classification with Fine-grained Features. Proceedings of the 2019 ACM International Conference on Information and Knowledge Management, Beijing, China.
22. Ding, N., Wang, X., Fu, Y., Xu, G., Wang, R., Xie, P., Shen, Y., Huang, F., Zheng, H.T., and Zhang, R. (May, January 30). Prototypical Representation Learning for Relation Extraction. Proceedings of the 2021 International Conference on Learning Representations, Vienna, Austria.
23. Nguyen, N.T., Jearanaitanakij, K., Selamat, A., Trawinski, B., and Chittayasothorn, S. (2020). Dynamic Prototype Selection by Fusing Attention Mechanism for Few-Shot Relation Classification. ACIIDS (1), Springer. Lecture Notes in Computer Science.
24. Tan, M., Yu, Y., Wang, H., Wang, D., Potdar, S., Chang, S., and Yu, M. (2019, January 3–7). Out-of-Domain Detection for Low-Resource Text Classification Tasks. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), Hong Kong, China.10.18653/v1/D19-1364 ↗
25. Few-Shot Open World Learner10.1016/j.ifacol.2021.10.129 ↗
26. Willes, J., Harrison, J., Harakeh, A., Finn, C., Pavone, M., and Waslander, S.L. (2021). Bayesian Embeddings for Few-Shot Open World Recognition. CoRR, Available online: http://xxx.lanl.gov/abs/2107.13682.
27. Language Models are Few-Shot Learners
28. Liu, P., Yuan, W., Fu, J., Jiang, Z., Hayashi, H., and Neubig, G. (2021). Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processing. CoRR, Available online: http://xxx.lanl.gov/abs/2107.13586.
29. Schick, T., and Schütze, H. (2020, January 10). Exploiting Cloze Questions for Few-Shot Text Classification and Natural Language Inference. Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics, Online.10.18653/v1/2021.eacl-main.20 ↗
30. Han, X., Zhao, W., Ding, N., Liu, Z., and Sun, M. (2021). PTR: Prompt Tuning with Rules for Text Classification. arXiv.10.1016/j.aiopen.2022.11.003 ↗
31. Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
32. Ott, M., Edunov, S., Baevski, A., Fan, A., Gross, S., Ng, N., Grangier, D., and Auli, M. (2019, January 2–7). fairseq: A Fast, Extensible Toolkit for Sequence Modeling. Proceedings of the NAACL-HLT 2019: Demonstrations, Minneapolis, MN, USA.10.18653/v1/N19-4009 ↗
33. Wallach, H., Larochelle, H., Beygelzimer, A., d’Alché-Buc, F., Fox, E., and Garnett, R. (2019). SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems. Advances in Neural Information Processing Systems, Curran Associates, Inc.
34. Ding, N., Chen, Y., Han, X., Xu, G., Xie, P., Zheng, H., Liu, Z., Li, J., and Kim, H. (2021). Prompt-Learning for Fine-Grained Entity Typing. CoRR, Available online: http://xxx.lanl.gov/abs/2108.10604.10.18653/v1/2022.findings-emnlp.512 ↗
35. Gao, T., Fisch, A., and Chen, D. (2021, January 1–6). Making Pre-trained Language Models Better Few-shot Learners. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), Online.10.18653/v1/2021.acl-long.295 ↗
36. Shin, T., Razeghi, Y., Logan, R.L., Wallace, E., and Singh, S. (2020, January 16–20). AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), Online.10.18653/v1/2020.emnlp-main.346 ↗
37. Li, X.L., and Liang, P. (2021, January 1–6). Prefix-Tuning: Optimizing Continuous Prompts for Generation. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, Online.10.18653/v1/2021.acl-long.353 ↗
38. Hambardzumyan, K., Khachatrian, H., and May, J. (2021, January 1–6). WARP: Word-level Adversarial ReProgramming. Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), Online.10.18653/v1/2021.acl-long.381 ↗
39. Zhang, Y., Zhong, V., Chen, D., Angeli, G., and Manning, C.D. (2017, January 9–11). Position-aware Attention and Supervised Data Improve Slot Filling. Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing, Copenhagen, Denmark.10.18653/v1/D17-1004 ↗
40. An agent-based approach for recommending cultural tours10.1016/j.patrec.2020.01.005 ↗
41. Colace, F., De Santo, M., Lombardi, M., Mercorio, F., Mezzanzanica, M., and Pascale, F. (2019, January 8–11). Towards Labour Market Intelligence through Topic Modelling. Proceedings of the Hawaii International Conference on System Sciences, Maui, HI, USA.10.24251/HICSS.2019.632 ↗