Abstract: Representing the semantic relations that exist between two given words (or entities) is an important first step in a wide-range of NLP applications such as analogical reasoning, knowledge base completion and relational information retrieval. A simple, yet surprisingly accurate method for representing a relation between two words is to compute the vector offset (PairDiff) between their corresponding word embeddings. Despite the empirical success, it remains unclear as to whether PairDiff is the best operator for obtaining a relational representation from word embeddings. We conduct a theoretical analysis of generalised bilinear operators that can be used to measure the $\ell_{2}$ relational distance between two word-pairs. We show that, if the word embeddings are standardised and uncorrelated, such an operator will be independent of bilinear terms, and can be simplified to a linear form, where PairDiff is a special case. For numerous word embedding types, we empirically verify the uncorrelation assumption, demonstrating the general applicability of our theoretical result. Moreover, we experimentally discover PairDiff from the bilinear relation composition operator on several benchmark analogy datasets.
Introduction
In Natural Language Processing, representing the relationship between two words (like Tokyo and Japan) is crucial for tasks like solving analogies or completing knowledge bases. For years, researchers have used a simple method called PairDiff: they just subtract the vector of one word from the other ($b - a$). While PairDiff is incredibly popular and effective, it was largely an empirical "hack." This paper provides a theoretical foundation for why this simple subtraction works and under what specific conditions it is the best choice.
Theoretical Framework
The authors analyze generalized bilinear operators to measure relational distance. They start with a complex functional form that considers all possible pairwise interactions between the dimensions of two word vectors ($h$ and $t$):
$$r(h, t) = h^\top \mathbf{A} t + \mathbf{P}h + \mathbf{Q}t$$
Here, $\mathbf{A}$ is a 3-way tensor handling complex interactions, while $\mathbf{P}$ and $\mathbf{Q}$ are projection matrices handling linear contributions. Through mathematical proof, the authors demonstrate that if word embeddings are standardized (mean zero, unit variance) and uncorrelated, the expected loss of the model becomes independent of the complex tensor $\mathbf{A}$. Under regularization, $\mathbf{A}$ vanishes, and the operator simplifies to a linear combination ($Ph + Qt$), of which PairDiff ($h - t$) is a specific case.
Empirical Verification of Assumptions
A critical component of the proof is the assumption that word embedding dimensions are uncorrelated. While one might assume these dimensions are highly dependent, the authors empirically tested six popular embedding models: Skip-Gram (SG), CBOW, GloVe, LSA, LDA, and Hierarchical Sparse Coding (HSC).
As shown in the figure above, the dimensions in popular embedding methods are actually very weakly correlated, with mean correlations near zero. This confirms that the theoretical requirements for PairDiff's optimality are met in real-world scenarios.
Results: Tensor Decay and Convergence
To test their theory, the authors trained the generalized bilinear operator on the BATS (Bigger Analogy Test Set) and evaluated it on benchmarks like SAT and SemEval 2012 Task 2. The experimental results strongly support the theoretical findings.
Key observations from the experiments include:
- Tensor Decay: The Frobenius norm of the tensor $\mathbf{A}$ (the red line in the figure) dropped toward zero across all embedding types, confirming that complex bilinear interactions do not contribute significantly to the relational representation.
- Convergence to Subtraction: The learned parameters $p$ and $q$ consistently reached a state where $p \approx -q$. This indicates that the model naturally "chooses" to become a vector offset operator, effectively discovering the PairDiff formula ($1h - 1t$) through optimization.
Conclusion
This work provides the first formal proof that PairDiff is the optimal linear operator for representing word relations when embeddings are standardized and uncorrelated. By showing that complex bilinear terms "wash out" during training and that real-world embeddings satisfy the necessary statistical properties, the authors bridge the gap between empirical success and theoretical understanding in relational representation learning.
Summary updated