Few-shot relation classification based on the BERT model, hybrid attention and fusion networks

被引:2
|
作者
Li, Yibing [1 ,2 ,3 ]
Ding, Zenghui [1 ]
Ma, Zuchang [1 ]
Wu, Yichen [1 ,2 ]
Wang, Yu [1 ,2 ]
Zhang, Ruiqi [1 ,2 ]
Xie, Fei [3 ]
Ren, Xiaoye [3 ]
机构
[1] Chinese Acad Sci, Inst Intelligent Machines, Inst Phys Sci, Hefei 230031, Peoples R China
[2] Univ Sci & Technol China, Sci Isl Branch, Grad Sch, Hefei 230026, Peoples R China
[3] Hefei Normal Univ, Sch Comp Sci & Technol, Hefei 230601, Peoples R China
基金
中国国家自然科学基金;
关键词
Relation classification; Few-shot learning; BERT; Attention; Rapidity of convergence; SUPERVISION;
D O I
10.1007/s10489-023-04634-0
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Relation classification (RC) is an essential task in information extraction. The distance supervision (DS) method can use many unlabeled data and solve the lack of training data on the RC task. However, the DS method has the problems of long tails and noise. Intuitively, people can solve these problems using few-shot learning (FSL). Our work aims to improve the accuracy and rapidity of convergence on the few-shot RC task. We believe that entity pairs have an essential role in the few-shot RC task. We propose a new context encoder, which is improved based on the bidirectional encoder representations from transformers (BERT) model to fuse entity pairs and their dependence information in instances. At the same time, we design hybrid attention, which includes support instance-level and query instance-level attention. The support instance level dynamically assigns the weight of each instance in the support set. It makes up for the insufficiency of prototypical networks, which distribute weights to sentences equally. Query instance-level attention is dynamically assigned weights to query instances by similarity with the prototype. The ablation study shows the effectiveness of our proposed method. In addition, a fusion network is designed to replace the Euclidean distance method of previous works when class matching is performed, improving the convergence's rapidity. This makes our model more suitable for industrial applications. The experimental results show that the proposed model's accuracy is better than that of several other models.
引用
收藏
页码:21448 / 21464
页数:17
相关论文
共 50 条
  • [21] Few-shot classification with Fork Attention Adapter
    Sun, Jieqi
    Li, Jian
    PATTERN RECOGNITION, 2024, 156
  • [22] Mask-guided BERT for few-shot text classification
    Liao, Wenxiong
    Liu, Zhengliang
    Dai, Haixing
    Wu, Zihao
    Zhang, Yiyang
    Huang, Xiaoke
    Chen, Yuzhong
    Jiang, Xi
    Liu, David
    Zhu, Dajiang
    Li, Sheng
    Liu, Wei
    Liu, Tianming
    Li, Quanzheng
    Cai, Hongmin
    Li, Xiang
    NEUROCOMPUTING, 2024, 610
  • [23] Attention Multisource Fusion-Based Deep Few-Shot Learning for Hyperspectral Image Classification
    Liang, Xuejian
    Zhang, Ye
    Zhang, Junping
    IEEE JOURNAL OF SELECTED TOPICS IN APPLIED EARTH OBSERVATIONS AND REMOTE SENSING, 2021, 14 : 8773 - 8788
  • [24] Multi-attention fusion and weighted class representation for few-shot classification
    赵文仓
    QIN Wenqian
    LI Ming
    HighTechnologyLetters, 2022, 28 (03) : 295 - 306
  • [25] Few-shot Learning for Named Entity Recognition Based on BERT and Two-level Model Fusion
    Gong, Yuan
    Mao, Lu
    Li, Changliang
    DATA INTELLIGENCE, 2021, 3 (04) : 568 - 577
  • [26] Decision fusion for few-shot image classification
    Tianhao Yuan
    Weifeng Liu
    Fei Yan
    Baodi Liu
    International Journal of Multimedia Information Retrieval, 2023, 12
  • [27] Heterogeneous graph neural networks for noisy few-shot relation classification
    Xie, Yuxiang
    Xu, Hua
    Li, Jiaoe
    Yang, Congcong
    Gao, Kai
    Knowledge-Based Systems, 2021, 194
  • [28] Heterogeneous graph neural networks for noisy few-shot relation classification
    Xie, Yuxiang
    Xu, Hua
    Li, Jiaoe
    Yang, Congcong
    Gao, Kai
    KNOWLEDGE-BASED SYSTEMS, 2020, 194
  • [29] Decision fusion for few-shot image classification
    Yuan, Tianhao
    Liu, Weifeng
    Yan, Fei
    Liu, Baodi
    INTERNATIONAL JOURNAL OF MULTIMEDIA INFORMATION RETRIEVAL, 2023, 12 (02)
  • [30] Few-shot Learning for Named Entity Recognition Based on BERT and Two-level Model Fusion
    Yuan Gong
    Lu Mao
    Changliang Li
    Data Intelligence, 2021, (04) : 568 - 577