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: The Mystery of Vector Offsets
In Natural Language Processing (NLP), the "vector offset" method—subtracting one word embedding from another ($vec(b) - vec(a)$)—has become a standard for representing semantic relations. Famous examples like "King - Man + Woman = Queen" highlight its effectiveness in analogy detection. However, this success has been largely empirical. This paper investigates whether PairDiff is theoretically optimal or if more complex mathematical operators could perform better.
Theoretical Framework: The Generalised Bilinear Operator
To explore this, the authors analyze a Generalised Bilinear Operator. This operator models a relation $r(h, t)$ between a "head" word $h$ and a "tail" word $t$ using three components:
- A 3-way tensor ($\mathbf{A}$): Captures pairwise interactions between every dimension of $h$ and $t$.
- Projection matrices ($\mathbf{P}$ and $\mathbf{Q}$): Capture the individual contributions of $h$ and $t$.
The general form is defined as: $r(h, t) = h^T \mathbf{A} t + \mathbf{P}h + \mathbf{Q}t$.
The core theoretical contribution is a proof showing that if word embeddings are standardized (zero mean, unit variance) and uncorrelated (independent dimensions), the complex interaction term ($\mathbf{A}$) becomes irrelevant to the expected loss. Under regularization, the model simplifies to a linear form ($Ph + Qt$), with PairDiff ($h - t$) emerging as a specific case.
Empirical Validation and Key Insights
The researchers tested their theory across six different embedding types (SG, CBOW, GloVe, LSA, LDA, and HSC) generated from the ukWaC corpus and English Wikipedia.
The Uncorrelation Assumption
A critical finding is that real-world embeddings naturally satisfy the uncorrelation assumption. As shown in the correlation histograms, the dimensions of popular embeddings like Word2Vec and GloVe are mostly independent. This "cleanliness" in the vector space is why the theoretical simplification holds in practice.
Emergence of PairDiff
When training a complex bilinear model on the BATS (Bigger Analogy Test Set) dataset, the model parameters naturally converged to the PairDiff operator.
As training progressed:
- The Frobenius norm of the tensor $\mathbf{A}$ dropped toward zero, indicating that complex cross-dimensional interactions are unnecessary.
- The learned matrices $\mathbf{P}$ and $\mathbf{Q}$ became approximately $c\mathbf{I}$ and $-c\mathbf{I}$, which mathematically defines the subtraction operation.
Results and Generalization
The operator learned through this process performed identically to standard PairDiff on classic benchmarks like the SAT (Scholastic Aptitude Test) and SemEval 2012-Task 2, achieving accuracies of approximately 35.16% and 41.94%, respectively. This confirms that subtraction is not just a heuristic but a fundamental relational representation in standardized vector spaces.
Conclusion and Future Work
While this study provides a robust mathematical foundation for linear relational operators, it is limited to bilinear forms and does not account for non-linear composition in deep neural networks. Future research could extend this framework to analyze non-linear relation encoders to see if similar simplification principles apply to more complex architectures.
Summary updated