Proceedings

Progressive Prefix-Memory Tuning for Complex Logical Query Answering on Knowledge Graphs

Download BibTeX Cite

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

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

Abstract

Conducting complex logical queries over knowledge graphs remains a significant challenge. Recent research has successfully leveraged Pre-trained Language Models (PLMs) to tackle Knowledge Graph Complex Query Answering (KGCQA) tasks, which is attributed to PLMs' ability to comprehend logical semantics of queries through context learning. However, existing PLM-based KGCQA methods usually overlook the harm of disordered syntax or fragmented contexts within a serialized query, posing the problem of “impossible language” to limit PLMs in grasping the logical semantics. To address this problem, we propose a Progressive Prefix-Memory Tuning (PPMT) framework for KGCQA tasks, which effectively rectifies erroneous segments in serialized queries to assist PLMs in query answering. First, we propose a prefix-memory rectification mechanism embedded in a PLM module. This mechanism assigns rectification parameters in memory stores to polish the language segments of entities, relations, and queries through specific prefixes. To further capture the logical semantics in queries, we design a progressive fine-tuning strategy, which optimizes our model through a conditional gradient update process guided by knowledge translation constraints. Extensive experiments on widely used KGCQA benchmarks demonstrate the significant superiority of PPMT in terms of HR@3 and MRR. Our codes are available at https://github.com/lazyloafer/PPMT.

  1. [Arakelyan et al., 2021] Erik Arakelyan, Daniel Daza, Pasquale Minervini, and Michael Cochez. Complex query answering with neural link predictors. In ICLR. OpenReview.net, 2021.
  2. [Bai et al., 2023] Yushi Bai, Xin Lv, Juanzi Li, and Lei Hou. Answering complex logical queries on knowledge graphs via query computation tree optimization. In ICML, volume 202, pages 1472-1491. PMLR, 2023.
  3. [Bai et al., 2024] Jiaxin Bai, Xin Liu, Weiqi Wang, Chen Luo, and Yangqiu Song. A foundation model for zero-shot logical query reasoning. In NeurIPS, volume 36, pages 30534-30553.
  4. Curran Associates, Inc., 2024.
  5. [Bollacker et al., 2008] Kurt D. Bollacker, Colin Evans, Praveen K. Paritosh, Tim Sturge, and Jamie Taylor. Free- base: A collaboratively created graph database for struc- turing human knowledge. In Jason Tsong-Li Wang, editor, ACM SIGMOD, pages 1247-1250. ACM, 2008.
  6. [Bordes et al., 2013] Antoine Bordes, Nicolas Usunier, Alberto García-Durán, Jason Weston, and Oksana Yakhnenko. Translating embeddings for modeling multi-relational data. In NeurIPS, pages 2787-2795, 2013.
  7. [Carlson et al., 2010] Andrew Carlson, Justin Betteridge, Bryan Kisiel, Burr Settles, Estevam R. Hruschka Jr., and Tom M. Mitchell. Toward an architecture for never-ending language learning. In AAAI, pages 1306-1313. AAAI Press, 2010.
  8. [Chen et al., 2022] Xuelu Chen, Ziniu Hu, and Yizhou Sun. Fuzzy logic based logical query answering on knowledge graphs. In AAAI, pages 3939-3948. AAAI Press, 2022.
  9. [Choudhary et al., 2021] Nurendra Choudhary, Nikhil Rao, Sumeet Katariya, Karthik Subbian, and Chandan K. Reddy. Self-supervised hyperboloid representations from logical queries over knowledge graphs. In WWW, pages 1373-1384. ACM / IW3C2, 2021.
  10. [Demeester et al., 2016] Thomas Demeester, Tim Rocktäschel, and Sebastian Riedel. Lifted rule injection for relation embeddings. In EMNLP, pages 1389-1399. The Association for Computational Linguistics, 2016.
  11. [Devlin et al., 2019] Jacob Devlin, Ming-Wei Chang, Ken- ton Lee, and Kristina Toutanova. BERT: pre-training of deep bidirectional transformers for language understand- ing. In NAACL, pages 4171-4186. Association for Com- putational Linguistics, 2019.
  12. [Dong et al., 2014] Xin Dong, Evgeniy Gabrilovich, Geremy Heitz, Wilko Horn, Ni Lao, Kevin Murphy, Thomas Strohmann, Shaohua Sun, and Wei Zhang. Knowledge vault: A web-scale approach to probabilistic knowledge fusion. In ACM SIGKDD, pages 601-610. ACM, 2014.
  13. [Hamilton et al., 2018] William L. Hamilton, Payal Bajaj, Marinka Zitnik, Dan Jurafsky, and Jure Leskovec. Em- bedding logical queries on knowledge graphs. In NeurIPS, pages 2030-2041, 2018.
  14. [Hu et al., 2022] Zhiwei Hu, Víctor Gutiérrez-Basulto, Zhil- iang Xiang, Xiaoli Li, Ru Li, and Jeff Z. Pan. Type- aware embeddings for multi-hop reasoning over knowl- edge graphs. In IJCAI, pages 3078-3084. ijcai.org, 2022.
  15. [Huang et al., 2022] Zijian Huang, Meng-Fen Chiang, and Wang-Chien Lee. Line: Logical query reasoning over hier- archical knowledge graphs. In ACM SIGKDD, pages 615- 625. ACM, 2022.
  16. [Ji et al., 2022] Shaoxiong Ji, Shirui Pan, Erik Cambria, Pekka Marttinen, and Philip S. Yu. A survey on knowl- edge graphs: Representation, acquisition, and applica- tions. IEEE TNNLS, 33(2):494-514, 2022.
  17. [Jin et al., 2024] Can Jin, Tong Che, Hongwu Peng, Yiyuan Li, Dimitris N. Metaxas, and Marco Pavone. Learning from teaching regularization: Generalizable correlations should be easy to imitate. In NeurIPS, pages 966-994.
  18. Curran Associates, Inc., 2024.
  19. [Kallini et al., 2024] Julie Kallini, Isabel Papadimitriou, Richard Futrell, Kyle Mahowald, and Christopher Potts. Mission: Impossible language models. In ACL, pages 14691-14714. Association for Computational Linguistics, 2024.
  20. [Kotnis et al., 2021] Bhushan Kotnis, Carolin Lawrence, and Mathias Niepert. Answering complex queries in knowl- edge graphs with bidirectional sequence encoders. In AAAI, pages 4968-4977. AAAI Press, 2021.
  21. [Kumar et al., 2020] Ankit Kumar, Piyush Makhija, and Anuj Gupta. Noisy text data: Achilles' heel of BERT. In W-NUT@EMNLP, pages 16-21. Association for Compu- tational Linguistics, 2020.
  22. [Li and Liang, 2021] Xiang Lisa Li and Percy Liang. Prefix- tuning: Optimizing continuous prompts for generation. In ACL, pages 4582-4597. Association for Computational Linguistics, 2021.
  23. [Liu et al., 2021] Xiao Liu, Yanan Zheng, Zhengxiao Du, Ming Ding, Yujie Qian, Zhilin Yang, and Jie Tang. GPT understands, too. CoRR, abs/2103.10385, 2021.
  24. [Liu et al., 2022] Xiao Liu, Shiyu Zhao, Kai Su, Yukuo Cen, Jiezhong Qiu, Mengdi Zhang, Wei Wu, Yuxiao Dong, and Jie Tang. Mask and reason: Pre-training knowledge graph transformers for complex logical queries. In ACM SIGKDD, pages 1120-1130. ACM, 2022.
  25. [Luo et al., 2023] Haoran Luo, Haihong E, Yuhao Yang, Gengxian Zhou, Yikai Guo, Tianyu Yao, Zichen Tang, Xueyuan Lin, and Kaiyang Wan. NQE: n-ary query embedding for complex query answering over hyper- relational knowledge graphs. In AAAI, pages 4543-4551. AAAI Press, 2023.
  26. [Luo et al., 2024] Linhao Luo, Yuan-Fang Li, Gholamreza Haffari, and Shirui Pan. Reasoning on graphs: Faithful and interpretable large language model reasoning. In ICLR. OpenReview.net, 2024.
  27. [Mokhtari et al., 2020] Aryan Mokhtari, Hamed Hassani, and Amin Karbasi. Stochastic conditional gradient meth- ods: From convex minimization to submodular maximiza- tion. J. Mach. Learn. Res., 21:105:1-105:49, 2020.
  28. [Ren and Leskovec, 2020] Hongyu Ren and Jure Leskovec. Beta embeddings for multi-hop logical reasoning in knowledge graphs. In NeurIPS, pages 19716-19726, 2020.
  29. [Ren et al., 2020] Hongyu Ren, Weihua Hu, and Jure Leskovec. Query2box: Reasoning over knowledge graphs in vector space using box embeddings. In ICLR. OpenRe- view.net, 2020.
  30. [Ren et al., 2021] Hongyu Ren, Hanjun Dai, Bo Dai, Xinyun Chen, Michihiro Yasunaga, Haitian Sun, Dale Schuur- mans, Jure Leskovec, and Denny Zhou. LEGO: latent execution-guided reasoning for multi-hop question an- swering on knowledge graphs. In ICML, volume 139, pages 8959-8970. PMLR, 2021.
  31. [Rocktäschel et al., 2015] Tim Rocktäschel, Sameer Singh, and Sebastian Riedel. Injecting logical background knowl- edge into embeddings for relation extraction. In NAACL, pages 1119-1129. The Association for Computational Linguistics, 2015.
  32. [Sharou et al., 2021] Khetam Al Sharou, Zhenhao Li, and Lucia Specia. Towards a better understanding of noise in natural language processing. In RANLP, pages 53-62. IN- COMA Ltd., 2021.
  33. [Song et al., 2023] Jiechong Song, Chong Mou, Shiqi Wang, Siwei Ma, and Jian Zhang. Optimization-inspired cross- attention transformer for compressive sensing. In CVPR, pages 6174-6184. IEEE, 2023.
  34. [Sun et al., 2019] Zhiqing Sun, Zhi-Hong Deng, Jian-Yun Nie, and Jian Tang. Rotate: Knowledge graph embedding by relational rotation in complex space. In ICLR. Open- Review.net, 2019.
  35. [Trouillon et al., 2016] Théo Trouillon, Johannes Welbl, Se- bastian Riedel, Éric Gaussier, and Guillaume Bouchard. Complex embeddings for simple link prediction. In ICML, volume 48 of JMLR Workshop and Conference Proceed- ings, pages 2071-2080. JMLR.org, 2016.
  36. [Wang et al., 2023a] Dingmin Wang, Yeyuan Chen, and Bernardo Cuenca Grau. Efficient embeddings of logical variables for query answering over incomplete knowledge graphs. In AAAI, pages 4652-4659. AAAI Press, 2023.
  37. [Wang et al., 2023b] Siyuan Wang, Zhongyu Wei, Meng Han, Zhihao Fan, Haijun Shan, Qi Zhang, and Xuanjing Huang. Query structure modeling for inductive logical rea- soning over knowledge graphs. In ACL, pages 4706-4718. Association for Computational Linguistics, 2023.
  38. [Wang et al., 2023c] Zihao Wang, Yangqiu Song, Ginny Y. Wong, and Simon See. Logical message passing networks with one-hop inference on atomic formulas. In ICLR. OpenReview.net, 2023.
  39. [Wang et al., 2024a] Jiapu Wang, Zheng Cui, Boyue Wang, Shirui Pan, Junbin Gao, Baocai Yin, and Wen Gao. IME: integrating multi-curvature shared and specific embedding for temporal knowledge graph completion. In ACM WWW, pages 1954-1962. ACM, 2024.
  40. [Wang et al., 2024b] Jiapu Wang, Kai Sun, Linhao Luo, Wei Wei, Yongli Hu, Alan Wee-Chung Liew, Shirui Pan, and Baocai Yin. Large language models-guided dynamic adaptation for temporal knowledge graph reasoning. In NeurIPS, pages 8384-8410.
  41. Curran Associates, Inc., 2024.
  42. [Wang et al., 2024c] Jiapu Wang, Boyue Wang, Junbin Gao, Shirui Pan, Tengfei Liu, Baocai Yin, and Wen Gao. MADE: multicurvature adaptive embedding for temporal knowledge graph completion. IEEE TCYB, 54(10):5818- 5831, 2024.
  43. [Xue et al., 2022] Dizhan Xue, Shengsheng Qian, Quan Fang, and Changsheng Xu. MMT: image-guided story ending generation with multimodal memory transformer. In ACM MM, pages 750-758. ACM, 2022.
  44. [Yang et al., 2022] Dong Yang, Peijun Qing, Yang Li, Hao- nan Lu, and Xiaodong Lin. GammaE: Gamma embed- dings for logical queries on knowledge graphs. In EMNLP, pages 745-760. Association for Computational Linguis- tics, 2022.
  45. [Zhang et al., 2021] Zhanqiu Zhang, Jie Wang, Jiajun Chen, Shuiwang Ji, and Feng Wu. Cone: Cone embeddings for multi-hop reasoning over knowledge graphs. In NeurIPS, pages 19172-19183, 2021.
  46. [Zhu et al., 2022] Zhaocheng Zhu, Mikhail Galkin, Zuobai Zhang, and Jian Tang. Neural-symbolic models for logical queries on knowledge graphs. In ICML, volume 162, pages 27454-27478. PMLR, 2022.
  47. [Zhuo et al., 2024a] Xingrui Zhuo, Shengsheng Qian, Jun Hu, Fuxin Dai, Kangyi Lin, and Gongqing Wu. Multi-hop multi-view memory transformer for session-based recom- mendation. ACM TOIS, 42(6):144:1-144:28, 2024.
  48. [Zhuo et al., 2024b] Xingrui Zhuo, Gongqing Wu, Zan Zhang, and Xindong Wu. Geometric-contextual mutual infomax path aggregation for relation reasoning on knowl- edge graph. IEEE TKDE, 36(7):3076-3090, 2024.
  49. [Zhuo et al., 2025] Xingrui Zhuo, Jiapu Wang, Gongqing Wu, Shirui Pan, and Xindong Wu. Effective instruction parsing plugin for complex logical query answering on knowledge graphs. In ACM WWW, pages 4780-4792. ACM, 2025.

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

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