A Foundation Model for Zero-shot Logical Query Reasoning (2404.07198v2)
Abstract: Complex logical query answering (CLQA) in knowledge graphs (KGs) goes beyond simple KG completion and aims at answering compositional queries comprised of multiple projections and logical operations. Existing CLQA methods that learn parameters bound to certain entity or relation vocabularies can only be applied to the graph they are trained on which requires substantial training time before being deployed on a new graph. Here we present UltraQuery, the first foundation model for inductive reasoning that can zero-shot answer logical queries on any KG. The core idea of UltraQuery is to derive both projections and logical operations as vocabulary-independent functions which generalize to new entities and relations in any KG. With the projection operation initialized from a pre-trained inductive KG reasoning model, UltraQuery can solve CLQA on any KG after finetuning on a single dataset. Experimenting on 23 datasets, UltraQuery in the zero-shot inference mode shows competitive or better query answering performance than best available baselines and sets a new state of the art on 15 of them.
- Query embedding on hyper-relational knowledge graphs. In International Conference on Learning Representations, 2022.
- Neural methods for logical reasoning over knowledge graphs. In International Conference on Learning Representations, 2022.
- Complex query answering with neural link predictors. In International Conference on Learning Representations, 2021.
- Adapting neural link predictors for complex query answering. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=1G7CBp8o7L.
- Answering complex logical queries on knowledge graphs via query computation tree optimization. In Proceedings of the 40th International Conference on Machine Learning, pp. 1472–1491, 2023. URL https://proceedings.mlr.press/v202/bai23b.html.
- Weisfeiler and leman go relational. In The First Learning on Graphs Conference, 2022. URL https://openreview.net/forum?id=wY_IYhh6pqj.
- A neuro-symbolic framework for answering conjunctive queries. arXiv preprint arXiv:2310.04598, 2023.
- Generalizing to unseen elements: A survey on knowledge extrapolation for knowledge graphs. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, IJCAI-23, pp. 6574–6582, 2023.
- Message passing query embedding. Proceedings of the ICML 2020 Workshop on Graph Representation Learning and Beyond, 2020.
- LitCQD: Multi-hop reasoning in incomplete knowledge graphs with numeric literals. In Joint European Conference on Machine Learning and Knowledge Discovery in Databases, pp. 617–633, 2023.
- Nodepiece: Compositional and parameter-efficient representations of large knowledge graphs. In International Conference on Learning Representations, 2022a. URL https://openreview.net/forum?id=xMJWUKJnFSw.
- Inductive logical query answering in knowledge graphs. In Advances in Neural Information Processing Systems, 2022b.
- Towards foundation models for knowledge graph reasoning. arXiv preprint 2310.04562, 2023.
- Double equivariance for inductive link prediction for both new nodes and new relation types. In NeurIPS 2023 Workshop: New Frontiers in Graph Learning, 2023.
- Knowledge sheaves: A sheaf-theoretic framework for knowledge graph embedding. In Proceedings of The 26th International Conference on Artificial Intelligence and Statistics. PMLR, 2023. URL https://proceedings.mlr.press/v206/gebhart23a.html.
- Relational message passing for fully inductive knowledge graph completion. In 2023 IEEE 39th International Conference on Data Engineering (ICDE), pp. 1221–1233. IEEE, 2023.
- Embedding logical queries on knowledge graphs. In Advances in Neural Information Processing Systems, volume 31, 2018.
- A theory of link prediction via relational weisfeiler-leman on knowledge graphs. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=7hLlZNrkt5.
- Semi-supervised classification with graph convolutional networks. In International Conference on Learning Representations, 2017. URL https://openreview.net/forum?id=SJU4ayYgl.
- InGram: Inductive knowledge graph embedding via relation graphs. In Proceedings of the 40th International Conference on Machine Learning, pp. 18796–18809. PMLR, 2023. URL https://proceedings.mlr.press/v202/lee23c.html.
- TFLEX: Temporal feature-logic embedding framework for complex reasoning over temporal knowledge graph. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=oaGdsgB18L.
- Beta embeddings for multi-hop logical reasoning in knowledge graphs. In Advances in Neural Information Processing Systems, volume 33, 2020.
- Query2box: Reasoning over knowledge graphs in vector space using box embeddings. In International Conference on Learning Representations, 2020.
- Neural graph reasoning: Complex logical query answering meets graph databases. arXiv preprint arXiv:2303.14617, 2023.
- Faithful embeddings for knowledge base queries. In Advances in Neural Information Processing Systems, 2020.
- Inductive relation prediction by subgraph reasoning. In International Conference on Machine Learning, pp. 9448–9457. PMLR, 2020.
- Observed versus latent features for knowledge base and text inference. In Proceedings of the 3rd workshop on continuous vector space models and their compositionality, pp. 57–66, 2015.
- Complex embeddings for simple link prediction. In International conference on machine learning, pp. 2071–2080. PMLR, 2016.
- Analyzing differentiable fuzzy logic operators. Artificial Intelligence, 302, 2022. URL https://www.sciencedirect.com/science/article/pii/S0004370221001533.
- Composition-based multi-relational graph convolutional networks. In International Conference on Learning Representations, 2020. URL https://openreview.net/forum?id=BylA_C4tPr.
- Graph attention networks. In International Conference on Learning Representations, 2018.
- Logical message passing networks with one-hop inference on atomic formulas. In The Eleventh International Conference on Learning Representations, ICLR, 2023. URL https://openreview.net/forum?id=SoyOsp7i_l.
- EFOksubscriptEFO𝑘\text{EFO}_{k}EFO start_POSTSUBSCRIPT italic_k end_POSTSUBSCRIPT-cqa: Towards knowledge graph complex query answering beyond set operation. arXiv preprint arXiv:2307.13701, 2023a.
- On existential first order queries inference on knowledge graphs. arXiv preprint arXiv:2304.07063, 2023b.
- Labeling trick: A theory of using graph neural networks for multi-node representation learning. In Advances in Neural Information Processing Systems, volume 34, pp. 9061–9073, 2021a.
- Knowledge graph reasoning with relational digraph. In Proceedings of the ACM Web Conference 2022, pp. 912–924, 2022.
- Adaprop: Learning adaptive propagation for graph neural network based knowledge graph reasoning. In KDD, 2023.
- Cone: Cone embeddings for multi-hop reasoning over knowledge graphs. In Advances in Neural Information Processing Systems, 2021b.
- An ood multi-task perspective for link prediction with new relation types and nodes. arXiv preprint arXiv:2307.06046, 2023.
- Neural bellman-ford networks: A general graph neural network framework for link prediction. Advances in Neural Information Processing Systems, 34:29476–29490, 2021.
- Neural-symbolic models for logical queries on knowledge graphs. In International Conference on Machine Learning. PMLR, 2022.
- A*net: A scalable path-based reasoning approach for knowledge graphs. In Thirty-seventh Conference on Neural Information Processing Systems, 2023. URL https://openreview.net/forum?id=dAJrxQz1lk.