journal article·2022-11-02Open access

Investigating Prompt Learning for Chinese Few-Shot Text Classification with Pre-Trained Language Models

Chengyu Song, Taihua Shao, Kejing Lin, Dengfeng Liu, Siyuan Wang, Honghui Chen

Applied Sciences· Volume 12· Issue 21

Abstract

Text classification aims to assign predefined labels to unlabeled sentences, which tend to struggle in real-world applications when only a few annotated samples are available. Previous works generally focus on using the paradigm of meta-learning to overcome the classification difficulties brought by insufficient data, where a set of auxiliary tasks is given. Accordingly, prompt-based approaches are proposed to deal with the low-resource issue. However, existing prompt-based methods mainly focus on English tasks, which generally apply English pretrained language models that can not directly adapt to Chinese tasks due to structural and grammatical differences. Thus, we propose a prompt-based Chinese text classification framework that uses generated natural language sequences as hints, which can alleviate the classification bottleneck well in low-resource scenarios. In detail, we first design a prompt-based fine-tuning together with a novel pipeline for automating prompt generation in Chinese. Then, we propose a refined strategy for dynamically and selectively incorporating demonstrations into each context. We present a systematic evaluation for analyzing few-shot performance on a wide range of Chinese text classification tasks. Our approach makes few assumptions about task resources and expertise and therefore constitutes a powerful, task-independent approach for few-shot learning.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Topic Modeling · Natural Language Processing Techniques · Text and Document Classification Technologies

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

Affiliations

Science and Technology on Information Systems Engineering Laboratory, National University of Defense and Technology, No. 109 Deya Street, Changsha 410073, China

School of Information Resources Management, Renmin University of China, No. 59 Zhongguancun Street, Beijing 100872, China

Funding

Postgraduate Scientific Research Innovation Project of Hunan Province

References (53)

Show source-provided references
1. Lee, J., and Park, S. (2022). A Study on the Calibrated Confidence of Text Classification Using a Variational Bayes. Appl. Sci., 12.10.3390/app12189007 ↗
2. Ho, T.K., Shih, W.Y., Kao, W.Y., Hsu, C.H., and Wu, C.Y. (2022). Analysis of the Development Trend of Sports Research in China and Taiwan Using Natural Language Processing. Appl. Sci., 12.10.3390/app12189006 ↗
3. Faralli, S., and Velardi, P. (2022). Special Issue on Social Network Analysis. Appl. Sci., 12.10.3390/app12188993 ↗
4. Zhang, H., Wang, X., Jiang, S., and Li, X. (2022). Multi-Granularity Semantic Collaborative Reasoning Network for Visual Dialog. Appl. Sci., 12.10.3390/app12188947 ↗
5. Saleh, H., Mostafa, S., Gabralla, L.A., Aseeri, A.O., and El-Sappagh, S. (2022). Enhanced Arabic Sentiment Analysis Using a Novel Stacking Ensemble of Hybrid and Deep Learning Models. Appl. Sci., 12.10.3390/app12188967 ↗
6. A linguistic approach for determining the topics of Spanish Twitter messages10.1177/0165551514561652 ↗
7. A pre-trained BERT for Korean medical natural language processing
8. De Carvalho, V.D.H., and Costa, A.P.C.S. (2022). Towards corpora creation from social web in Brazilian Portuguese to support public security analyses and decisions. Library Hi Tech, ahead-of-print.10.1108/LHT-08-2022-0401 ↗
9. Correction to: Arabic text summarization using deep learning approach10.1186/s40537-021-00440-y ↗
10. Context based NLP framework of textual tagging for low resource language10.1007/s11042-021-11884-y ↗
11. Zheng, J., Cai, F., Chen, W., Lei, W., and Chen, H. (2021, January 19–3). Taxonomy-aware Learning for Few-Shot Event Detection. Proceedings of the WWW ’21—Proceedings of the Web Conference 2021, Ljubljana, Slovenia.10.1145/3442381.3449949 ↗
12. Few-Shot Relation Classification Research Based on Prototypical Network and Causal Intervention10.1109/ACCESS.2022.3164688 ↗
13. Prior-knowledge and attention based meta-learning for few-shot learning10.1016/j.knosys.2020.106609 ↗
14. True Few-Shot Learning with Language Models
15. Schick, T., and Schütze, H. (2021, January 19–23). 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: Main Volume, EACL 2021, Online.10.18653/v1/2021.eacl-main.20 ↗
16. Schick, T., and Schütze, H. (2021, January 6–11). It’s Not Just Size That Matters: Small Language Models Are Also Few-Shot Learners. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT 2021, Online.10.18653/v1/2021.naacl-main.185 ↗
17. 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. arXiv.
18. 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, ACL/IJCNLP 2021, (Volume 1: Long Papers), Virtual Event.10.18653/v1/2021.acl-long.295 ↗
19. Language Models are Few-Shot Learners
20. Long Short-Term Memory10.1162/neco.1997.9.8.1735 ↗
21. Dieng, A.B., Wang, C., Gao, J., and Paisley, J. (2022, October 30). TopicRNN: A Recurrent Neural Network with Long-Range Semantic Dependency. ICLR. Available online: https://openreview.net/pdf?id=rJbbOLcex.
22. Conneau, A., Schwenk, H., Barrault, L., and Lecun, Y. (2022, October 30). Very Deep Convolutional Networks for Text Classification. Available online: https://aclanthology.org/E17-1104.pdf.
23. Sequence to Sequence Learning with Neural Networks
24. Bahdanau, D., Cho, K., and Bengio, Y. (2015, January 7–9). Neural Machine Translation by Jointly Learning to Align and Translate. Proceedings of the 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA.
25. Prototypical Networks for Few-shot Learning
26. Lyu, C., Liu, W., and Wang, P. (2022, October 30). Few-Shot Text Classification with Edge-Labeling Graph Neural Network-Based Prototypical Network. COLING. ICCL. Available online: https://aclanthology.org/2020.coling-main.485.pdf.10.18653/v1/2020.coling-main.485 ↗
27. Matching Networks for One Shot Learning
28. Yang, W., Li, J., Fukumoto, F., and Ye, Y. (2020, January 8–12). HSCNN: A Hybrid-Siamese Convolutional Neural Network for Extremely Imbalanced Multi-label Text Classification. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, EMNLP, ACL, Punta Cana, Dominican Republic.10.18653/v1/2020.emnlp-main.545 ↗
29. Wei, J., Huang, C., Vosoughi, S., Cheng, Y., and Xu, S. (2021, January 6–11). Few-Shot Text Classification with Triplet Networks, Data Augmentation, and Curriculum Learning. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT 2021, Online.10.18653/v1/2021.naacl-main.434 ↗
30. Howard, J., Ruder, S., and ACL (2022, October 30). Universal Language Model Fine-Tuning for Text Classification. Available online: https://aclanthology.org/P18-1031.pdf.
31. Kim, Y. (2014, January 26–28). Convolutional Neural Networks for Sentence Classification. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar.10.3115/v1/D14-1181 ↗
32. Abreu, J., Fred, L., Macêdo, D., and Zanchettin, C. (2019). Hierarchical Attentional Hybrid Neural Networks for Document Classification, Springer.10.1007/978-3-030-30493-5_39 ↗
33. Yang, L., Zhang, M., Li, C., Bendersky, M., and Najork, M. (2020, January 19–23). Beyond 512 Tokens: Siamese Multi-depth Transformer-based Hierarchical Encoder for Long-Form Document Matching. Proceedings of the CIKM ’20: Proceedings of the 29th ACM International Conference on Information & Knowledge Management, Online.10.1145/3340531.3411908 ↗
34. Sun, S., Sun, Q., Zhou, K., and Lv, T. (2019, January 3–7). Hierarchical Attention Prototypical Networks for Few-Shot Text 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-1045 ↗
35. Lai, V.D., Nguyen, T.H., and Dernoncourt, F. (2020, January 9). Extensively Matching for Few-shot Learning Event Detection. Proceedings of the First Joint Workshop on Narrative Understanding, Storylines, and Events, NUSE@ACL 2020, Online.10.18653/v1/2020.nuse-1.5 ↗
36. Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V. (2019). RoBERTa: A Robustly Optimized BERT Pretraining Approach. arXiv.
37. Devlin, J., Chang, M., Lee, K., and Toutanova, K. (2019, January 2–7). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Minneapolis, MN, USA.
38. Jurafsky, D., and Martin, J.H. (2009). Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition, Prentice Hall. [2nd ed.].
39. Lewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., and Zettlemoyer, L. (2022, October 30). BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension. Available online: https://aclanthology.org/2020.acl-main.703.pdf.10.18653/v1/2020.acl-main.703 ↗
40. Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
41. Petroni, F., Lewis, P.S.H., Piktus, A., Rocktaschel, T., Wu, Y., Miller, A.H., and Riedel, S. (2020, January 22–24). How Context Affects Language Models’ Factual Predictions. Proceedings of the Conference on Automated Knowledge Base Construction, AKBC 2020, Virtual.
42. Jiang, Z., Anastasopoulos, A., Araki, J., Ding, H., and Neubig, G. (2020, January 16–20). X-FACTR: Multilingual Factual Knowledge Retrieval from Pretrained Language Models. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), Online.10.18653/v1/2020.emnlp-main.479 ↗
43. 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 ↗
44. Chen, X., Zhang, N., Xie, X., Deng, S., Yao, Y., Tan, C., Huang, F., Si, L., and Chen, H. (2022, January 25–29). KnowPrompt: Knowledge-aware Prompt-tuning with Synergistic Optimization for Relation Extraction. Proceedings of the WWW ’22: Proceedings of the ACM Web Conference 2022, Lyon, France.10.1145/3485447.3511998 ↗
45. Liu, X., Zheng, Y., Du, Z., Ding, M., Qian, Y., Yang, Z., and Tang, J. (2021). GPT Understands, Too. arXiv.
46. Li, X.L., and Liang, P. (2022, October 30). Prefix-Tuning: Optimizing Continuous Prompts for Generation. Available online: https://aclanthology.org/2021.acl-long.353.pdf.
47. Gu, Y., Han, X., Liu, Z., and Huang, M. (2022, January 22–27). PPT: Pre-trained Prompt Tuning for Few-shot Learning. Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), ACL 2022, Dublin, Ireland.10.18653/v1/2022.acl-long.576 ↗
48. Mishra, S., Khashabi, D., Baral, C., and Hajishirzi, H. (2021). Natural Instructions: Benchmarking Generalization to New Tasks from Natural Language Instructions. arXiv.
49. Kumar, S., and Talukdar, P.P. (2022, October 30). Reordering Examples Helps during Priming-based Few-Shot Learning. Available online: https://aclanthology.org/2021.findings-acl.395.pdf.10.18653/v1/2021.findings-acl.395 ↗
50. Shao, Y., Geng, Z., Liu, Y., Dai, J., Yang, F., Zhe, L., Bao, H., and Qiu, X. (2021). CPT: A Pre-Trained Unbalanced Transformer for Both Chinese Language Understanding and Generation. arXiv.
51. Xu, L., Hu, H., Zhang, X., Li, L., Cao, C., Li, Y., Xu, Y., Sun, K., Yu, D., and Yu, C. (2020). CLUE: A Chinese Language Understanding Evaluation Benchmark. arXiv.10.18653/v1/2020.coling-main.419 ↗
52. Pre-Training With Whole Word Masking for Chinese BERT10.1109/TASLP.2021.3124365 ↗
53. Xu, L., Lu, X., Yuan, C., Zhang, X., Xu, H., Yuan, H., Wei, G., Pan, X., Tian, X., and Qin, L. (2021). FewCLUE: A Chinese Few-shot Learning Evaluation Benchmark. arXiv.