Meta-Learning Siamese Network for Few-Shot Text Classification

Chengcheng Han, Yuhe Wang, Yingnan Fu, Xiang Li, Minghui Qiu +2 more
2/5/2023
cs.CLcs.AI

Official code: hccngu/Meta-SN (11 stars, last commit 2023-05-23).

Abstract

Few-shot learning has been used to tackle the problem of label scarcity in text classification, of which meta-learning based methods have shown to be effective, such as the prototypical networks (PROTO). Despite the success of PROTO, there still exist three main problems: (1) ignore the randomness of the sampled support sets when computing prototype vectors; (2) disregard the importance of labeled samples; (3) construct meta-tasks in a purely random manner. In this paper, we propose a Meta-Learning Siamese Network, namely, Meta-SN, to address these issues. Specifically, instead of computing prototype vectors from the sampled support sets, Meta-SN utilizes external knowledge (e.g. class names and descriptive texts) for class labels, which is encoded as the low-dimensional embeddings of prototype vectors. In addition, Meta-SN presents a novel sampling strategy for constructing meta-tasks, which gives higher sampling probabilities to hard-to-classify samples. Extensive experiments are conducted on six benchmark datasets to show the clear superiority of Meta-SN over other state-of-the-art models. For reproducibility, all the datasets and codes are provided at https://github.com/hccngu/Meta-SN.

View on arXivView PDF

Code Implementations(1)

hccngu/Meta-SNOfficial100%
110Shell, PythonJan 29, 20233 years ago

Similar Papers

Cite this paper

@article{han2023metalearning,
  title  = {Meta-Learning Siamese Network for Few-Shot Text Classification},
  author = {Chengcheng Han and Yuhe Wang and Yingnan Fu and Xiang Li and Minghui Qiu and Ming Gao and Aoying Zhou},
  year   = {2023},
  eprint = {2302.03507},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.03507v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.03507.svg)](https://codeofpaper.com/paper/2302.03507)

Discussion