CLG: Contrastive Label Generation with Knowledge for Few-Shot Learning
Han Ma,
Baoyu Fan,
Benjamin K. Ng () and
Chan-Tong Lam
Additional contact information
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
Mathematics, 2024, vol. 12, issue 3, 1-21
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.
Keywords: few-shot learning; contrastive learning; knowledge graph; natural language processing; transfer learning (search for similar items in EconPapers)
JEL-codes: C (search for similar items in EconPapers)
Date: 2024
References: View complete reference list from CitEc
Citations:
Downloads: (external link)
https://www.mdpi.com/2227-7390/12/3/472/pdf (application/pdf)
https://www.mdpi.com/2227-7390/12/3/472/ (text/html)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:gam:jmathe:v:12:y:2024:i:3:p:472-:d:1331654
Access Statistics for this article
Mathematics is currently edited by Ms. Emma He
More articles in Mathematics from MDPI
Bibliographic data for series maintained by MDPI Indexing Manager ().