Abstract
Traditional graph embedding techniques often rely on Inner Product Similarity (IPS), which is mathematically restricted to representing positive definite similarities. This paper introduces Weighted Inner Product Similarity (WIPS), a flexible framework that incorporates learnable weights to approximate any general similarity, including hyperbolic and indefinite kernels. By transforming the discrete model selection problem into a continuous optimization task, WIPS enables efficient and accurate representation learning across diverse data structures.
Introduction
Graph embedding maps nodes into a low-dimensional vector space while preserving their relationships. A fundamental assumption in many models is that the Inner Product Similarity (IPS)—the dot product of two vectors—adequately captures node similarity. However, IPS is limited to Positive Definite (PD) similarities, such as cosine similarity. Real-world data often exhibits non-PD relationships, such as hierarchical structures (best modeled by hyperbolic distances) or complex divergences.
Historically, researchers had to manually select a similarity model tailored to their specific data type. While extensions like Inner Product Difference Similarity (IPDS) were developed to handle general similarities, they require manual, discrete partitioning of vector dimensions, making them difficult to optimize.
The WIPS Framework
To overcome these limitations, the authors propose Weighted Inner Product Similarity (WIPS). This model generalizes previous approaches by introducing a learnable weight vector $\lambda$ into the inner product calculation:
$$h_{WIPS}(x, x'; \theta, \lambda) = \sum_{k=1}^{K} \lambda_k f_\theta(x)_k f_\theta(x')_k$$
In this formulation, $f_\theta$ is a neural network that generates feature vectors, and $\lambda_k$ are tunable weights that can be positive or negative. This flexibility allows WIPS to serve as a "similarity-agnostic" model.
Key Advantages
- Universal Approximation: WIPS is mathematically proven to approximate any general similarity, including PD, Conditionally PD (CPD), and indefinite kernels.
- Continuous Optimization: Unlike IPDS, which requires a discrete choice of dimension splitting, WIPS uses continuous weights that can be optimized using standard gradient-based algorithms like Adam.
- Efficiency: By avoiding exhaustive grid searches for dimensionality splits, WIPS significantly reduces training time—achieving in 20 minutes what previously took over 110 minutes in comparative tests.
Experimental Evaluation
The authors evaluated WIPS on several benchmarks, including the WebKB hypertext network, DBLP co-authorship network, and WordNet taxonomy.
Performance Highlights
- Graph Reconstruction: On the WordNet taxonomy, WIPS achieved a near-perfect 99.87 AUC, vastly outperforming standard IPS (74.97 AUC).
- Link Prediction & Classification: WIPS matched or exceeded the performance of specialized models like Poincaré embeddings, demonstrating its ability to adapt to different geometric structures without manual tuning. On the WebKB dataset, it achieved a state-of-the-art accuracy of 73.35%.
- Word Embeddings: Integrated into Skip-gram models, WIPS improved performance on semantic similarity benchmarks like SimLex-999 and WordSim-353.
Conclusion
WIPS represents a significant step toward universal representation learning. By learning the underlying geometry of the data through tunable weights, it eliminates the need for manual similarity model selection. Future work will explore extending this framework to multi-way relations via tensors and integrating it into deeper neural architectures.
Summary updated