Abstract
Most popular word embedding techniques involve implicit or explicit factorization of a word co-occurrence based matrix into low rank factors. In this paper, we aim to generalize this trend by using numerical methods to factor higher-order word co-occurrence based arrays, or tensors. We present four word embeddings using tensor factorization and analyze their advantages and disadvantages. One of our main contributions is a novel joint symmetric tensor factorization technique related to the idea of coupled tensor factorization. We show that embeddings based on tensor factorization can be used to discern the various meanings of polysemous words without being explicitly trained to do so, and motivate the intuition behind why this works in a way that doesn't with existing methods. We also modify an existing word embedding evaluation metric known as Outlier Detection to evaluate the quality of the order-N relations that a word embedding captures, and show that tensor-based methods outperform existing matrix-based methods at this task. Experimentally, we show that all of our word embeddings either outperform or are competitive with state-of-the-art baselines commonly used today on a variety of recent datasets.
Introduction
Traditional word embedding models like word2vec or GloVe operate on the distributional hypothesis: words appearing in similar contexts share similar meanings. Mathematically, these methods often boil down to factorizing a 2D matrix of pairwise co-occurrence statistics, such as a Positive Pointwise Mutual Information (PPMI) matrix. While effective, matrix factorization is limited to capturing 2nd-order relationships. It inherently ignores the richer, higher-order context available when three or more words co-occur. This research explores upgrading the underlying data structure to an N-way array (a tensor) to capture 3rd-order co-occurrences, proposing novel factorization methods to extract superior semantic embeddings.
Methodology
The study introduces two primary techniques based on the symmetric CP (CANDECOMP/PARAFAC) decomposition:
- CP-S (Symmetric CP Decomposition): This method factorizes a 3-way PPMI tensor into a single shared word embedding matrix, focusing exclusively on 3rd-order relationships.
- JCP-S (Joint Symmetric Rank-R CP Decomposition): To address the potential loss of 2nd-order information in CP-S, JCP-S performs a joint factorization of both a 2nd-order matrix and a 3rd-order tensor. This ensures the resulting vectors encode both pairwise and 3-way relationships.
To handle the massive scale of 3-way tensors, the authors utilize a stochastic online formulation. The decomposition is optimized using mini-batches of co-occurrence triples and negative sampling via the Adam optimizer.
Evaluation and Results
The models were trained on a 10-million-sentence Wikipedia corpus and evaluated across several benchmarks, including analogy recovery, sentiment analysis, and word similarity. A key finding is the extreme data efficiency of tensor-based embeddings. In the analogy recovery task, CP-S maintained high accuracy even when training data was severely restricted, whereas standard baselines failed in these data-sparse regimes.
Furthermore, the authors introduced OD3, a 3-way variant of the Outlier Detection task. While standard OD2 measures pairwise similarity, OD3 tests an embedding's ability to capture 3rd-order relationships within groups of three words. CP-S significantly outperformed baselines like CBOW and NNSE on this metric, achieving an Outlier Position Percentage (OPP) of 0.6741.
Polysemy and Multiplicative Compositionality
One of the most significant advantages of CP decomposition is the emergence of "multiplicative compositionality." Because the model is trained on 3rd-order co-occurrences, the resulting vectors can be combined using element-wise multiplication to isolate specific word senses. This allows for dynamic sense disambiguation without needing complex downstream models or explicit multi-prototype training.
As shown in the table above, multiplying the vector for the polysemous word "star" by "actor" results in neighbors like "oscar" and "supporting." Conversely, multiplying "star" by "planet" shifts the context toward "planets" and "constellation."
Conclusion
Tensor factorization offers a mathematically grounded way to capture higher-order linguistic patterns that matrix-based methods miss. While computational costs remain a challenge for scaling to massive corpora, the gains in data efficiency and the natural handling of polysemy through multiplicative compositionality represent a significant step forward for distributional semantics. Future work will explore higher-dimensional tensors and alternative decomposition architectures like Tensor Train.
Summary updated