Source-linked AI summary

TransA: An Adaptive Approach for Knowledge Graph Embedding

Han Xiao, Minlie Huang, Yu Hao, Xiaoyan Zhu

arXiv:1509.05490v2cs.CL

TL;DR

Translation-based knowledge-graph embeddings rely on an oversimplified loss metric that limits their ability to model complex entities and relations. TransA introduces an adaptive metric using elliptical equipotential surfaces and relation-specific feature weighting. Experiments report consistent, significant improvements over state-of-the-art baselines, while performance can suffer when insufficient training data over-distorts the weight matrix.

  • Problem

    Translation-based embedding methods use an oversimplified loss metric and are limited in modeling various and complex knowledge-graph entities and relations.

  • Method

    TransA uses an adaptive Mahalanobis metric with elliptical equipotential surfaces and relation-specific weighting of feature dimensions.

  • Results

    TransA achieves consistent and significant improvements over current state-of-the-art baselines across two benchmark tasks.

  • Takeaways & Limitations

    The adaptive metric approach effectively models various and complex entities and relations in knowledge bases.

  • Takeaways & Limitations

    On WN18, insufficient training data for unseen entity-relation combinations can over-distort the weight matrix and worsen Mean Rank.

Abstract

from arXiv · show

Knowledge representation is a major topic in AI, and many studies attempt to represent entities and relations of knowledge base in a continuous vector space. Among these attempts, translation-based methods build entity and relation vectors by minimizing the translation loss from a head entity to a tail one. In spite of the success of these methods, translation-based methods also suffer from the oversimplified loss metric, and are not competitive enough to model various and complex entities/relations in knowledge bases. To address this issue, we propose \textbf{TransA}, an adaptive metric approach for embedding, utilizing the metric learning ideas to provide a more flexible embedding method. Experiments are conducted on the benchmark datasets and our proposed method makes significant and consistent improvements over the state-of-the-art baselines.

Introduction

Knowledge-graph embedding converts symbolic entities and relations into continuous vectors, but translation-based methods use an oversimplified metric that struggles with complex structures and noisy dimensions. TransA addresses these issues with an adaptive metric using elliptical surfaces and dimension weighting, and improves over state-of-the-art baselines.

  • Knowledge graphs are symbolic and logical, limiting the direct application of numerical machine-learning methods.
  • Geometry-based embedding represents entities and relations as k-dimensional vectors and scores triples using h + r ≈ t and a loss metric.
  • Translation-based methods use spherical equipotential surfaces, which inadequately characterize complex topologies from one-to-many, many-to-one, and many-to-many relations.
  • Treating every dimension identically lets incorrect entities match under isotropic Euclidean distance and introduces noise from unrelated dimensions.
  • TransA replaces spherical surfaces with elliptical ones and weights feature dimensions to represent complex topologies and suppress unrelated-dimensional noise.
  • TransA makes significant and consistent improvements over state-of-the-art baselines in experiments.

Related Work

Prior knowledge graph embedding work includes translation-based methods and several alternative models. These approaches vary in how they represent entities, relations, and their interactions, but some face limitations in expressive power, scalability, or complex-graph modeling.

  • Translation-based methods: Translation-based methods share h + r ≈t and use Euclidean distance in relation-specific spaces to score triples.
  • Translation-based methods: TransE keeps entities in the original space, while TransH projects them into a hyperplane and TransR transforms them with a relation-specific matrix.
  • Translation-based methods: Despite relation-specific projections or transformations, translation-based methods remain unsatisfactory for various and complex entities and relations because of their oversimplified metric.
  • Translation-based methods: TransM pre-calculates a distinct weight for each training triple to improve performance.
  • Other embedding methods: Other embedding models include LFM, NTN, RESCAL, SSE, UM, SE, SLM, and SME, using quadratic forms, neural networks, factorization, or structured transformations.
  • Other embedding methods: NTN jointly uses the SLM and LFM, but its high complexity may reduce applicability to large-scale knowledge bases.

Adaptive Metric Approach

TransA replaces the shared Euclidean loss of translation-based embeddings with a relation-specific adaptive metric. Its transformed, dimension-weighted formulation is intended to represent complex embedding topologies while retaining efficient training.

  • Motivation: Translation-based methods share a Euclidean score based on h + r ≈ t, but this metric is considered too inflexible for complex knowledge-base relations.The paper motivates replacing spherical equipotential surfaces and equal treatment of dimensions.
  • Adaptive metric: TransA replaces Euclidean distance with an adaptive Mahalanobis distance using absolute loss and a relation-specific symmetric non-negative weight matrix.The absolute operator measures the absolute loss between h + r and t.
  • Adaptive metric: The adaptive metric produces elliptical equipotential surfaces, which better accommodate nonuniform embedding topologies in large, complex knowledge bases.Different thresholds determine whether triples are considered correct, while elliptical surfaces replace spherical ones.
  • Implications and training: TransA is expected to perform better for one-to-many, many-to-one, and many-to-many relations because its metric is symmetric and supports complex relation structures.The paper also uses a margin-based ranking error and reports that the weight matrix has a closed solution, supporting efficient training.
  • Feature weighting: TransA can be interpreted as transforming the loss vector and weighting dimensions differently through an LDL-based decomposition of the relation-specific matrix.The transformation matrix maps the loss vector to another space, while diagonal weights assign different importance to embedding dimensions.
  • Feature weighting: The method learns dimension weights from data to suppress noise from unrelated dimensions, unlike methods that treat dimensions identically or use precomputed coefficients.The paper contrasts this adaptive weighting with TransR and TransM.

Experiments

TransA is evaluated on link prediction and triples classification across Wordnet- and Freebase-derived benchmark datasets. It consistently outperforms baselines, with especially strong gains on complex datasets and relations, while showing a specific Mean Rank weakness under insufficient training data.

  • Evaluation setup: TransA is evaluated on link prediction and triples classification using four public datasets derived from Wordnet and Freebase.Link prediction uses WN18 and FB15K; triples classification uses WN11 and FB13.
  • Link prediction: TransA outperforms all baselines significantly and consistently on link prediction.The reported results on WN18 and FB15K support the effectiveness of TransA.
  • Link prediction: 95.2% relative improvement over TransE on FB15K versus 5.7% on WN18 indicates larger gains in the more complex FB15K setting.FB15K has the highest ATPE, which the paper uses to characterize dataset complexity.
  • Link prediction: TransA improves performance for 1-1, 1-N, N-1, and N-N relations, including both simple and complex relation types.The paper reports improvements across all listed mapping properties on FB15K.
  • Limitation: 27 WN18 testing triples, representing 0.54% of the test set, contribute about 162 Mean Rank loss because their entities never co-occurred with the relation during training.The paper attributes the resulting poor Mean Rank to insufficient training data and an over-distorted weight matrix.
  • Triples classification: TransA yields the best average accuracy in triples classification, and accuracies vary with the relation-specific weight difference.The weight difference is the scaled difference between maximal and median weight; larger differences indicate stronger feature-weighting effects.
  • Model comparison: TransA performs better than Adaptive Metric (PSD) because its non-negative matrix condition and absolute operator provide a more flexible representation.The comparison attributes the advantage to the score-function design rather than to the PSD constraint.

Conclusion

TransA combines elliptical equipotential hyper-surfaces with feature-dimension weighting to model complex knowledge-graph entities and relations. Across two benchmark tasks, it achieves consistent and significant improvements over current state-of-the-art baselines.

  • TransA is a translation-based knowledge graph embedding method with an adaptive and flexible metric.
  • It uses elliptical equipotential hyper-surfaces to characterize embedding topologies and weights specific feature dimensions to reduce noise.
  • TransA effectively models various and complex entities and relations in knowledge bases.
  • Across two benchmark tasks, TransA achieves consistent and significant improvements over current state-of-the-art baselines.
Loading 1509.05490v2…