Exploring Prompts in Few-Shot Cross-Linguistic Topic Classification Scenarios
Source abstract
Abstract
In recent years, large-scale pretrained language models have become widely used in natural language processing tasks. On this basis, prompt learning has achieved excellent performance in specific few-shot classification scenarios. The core idea of prompt learning is to convert a downstream task into a masked language modelling task. However, different prompt templates can greatly affect the results, and finding an appropriate template is difficult and time-consuming. To this end, this study proposes a novel hybrid prompt approach, which combines discrete prompts and continuous prompts, to motivate the model to learn more semantic knowledge from a small number of training samples. By comparing the performance difference between discrete prompts and continuous prompts, we find that hybrid prompts achieve the best results, reaching a 73.82% F1 value in the test set. In addition, we analyze the effect of different virtual token lengths in continuous prompts and hybrid prompts in a few-shot cross-language topic classification scenario. The results demonstrate that there is a threshold for the length of virtual tokens, and too many virtual tokens decrease the performance of the model. It is better not to exceed the average length of the training set corpus. Finally, this paper designs a method based on vector similarity to explore the real meanings represented by virtual tokens. The experimental results show that the prompt automatically learnt from the virtual token has a certain correlation with the input text.
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
College of Information Science and Engineering, Xinjiang University, Urumqi 830046, China
Xinjiang Multilingual Information Technology Laboratory, College of Information Science and Engineering, Xinjiang University, Urumqi 830046, China
Funding
Xinjiang Education Department’s Foundation of China
References (33)
Show source-provided references
1. Brown, T.B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., and Askell, A. (2020, January 6–12). Language Models Are Few-Shot Learners. Proceedings of the 34th Conference on Neural Information Processing Systems (NeurIPS 2020), Virtual.
2. How Can We Know What Language Models Know?10.1162/tacl_a_00324 ↗
3. Petroni, F., Rocktäschel, T., Lewis, P., Bakhtin, A., Wu, Y., Miller, A.H., and Riedel, S. (2019). Language Models as Knowledge Bases?. arXiv.10.18653/v1/D19-1250 ↗
4. Gao, T., Fisch, A., and Chen, D. (2021). Making Pre-Trained Language Models Better Few-Shot Learners. arXiv.10.18653/v1/2021.acl-long.295 ↗
5. Liu, X., Zheng, Y., Du, Z., Ding, M., Qian, Y., Yang, Z., and Tang, J. (2021). GPT Understands, Too, AI Open.
6. Li, X.L., and Liang, P. (2021). Prefix-Tuning: Optimizing Continuous Prompts for Generation. arXiv.10.18653/v1/2021.acl-long.353 ↗
7. Zhong, Z., Friedman, D., and Chen, D. (2021). Factual Probing Is [MASK]: Learning vs. Learning to Recall. arXiv.10.18653/v1/2021.naacl-main.398 ↗
8. Shin, T., Razeghi, Y., Logan IV, R.L., Wallace, E., and Singh, S. (2020). AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts. arXiv.10.18653/v1/2020.emnlp-main.346 ↗
9. Yang, Z., Xu, Z., Cui, Y., Wang, B., Lin, M., Wu, D., and Chen, Z. (2022). CINO: A Chinese Minority Pre-Trained Language Model. arXiv.
10. Geng, R., Li, B., Li, Y., Sun, J., and Zhu, X. (2020, January 5–10). Dynamic Memory Induction Networks for Few-Shot Text Classification. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, Online.10.18653/v1/2020.acl-main.102 ↗
11. Qin, G., and Eisner, J. (2021). Learning How to Ask: Querying LMs with Mixtures of Soft Prompts. arXiv.10.18653/v1/2021.naacl-main.410 ↗
12. Khataei Maragheh, H., Gharehchopogh, F.S., Majidzadeh, K., and Sangar, A.B. (2022). A New Hybrid Based on Long Short-Term Memory Network with Spotted Hyena Optimization Algorithm for Multi-Label Text Classification. Mathematics, 10.10.3390/math10030488 ↗
13. Bezdan, T., Stoean, C., Naamany, A.A., Bacanin, N., Rashid, T.A., Zivkovic, M., and Venkatachalam, K. (2021). Hybrid Fruit-Fly Optimization Algorithm with K-Means for Text Document Clustering. Mathematics, 9.10.3390/math9161929 ↗
14. Fei, Y., Nie, P., Meng, Z., Wattenhofer, R., and Sachan, M. (2022). Beyond Prompting: Making Pre-Trained Language Models Better Zero-Shot Learners by Clustering Representations. arXiv.10.18653/v1/2022.emnlp-main.587 ↗
15. Gu, Y., Han, X., Liu, Z., and Huang, M. (2022). PPT: Pre-Trained Prompt Tuning for Few-Shot Learning. arXiv.10.18653/v1/2022.acl-long.576 ↗
16. Hu, S., Ding, N., Wang, H., Liu, Z., Wang, J., Li, J., Wu, W., and Sun, M. (2022). Knowledgeable Prompt-Tuning: Incorporating Knowledge into Prompt Verbalizer for Text Classification. arXiv.10.18653/v1/2022.acl-long.158 ↗
17. 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, Online.10.18653/v1/2021.eacl-main.20 ↗
18. Schick, T., and Schütze, H. (2021). It’s Not Just Size That Matters: Small Language Models Are Also Few-Shot Learners. arXiv.10.18653/v1/2021.naacl-main.185 ↗
19. Tam, D., Menon, R.R., Bansal, M., Srivastava, S., and Raffel, C. (2021). Improving and Simplifying Pattern Exploiting Training. arXiv.10.18653/v1/2021.emnlp-main.407 ↗
20. Han, X., Zhao, W., Ding, N., Liu, Z., and Sun, M. (2021). PTR: Prompt Tuning with Rules for Text Classification, AI Open.10.1016/j.aiopen.2022.11.003 ↗
21. Wang, S., Fang, H., Khabsa, M., Mao, H., and Ma, H. (2021). Entailment as Few-Shot Learner. arXiv.
22. Lester, B., Al-Rfou, R., and Constant, N. (2021). The Power of Scale for Parameter-Efficient Prompt Tuning. arXiv.10.18653/v1/2021.emnlp-main.243 ↗
23. Zhang, N., Deng, S., Sun, Z., Chen, J., Zhang, W., and Chen, H. (2020, January 20). Relation Adversarial Network for Low Resource Knowledge Graph Completion. Proceedings of the Web Conference 2020, Taipei, Taiwan.10.1145/3366423.3380089 ↗
24. Haviv, A., Berant, J., and Globerson, A. (2021). BERTese: Learning to Speak to BERT. arXiv.10.18653/v1/2021.eacl-main.316 ↗
25. Hambardzumyan, K., Khachatrian, H., and May, J. (2021). WARP: Word-Level Adversarial ReProgramming. arXiv.10.18653/v1/2021.acl-long.381 ↗
26. Liu, X., Ji, K., Fu, Y., Tam, W.L., Du, Z., Yang, Z., and Tang, J. (2022). P-Tuning v2: Prompt Tuning Can Be Comparable to Fine-Tuning Universally Across Scales and Tasks. arXiv.10.18653/v1/2022.acl-short.8 ↗
27. 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.
28. Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. (2019, January 2–7). BERT: Pre-Training of Deep Bidirectional Transformers for Language Understanding. Proceedings of the naacL-HLT 2019, Minneapolis, MN, USA.
29. Allen-Zhu, Z., Li, Y., and Song, Z. (2019, January 9–15). A Convergence Theory for Deep Learning via Over-Parameterization. Proceedings of the 36th International Conference on Machine Learning, Long Beach, CA, USA.
30. Liu, P., Yuan, W., Fu, J., Jiang, Z., Hayashi, H., and Neubig, G. (2021). ACM Computing Surveys, Association for Computing Machinery.
31. Long Short-Term Memory10.1162/neco.1997.9.8.1735 ↗
32. Kim, Y. (2014). Convolutional Neural Networks for Sentence Classification. arXiv.10.3115/v1/D14-1181 ↗
33. A Cross-Lingual Sentence Similarity Calculation Method With Multifeature Fusion10.1109/ACCESS.2022.3159692 ↗