Introduction
In Natural Language Processing (NLP), word embeddings serve as the foundational representation of language, mapping words into dense vector spaces where semantic similarity corresponds to geometric proximity. Historically, two paradigms have dominated this field: neural methods, such as Skip-Gram with Negative Sampling (SGNS), and spectral methods, such as Singular Value Decomposition (SVD) on Positive Pointwise Mutual Information (PPMI) matrices. While neural methods benefit from "negative sampling" to prevent unrelated words from clustering together, spectral methods are prized for their mathematical stability and computational efficiency. This paper introduces SENS (Spectral Word Embedding with Negative Sampling), a framework that bridges this gap by incorporating negative information into a fast, closed-form spectral solution.
The Challenge: Integrating Negative Information
The primary hurdle in traditional spectral methods is the handling of unobserved word pairs. In a Pointwise Mutual Information (PMI) matrix, pairs that never appear together result in negative infinity, while infrequent pairs produce highly noisy negative values. To avoid these issues, researchers typically use PPMI, which simply sets all negative values to zero. However, this discards the "repulsive force" provided by negative examples—information that explicitly tells the model which words do not belong together. Without this, embeddings often suffer from the "concentration effect," where disparate word clusters are positioned too closely in the latent space.
Methodology: The SENS Framework
The authors propose a new algorithm, SENS, and its implementation, SVD-NS, which utilizes a symmetric co-occurrence matrix where every word acts as its own context. The core innovation lies in the use of a thresholded PMI matrix ($M^\alpha$):
- Thresholding ($\alpha$): Instead of discarding all negative PMI values, the model introduces a parameter $\alpha$. If $PMI > \alpha$, the value is retained; if $PMI \le \alpha$, it is set to zero.
- Optimization: By selecting a negative $\alpha$ (e.g., -2.5), the model retains informative negative relationships while filtering out extreme noise.
- Closed-form Solution: The authors prove that the optimal embeddings for this objective are the top eigenvectors of $M^\alpha$, solvable via SVD. This eliminates the need for the iterative, multi-epoch training required by neural networks.
The "Goldilocks Zone" for $\alpha$
A critical insight of this research is the sensitivity of the model to the threshold parameter $\alpha$. The authors found that performance on both word analogy and similarity tasks follows a parabolic curve relative to $\alpha$. Keeping no negative values (PPMI) or keeping all of them leads to suboptimal results. The peak performance occurs at approximately $\alpha = -2.5$, where the ratio of positive to negative examples is roughly 1.5 to 1. This suggests that a controlled amount of negative information is essential for high-quality vector representations.
Experimental Results
Accuracy and Benchmarking
SVD-NS was evaluated against state-of-the-art models including SGNS, GloVe, and standard SVD variants across eight standard similarity benchmarks (e.g., WordSim-353, MEN-3000, SimLex-999). SVD-NS outperformed the competition on 6 out of 8 datasets. For instance, on the WS-R (WordSim-353 Relatedness) dataset, SVD-NS achieved a Spearman's correlation of 0.6537, surpassing SGNS's 0.6519.
Efficiency
Beyond accuracy, the spectral approach offers a massive computational advantage. Because SENS relies on a single matrix factorization rather than iterative gradient descent, it is approximately ten times faster than multi-threaded SGNS implementations when trained on large corpora like the 2.1-billion-token English Wikipedia dump.
Conclusion and Future Work
SENS demonstrates that the success of negative sampling in neural models is not a unique property of deep learning but can be replicated and mathematically justified within a spectral framework. While SVD-NS excels at similarity tasks, a slight performance gap remains in word analogy tasks compared to SGNS, likely due to the specific frequency-weighting schemes used in neural models. Future research may explore asymmetric versions of SENS to capture directional relationships and further refine the weighting of frequent versus infrequent word pairs.
Summary updated