Papers
Topics
Authors
Recent
Assistant
AI Research Assistant
Well-researched responses based on relevant abstracts and paper content.
Custom Instructions Pro
Preferences or requirements that you'd like Emergent Mind to consider when generating responses.
Gemini 2.5 Flash
Gemini 2.5 Flash 150 tok/s
Gemini 2.5 Pro 46 tok/s Pro
GPT-5 Medium 26 tok/s Pro
GPT-5 High 28 tok/s Pro
GPT-4o 80 tok/s Pro
Kimi K2 211 tok/s Pro
GPT OSS 120B 435 tok/s Pro
Claude Sonnet 4.5 35 tok/s Pro
2000 character limit reached

Effective Instruction Parsing Plugin for Complex Logical Query Answering on Knowledge Graphs (2410.20321v1)

Published 27 Oct 2024 in cs.AI

Abstract: Knowledge Graph Query Embedding (KGQE) aims to embed First-Order Logic (FOL) queries in a low-dimensional KG space for complex reasoning over incomplete KGs. To enhance the generalization of KGQE models, recent studies integrate various external information (such as entity types and relation context) to better capture the logical semantics of FOL queries. The whole process is commonly referred to as Query Pattern Learning (QPL). However, current QPL methods typically suffer from the pattern-entity alignment bias problem, leading to the learned defective query patterns limiting KGQE models' performance. To address this problem, we propose an effective Query Instruction Parsing Plugin (QIPP) that leverages the context awareness of Pre-trained LLMs (PLMs) to capture latent query patterns from code-like query instructions. Unlike the external information introduced by previous QPL methods, we first propose code-like instructions to express FOL queries in an alternative format. This format utilizes textual variables and nested tuples to convey the logical semantics within FOL queries, serving as raw materials for a PLM-based instruction encoder to obtain complete query patterns. Building on this, we design a query-guided instruction decoder to adapt query patterns to KGQE models. To further enhance QIPP's effectiveness across various KGQE models, we propose a query pattern injection mechanism based on compressed optimization boundaries and an adaptive normalization component, allowing KGQE models to utilize query patterns more efficiently. Extensive experiments demonstrate that our plug-and-play method improves the performance of eight basic KGQE models and outperforms two state-of-the-art QPL methods.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (45)
  1. Foundations of Databases. Addison-Wesley.
  2. Query Embedding on Hyper-Relational Knowledge Graphs. In ICLR. OpenReview.net.
  3. Structural Language Models of Code. In ICML (Proceedings of Machine Learning Research, Vol. 119). PMLR, 245–256.
  4. Neural Methods for Logical Reasoning over Knowledge Graphs. In ICLR. OpenReview.net.
  5. Complex Query Answering with Neural Link Predictors. In ICLR. OpenReview.net.
  6. Complex Query Answering on Eventuality Knowledge Graph with Implicit Logical Constraints. In NeurIPS, Vol. 36. Curran Associates, Inc., 30534–30553.
  7. Answering Complex Logical Queries on Knowledge Graphs via Query Computation Tree Optimization. In ICML (Proceedings of Machine Learning Research, Vol. 202). PMLR, 1472–1491.
  8. Occam’s Razor. Inf. Process. Lett. 24, 6 (1987), 377–380.
  9. Translating Embeddings for Modeling Multi-relational Data. In NeurIPS. 2787–2795.
  10. Fuzzy Logic Based Logical Query Answering on Knowledge Graphs. In AAAI. AAAI Press, 3939–3948.
  11. Self-Supervised Hyperboloid Representations from Logical Queries over Knowledge Graphs. In ACM WWW. ACM / IW3C2, 1373–1384.
  12. Go for a Walk and Arrive at the Answer: Reasoning Over Paths in Knowledge Bases using Reinforcement Learning. In ICLR. OpenReview.net.
  13. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In NAACL-HLT. Association for Computational Linguistics, 4171–4186.
  14. Enhancing Complex Question Answering over Knowledge Graphs through Evidence Pattern Retrieval. In ACM WWW. ACM, 2106–2115.
  15. Hierarchical Matching Network for Heterogeneous Entity Resolution. In IJCAI. ijcai.org, 3665–3671.
  16. Shuyue Guan and Murray H. Loew. 2020. Analysis of Generalizability of Deep Neural Networks Based on the Complexity of Decision Boundary. In IEEE ICMLA. IEEE, 101–106.
  17. Petr Hájek. 1998. Metamathematics of Fuzzy Logic. Trends in Logic, Vol. 4. Kluwer.
  18. Embedding Logical Queries on Knowledge Graphs. In NeurIPS. 2030–2041.
  19. Type-aware Embeddings for Multi-Hop Reasoning over Knowledge Graphs. In IJCAI. ijcai.org, 3078–3084.
  20. LinE: Logical Query Reasoning over Hierarchical Knowledge Graphs. In ACM SIGKDD. ACM, 615–625.
  21. What Does BERT Learn about the Structure of Language?. In ACL. Association for Computational Linguistics, 3651–3657.
  22. Improving Multi-hop Logical Reasoning in Knowledge Graphs with Context-Aware Query Representation Learning. In ACL Findings. Association for Computational Linguistics, 15978–15991.
  23. Triangular Norms. Trends in Logic, Vol. 8. Springer.
  24. George J. Klir and Bo Yuan. 1995. Fuzzy sets and fuzzy logic - theory and applications. Prentice Hall.
  25. Answering Complex Queries in Knowledge Graphs with Bidirectional Sequence Encoders. In AAAI. AAAI Press, 4968–4977.
  26. Mask and Reason: Pre-Training Knowledge Graph Transformers for Complex Logical Queries. In ACM SIGKDD. ACM, 1120–1130.
  27. Neural-based Mixture Probabilistic Query Embedding for Answering FOL queries on Knowledge Graphs. In EMNLP. Association for Computational Linguistics, 3001–3013.
  28. NQE: N-ary Query Embedding for Complex Query Answering over Hyper-Relational Knowledge Graphs. In AAAI. AAAI Press, 4543–4551.
  29. Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning. In ICLR. OpenReview.net.
  30. LEGO: Latent Execution-Guided Reasoning for Multi-Hop Question Answering on Knowledge Graphs. In ICML (Proceedings of Machine Learning Research, Vol. 139). PMLR, 8959–8970.
  31. Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings. In ICLR. OpenReview.net.
  32. Hongyu Ren and Jure Leskovec. 2020. Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphs. In NeurIPS. 19716–19726.
  33. Kristina Toutanova and Danqi Chen. 2015. Observed versus latent features for knowledge base and text inference. In CVSC. Association for Computational Linguistics, 57–66.
  34. Complex Embeddings for Simple Link Prediction. In ICML (JMLR Workshop and Conference Proceedings, Vol. 48). JMLR.org, 2071–2080.
  35. Guojia Wan and Bo Du. 2021. GaussianPath: A Bayesian Multi-Hop Reasoning Framework for Knowledge Graph Reasoning. In AAAI. AAAI Press, 4393–4401.
  36. Efficient Embeddings of Logical Variables for Query Answering over Incomplete Knowledge Graphs. In AAAI. AAAI Press, 4652–4659.
  37. InstructGraph: Boosting Large Language Models via Graph-centric Instruction Tuning and Preference Alignment. In ACL Findings. Association for Computational Linguistics, 13492–13510.
  38. Query Structure Modeling for Inductive Logical Reasoning Over Knowledge Graphs. In ACL. Association for Computational Linguistics, 4706–4718.
  39. Query2GMM: Learning Representation with Gaussian Mixture Model for Reasoning over Knowledge Graphs. In ACM WWW. ACM, 2149–2158.
  40. DeepPath: A Reinforcement Learning Method for Knowledge Graph Reasoning. In EMNLP. Association for Computational Linguistics, 564–573.
  41. Query2Triple: Unified Query Encoding for Answering Diverse Complex Queries over Knowledge Graphs. In EMNLP Findings. Association for Computational Linguistics, 11369–11382.
  42. GammaE: Gamma Embeddings for Logical Queries on Knowledge Graphs. In EMNLP. Association for Computational Linguistics, 745–760.
  43. Mohammad Yani and Adila Alfa Krisnadhi. 2021. Challenges, Techniques, and Trends of Simple Knowledge Graph Question Answering: A Survey. Inf. 12, 7 (2021), 271.
  44. ConE: Cone Embeddings for Multi-Hop Reasoning over Knowledge Graphs. In NeurIPS. 19172–19183.
  45. Neural-Symbolic Models for Logical Queries on Knowledge Graphs. In ICML (Proceedings of Machine Learning Research, Vol. 162). PMLR, 27454–27478.

Summary

We haven't generated a summary for this paper yet.

Dice Question Streamline Icon: https://streamlinehq.com

Open Questions

We haven't generated a list of open questions mentioned in this paper yet.

Lightbulb Streamline Icon: https://streamlinehq.com

Continue Learning

We haven't generated follow-up questions for this paper yet.

List To Do Tasks Checklist Streamline Icon: https://streamlinehq.com

Collections

Sign up for free to add this paper to one or more collections.