Proceedings

Bridging Generative and Discriminative Learning: Few-Shot Relation Extraction via Two-Stage Knowledge-Guided Pre-training

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 8068-8076.

https://doi.org/10.24963/ijcai.2025/897

Abstract

Few-Shot Relation Extraction (FSRE) remains a challenging task due to the scarcity of annotated data and the limited generalization capabilities of existing models. Although large language models (LLMs) have shown potential in FSRE through in-context learning, their general-purpose training objectives often result in suboptimal performance for task-specific relation extraction. To overcome these challenges, we propose TKRE (Two-Stage Knowledge-Guided Pre-training for Relation Extraction), a novel framework that synergistically integrates LLMs with traditional relation extraction models, bridging generative and discriminative learning paradigms. TKRE introduces two key innovations: (1) leveraging LLMs to generate explanation-driven knowledge and schema-constrained synthetic data, addressing the issue of data scarcity; and (2) a two-stage pre-training strategy combining Masked Span Language Modeling (MSLM) and Span-Level Contrastive Learning (SCL) to enhance relational reasoning and generalization. Together, these components enable TKRE to effectively handle FSRE tasks. Comprehensive experiments on benchmark datasets demonstrate the efficacy of TKRE, achieving new state-of-the-art performance in FSRE and underscoring its potential for broader application in low-resource scenarios. The code and data are released on https://github.com/UESTC-GQJ/TKRE.

  1. [Achiam et al., 2023] Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Alt- man, Shyamal Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023.
  2. [Alt et al., 2020] Christoph Alt, Aleksandra Gabryszak, and Leonhard Hennig. Tacred revisited: A thorough evalua- tion of the tacred relation extraction task. In Proceedings of the 58th Annual Meeting of the Association for Compu- tational Linguistics. Association for Computational Lin- guistics, 2020.
  3. [Anaby-Tavor et al., 2020] Ateret Anaby-Tavor, Boaz Carmeli, Esther Goldbraich, Amir Kantor, George Kour, Segev Shlomov, Naama Tepper, and Naama Zwerdling. Do not have enough data? deep learning to the rescue! In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages 7383-7390, 2020.
  4. [Chen et al., 2022] Xiang Chen, Ningyu Zhang, Xin Xie, Shumin Deng, Yunzhi Yao, Chuanqi Tan, Fei Huang, Luo Si, and Huajun Chen. Knowprompt: Knowledge-aware prompt-tuning with synergistic optimization for relation extraction. In Proceedings of the ACM Web conference 2022, pages 2778-2788, 2022.
  5. [Devlin et al., 2019] Jacob Devlin, Ming-Wei Chang, et al. Bert: Pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT, 2019.
  6. [Gao et al., 2021] Tianyu Gao, Adam Fisch, and Danqi Chen. Making pre-trained language models better few- shot learners. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 3816-3830, 2021.
  7. [Guo et al., 2025] Quanjiang Guo, Yihong Dong, Ling Tian, Zhao Kang, Yu Zhang, and Sijie Wang. Baner: Boundary- aware llms for few-shot named entity recognition. In Pro- ceedings of the 31st International Conference on Compu- tational Linguistics, pages 10375-10389, 2025.
  8. [Han et al., 2022] Jiale Han, Shuai Zhao, Bo Cheng, Shengkun Ma, and Wei Lu. Generative prompt tuning for relation classification. In Findings of the Association for Computational Linguistics: EMNLP 2022, pages 3170- 3185, 2022.
  9. [Hendrickx et al., 2010] Iris Hendrickx, Su Nam Kim, Zor- nitsa Kozareva, Preslav Nakov, Diarmuid O Séaghdha, Se- bastian Padó, Marco Pennacchiotti, Lorenza Romano, and Stan Szpakowicz. Semeval-2010 task 8: Multi-way clas- sification of semantic relations between pairs of nominals. ACL 2010, page 33, 2010.
  10. [Jiao et al., 2020] Xiaoqi Jiao, Yichun Yin, Lifeng Shang, Xin Jiang, Xiao Chen, Linlin Li, Fang Wang, and Qun Liu. Tinybert: Distilling bert for natural language understand- ing. In Findings of the Association for Computational Lin- guistics: EMNLP 2020, pages 4163-4174, 2020.
  11. noisy labels with deep neural networks: A survey. IEEE transactions on neural networks and learning systems, 34(11):8135-8153, 2022.
  12. [Stoica et al., 2021] George Stoica, Emmanouil Antonios Platanios, and Barnabás Póczos. Re-tacred: Addressing shortcomings of the tacred dataset. In Proceedings of the AAAI conference on artificial intelligence, volume 35, pages 13843-13850, 2021.
  13. [Touvron et al., 2023] Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023.
  14. [Vrandečić and Krötzsch, 2014] Denny Vrandečić and Markus Krötzsch. Wikidata: a free collaborative knowl- edgebase. Communications of the ACM, 57(10):78-85, 2014.
  15. [Vu et al., 2021] Tu Vu, Minh-Thang Luong, Quoc Le, Grady Simon, and Mohit Iyyer. Strata: Self-training with task augmentation for better few-shot learning. In Pro- ceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pages 5715-5731, 2021.
  16. [Wang et al., 2023a] Peng Wang, Jiafeng Xie, et al. Pascore: a chinese overlapping relation extraction model based on global pointer annotation strategy. In IJCAI, 2023. IJCAI
  17. [Wang et al., 2023b] Xiao Wang, Weikang Zhou, et al. In- structuie: Multi-task instruction tuning for unified in- formation extraction. arXiv preprint arXiv:2304.08085, 2023.
  18. [Wei and Zou, 2019] Jason Wei and Kai Zou. Eda: Easy data augmentation techniques for boosting performance on text classification tasks. In Proceedings of the 2019 Confer- ence on Empirical Methods in Natural Language Process- ing and the 9th International Joint Conference on Natu- ral Language Processing (EMNLP-IJCNLP), pages 6382- 6388, 2019.
  19. [Wei et al., 2020] Zhepei Wei, Jianlin Su, et al. A novel cas- cade binary tagging framework for relational triple extrac- tion. In ACL, 2020.
  20. [Whitehouse et al., 2023] Chenxi Whitehouse, Monojit Choudhury, and Alham Fikri Aji. Llm-powered data augmentation for enhanced cross-lingual performance. In The 2023 Conference on Empirical Methods in Natural Language Processing, 2023.
  21. [Xu et al., 2023a] Benfeng Xu, Quan Wang, Yajuan Lyu, Dai Dai, Yongdong Zhang, and Zhendong Mao. S2ynre: Two- stage self-training with synthetic data for low-resource re- lation extraction. In Proceedings of the 61st Annual Meet- ing of the Association for Computational Linguistics (Vol- ume 1: Long Papers), pages 8186-8207, 2023.
  22. [Xu et al., 2023b] Xin Xu, Yuqi Zhu, Xiaohan Wang, and Ningyu Zhang. How to unleash the power of large lan- guage models for few-shot relation extraction? In Pro- ceedings of The Fourth Workshop on Simple and Efficient Natural Language Processing (SustaiNLP), pages 190- 200, 2023.
  23. [Yang et al., 2024] Jingfeng Yang, Hongye Jin, Ruixiang Tang, Xiaotian Han, Qizhang Feng, Haoming Jiang, Shaochen Zhong, Bing Yin, and Xia Hu. Harnessing the power of llms in practice: A survey on chatgpt and be- yond. ACM Transactions on Knowledge Discovery from Data, 18(6):1-32, 2024.
  24. [Zhang and Kang, 2024] Yu Zhang and Zhao Kang. Tpn: Transferable proto-learning network towards few-shot document-level relation extraction. In 2024 International Joint Conference on Neural Networks (IJCNN), pages 1-9. IEEE, 2024.
  25. [Zhang et al., 2017] Yuhao Zhang, Victor Zhong, Danqi Chen, Gabor Angeli, and Christopher D Manning. Position-aware attention and supervised data improve slot filling. In Conference on empirical methods in natural lan- guage processing, 2017.
  26. [Zhang et al., 2024a] Zhihao Zhang, Sophia Lee, Junshuang Wu, Dong Zhang, Shoushan Li, Erik Cambria, and Guodong Zhou. Cross-domain ner with generated task- oriented knowledge: An empirical study from information density perspective. In Proceedings of the 2024 Confer- ence on Empirical Methods in Natural Language Process- ing, pages 1595-1609, 2024.
  27. [Zhang et al., 2024b] Zirui Zhang, Yiyu Yang, and Benhui Chen. Prompt tuning for few-shot relation extraction via modeling global and local graphs. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC- COLING 2024), pages 13233-13242, 2024.
  28. [Zhou and Chen, 2022] Wenxuan Zhou and Muhao Chen. An improved baseline for sentence-level relation extrac- tion. In Proceedings of the 2nd Conference of the Asia- Pacific Chapter of the Association for Computational Lin- guistics and the 12th International Joint Conference on Natural Language Processing (Volume 2: Short Papers), pages 161-168, 2022.
  29. [Zhu et al., 2024] Xudong Zhu, Zhao Kang, and Bei Hui. Fcds: Fusing constituency and dependency syntax into document-level relation extraction. In Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC- COLING 2024), pages 7141-7152, 2024.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards