Abstract
Few-shot relation classification is to recognize the semantic relation between an entity pair with very few samples. Prototypical network has proven to be a simple yet effective few-shot learning method for relation extraction. However, under the condition of data scarcity, the relation prototypes we achieve are usually biased compared to the real ones computed from all samples within a relation class. To alleviate this issue, we propose hybrid enhancement-based prototypical networks. In particular, our model contains three main enhancement modules: 1) a query-guided prototype enhancement module using rich interactive information between the support instances and the query instance as guidance to obtain more accurate prototype representations; 2) a query enhancement module to diminish the distribution gap between the query set and the support set; 3) a support enhancement module adopting a pseudo-label strategy to expand the scale of available data. On basis of these modules, we further design a novel prototype attention fusion mechanism to fuse information and compute discriminative relation prototypes for classification. In this way, we hope to obtain unbiased representations closer to our expected prototypes by improving the available data scale and data utilization efficiency. Extensive experimental results on the widely-used FewRel dataset demonstrate the superiority of our proposed model.
Similar content being viewed by others
Data Availability
All the data are included in this article.
References
Mintz, M., Bills, S., Snow, R., Jurafsky, D.: Distant supervision for relation extraction without labeled data. In: ACL/IJCNLP, pp. 1003–1011 (2009)
Han, X., Gao, T., Lin, Y., Peng, H., Yang, Y., Xiao, C., Liu, Z., Li, P., Zhou, J., Sun, M.: More data, more relations, more context and more openness: a review and outlook for relation extraction. In: AACL/IJCNLP, pp. 745–758 (2020)
Han, X., Zhu, H., Yu, P., Wang, Z., Yao, Y., Liu, Z., Sun, M.: Fewrel: A large-scale supervised few-shot relation classification dataset with stateof- the-art evaluation. In: EMNLP, pp. 4803-4809 (2018)
Finn, C., Abbeel, P., Levine, S.: Model-agnostic meta-learning for fast adaptation of deep networks. In: ICML. Proceedings of Machine Learning Research, vol. 70, pp. 1126–1135 (2017)
Munkhdalai, T., Yu, H.: Meta networks. In: ICML. Proceedings of Machine Learning Research, vol. 70, pp. 2554-2563 (2017)
Dong, B., Yao, Y., Xie, R., Gao, T., Han, X., Liu, Z., Lin, F., Lin, L., Sun, M.: Meta-information guided meta-learning for few-shot relation classification. In: COLING, pp. 1594–1605 (2020)
Snell, J., Swersky, K., Zemel, R.S.: Prototypical networks for few-shot learning. In: NIPS, pp. 4077–4087 (2017)
Ye, Z., Ling, Z.: Multi-level matching and aggregation network for fewshot relation classification. In: ACL (1), pp. 2872–2881 (2019)
Gao, T., Han, X., Liu, Z., Sun, M.: Hybrid attention-based prototypical networks for noisy few-shot relation classification. In: AAAI, pp. 6407–6414 (2019)
Han, J., Cheng, B., Lu, W.: Exploring task difficulty for few-shot relation extraction. In: EMNLP (1), pp. 2605–2616 (2021)
Vinyals, O., Blundell, C., Lillicrap, T., Kavukcuoglu, K., Wierstra, D.: Matching networks for one shot learning. In: NIPS, pp. 3630–3638 (2016)
Devlin, J., Chang, M., Lee, K., Toutanova, K.: BERT: pre-training of deep bidirectional transformers for language understanding. In: NAACL-HLT (1), pp. 4171–4186 (2019)
Soares, L.B., FitzGerald, N., Ling, J., Kwiatkowski, T.: Matching the blanks: Distributional similarity for relation learning. In: ACL (1), pp. 2895–2905 (2019)
Liu, J., Song, L., Qin, Y.: Prototype rectification for few-shot learning. In: ECCV (1). Lecture Notes in Computer Science, vol. 12346, pp. 741–756 (2020)
Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., Desmaison, A., Köpf, A., Yang, E.Z., DeVito, Z., Raison, M., Tejani, A., Chilamkurthy, S., Steiner, B., Fang, L., Bai, J., Chintala, S.: Pytorch: An imperative style, highperformance deep learning library. In: NeurIPS, pp. 8024–8035 (2019)
Gao, T., Han, X., Zhu, H., Liu, Z., Li, P., Sun, M., Zhou, J.: Fewrel 2.0: Springer Nature 2021 LATEX template HEPN for Few-Shot Relation Classification 23 Towards more challenging few-shot relation classification. In: EMNLP/IJCNLP (1), pp. 6249–6254 (2019)
Yang, K., Zheng, N., Dai, X., He, L., Huang, S., Chen, J.: Enhance prototypical network with text descriptions for few-shot relation classification. In: CIKM, pp. 2273–2276 (2020)
Wang, Y., Bao, J., Liu, G., Wu, Y., He, X., Zhou, B., Zhao, T.: Learning to decouple relations: Few-shot relation classification with entity-guided attention and confusion-aware training. In: COLING, pp. 5799-5809 (2020)
Han, J., Cheng, B., Nan, G.: Learning discriminative and unbiased representations for few-shot relation extraction. In: CIKM, pp. 638–648 (2021)
Han, Y., Qiao, L., Zheng, J., Kan, Z., Feng, L., Gao, Y., Tang, Y., Zhai, Q., Li, D., Liao, X.: Multi-view interaction learning for few-shot relation classification. In: CIKM, pp. 649–658 (2021)
Yu, T., Yang, M., Zhao, X.: Dependency-aware prototype learning for few-shot relation classification. In: COLING, pp. 2339–2345 (2022)
Wang, M., Zheng, J., Cai, F., Shao, T., Chen, H.: DRK: discriminative rule-based knowledge for relieving prediction confusions in few-shot relation extraction. In: COLING, pp. 2129–2140 (2022)
Sung, F., Yang, Y., Zhang, L., Xiang, T., Torr, P.H.S., Hospedales, T.M.: Learning to compare: Relation network for few-shot learning. In: CVPR, pp. 1199–1208 (2018)
Fan, M., Bai, Y., Sun, M., Li, P.: Large margin prototypical network for few-shot relation classification with fine-grained features. In: CIKM, pp. 2353–2356 (2019)
Ren, H., Cai, Y., Chen, X., Wang, G., Li, Q.: A two-phase prototypical network model for incremental few-shot relation classification. In: COLING, pp. 1618–1629 (2020)
Geng, X., Chen, X., Zhu, K.Q., Shen, L., Zhao, Y.: MICK: A metalearning framework for few-shot relation classification with small training data. In: CIKM, pp. 415–424 (2020)
Yang, S., Zhang, Y., Niu, G., Zhao, Q., Pu, S.: Entity concept-enhanced few-shot relation extraction. In: ACL/IJCNLP (2), pp. 987–991 (2021)
Li, X., Sun, Q., Liu, Y., Zhou, Q., Zheng, S., Chua, T., Schiele, B.: Learning to self-train for semi-supervised few-shot classification. In: NeurIPS, pp. 10276–10286 (2019)
Ren, M., Triantafillou, E., Ravi, S., Snell, J., Swersky, K., Tenenbaum, J.B., Larochelle, H., Zemel, R.S.: Meta-learning for semi-supervised fewshot classification. In: ICLR (Poster) (2018)
Liu, Y., Lee, J., Park, M., Kim, S., Yang, E., Hwang, S.J., Yang, Y.: Learning to propagate labels: Transductive propagation network for fewshot learning. In: ICLR (Poster) (2019)
Acknowledgements
This research is supported by the National Natural Science Foundation of China (Grant No. 62072323, 62102276), Shanghai Science and Technology Innovation Action Plan (No. 22511104700), Natural Science Foundation of Jiangsu Province (Grant No. BK20210705, BK20211307), the Priority Academic Program Development of Jiangsu Higher Education Institutions and Key Projects of Industrial Foresight and Key Core Technology Research and Development in Suzhou (SYC2022009).
Funding
This work was supported by the National Natural Science Foundation of China (Grant No. 62102276), the Natural Science Foundation of Jiangsu Province (Grant No. BK20210705), the Natural Science Foundation of Educational Commission of Jiangsu Province, China (Grant No. 21KJD520005), and the Postgraduate Research & Practice Innovation Program of Jiangsu Province (Grant No. KYCX22_3197).
Author information
Authors and Affiliations
Contributions
Lei Wang, Jianfeng Qu and Tianyu Xu wrote the manuscript; Lei Wang and Jianfeng Qu implemented the model framework and performed the experiment; Wei Chen, Jiajie Xu, Zhixu Li and Lei Zhao provided thoughtful advice to the research.
Corresponding author
Ethics declarations
Ethical Approval and Consent to participate
Not applicable
Consent for publication
Not applicable
Human and Animal Ethics
Not applicable
Competing interests
The authors declare no competing interests.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Wang, L., Qu, J., Xu, T. et al. Hybrid Enhancement-based prototypical networks for few-shot relation classification. World Wide Web 26, 3207–3226 (2023). https://doi.org/10.1007/s11280-023-01184-w
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11280-023-01184-w