Abstract
Knowledge Graph (KG) embedding models often struggle with complex, many-to-many relations due to rigid geometric assumptions. TransA addresses this by replacing the standard Euclidean distance with an adaptive Mahalanobis metric. By utilizing ellipsoidal equipotential surfaces and automated feature weighting, TransA effectively models non-uniform entity clusters and ignores noisy dimensions. Experimental results on benchmark datasets like FB15K demonstrate that TransA significantly outperforms traditional translation-based methods in link prediction and triple classification.
Introduction
Knowledge Graphs represent facts as triples $(h, r, t)$. To leverage this data in machine learning, entities and relations are embedded into continuous vector spaces. The foundational model, TransE, assumes a simple translation $h + r \approx t$ measured by Euclidean distance. However, this approach suffers from two primary limitations:
- Inflexible Geometry: Euclidean distance implies spherical decision boundaries, which cannot accurately capture the complex, non-uniform distributions of tail entities in many-to-many relations.
- Dimension Noise: Standard models treat all embedding dimensions equally, even though many dimensions may be irrelevant to a specific relation, leading to noise interference.
The TransA Methodology
TransA (Adaptive Trans) introduces a flexible score function based on the Mahalanobis metric:
$$f_r(h, t) = (|h + r - t|)^\top W_r (|h + r - t|)$$
Adaptive Geometry
Unlike TransE's identity matrix, TransA employs a relation-specific, symmetric, non-negative weight matrix $W_r$. Geometrically, this transforms the error surfaces from rigid spheres into flexible ellipsoids. These ellipsoids can stretch or compress to better fit the actual distribution of entities associated with a specific relation.
Automated Feature Weighting
Through LDL decomposition of $W_r$, TransA automatically identifies and weights the most relevant features for each relation. This process effectively "denoises" the embedding space by down-weighting dimensions that do not contribute to the semantic meaning of a particular relation. This adaptation allows the model to focus on the signal rather than the noise inherent in high-dimensional embeddings.
Key Insights
- Handling Complexity: In 1-to-Many relations, valid tail entities often form specific clusters. TransA’s elliptical surfaces "wrap" around these clusters more accurately than spherical ones.
- Efficiency: Despite its increased flexibility, TransA maintains a low parameter count—comparable to TransE and significantly lower than projection-based models like TransR—by utilizing a closed-form solution for $W_r$ during training.
Experimental Results
TransA was evaluated on standard benchmarks including WN18 and FB15K.
- Link Prediction: On the complex FB15K dataset, TransA achieved a Mean Rank of 155 and a HITS@10 of 80.4%, vastly improving upon TransE (Mean Rank 243, HITS@10 47.1%).
- Many-to-Many Relations: For complex head prediction in FB15K, TransA reached 86.8% HITS@10, outperforming TransR's 78.8%.
- Triple Classification: The model achieved a state-of-the-art average accuracy of 85.3% across WN11 and FB13.
Conclusion
TransA represents a significant step forward in translation-based KG embeddings. By moving from rigid Euclidean metrics to adaptive Mahalanobis distances, it provides a mathematically principled way to handle relational complexity and feature noise without the heavy parameter overhead of previous state-of-the-art models.
Summary updated