Integrating element correlation with prompt-based spatial relation extraction

Feng WANG, Sheng XU, Peifeng LI, Qiaoming ZHU

PDF(3418 KB)
PDF(3418 KB)
Front. Comput. Sci. ›› 2025, Vol. 19 ›› Issue (2) : 192308. DOI: 10.1007/s11704-023-3305-4
Artificial Intelligence
RESEARCH ARTICLE

Integrating element correlation with prompt-based spatial relation extraction

Author information +
History +

Abstract

Spatial relations in text refer to how a geographical entity is located in space in relation to a reference entity. Extracting spatial relations from text is a fundamental task in natural language understanding. Previous studies have only focused on generic fine-tuning methods with additional classifiers, ignoring the importance of the semantic correlation between different spatial elements and the large offset between the relation extraction task and the pre-trained models. To address the above two issues, we propose a spatial relation extraction model based on Dual-view Prompt and Element Correlation (DPEC). Specifically, we first reformulate spatial relation extraction as a mask language model with a Dual-view Prompt (i.e., Link Prompt and Confidence Prompt). Link Prompt can not only guide the model to incorporate more contextual information related to the spatial relation extraction task, but also better adapt to the original pre-training task of the language models. Meanwhile, Confidence Prompt can measure the confidence of candidate triplets in Link Prompt and work as a supplement to identify those easily confused examples in Link Prompt. Moreover, we incorporate the element correlation to measure the consistency between different spatial elements, which is an effective cue for identifying the rationality of spatial relations. Experimental results on the popular SpaceEval show that our DPEC significantly outperforms the SOTA baselines.

Graphical abstract

Keywords

spatial relation extraction / Dual-view Prompt / spatial element correlation / Link Prompt / Confidence Prompt

Cite this article

Download citation ▾
Feng WANG, Sheng XU, Peifeng LI, Qiaoming ZHU. Integrating element correlation with prompt-based spatial relation extraction. Front. Comput. Sci., 2025, 19(2): 192308 https://doi.org/10.1007/s11704-023-3305-4

Feng Wang received the BS degree from Shanxi University, China in 2021. He is now a MS student in the School of Computer Science and Technology at Soochow University, China. His research interest lies in information extraction

Sheng Xu received the MS degree from Soochow University, China in 2019. He is now a PhD student in the School of Computer Science and Technology at Soochow University, China. His research interest lies in discourse relation recognition and event relation extraction

Peifeng Li received his PhD degree in Computer Science from Soochow University, China in 2006. He has been a professor in the School of Computer Science and Technology at Soochow University, China since 2015. His research interests include Chinese computing, information extraction

Qiaoming Zhu received his PhD degree in Computer Science from Soochow University, China in 2006. He is now a professor in the School of Computer Science and Technology at Soochow University, China. His research interests include Chinese computing, discourse analysis

References

[1]
Zhang L, Wang R, Zhou J, Yu J, Ling Z, Xiong H. Joint intent detection and entity linking on spatial domain queries. In: Proceedings of Findings of Association for Computational Linguistics: EMNLP 2020. 2020, 4937−4947
[2]
Yang T Y, Lan A, Narasimhan K. Robust and interpretable grounding of spatial references with relation networks. In: Proceedings of Findings of the Association for Computational Linguistics: EMNLP 2020. 2020, 1908−1923
[3]
Song C, Lin Y, Guo S, Wan H. Spatial-temporal synchronous graph convolutional networks: a new framework for spatial-temporal network data forecasting. In: Proceedings of the 34th AAAI Conference on Artificial Intelligence. 2020, 914−921
[4]
Pustejovsky J, Kordjamshidi P, Moens M, Levine A, Dworman S, Yocum Z. SemEval-2015 task 8: SpaceEval. In: Proceedings of the 9th International Workshop on Semantic Evaluation. 2015, 884−894
[5]
Pustejovsky J, Moszkowicz J L, Verhagen M. Using ISO-space for annotating spatial information. In: Proceedings of International Conference on Spatial Information Theory. 2011
[6]
Devlin J, Chang M W, Lee K, Toutanova K. BERT: pre-training of deep bidirectional transformers for language understanding. In: Proceedings of 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1. 2019, 4171−4186
[7]
Brown T B, Mann B, Ryder N, Subbiah M, Kaplan J, , . Language models are few-shot learners. In: Proceedings of the 34th International Conference on Neural Information Processing Systems, 2020, 159
[8]
Ramrakhiyani N, Palshikar G, Varma V. A simple neural approach to spatial role labelling. In: Proceedings of the 41st European Conference on IR Research on Advances in Information Retrieval. 2019, 102−108
[9]
Shin H J, Park J Y, Yuk D B, Lee J S. BERT-based spatial information extraction. In: Proceedings of the 3rd International Workshop on Spatial Language Understanding. 2020, 10−17
[10]
Shin T, Razeghi Y, Logan IV R L, Wallace E, Singh S. AutoPrompt: eliciting knowledge from language models with automatically generated prompts. In: Proceedings of 2020 Conference on Empirical Methods in Natural Language Processing. 2020, 4222−4235
[11]
Schick T, Schütze H. It’s not just size that matters: small language models are also few-shot learners. In: Proceedings of 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. 2021, 2339−2352
[12]
Mani I, Doran C, Harris D, Hitzeman J, Quimby R, Richer J, Wellner B, Mardis S, Clancy S . SpatialML: annotation scheme, resources, and evaluation. Language Resources and Evaluation, 2010, 44( 3): 263–280
[13]
Kordjamshidi P, van Otterlo M, Moens M F . Spatial role labeling: towards extraction of spatial relations from natural language. ACM Transactions on Speech and Language Processing, 2011, 8( 3): 4
[14]
Kordjamshidi P, Bethard S, Moens M F. SemEval-2012 task 3: spatial role labeling. In: Proceedings of the 1st Joint Conference on Lexical and Computational Semantics – Volume 1: Proceedings of the Main Conference and the Shared Task, and Volume 2: Proceedings of the 6th International Workshop on Semantic Evaluation. 2012, 365−373
[15]
Kolomiyets O, Kordjamshidi P, Moens M F, Bethard S. Semeval-2013 task 3: spatial role labeling. In: Proceedings of the 2nd Joint Conference on Lexical and Computational Semantics (*SEM), Volume 2: Proceedings of the 7th International Workshop on Semantic Evaluation. 2013, 255−262
[16]
Nichols E, Botros F. SpRL-CWW: spatial relation classification with independent multi-class models. In: Proceedings of the 9th International Workshop on Semantic Evaluation. 2015, 895−901
[17]
Pennington J, Socher R, Manning C. GloVe: global vectors for word representation. In: Proceedings of 2014 Conference on Empirical Methods in Natural Language Processing. 2014, 1532−1543
[18]
D’Souza J, Ng V. Sieve-based spatial relation extraction with expanding parse trees. In: Proceedings of 2015 Conference on Empirical Methods in Natural Language Processing. 2015, 758−768
[19]
Salaberri H, Arregi O, Zapirain B. IXAGroupEHUSpaceEval: (X-space) a WordNet-based approach towards the automatic recognition of spatial information following the ISO-space annotation scheme. In: Proceedings of the 9th International Workshop on Semantic Evaluation. 2015, 856−861
[20]
Rahgooy T, Manzoor U, Kordjamshidi P. Visually guided spatial relation extraction from text. In: Proceedings of 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 2. 2018, 788−794
[21]
Qiu Q, Xie Z, Ma K, Chen Z, Tao L . Spatially oriented convolutional neural network for spatial relation extraction from natural language texts. Transactions in GIS, 2022, 26( 2): 839–866
[22]
Blukis V, Paxton C, Fox D, Garg A, Artzi Y. A persistent spatial semantic representation for high-level natural language instruction execution. In: Proceedings of the 5th Conference on Robot Learning. 2022, 706−717
[23]
Wu S, He Y. Enriching pre-trained language model with entity information for relation classification. In: Proceedings of the 28th ACM International Conference on Information and Knowledge Management. 2019, 2361−2364
[24]
Wang F, Li P, Zhu Q. A hybrid model of classification and generation for spatial relation extraction. In: Proceedings of the 29th International Conference on Computational Linguistics. 2022, 1915−1924
[25]
Chia Y K, Bing L, Poria S, Si L. RelationPrompt: leveraging prompts to generate synthetic data for zero-shot relation triplet extraction. In: Proceedings of Findings of Association for Computational Linguistics: ACL 2022. 2022, 45−57
[26]
Han X, Zhao W, Ding N, Liu Z, Sun M . PTR: prompt tuning with rules for text classification. AI Open, 2022, 3: 182–192

Acknowledgements

The authors would like to thank the anonymous reviewers for their comments on this paper. This work was supported by the National Natural Science Foundation of China (Grant Nos. 62276177 and 62376181).

Competing interests

The authors declare that they have no competing interests or financial conflicts to disclose.

RIGHTS & PERMISSIONS

2025 Higher Education Press
AI Summary AI Mindmap
PDF(3418 KB)

Accesses

Citations

Detail

Sections
Recommended

/