NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TransMS: Knowledge Graph Embedding for Complex Relations by Multidirectional Semantics

Shihui Yang, Jidong Tian, Honglun Zhang, Junchi Yan, Hao He, Yaohui Jin

Introduction

Knowledge Graphs (KGs), such as Freebase and WordNet, serve as foundational structures for representing world knowledge. However, these networks are often incomplete. Knowledge Graph Embedding (KGE) addresses this by mapping entities and relations into low-dimensional vector spaces to predict missing links.

A primary challenge in KGE is handling "complex relations," including 1-to-N, N-to-1, and N-to-N mappings. The seminal model TransE uses a simple translation principle ($head + relation \approx tail$), which fails in complex scenarios. For instance, in a 1-to-N relation like (USA, has_state, ?), TransE attempts to map multiple distinct state entities to the same point in space, leading to poor discriminative power. While subsequent models like TransH and TransR introduced projection matrices to mitigate this, they often incur high computational costs and maintain a unidirectional flow of semantics—primarily from the relation to the entities.

The TransMS Model

To overcome these limitations, we present TransMS (Multidirectional Semantics). This model introduces two core innovations that allow for a more nuanced representation of triplets:

  1. Multidirectional Semantic Transmission: Unlike traditional models, TransMS allows head and tail entities to mutually influence each other's representations through the relation. By employing a nonlinear $\tanh$ function and Hadamard products (element-wise multiplication), the model computes "semantic-aware" versions of the entities ($h_\perp$ and $t_\perp$). This ensures that the representation of an entity is contextualized by the specific relation and the counterpart entity in the triplet.
  2. Entity-to-Relation Feedback: TransMS recognizes that the entities involved should also shape the relation's representation. It introduces a "bias vector" for the relation ($r_\perp$) calculated from the interaction of the head and tail entities, scaled by a single learnable parameter $\alpha$.
The architecture of TransMS illustrating multidirectional semantic transmission between entities and relations.

Mathematically, the score function is defined as $f_r(h, t) = \|h_\perp + r_\perp - t_\perp\|$. Despite this increased expressiveness, TransMS remains highly efficient. It adds only one additional parameter ($\alpha$) per relation type compared to TransE, making it significantly more scalable than models relying on large projection matrices.

Experimental Evaluation

TransMS was evaluated on four standard benchmark datasets: WN18 (lexical relations), FB15K (general facts), and their more rigorous counterparts, WN18RR and FB15K-237, which eliminate inverse relation leaks. The model's performance was measured primarily using the Hit@10 metric (the probability that the correct entity appears in the top 10 predicted results).

Results and Discussion

TransMS demonstrates substantial improvements over state-of-the-art (SOTA) translation-based models, particularly in complex link prediction tasks.

Link prediction performance (Hit@10) across different relation types on benchmark datasets.

Key findings include:

  • Complex Relation Superiority: On the FB15K dataset, TransMS achieved massive performance gains in complex scenarios. Specifically, Hit@10 for N-to-1 relations improved by 27.1% and for 1-to-N relations by 24.8% compared to previous baselines.
  • General Performance: On WN18, the model reached a Hit@10 of 94.8%, outperforming nearly all translation-based predecessors.
  • Efficiency vs. Expressiveness: While many SOTA models achieve better results by significantly increasing parameter counts (e.g., TransR's use of $k_e \times k_r$ matrices), TransMS proves that multidirectional information flow is a more effective and efficient path to high performance.
  • Competitive with Deep Learning: TransMS performed competitively with complex convolutional neural network models like ConvE on the challenging FB15K-237 and WN18RR datasets, despite its much simpler architecture.

Conclusion

TransMS introduces a novel paradigm for KGE by enabling multidirectional semantic flow between entities and relations. By capturing intricate semantic dependencies through nonlinearity and entity-to-relation feedback, it achieves state-of-the-art results on complex relations while maintaining the scalability of simple translation models. Future work will explore the application of these multidirectional semantics to broader tasks such as entity alignment and large-scale triple classification.

Summary updated

BibTeX
@inproceedings{yang2019transms,
  author = {Shihui Yang and Jidong Tian and Honglun Zhang and Junchi Yan and Hao He and Yaohui Jin},
  title = {{TransMS: Knowledge Graph Embedding for Complex Relations by Multidirectional Semantics}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/268},
}
Figure