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

CLG: Contrastive Label Generation with Knowledge for Few-Shot Learning

Author

Listed:
  • Han Ma

    (Faculty of Applied Sciences, Macao Polytechnic University, Macao 999078, China)

  • Baoyu Fan

    (Faculty of Applied Sciences, Macao Polytechnic University, Macao 999078, China)

  • Benjamin K. Ng

    (Faculty of Applied Sciences, Macao Polytechnic University, Macao 999078, China)

  • Chan-Tong Lam

    (Faculty of Applied Sciences, Macao Polytechnic University, Macao 999078, China)

Abstract

Training large-scale models needs big data. However, the few-shot problem is difficult to resolve due to inadequate training data. It is valuable to use only a few training samples to perform the task, such as using big data for application scenarios due to cost and resource problems. So, to tackle this problem, we present a simple and efficient method, contrastive label generation with knowledge for few-shot learning (CLG). Specifically, we: (1) Propose contrastive label generation to align the label with data input and enhance feature representations; (2) Propose a label knowledge filter to avoid noise during injection of the explicit knowledge into the data and label; (3) Employ label logits mask to simplify the task; (4) Employ multi-task fusion loss to learn different perspectives from the training set. The experiments demonstrate that CLG achieves an accuracy of 59.237%, which is more than about 3% in comparison with the best baseline. It shows that CLG obtains better features and gives the model more information about the input sentences to improve the classification ability.

Suggested Citation

  • Han Ma & Baoyu Fan & Benjamin K. Ng & Chan-Tong Lam, 2024. "CLG: Contrastive Label Generation with Knowledge for Few-Shot Learning," Mathematics, MDPI, vol. 12(3), pages 1-21, February.
  • Handle: RePEc:gam:jmathe:v:12:y:2024:i:3:p:472-:d:1331654
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/12/3/472/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/12/3/472/
    Download Restriction: no
    ---><---

    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:12:y:2024:i:3:p:472-:d:1331654. 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.

    We have no bibliographic references for this item. You can help adding them by using 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.