Author Login Chief Editor Login Reviewer Login Editor Login Remote Office

Computer Engineering ›› 2026, Vol. 52 ›› Issue (9): 143-153. doi: 10.19678/j.issn.1000-3428.0070449

• Computational Intelligence and Pattern Recognition • Previous Articles     Next Articles

Few-Shot Named Entity Recognition Method Based on Distribution Calibration

PU Zhenyu1, LIU Zhiwei1, HUANG Bo1,2,*(), HE Shufeng3, CHEN Nanxi4, XI Wenzeng5   

  1. 1. School of Electronic and Electrical Engineering, Shanghai University of Engineering Science, Shanghai 201620, China
    2. Engineering Research Center for Intelligent Technology for Agricultural, Ministry of Education, Huazhong Agricultural University, Wuhan 430070, Hubei, China
    3. Qingdao Institute of Marine Geology, China Geological Survey, Qingdao 266071, Shandong, China
    4. Shanghai Institute of Microsystem and Information Technology, Chinese Acadamy of Sciences, Shanghai 200050, China
    5. Tianjin SDIC JinNeng Electric Power Co., Ltd., Tianjin 100032, China
  • Received:2024-10-09 Revised:2025-02-13 Online:2026-09-15 Published:2025-04-25
  • Contact: HUANG Bo

基于分布校正的小样本命名实体识别方法

浦震宇1, 刘志伟1, 黄勃1,2,*(), 何书锋3, 陈南希4, 郗文增5   

  1. 1. 上海工程技术大学电子电气工程学院, 上海 201620
    2. 华中农业大学农业智能技术教育部工程研究中心, 湖北 武汉 430070
    3. 中国地质调查局青岛海洋地质研究所, 山东 青岛 266071
    4. 中国科学院上海微系统与信息技术研究所, 上海 200050
    5. 天津国投津能发电有限公司, 天津 100032
  • 通讯作者: 黄勃
  • 作者简介:

    浦震宇, 男, 硕士研究生, 主研方向为自然语言处理

    刘志伟, 硕士研究生

    黄勃(通信作者), 副教授

    何书锋, 高级工程师

    陈南希, 副研究员

    郗文增, 高级工程师

  • 基金资助:
    华中农业大学农业智能技术教育部工程研究中心开放课题(ERCITA-KF002)

Abstract:

In the modern industrial sector, the perception and analysis of text data are essential for promoting intelligent manufacturing and optimizing production processes. However, industrial text data are typically characterized by high specialization, diversity, complexity, and annotation costs, making traditional large-scale annotation methods unsuitable. Existing few-shot Named Entity Recognition (NER) methods often use prototypical networks to classify entities, where the prototype is the average of the features of all samples belonging to the same category. However, these methods are highly sensitive to the support set data and prone to sample-selection bias. To address this, a few-shot NER model based on Distribution Calibration called DC-NER is proposed. A two-stage approach for span detection and entity classification is adopted for the few-shot NER task. In the first stage, an entity extractor is used to select candidate entities. In the second stage, a type discriminator assigns these entities to predefined categories. To address the challenge of capturing the true class distribution with a small number of labeled samples in few-shot NER, which leads to inaccurate class prototype calculations, a method is proposed that leverages useful information from the source domain data to calibrate the class distribution in the target domain. Thus, more samples are generated based on the refined class distribution to construct more accurate prototypes, thereby improving the performance in few-shot NER tasks. Experiments on both the in-domain dataset Few-NERD and the cross-domain dataset Cross-NER reveal that DC-NER significantly outperforms the comparative models in terms of F1 value, validating its effectiveness for few-shot NER.

Key words: industrial text data, Named Entity Recognition (NER), few-shot learning, prototypical network, distribution calibration

摘要:

在现代工业领域, 文本数据的感知和分析已成为推动智能制造和优化生产流程的重要手段。然而, 工业文本数据通常具有高专业性、多样性和复杂性等特点, 且标注成本较高, 因此传统的大规模标注方法难以适用。现有的小样本命名实体识别(NER)方法多采用原型网络对实体进行分类, 其中原型为属于同一类别的所有样本特征的平均值。然而, 这类方法对于支持集数据的敏感性较强, 容易出现样本选择性偏差的问题。为此, 提出基于分布校正的小样本命名实体识别(DC-NER)模型。采用跨度检测和实体分类两阶段方式进行小样本NER任务, 在第1个阶段, 利用实体抽取器选出候选实体, 在第2个阶段, 利用类型判别器将实体划分到预定义好的类别。为了解决小样本NER任务中利用少量标签样本难以捕捉到类别真实分布的问题, 进而使得类原型的计算不够准确, 提出一种利用源域数据中的有效信息校正目标域的类别分布, 进而通过改进后的类别分布生成更多的样本用于构建更准确的原型, 从而提高其在小样本NER任务中的性能。在同领域数据集Few-NERD和跨领域数据集Cross-NER上的实验结果表明, DC-NER在F1值上显著优于对比模型, 验证其在小样本NER中的有效性。

关键词: 工业文本数据, 命名实体识别, 小样本学习, 原型网络, 分布校正