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 条
  • [1] Few-shot relation classification based on the BERT model, hybrid attention and fusion networks
    Yibing Li
    Zenghui Ding
    Zuchang Ma
    Yichen Wu
    Yu Wang
    Ruiqi Zhang
    Fei Xie
    Xiaoye Ren
    Applied Intelligence, 2023, 53 : 21448 - 21464
  • [2] Few-shot relation classification by context attention-based prototypical networks with BERT
    Bei Hui
    Liang Liu
    Jia Chen
    Xue Zhou
    Yuhui Nian
    EURASIP Journal on Wireless Communications and Networking, 2020
  • [3] Few-shot relation classification by context attention-based prototypical networks with BERT
    Hui, Bei
    Liu, Liang
    Chen, Jia
    Zhou, Xue
    Nian, Yuhui
    EURASIP JOURNAL ON WIRELESS COMMUNICATIONS AND NETWORKING, 2020, 2020 (01)
  • [4] Hybrid Attention-Based Prototypical Networks for Noisy Few-Shot Relation Classification
    Gao, Tianyu
    Han, Xu
    Liu, Zhiyuan
    Sun, Maosong
    THIRTY-THIRD AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE / THIRTY-FIRST INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE / NINTH AAAI SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2019, : 6407 - 6414
  • [5] HYBRID ATTENTION-BASED PROTOTYPICAL NETWORKS FOR FEW-SHOT SOUND CLASSIFICATION
    Wang, You
    Anderson, David, V
    2022 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH AND SIGNAL PROCESSING (ICASSP), 2022, : 651 - 655
  • [6] Hybrid Enhancement-based prototypical networks for few-shot relation classification
    Lei Wang
    Jianfeng Qu
    Tianyu Xu
    Zhixu Li
    Wei Chen
    Jiajie Xu
    Lei Zhao
    World Wide Web, 2023, 26 : 3207 - 3226
  • [7] Hybrid Enhancement-based prototypical networks for few-shot relation classification
    Wang, Lei
    Qu, Jianfeng
    Xu, Tianyu
    Li, Zhixu
    Chen, Wei
    Xu, Jiajie
    Zhao, Lei
    WORLD WIDE WEB-INTERNET AND WEB INFORMATION SYSTEMS, 2023, 26 (05): : 3207 - 3226
  • [8] Enhance prototypical networks with hybrid attention and confusing loss function for few-shot relation classification
    Li, Yibing
    Ma, Zuchang
    Gao, Lisheng
    Wu, Yichen
    Xie, Fei
    Ren, Xiaoye
    NEUROCOMPUTING, 2022, 493 : 362 - 372
  • [9] Few-shot image classification algorithm based on attention mechanism and weight fusion
    Meng X.
    Wang X.
    Yin S.
    Li H.
    Journal of Engineering and Applied Science, 2023, 70 (01):
  • [10] Total Relation Network with Attention for Few-Shot Image Classification
    Li X.-X.
    Liu Z.-Y.
    Wu J.-J.
    Cao J.
    Ma Z.-Y.
    Jisuanji Xuebao/Chinese Journal of Computers, 2023, 46 (02): : 371 - 384