Meta-Learning Triplet Network with Adaptive Margins for Few-Shot Named Entity Recognition

Chengcheng Han, Renyu Zhu, Jun Kuang, FengJiao Chen, Xiang Li +3 more
2/14/2023
cs.CL

Official code: hccngu/MeTNet (49 stars, last commit 2023-07-25).

Abstract

Meta-learning methods have been widely used in few-shot named entity recognition (NER), especially prototype-based methods. However, the Other(O) class is difficult to be represented by a prototype vector because there are generally a large number of samples in the class that have miscellaneous semantics. To solve the problem, we propose MeTNet, which generates prototype vectors for entity types only but not O-class. We design an improved triplet network to map samples and prototype vectors into a low-dimensional space that is easier to be classified and propose an adaptive margin for each entity type. The margin plays as a radius and controls a region with adaptive size in the low-dimensional space. Based on the regions, we propose a new inference procedure to predict the label of a query instance. We conduct extensive experiments in both in-domain and cross-domain settings to show the superiority of MeTNet over other state-of-the-art methods. In particular, we release a Chinese few-shot NER dataset FEW-COMM extracted from a well-known e-commerce platform. To the best of our knowledge, this is the first Chinese few-shot NER dataset. All the datasets and codes are provided at https://github.com/hccngu/MeTNet.

View on arXivView PDF

Code Implementations(1)

hccngu/MeTNetOfficial100%
496Shell, PythonFeb 14, 20233 years ago

Similar Papers

Cite this paper

@article{han2023metalearning,
  title  = {Meta-Learning Triplet Network with Adaptive Margins for Few-Shot Named Entity Recognition},
  author = {Chengcheng Han and Renyu Zhu and Jun Kuang and FengJiao Chen and Xiang Li and Ming Gao and Xuezhi Cao and Wei Wu},
  year   = {2023},
  eprint = {2302.07739},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.07739v1}
}

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.07739.svg)](https://codeofpaper.com/paper/2302.07739)

Discussion