[Paper Review] Message Passing Query Embedding
This paper proposes Message Passing Query Embedding (MPQE), a graph neural network-based method that encodes complex knowledge graph queries as unified embeddings by treating queries as small graphs with entities and variables as nodes. MPQE achieves competitive performance on complex queries and generalizes effectively—even when trained only on link prediction—while learning unsupervised, type-structured entity representations without explicit supervision.
Recent works on representation learning for Knowledge Graphs have moved beyond the problem of link prediction, to answering queries of an arbitrary structure. Existing methods are based on ad-hoc mechanisms that require training with a diverse set of query structures. We propose a more general architecture that employs a graph neural network to encode a graph representation of the query, where nodes correspond to entities and variables. The generality of our method allows it to encode a more diverse set of query types in comparison to previous work. Our method shows competitive performance against previous models for complex queries, and in contrast with these models, it can answer complex queries when trained for link prediction only. We show that the model learns entity embeddings that capture the notion of entity type without explicit supervision.
Motivation & Objective
- To address the limitation of existing query embedding methods that require diverse query structures during training and suffer from high computational complexity.
- To develop a general-purpose query embedding framework that can handle arbitrary query structures using a unified message passing mechanism on query graphs.
- To investigate whether training solely on link prediction enables generalization to complex queries, challenging the assumption that complex query structures must be explicitly modeled during training.
- To evaluate whether the learned entity embeddings capture semantic type information in an unsupervised manner, improving interpretability and transferability.
- To explore the potential of MPQE as a foundation for unsupervised representation learning in knowledge graphs beyond query answering.
Proposed method
- Represents each query as a small graph where nodes are entities or variables, and edges are relations, forming a query graph structure.
- Assigns initial node features as pre-trained entity embeddings or learnable type embeddings for variables.
- Applies a Graph Neural Network (GNN) to perform message passing across the query graph, aggregating information from neighboring nodes.
- Uses an aggregation function (e.g., sum, max, or feed-forward network) to combine all messages into a single query embedding vector.
- Trains the model end-to-end using link prediction as the primary objective, enabling generalization to complex queries without explicit supervision on their structure.
- Employs cosine similarity between the query embedding and entity embeddings to rank candidate answers.
Experimental results
Research questions
- RQ1Can a query embedding model trained exclusively on single-hop link prediction generalize effectively to complex queries with chains and intersections?
- RQ2Does message passing on a query graph lead to more robust and generalizable query representations compared to ad-hoc or subgraph-based methods?
- RQ3Can the model learn structured, type-aware entity embeddings in an unsupervised manner, even without explicit type supervision?
- RQ4How does MPQE compare in performance and generalization to prior state-of-the-art query embedding models like GQE across diverse query types?
- RQ5To what extent does the architectural design of MPQE—based on GNNs and message passing—enable better transfer learning from simple to complex queries?
Key findings
- MPQE achieves competitive performance on complex query answering, with an AUC of 90.1 on the Bio dataset using MPQE-CMLP, outperforming GQE-Bilinear (90.8) and MPQE-TM (88.8) on the same benchmark.
- When trained only on link prediction, MPQE generalizes to complex queries with intersections and chains, achieving an AUC of 83.9 on the AM dataset (all queries), while GQE models fail and perform no better than random.
- MPQE learns a structured embedding space where entities cluster by type without explicit supervision, as visualized via T-SNE, indicating unsupervised type representation learning.
- The MPQE-CMLP variant achieves the highest AUC (90.1) and APR (90.2) on the Bio dataset, demonstrating the effectiveness of a learnable aggregation mechanism.
- MPQE-TM achieves 84.9% AUC on AIFB (ch) and 75.5% on all queries, showing consistent performance across datasets and query types.
- Qualitative analysis confirms that MPQE produces more coherent and type-structured entity embeddings than GQE, which show no clear clustering by type.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.