Skip to main content

SSMFRP: Semantic Similarity Model for Relation Prediction in KBQA Based on Pre-trained Models

  • Conference paper
  • First Online:
Artificial Neural Networks and Machine Learning – ICANN 2022 (ICANN 2022)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 13530))

Included in the following conference series:

  • 2216 Accesses

Abstract

Pre-trained Relation Extraction (RE) models are widely employed in relation prediction in Knowledge Base Question Answering (KBQA). However, pre-trained models are usually optimized and evaluated on datasets (e.g. GLUE) which contain various Natural Language Processing (NLP) tasks except a RE task. As a result, it is difficult to select a best pre-trained model for relation prediction unless we evaluate all available pre-trained models on a relation prediction dataset. As the Semantic Similarity (SS) task in GLUE is similar to a RE task, a Semantic Similarity Model for Relation Prediction (SSMFRP) is proposed in this paper to convert a RE task in relation prediction to a SS task. In our model, a relation candidate in a RE model is converted into the corresponding question which contains a relation candidate. Then a modified SS model is employed to find the best-matched relation. Experimental results show that the effectiveness of our proposed model in relation prediction is related to the effectiveness of the original pre-trained model in SS and GLUE. Our model achieves an average accuracy of 91.2% with various pre-trained models and outperforms original models by an average margin of 1.8% with the similar training cost. In addition, further experiments show that our model is robust to abnormal input and outperforms original models by an average margin of 1.0% on datasets of abnormal input.

Supported by the Natural Science Foundation of China under Grant No. U21A20491, No. U1936109, No. U1908214.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://github.com/bojone/bert4keras.

  2. 2.

    https://kexue.fm/archives/8373.

  3. 3.

    https://kexue.fm/archives/8377.

References

  1. Bollacker, K., Evans, C., Paritosh, P., Sturge, T., Taylor, J.: Freebase: a collaboratively created graph database for structuring human knowledge. In: Proceedings of the 2008 ACM SIGMOD International conference on Management of Data, pp. 1247–1250 (2008)

    Google Scholar 

  2. Bordes, A., Usunier, N., Chopra, S., Weston, J.: Large-scale simple question answering with memory networks. arXiv preprint arXiv:1506.02075 (2015)

  3. Clark, K., Luong, M.T., Le, Q.V., Manning, C.D.: Electra: pre-training text encoders as discriminators rather than generators. In: Proceedings of The International Conference on Learning Representations (2020)

    Google Scholar 

  4. Dai, Z., Li, L., Xu, W.: Cfo: conditional focused neural question answering with large-scale knowledge bases. In: Proceedings of Annual Meeting of the Association for Computational Linguistics, pp. 800–810 (2016)

    Google Scholar 

  5. Devlin, J., Chang, M.W., Lee, K., Toutanova, K.: Bert: pre-training of deep bidirectional transformers for language understanding. In: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 4171–4186 (2019)

    Google Scholar 

  6. Fikri, F.B., Oflazer, K., Yanikoglu, B.: Semantic similarity based evaluation for abstractive news summarization. In: Proceedings of the 1st Workshop on Natural Language Generation, Evaluation, and Metrics, pp. 24–33 (2021)

    Google Scholar 

  7. Hu, Z., Cao, Y., Huang, L., Chua, T.S.: How knowledge graph and attention help? a qualitative analysis into bag-level relation extraction. In: Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics. p. 4662–4671 (2021)

    Google Scholar 

  8. Huang, B., Bai, Y., Zhou, X.: Hub at semeval-2021 task 2: word meaning similarity prediction model based on roberta and word frequency. In: Proceedings of the 15th International Workshop on Semantic Evaluation, pp. 719–723 (2021)

    Google Scholar 

  9. Huang, K., Qi, P., Wang, G., et al.: Entity and evidence guided document-level relation extraction. In: Proceedings of the 6th Workshop on Representation Learning for NLP, pp. 307–315 (2021)

    Google Scholar 

  10. Kingma, D.P., Ba, J.: Adam: a method for stochastic optimization. In: Proceedings of the 3rd International Conference on Learning Representations (2015)

    Google Scholar 

  11. Lan, Z., Chen, M., Goodman, S., et al.: Albert: a lite bert for self-supervised learning of language representations. arXiv preprint arXiv:1909.11942 (2019)

  12. Luo, D., Su, J., Yu, S.: A bert-based approach with relation-aware attention for knowledge base question answering. In: Proceedings of International Joint Conference on Neural Networks, pp. 1–8 (2020)

    Google Scholar 

  13. Ma, R., Gui, T., Li, L., et al.: Sent: Sentence-level distant relation extraction via negative training. In: Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics, pp. 6201–6213 (2021)

    Google Scholar 

  14. Petrochuk, M., Zettlemoyer, L.: Simplequestions nearly solved: a new upperbound and baseline approach. In: Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 554–558 (2018)

    Google Scholar 

  15. Risch, J., Möller, T., Gutsch, J.: Semantic answer similarity for evaluating question answering models. In: Proceedings of the 3rd Workshop on Machine Reading for Question Answering, pp. 149–157 (2021)

    Google Scholar 

  16. Wang, A., Singh, A., Michael, J., et al.: Glue: A multi-task benchmark and analysis platform for natural language understanding. In: Proceedings of the 7th International Conference on Learning Representations (2019)

    Google Scholar 

  17. Wang, R., Ling, Z., Hu, Y.: Knowledge base question answering with attentive pooling for question representation. IEEE Access 7, 46773–46784 (2019)

    Article  Google Scholar 

  18. Yan, H., Gui, T., Dai, J., et al.: A unified generative framework for various NER subtasks. In: Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics, pp. 5808–5822 (2021)

    Google Scholar 

  19. Zhang, X., Zong, B., Cheng, W., et al.: Unsupervised concept representation learning for length-varying text similarity. In: Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 5611–5620 (2021)

    Google Scholar 

  20. Zhu, W.: Autorc: improving BERT based relation classification models via architecture search. In: Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing: Student Research Workshop, pp. 33–43 (2021)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Xirong Xu .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Wang, Z., Xu, X., Li, X., Song, X., Wei, X., Huang, D. (2022). SSMFRP: Semantic Similarity Model for Relation Prediction in KBQA Based on Pre-trained Models. In: Pimenidis, E., Angelov, P., Jayne, C., Papaleonidas, A., Aydin, M. (eds) Artificial Neural Networks and Machine Learning – ICANN 2022. ICANN 2022. Lecture Notes in Computer Science, vol 13530. Springer, Cham. https://doi.org/10.1007/978-3-031-15931-2_25

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-15931-2_25

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-15930-5

  • Online ISBN: 978-3-031-15931-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics