Prompt text classifications with transformer models! An exemplary introduction to prompt-based learning with large language models
The DOI matches its Crossref record; 39 of the 39 references it cites were found in a registry or an index.
Abstract
This study investigates the potential of automated classification using prompt-based learning approaches with transformer models (large language models trained in an unsupervised manner) for a domain-specific classification task. Prompt-based learning with zero or few shots has the potential to (1) make use of artificial intelligence without sophisticated programming skills and (2) make use of artificial intelligence without fine-tuning models with large amounts of labeled training data. We apply this novel method to perform an experiment using so-called zero-shot classification as a baseline model and a few-shot approach for classification. For comparison, we also fine-tune a language model on the given classification task and conducted a second independent human rating to compare it with the given human ratings from the original study. The used dataset consists of 2,088 email responses to a domain-specific problem-solving task that were manually labeled for their professional communication style. With the novel prompt-based learning approach, we achieved a Cohen’s kappa of .40, while the fine-tuning approach yields a kappa of .59, and the new human rating achieved a kappa of .58 with the original human ratings. However, the classifications from the machine learning models have the advantage that each prediction is provided with a reliability estimate allowing us to identify responses that are difficult to score. We, therefore, argue that response ratings should be based on a reciprocal workflow of machine raters and human raters, where the machine rates easy-to-classify responses and the human raters focus and agree on the responses that are difficult to classify. Further, we believe that this new, more intuitive, prompt-based learning approach will enable more people to use artificial intelligence.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Hochreiter, S., & Schmidhuber, J. (1997) · Neural Computation · doi:10.1162/neco.1997.9.8.1735 · Cited by 102,318
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018) · arXiv · doi:10.48550/arxiv.1810.04805 · Cited by 73,173
Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., & Liu, P. J. (2019) · arXiv · doi:10.48550/arxiv.1910.10683 · Cited by 31,859
Language Models are Few-Shot Learners
Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. (2020) · arXiv · doi:10.48550/arxiv.2005.14165 · Cited by 23,372 · cited 15×
“Recently, prompt-based learning, a less technical no-code approach to “instruct” large language models on a given task, has shown promising results (Brown et al., 2020).”
BackgroundMethodInfluentialScaling Laws for Neural Language Models
Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., Gray, S., Radford, A., Wu, J., & Amodei, D. (2020) · arXiv · doi:10.48550/arxiv.2001.08361 · Cited by 9,550 · cited 1×
“In 2020, researchers from OpenAI (Kaplan et al., 2020) have shown that there is a linear relationship between model performance and model size (including a corresponding increase in training data), and since then there has been an ongoing trend to train larger models.”
BackgroundLewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., & Zettlemoyer, L. (2020) · Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/2020.acl-main.703 · Cited by 8,821
Lewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., & Zettlemoyer, L. (2019) · arXiv · doi:10.48550/arxiv.1910.13461 · Cited by 8,816 · cited 3×
“Encoder-Decoder models (similar to the original transformer architecture) are used for summary generations, translation, or generative question answering (Lewis et al., 2019; Y. Liu et al., 2019; Raffel et al., 2019).”
MethodXLNet: Generalized Autoregressive Pretraining for Language Understanding
Yang, Z., Dai, Z., Yang, Y., Carbonell, J., Salakhutdinov, R., & Le, Q. V. (2019) · arXiv · doi:10.48550/arxiv.1906.08237 · Cited by 6,687 · cited 3×
“With the rise of, and increasing attention on, pre-trained language models (PLM) such as GPT (Generative Pre-trained Transformer; see Radford et al., 2018, 2019), BERT (Bidirectional Encoder Representations from Transformers; see Devlin et al., 2018) or XLNet (Yang et al., 2019), initial successful experiments on prom…”
BackgroundGoogle's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation
Wu, Y., Schuster, M., Chen, Z., Le, Q. V., Norouzi, M., Macherey, W., Krikun, M., Cao, Y., Gao, Q., Macherey, K., et al. (2016) · arXiv · doi:10.48550/arxiv.1609.08144 · Cited by 5,319 · cited 1×
“As indicated above, the units (typically called tokens) that the models are trained with are not just words but often also subwords or even just characters (Wu et al., 2016).”
BackgroundPrototypical Networks for Few-shot Learning
Snell, J., Swersky, K., & Zemel, R. S. (2017) · arXiv (Cornell University) · doi:10.48550/arxiv.1703.05175 · Cited by 4,755
A Broad-Coverage Challenge Corpus for Sentence Understanding through Inference
Williams, A., Nangia, N., & Bowman, S. (2018) · Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers) · doi:10.18653/v1/n18-1101 · Cited by 3,342 · cited 2×
“To do so, they trained the model on entailment tasks taken from the datasets “MNLI” (Williams et al., 2018), “GLUE RTE” (Wang et al., 2019) and “FEVER3” (converted into dichotomous cases; Thorne et al., 2018).”
MethodThe Power of Scale for Parameter-Efficient Prompt Tuning
Lester, B., Al-Rfou, R., & Constant, N. (2021) · Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2021.emnlp-main.243 · Cited by 3,096
The Power of Scale for Parameter-Efficient Prompt Tuning
Lester, B., Al-Rfou, R., & Constant, N. (2021) · arXiv · doi:10.48550/arxiv.2104.08691 · Cited by 3,092
The Vanishing Gradient Problem During Learning Recurrent Neural Nets and Problem Solutions
Hochreiter, S. (1998) · International Journal of Uncertainty, Fuzziness and Knowledge-Based Systems · doi:10.1142/s0218488598000094 · Cited by 2,939
Rokach, L. (2010) · Artificial Intelligence Review · doi:10.1007/s10462-009-9124-7 · Cited by 2,657 · cited 1×
“The results from these different models are then combined to a single-label prediction for each classification (the latter is also known as an ensemble modeling approach; Rokach, 2010).”
MethodExploring the impact of artificial intelligence on teaching and learning in higher education
Popenici, S. A. D., & Kerr, S. (2017) · Research and Practice in Technology Enhanced Learning · doi:10.1186/s41039-017-0062-8 · Cited by 2,019 · cited 2×
“AIED can be defined, among many other definitions, as “computing systems that are able to engage in human-like processes such as learning, adapting, synthesizing, self-correction and use of data for complex processing tasks” (Popenici & Kerr, 2017, p. 2).”
BackgroundLanguage Models as Knowledge Bases?
Petroni, F., Rocktäschel, T., Riedel, S., Lewis, P., Bakhtin, A., Wu, Y., & Miller, A. (2019) · Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP) · doi:10.18653/v1/d19-1250 · Cited by 1,834
Pre-trained models for natural language processing: A survey
Qiu, X., Sun, T., Xu, Y., Shao, Y., Dai, N., & Huang, X. (2020) · Science China Technological Sciences · doi:10.1007/s11431-020-1647-3 · Cited by 1,591 · cited 1×
“To do so, they use a self-attention mechanism that enables a better understanding of words in context that outperforms non-transformer models in a wide variety of NLP tasks (Gillioz et al., 2020; Qiu et al., 2020).”
BackgroundReceiver-operating characteristic analysis for evaluating diagnostic tests and predictive models
Zou, K. H., O’Malley, A. J., & Mauri, L. (2007) · Circulation · doi:10.1161/circulationaha.105.594929 · Cited by 1,473 · cited 4×
“The results for the zero-shot baseline model are the lowest across all metrics ( Acc = .80, F1 = .89, AUC = .64, k = .16) with, in total, 126 incorrect predictions (about 20%), mainly for false predicted impoliteness.”
MethodInfluentialMaking Pre-trained Language Models Better Few-shot Learners
Gao, T., Fisch, A., & Chen, D. (2021) · 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) · doi:10.18653/v1/2021.acl-long.295 · Cited by 1,380 · cited 2×
“Motivated by these promising results, Gao et al. (2021) considered classification and regression tasks.”
MethodFEVER: a Large-scale Dataset for Fact Extraction and VERification
Thorne, J., Vlachos, A., Christodoulopoulos, C., & Mittal, A. (2018) · Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers) · doi:10.18653/v1/n18-1074 · Cited by 1,343 · cited 1×
“To do so, they trained the model on entailment tasks taken from the datasets “MNLI” (Williams et al., 2018), “GLUE RTE” (Wang et al., 2019) and “FEVER3” (converted into dichotomous cases; Thorne et al., 2018).”
MethodExploiting Cloze-Questions for Few-Shot Text Classification and Natural Language Inference
Schick, T., & Schütze, H. (2021) · Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume · doi:10.18653/v1/2021.eacl-main.20 · Cited by 1,305
AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts
Shin, T., Razeghi, Y., Logan IV, R. L., Wallace, E., & Singh, S. (2020) · Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.346 · Cited by 1,279
Reliability in content analysis: some common misconceptions and recommendations.
Krippendorff, K. (2004) · Human Communication Research · doi:10.1093/hcr/30.3.411 · Cited by 1,027 · cited 1×
“In addition, we also calculated Krippendorff’s alpha ( a = .71) which can be considered acceptable (Krippendorff, 2004).”
MethodHow Can We Know What Language Models Know?
Jiang, Z., Xu, F. F., Araki, J., & Neubig, G. (2020) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00324 · Cited by 1,002 · cited 1×
“Radford et al. (2018, 2019) and others (Jiang et al., 2020; Petroni et al., 2019) have shown that prompt-based learning can perform similarly or identically to fine-tuned models on various NLP tasks by providing appropriate natural language prompts.”
BackgroundP-Tuning: Prompt Tuning Can Be Comparable to Fine-tuning Across Scales and Tasks
Liu, X., Ji, K., Fu, Y., Tam, W., Du, Z., Yang, Z., & Tang, J. (2022) · Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers) · doi:10.18653/v1/2022.acl-short.8 · Cited by 810
It’s Not Just Size That Matters: Small Language Models Are Also Few-Shot Learners
Schick, T., & Schütze, H. (2021) · Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies · doi:10.18653/v1/2021.naacl-main.185 · Cited by 747
Artificial intelligence innovation in education: A twenty-year data-driven historical analysis
Guan, C., Mou, J., & Jiang, Z. (2020) · International Journal of Innovation Studies · doi:10.1016/j.ijis.2020.09.001 · Cited by 665 · cited 1×
“In the last twenty years, new AI technologies have emerged, and research on AI in Education (AIED) has evolved from teacher-centered and technology-based design research to student-centered research focused on learner profiles and individual learning analytics (Guan et al., 2020).”
BackgroundGLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding
Wang, A., Singh, A., Michael, J., Hill, F., Levy, O., & Bowman, S. R. (2018) · arXiv · doi:10.48550/arxiv.1804.07461 · Cited by 562
Benchmarking Zero-shot Text Classification: Datasets, Evaluation and Entailment Approach
Yin, W., Hay, J., & Roth, D. (2019) · Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP) · doi:10.18653/v1/d19-1404 · Cited by 537 · cited 4×
“Prompts are short pieces of texts in natural language that can include examples of the task to be completed (few-shot learning) or just an instruction without examples (zero-shot learning; see Yin et al., 2019).”
BackgroundMethodInfluential“A neural approach to automated essay scoring,”
Taghipour, K., & Ng, H. T. (2016) · Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/d16-1193 · Cited by 537
The Pile: An 800GB Dataset of Diverse Text for Language Modeling
Gao, L., Biderman, S., Black, S., Golding, L., Hoppe, T., Foster, C., Phang, J., He, H., Thite, A., Nabeshima, N., et al. (2021) · arXiv · doi:10.48550/arxiv.2101.00027 · Cited by 492 · cited 1×
“GPT-J-6B has more than six billion parameters trained on “The Pile”, an 825 GB dataset merged from 22 datasets, including academic and professional sources such as PubMed, FreeLaw, Wikipedia, and Github (L. Gao et al., 2020).”
BackgroundPersistent Anti-Muslim Bias in Large Language Models
Abid, A., Farooqi, M., & Zou, J. (2021) · Proceedings of the 2021 AAAI/ACM Conference on AI, Ethics, and Society · doi:10.1145/3461702.3462624 · Cited by 476 · cited 1×
“Several publications show that, for example, GPT-3 tends to discriminate against religious groups (Abid et al., 2021) or gender (Lucy & Bamman, 2021).”
BackgroundStudent perceptions of privacy principles for learning analytics
Ifenthaler, D., & Schumacher, C. (2016) · Educational Technology Research and Development · doi:10.1007/s11423-016-9477-y · Cited by 314
Gender and Representation Bias in GPT-3 Generated Stories
Lucy, L., & Bamman, D. (2021) · Proceedings of the Third Workshop on Narrative Understanding · doi:10.18653/v1/2021.nuse-1.5 · Cited by 287 · cited 1×
“Several publications show that, for example, GPT-3 tends to discriminate against religious groups (Abid et al., 2021) or gender (Lucy & Bamman, 2021).”
BackgroundAutomated Essay Scoring: A Survey of the State of the Art
Ke, Z., & Ng, V. (2019) · Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2019/879 · Cited by 247
Making Pre-trained Language Models Better Few-shot Learners
Gao, T., Fisch, A., & Chen, D. (2020) · arXiv · doi:10.48550/arxiv.2012.15723 · Cited by 124
Train Once, Test Anywhere: Zero-Shot Learning for Text Classification
Pushp, P. K., & Srivastava, M. M. (2017) · arXiv · doi:10.48550/arxiv.1712.05972 · Cited by 74 · cited 2×
“Zero-shot models can yield surprisingly high levels of accuracy in classifying tasks, for example, to determine the general topic of a text (Pushp & Srivastava, 2017).”
BackgroundSilva, A., Tambwekar, P., & Gombolay, M. (2021) · Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies · doi:10.18653/v1/2021.naacl-main.189 · Cited by 46 · cited 1×
“Despite the advantages of transformers, it is still difficult to work with unbiased algorithms (Silva et al., 2021).”
Background
Cited by
Exploring the potential of using an AI language model for automated essay scoring
Mizumoto, A., & Eguchi, M. (2023) · Research Methods in Applied Linguistics · doi:10.1016/j.rmal.2023.100050 · Cited by 647
Grájeda, A., Burgos, J., Córdova, P., & Sanjinés, A. (2024) · Cogent Education · doi:10.1080/2331186x.2023.2287917 · Cited by 178
“This advanced proficiency is not limited to their core academic areas but extends to a broader mastery of AI technologies, suggesting a transformative impact on their educational journey (Baidoo-Anu & Owusu Ansah, 2023; Mayer et al., 2022; Pavlik, 2023).”
Bewersdorff, A., Seßler, K., Baur, A., Kasneci, E., & Nerdel, C. (2023) · Computers and Education: Artificial Intelligence · doi:10.1016/j.caeai.2023.100177 · Cited by 76
A Systematic Survey of Automatic Prompt Optimization Techniques
Ramnath, K., Zhou, K., Guan, S., Mishra, S. S., Qi, X., Shen, Z., Wang, S., Woo, S., Jeoung, S., Wang, Y., et al. (2025) · arXiv · doi:10.48550/arxiv.2502.16923 · Cited by 26
Fitzek, S., & Bârgăoanu, A. (2025) · International Journal of Artificial Intelligence in Education · doi:10.1007/s40593-025-00477-7 · Cited by 7
“We utilized prompt-based learning techniques (Mayer et al., 2023) to instruct ChatGPT to refine drafts for linguistic clarity and structural organization but not to generate content independently, thus testing ChatGPT’s potential to improve writing features rather than fully produce academic text.”
Metadata
- Authors
- Mayer, C. W. F., Ludwig, S., & Brandt, S.
- Venue
- Journal of Research on Technology in Education
- Publisher
- Informa UK Limited
- Published
- 2022-11-22
- Volume
- 55
- Issue
- 1
- Pages
- 125-141
- ISSN
- 1539-1523 (ISSN-L)
- 1945-0818
- OpenAlex
- W4309685935
- Cited by
- 57
- References
- 39
- FWCI
- 4.04
- Type
- journal article
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.