Computer Science ›› 2026, Vol. 53 ›› Issue (11A): 250900080-144.doi: 10.11896/jsjkx.250900080

• Artificial Intelligence • Previous Articles     Next Articles

Few-shot Relation Extraction Model with Prototype Representation Enhanced by Entity Boundary Features

XIAO Yuhang, LI Guanfeng, CHEN Yuyin, QIN Jing   

  1. School of Information Engineering,Ningxia University/ Ningxia Key Laboratory of Artificial Intelligence and Information Security for Channeling Computing Resources from the East to the West,Yinchuan 750021,China
  • Online:2026-11-16 Published:2026-11-16
  • About author:XIAO Yuhang,born in 1999,M.S.candidate,is a member of CCF(No.Y8938G).His main research interest is relation extraction.
    LI Guanfeng,born in 1979,Ph.D,associate professor,is a member of CCF(No.A0519M).His main research interests include knowledge engineering and intelligent computing.
  • Supported by:
    This work was supported by the Key Research and Development Program of Ningxia(2023BSB03066),National Natural Science Foundation of China(62066038) and Natural Science Foundation of Ningxia(2024AAC03098).

Abstract: Few-shot relation extraction aims to identify the relationship between entity pairs under unseen relation types using only a limited number of labeled examples.While prototype-based methods have shown promise,many of them construct class prototypes by averaging the features of support instances,overlooking the varying contributions of individual examples.Additionally,directly incorporating external relation information may introduce parameter redundancy and hinder generalization.To address these limitations,this paper proposes a prototype representation model enhanced with entity boundary features.The model first introduces an entity boundary feature extraction module to capture the semantic information of entity start and end tokens,thereby strengthening relational context.Then,a query-aware instance weighting mechanism is designed to adaptively construct prototype representations according to the semantic similarity between query and support instances.Finally,a lightweight scalar-gating fusion mechanism is employed to dynamically integrate prototype representations with relational semantic descriptions,achieving efficient and robust semantic fusion.Experiments on the standard FewRel 1.0 and FewRel 2.0 datasets demonstrate that the proposed method significantly outperforms mainstream baseline models in terms of accuracy,confirming the effectiveness of entity boundary modeling and semantic fusion in few-shot relation extraction.

Key words: Relation extraction, Few-shot learning, Entity boundary enhancement, Prototypical network

CLC Number: 

  • TP391.1
[1] BACH N,BADASKAR S.A review of relation extraction[J].Literature Review for Language and Statistics II,2007,2:1-15.
[2] HU J,LI J,CHEN Z,et al.Word graph guided summarization for radiology findings[C]//Findings of the Association for Computational Linguistics:ACL-IJCNLP 2021.Stroudsburg:ACL,2021:4980-4990.
[3] DING M,ZHOU C,CHEN Q,et al.Cognitive graph for multi-hop reading comprehension at scale[C]//Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics.Florence:ACL,2019:2694-2703.
[4] DUA D,SINGH S,GARDNER M.Benefits of intermediate annotations in reading comprehension[C]//Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics.Online:ACL,2020:5627-5634.
[5] KARPUKHIN V,OGUZ B,MIN S,et al.Dense passage retrieval for open-domain question answering[C]//Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing.Online:ACL,2020:6769-6781.
[6] PENG H,GAO T,HAN X,et al.Learning from context ornames? An empirical study on neural relation extraction[C]//Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing.Online:ACL,2020:3661-3672.
[7] WEI Z,SU J,WANG Y,et al.A novel cascade binary tagging framework for relational triple extraction[C]//Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics.Online:ACL,2020:1476-1488.
[8] SUN H,CHEN J.Enhancing the Prototype Network with Lo-cal-to-Global Optimization for Few-Shot Relation Extraction[C]//Findings of the Association for Computational Linguistics:NAACL 2025.2025.
[9] YE Z X,LING Z H.Multi-level matching and aggregation network for few-shot relation classification[C]//Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics.Florence:ACL,2019:2872-2881.
[10] YANG K J,ZHENG N T,DAI X Y,et al.Enhance prototypical network with text descriptions for few-shot relation classification[C]//Proceedings of the 29th ACM International Conference on Information and Knowledge Management.New York:ACM,2020:2273-2276.
[11] GARCIA SATORRAS V,BRUNA ESTRACH J.Few-shotlearning with graph neural networks[C]//Proceedings of the 6th International Conference on Learning Representations.Vancouver:OpenReview,2018.
[12] QU M,GAO T,XHONNEUX L P,et al.Few-shot relation extraction via bayesian meta-learning on relation graphs[C]//International Conference on Machine Learning.PMLR,2020:7867-7876
[13] HAN J,CHENG B,LU W.Exploring task difficulty for few-shot relation extraction[C]//Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing.Online and Punta Cana:ACL,2021:2605-2616.
[14] ZHAO Y,ZHANG A X,XIE R B,et al.Connecting embeddings for knowledge graph entity typing[C]//Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics.Online:ACL,2020:6419-6428.
[15] HAN X,ZHU H,YU P,et al.FewRel:a large-scale supervisedfew-shot relation classification dataset with state-of-the-art evaluation[J].CoRR,2018,abs/1810.10147.
[16] XIE Y,XU H,LI J,et al.Heterogeneous graph neural networks for noisy few-shot relation classification[J].Knowledge-Based Systems,2020,194:105548.
[17] QU M,GAO T,XHONNEUX L P,et al.Few-shot relation extraction via bayesian meta-learning on relation graphs[C]//International Conference on Machine Learning.PMLR,2020:7867-7876.
[18] GAO T Y,HAN X,ZHU H,et al.FewRel 2.0:towards morechallenging few-shot relation classification[J].CoRR,2019,abs/1910.07124.
[19] DEVLIN J,CHANG M W,LEE K,et al.BERT:pre-training of deep bidirectional transformers for language understanding[C]//Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics:Human Language Technologies.Minneapolis:ACL,2019:4171-4186.
[20] BALDINI SOARES L,FITZGERALD N,LING J,et al.Matching the blanks:distributional similarity for relation learning[C]//Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics.Florence:ACL,2019:2895-2905.
[21] GAO T,HAN X,LIU Z,et al.Hybrid attention-based prototypical networks for noisy few-shot relation classification[C]//Proceedings of the AAAI Conference on Artificial Intelligence.Honolulu:AAAI Press,2019,33(1):6407-6414.
[22] HAN J,CHENG B,LU W.Exploring task difficulty for few-shot relation extraction[C]//Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing.Online and Punta Cana:ACL,2021:2605-2616.
[23] LIU Y,HU J P,WAN X,et al.A simple yet effective relation information guided approach for few-shot relation extraction[C]//Findings of the Association for Computational Linguistics:ACL 2022.Dublin:ACL,2022:757-763.
[24] YANG K J,ZHENG N T,DAI X Y,et al.Enhance prototypical network with text descriptions for few-shot relation classification[C]//Proceedings of the 29th ACM International Conference on Information and Knowledge Management.New York:ACM,2020:2273-2276.
[25] LI X W,LIU C,YU J,et al.Prototypical attention network for few-shot relation classification with entity-aware embedding module[J].Applied Intelligence,2023,53(9):10978-10994.
[26] FENG J,WEI Q,CUI J.Prototypical networks relation classification model based on entity convolution[J].Computer Speech &Language,2023,77:101432.
[27] HE H,NIU H,FENG J,et al.A prototype network enhanced relation semantic representation for few-shot relation extraction[J].Human-Centric Intelligent Systems,2023,3(1):1-12.
[28] JI Y M,ZHANG W,LIU Q,et al.A relation extraction method for Chinese text based on few-shot learning[J].Journal of Nanjing University of Posts and Telecommunications(Natural Science Edition),2023,43(4):64-71.
[29] SNELL J,SWERSKY K,ZEMEL R.Prototypical networks for few-shot learning[C]//Proceedings of the 31st International Conference on Neural Information Processing Systems.New York:ACM Press,2017:4080-4090.
[30] PAHDE F,PUSCAS M,KLEIN T,et al.Multimodal prototypical networks for few-shot learning[C]//Proceedings of IEEE Winter Conference on Applications of Computer Vision.Washington D.C.:IEEE Press,2021:2643-2652.
[31] PARNAMI A,LEE M.Few-shot keyword spotting with prototypical networks[C]//Proceedings of the 7th International Conference on Machine Learning Technologies.New York:ACM Press,2022:277-283.
[32] GAO T Y,HAN X,LIU Z Y,et al.Hybrid attention-based prototypical networks for noisy few-shot relation classification[C]//Proceedings of the AAAI Conference on Artificial Intelligence.2019:6407-6414.
[33] YANG K,ZHENG N,DAI X,et al.Enhance prototypical network with text descriptions for few-shot relation classification[C]//Proceedings of the 29th ACM International Conference on Information and Knowledge Management.New York:ACM,2020:2273-2276.
[34] YANG S,ZHANG Y,NIU G,et al.Entity concept enhanced few-shot relation extraction[EB/OL].arXiv:2106.02401,2021[2025-09-08].https://arxiv.org/abs/2106.02401.
[35] WANG Y,BAO J,LIU G,et al.Learning to decouple relations:few-shot relation classification with entity-guided attention and confusion-aware training[EB/OL].[2025-09-08].https://arxiv.org/abs/2010.10894.
[36] LI R,ZHONG J,HU W,et al.Adaptive class augmented prototype network for few-shot relation extraction[J].Neural Networks,2024,169:134-142.
[37] ZHANG Y,CEN M,WU T,et al.RAPS:a novel few-shot relation extraction pipeline with query-information guided attention and adaptive prototype fusion[C]//Proceedings of the International Conference on Modeling,Natural Language Processing and Machine Learning.2024:147-152.
[38] PAN Z,LI H,ZHAO X.Prototype Tuning:A Meta-Learning Approach for Few-Shot Document-Level Relation Extraction with Large Language Models[C]//Findings of the Association for Computational Linguistics:NAACL 2025.2025:62-74
[39] WANG Z,GE J,YANG X,et al.Method for relation extraction based on entity boundary features[C]//Proceedings of the 2024 7th International Conference on Computer Information Science and Artificial Intelligence.Shaoxing:ACM,2024:648-653.
[40] WANG M,ZHENG J,CAI F,et al.DRK:discriminative rule-based knowledge for relieving prediction confusions in few-shot relation extraction[C]//Proceedings of the 29th International Conference on Computational Linguistics.Gyeongju:ICCL,2022:2129-2140.
[41] LI W,QIAN T.Graph-based model generation for few-shot relation extraction[C]//Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing.Stroudsburg:ACL,2022:62-71.
[42] BORCHERT P,DE WEERDT J,MOENS M F.Efficient information extraction in few-shot relation classification through contrastive representation learning[C]//Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics:Human Language Technologies(Volume 2:Short Papers).Stroudsburg:ACL,2024:638-646.
[1] AN Yuexuan, ZHAO Xingyu. Model-agnostic Cross-domain Few-shot Learning Framework Based on Invariant Risk Minimization [J]. Computer Science, 2026, 53(6A): 250900009-8.
[2] XU Rui, LIU Jin, LIU Xudong, GUAN Jian, DONG Wei. Exploring the Generalization Ability of Prompt-based Large Language Models for TextClassification [J]. Computer Science, 2026, 53(6A): 250400092-7.
[3] QIAN Qing, CHEN Huicheng, CUI Yunhe, TANG Ruixue, FU Jinmei. Joint Entity and Relation Extraction Method with Multi-scale Collaborative Aggregation and Axial-semantic Guidance [J]. Computer Science, 2026, 53(3): 97-106.
[4] LI Wenli, FENG Xiaonian, QIAN Tieyun. Few-shot Continuous Toxicity Detection Based on Large Language Model Augmentation [J]. Computer Science, 2026, 53(3): 321-330.
[5] CHEN Lin, MA Longxuan, ZHANG Yongbing, HUANG Yuxin, GAO Shengxiang, YU Zhengtao. Industrial Text Classification for Chinese and Vietnamese Based on Prompt Learning and AdaptiveLoss Weighting [J]. Computer Science, 2026, 53(2): 312-321.
[6] LI Xinyu, WU Yuejia, ZHOU Jiantao. CMRE:Cross-graph Attention-based Model for Multimodal Relation Extraction [J]. Computer Science, 2026, 53(11A): 260100112-66.
[7] MA Handa, ZHOU Yujie. Few-shot Image Segmentation Model Based on Prototype and Difficult Example Augmentation [J]. Computer Science, 2026, 53(11A): 251200193-500.
[8] WANG Weijia, XIE Xiang. Chinese Sensitive Word Detection Based on Self-supervised Manifold Reconstruction and Multi-view Interactive Attention [J]. Computer Science, 2026, 53(11A): 260400045-127.
[9] WANG Jiahui, HUANG Zehao, ZHOU Yuling, XUE Chengjie, YUE Kun. Relation Extraction in Tabular Power Text [J]. Computer Science, 2026, 53(11A): 251200179-135.
[10] LI Lunxing, GUO Xiangyu, FU Lijun. Query Rewriting Based on Expert Examples and Dynamic Few-shot Learning [J]. Computer Science, 2026, 53(11): 242-248.
[11] WANG Jia, XIA Ying, FENG Jiangfan. Few-shot Video Action Recognition Based on Two-stage Spatio-Temporal Alignment [J]. Computer Science, 2025, 52(8): 251-258.
[12] LIU Le, XIAO Rong, YANG Xiao. Application of Decoupled Knowledge Distillation Method in Document-level RelationExtraction [J]. Computer Science, 2025, 52(8): 277-287.
[13] CHEN Yadang, GAO Yuxuan, LU Chuhan, CHE Xun. Saliency Mask Mixup for Few-shot Image Classification [J]. Computer Science, 2025, 52(6): 256-263.
[14] LI Xiwang, CAO Peisong, WU Yuying, GUO Shuming, SHE Wei. Study on Security Risk Relation Extraction Based on Multi-view IB [J]. Computer Science, 2025, 52(5): 330-336.
[15] LI Hao, YANG Yumeng, ZHAO Boyang, ZHENG Puqi, LIN Hongfei. Adverse Drug Reaction Relationship Extraction Based on Chain of Thought Enhancement UnderHigh and Low Resources [J]. Computer Science, 2025, 52(12): 224-230.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!