IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v11y2023i23p4780-d1288550.html
   My bibliography  Save this article

REKP: Refined External Knowledge into Prompt-Tuning for Few-Shot Text Classification

Author

Listed:
  • Yuzhuo Dang

    (Science and Technology on Information Systems Engineering Laboratory, National University of Defense Technology, Changsha 410073, China)

  • Weijie Chen

    (Science and Technology on Information Systems Engineering Laboratory, National University of Defense Technology, Changsha 410073, China)

  • Xin Zhang

    (Science and Technology on Information Systems Engineering Laboratory, National University of Defense Technology, Changsha 410073, China)

  • Honghui Chen

    (Science and Technology on Information Systems Engineering Laboratory, National University of Defense Technology, Changsha 410073, China)

Abstract

Text classification is a machine learning technique employed to assign a given text to predefined categories, facilitating the automatic analysis and processing of textual data. However, an important problem is that the number of new text categories is growing faster than that of human annotation data, which makes many new categories of text data lack a lot of annotation data. As a result, the conventional deep neural network is forced to over-fit, which damages the application in the real world. As a solution to this problem, academics recommend addressing data scarcity through few-shot learning. One of the efficient methods is prompt-tuning, which transforms the input text into a mask prediction problem featuring [MASK]. By utilizing descriptors, the model maps output words to labels, enabling accurate prediction. Nevertheless, the previous prompt-based adaption approaches often relied on manually produced verbalizers or a single label to represent the entire label vocabulary, which makes the mapping granularity low, resulting in words not being accurately mapped to their label. To address these issues, we propose to enhance the verbalizer and construct the refined external knowledge into a prompt-tuning (REKP) model. We employ the external knowledge bases to increase the mapping space of tagged terms and design three refinement methods to remove noise data. We conduct comprehensive experiments on four benchmark datasets, namely AG’s News, Yahoo, IMDB, and Amazon. The results demonstrate that REKP can outperform the state-of-the-art baselines in terms of Micro-F1 on knowledge-enhanced text classification. In addition, we conduct an ablation study to ascertain the functionality of each module in our model, revealing that the refinement module significantly contributes to enhancing classification accuracy.

Suggested Citation

  • Yuzhuo Dang & Weijie Chen & Xin Zhang & Honghui Chen, 2023. "REKP: Refined External Knowledge into Prompt-Tuning for Few-Shot Text Classification," Mathematics, MDPI, vol. 11(23), pages 1-16, November.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:23:p:4780-:d:1288550
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/11/23/4780/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/11/23/4780/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Evelyn I. Ezepue & Paulinus P. Nwankwor & Ijeoma Joyce Chukwuemeka-Nworu & Agatha Nkechi Ozioko & Chris Onyedikachi Egbe & Jacinta Ujah & Chinyere Nduka & Edith C. Edikpa, 2023. "Evaluating the Local Language Dimensions for Effective Teaching and Learning Sustainability in the Secondary Education System in Southeast Nigeria: Results from a Small-Scale Study," Sustainability, MDPI, vol. 15(9), pages 1-18, May.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.

      Corrections

      All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:11:y:2023:i:23:p:4780-:d:1288550. See general information about how to correct material in RePEc.

      If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

      If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

      If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

      For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

      Please note that corrections may take a couple of weeks to filter through the various RePEc services.

      IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.