Skip to main content
QUICK REVIEW

[论文解读] Meta-Learning Triplet Network with Adaptive Margins for Few-Shot Named Entity Recognition

Chengcheng Han, Renyu Zhu|arXiv (Cornell University)|Feb 14, 2023
Topic ModelingComputer Science被引用 10
一句话总结

MeTNet 引入一种元学习三元组网络,使用自适应边界和仅对实体类型(而非 O 类)使用的原型向量来提升少样本命名实体识别,展示出优越的性能,并发布中文数据集 FEW-COMM。

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.

研究动机与目标

  • 通过避免单一的 O 原型来应对少样本NER中多样的 O 类表示挑战。
  • 利用三元组网络将样本和类型原型映射到一个具辨别力的低维空间。
  • 为每个实体类型学习自适应边界(区域),以控制分类区域并改善推理。
  • 在英文和中文数据集(包括跨域设置)中提升少样本NER的性能。
  • 提供数据集/代码发布以促进可重复性和进一步研究。

提出的方法

  • 用BERT嵌入表示单词,并通过对标记实例求平均来初始化实体类型原型。
  • 构造以锚点为类型原型、正样本为同类型实例、最近的负样本为负样本的三元组;每种类型生成多个三元组。
  • 提出一种改进的三元组损失,对每种类型使用自适应边界 mi,通过对距离锚点的样本加权并优化绝对距离(最小化 d_p,最大化 d_n)。
  • 将自适应边界用作区域半径,以在每个类型原型周围定义决策区域;若实例超出所有区域则预测 O 类,否则分配为最近区域的类型。
  • 采用受 MAML 启发的两阶段更新进行训练:先在 support 集上更新得到 theta',再在 query 集上更新 theta。

实验结果

研究问题

  • RQ1仅表示实体类型原型(而非 O 类)再加上自适应边界,能否在少样本NER中提高判别性?
  • RQ2自适应边界三元组损失是否比固定边界或标准三元组损失提供更好的区域导向?
  • RQ3MeTNet 在领域内与跨领域少样本NER设置中的表现如何,包括一个新的中文数据集?
  • RQ4基于边界的推理程序相较于基于原型距离的推理,对最终标签预测的影响是什么?

主要发现

  • MeTNet 在 FEW-NERD 的领域内和跨领域任务中,在 1-shot 和 5-shot 设置下持续优于最先进的基线。
  • 自适应边界机制产生基于区域的决策规则,通过避免单一 O 原型降低 O 类混淆。
  • 基于边界的推理程序在区域重叠时通过区域包含或最近区域中心有效对查询进行标签。
  • 消融研究表明三元组网络和自适应边界对性能有显著贡献,且 MAML 对泛化有帮助。
  • 作者发布 FEW-COMM 中文数据集并提供代码和超参数以促进可重复性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。