mlsanityData to 7 Oct 2026

Pathformer: Recursive Path Query Encoding for Complex Logical Query Answering

arXiv 2406.14880 ↗First posted 21 Jun 2024cs.LG cs.LOcited by 1

Not on the map. Why?

Abstract (arXiv)

Complex Logical Query Answering (CLQA) over incomplete knowledge graphs is a challenging task. Recently, Query Embedding (QE) methods are proposed to solve CLQA by performing multi-hop logical reasoning. However, most of them only consider historical query context information while ignoring future information, which leads to their failure to capture the complex dependencies behind the elements of a query. In recent years, the transformer architecture has shown a strong ability to model long-range dependencies between words. The bidirectional attention mechanism proposed by the transformer can solve the limitation of these QE methods regarding query context. Still, as a sequence model, it is difficult for the transformer to model complex logical queries with branch structure computation graphs directly. To this end, we propose a neural one-point embedding method called Pathformer based on the tree-like computation graph, i.e., query computation tree. Specifically, Pathformer decomposes the query computation tree into path query sequences by branches and then uses the transformer encoder to recursively encode these path query sequences to obtain the final query embedding. This allows Pathformer to fully utilize future context information to explicitly model the complex interactions between various parts of the path query. Experimental results show that Pathformer outperforms existing competitive neural QE methods, and we found that Pathformer has the potential to be applied to non-one-point embedding space.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 37 of its 53 references that are in the map. First posted on arXiv 21 Jun 2024.

Builds on

37 of 53 references.

References · 37

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
  4. 2017Deep Setscited by 1,394
  5. 2018Self-Attention with Relative Position Representationscited by 1,112
  6. 2016Complex Embeddings for Simple Link Predictioncited by 897
  7. 2019RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Spacecited by 893
  8. 2019KEPLER: A Unified Model for Knowledge Embedding and Pre-trained Language Representationcited by 356
  9. 2021Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Predictioncited by 273
  10. 2017DeepPath: A Reinforcement Learning Method for Knowledge Graph Reasoningcited by 265
  11. 2019DRUM: End-To-End Differentiable Rule Mining On Knowledge Graphscited by 173
  12. 2020Query2box: Reasoning over Knowledge Graphs in Vector Space using Box Embeddingscited by 169
25 more
  1. 2023Graph Inductive Biases in Transformers without Message Passingcited by 150
  2. 2020Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphscited by 128
  3. 2018Embedding Logical Queries on Knowledge Graphscited by 120
  4. 2020Complex Query Answering with Neural Link Predictorscited by 98
  5. 2021Knowledge Graph Reasoning with Relational Digraphcited by 91
  6. 2021ConE: Cone Embeddings for Multi-Hop Reasoning over Knowledge Graphscited by 78
  7. 2022Sequence-to-Sequence Knowledge Graph Completion and Question Answeringcited by 75
  8. 2022Knowledge Graph Contrastive Learning for Recommendationcited by 69
  9. 2019Iteratively Learning Embeddings and Rules for Knowledge Graph Reasoningcited by 63
  10. 2022Neural-Symbolic Models for Logical Queries on Knowledge Graphscited by 60
  11. 2015Traversing Knowledge Graphs in Vector Spacecited by 51
  12. 2023Neural Graph Reasoning: Complex Logical Query Answering Meets Graph Databasescited by 35
  13. 2015Compositional Vector Space Models for Knowledge Base Completioncited by 33
  14. 2021Meta-Knowledge Transfer for Inductive Knowledge Graph Embeddingcited by 31
  15. 2020Answering Complex Queries in Knowledge Graphs with Bidirectional Sequence Encoderscited by 28
  16. 2022Answering Complex Logical Queries on Knowledge Graphs via Query Computation Tree Optimizationcited by 28
  17. 2023Logical Message Passing Networks with One-hop Inference on Atomic Formulascited by 28
  18. 2022Query2Particles: Knowledge Graph Reasoning with Particle Embeddingscited by 24
  19. 2022GammaE: Gamma Embeddings for Logical Queries on Knowledge Graphscited by 21
  20. 2022Rethinking Graph Convolutional Networks in Knowledge Graph Completioncited by 20
  21. 2022Neural-Symbolic Entangled Framework for Complex Query Answeringcited by 18
  22. 2021Logic Embeddings for Complex Query Answeringcited by 17
  23. 2022Neural Methods for Logical Reasoning Over Knowledge Graphscited by 17
  24. 2023Adapting Neural Link Predictors for Data-Efficient Complex Query Answeringcited by 13
  25. 2024Conditional Logical Message Passing Transformer for Complex Query Answeringcited by 5

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2022NQE: N-ary Query Embedding for Complex Query Answering over Hyper-Relational Knowledge Graphs
  2. 2023Query Structure Modeling for Inductive Logical Reasoning Over Knowledge Graphs
  3. 2025Encoder-Free Knowledge-Graph Reasoning with LLMs via Hyperdimensional Path Retrieval
  4. 2024Improving Multi-hop Logical Reasoning in Knowledge Graphs with Context-Aware Query Representation Learning
  5. 2022Inductive Logical Query Answering in Knowledge Graphs
  6. 2025KGCompiler: Deep Learning Compilation Optimization for Knowledge Graph Complex Logical Query Answering
  7. 2026ROG: Retrieval-Augmented LLM Reasoning for Complex First-Order Queries over Knowledge Graphs
  8. 2022Mask and Reason: Pre-Training Knowledge Graph Transformers for Complex Logical Queries