NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Low-Rank Approximation of Matrices for PMI-Based Word Embeddings

Alena Sorokina, Aidana Karipbayeva, Zhenisbek AssylbekovCICLing 2019

TL;DR

This paper investigates how different low-rank approximation techniques (SVD, NMF, QR) applied to Pointwise Mutual Information (PMI) matrices affect the quality of resulting word embeddings. They found that truncated Singular Value Decomposition (SVD) consistently produced the best word embeddings for both similarity and analogy tasks, outperforming NMF and QR-based methods.

What Problem Does This Paper Address?

Word embeddings are crucial for many Natural Language Processing (NLP) tasks. While models like Skip-gram with Negative Sampling (SGNS) are popular, research has shown they implicitly factorize a Pointwise Mutual Information (PMI) matrix. This suggests that directly approximating the PMI matrix using low-rank methods could be an alternative way to generate word embeddings. However, the optimal low-rank approximation method for this purpose wasn't clear. This paper aims to empirically evaluate and compare common low-rank approximation techniques (SVD, NMF, QR) for generating PMI-based word embeddings and determine which performs best on downstream NLP tasks.

Methods

The core of this research is an empirical comparison of three low-rank matrix approximation methods:

  • Singular Value Decomposition (SVD): This is a standard technique that decomposes a matrix $A$ into $U S V^T$. For low-rank approximation, they used truncated SVD, keeping only the top $d$ singular values and corresponding vectors. The word vectors were derived from the $U$ matrix.
  • Non-negative Matrix Factorization (NMF): NMF factorizes a non-negative matrix $A$ into two non-negative matrices $W$ and $H$ ($A \approx WH$). The word vectors were taken as the rows of the $W$ matrix.
  • QR Decomposition: This method decomposes a matrix $A$ into $AP = QR$, where $P$ is a permutation matrix. They explored two variants: using the $Q$ matrix (truncated QR) and using the $R$ matrix (specifically, Rank Revealing QR or RRQR, which aims to identify the most significant parts of $R$).

The authors trained word vectors using these methods on PMI matrices derived from a large corpus. They then evaluated the quality of these embeddings on two standard NLP tasks: word similarity and word analogy.

Datasets

  • Training Data: A portion of the English Wikipedia corpus (enwik9) was used. This corpus was split into two equal halves to generate two independent PMI matrices.
  • Evaluation Datasets:
    • WordSim353: Used for evaluating word similarity. This dataset contains word pairs with human-assigned similarity scores.
  • Mixed dataset: Used for evaluating word analogy. This dataset consists of analogy questions in the format "a is to b as c is to d".

Key Insights and Ideas

  • SVD Reigns Supreme: Truncated SVD consistently outperformed NMF and QR-based methods on both similarity and analogy tasks. This suggests that SVD's approach to capturing the most significant variance in the PMI matrix is particularly effective for generating high-quality word embeddings.
  • Dimensionality Matters Differently for NMF: While dimensionality (250 vs. 500) had little impact on SVD and QR performance, it significantly affected NMF. Lower dimensionality (250) yielded better results for NMF in the similarity task. The authors hypothesize this is because NMF produces sparse, non-negative vectors, and increasing dimensionality exacerbates sparsity, potentially leading to smaller cosine similarity scores.
  • QR's R Matrix is Key: For QR decomposition, the $R$ matrix (specifically from Rank Revealing QR) provided better word embeddings than the $Q$ matrix. This indicates that the information retained in the upper triangular $R$ matrix after factorization is more crucial for embedding quality than the orthogonal $Q$ matrix alone.
  • PMI Factorization is a Viable Alternative: The study confirms that low-rank approximation of PMI matrices can indeed produce word embeddings comparable to, and in the case of SVD, superior to, those from implicit factorization methods like SGNS.

Key Results

  • Similarity Task: SVD achieved the highest scores, with results around 0.70. NMF scores were significantly lower, ranging from 0.37 to 0.52. QR (R) performed better than QR (Q), with scores around 0.40-0.47 for QR (R) and 0.20-0.35 for QR (Q).
  • Analogy Task: SVD again led with scores around 0.35-0.38. NMF performed very poorly, with scores below 0.07. QR (R) achieved scores around 0.15-0.22, while QR (Q) performed worst, with scores below 0.02.
  • Statistical Significance: ANOVA tests confirmed that the factorization method was a highly significant factor for both similarity and analogy tasks (p < 0.0001). Dimensionality was not a significant factor for either task. An interaction effect between factorization method and dimensionality was observed for the analogy task.

Limitations and Future Work

  • NMF Sparsity: The paper highlights the issue of NMF producing sparse, non-negative vectors, which negatively impacts performance, especially in the analogy task. The authors suggest that reducing the dimensionality for NMF (e.g., to 100) might improve results.
  • QR Decomposition Insights: The authors suggest that the $R$ matrix from QR decomposition contains more valuable information for word embeddings than the $Q$ matrix. Further exploration of how to best utilize the $R$ matrix could be beneficial.
  • Theoretical Analysis of NMF: While the paper provides a theoretical explanation for NMF's poor performance in the analogy task based on vector sparsity and non-negativity, further theoretical work could solidify these findings.

This study provides valuable empirical evidence for choosing low-rank approximation methods for PMI-based word embeddings, strongly advocating for SVD as a robust and effective baseline.

Summary updated

BibTeX
@inproceedings{sorokina2019low,
  author = {Alena Sorokina and Aidana Karipbayeva and Zhenisbek Assylbekov},
  title = {{Low-Rank Approximation of Matrices for PMI-Based Word Embeddings}},
  booktitle = {CICLing},
  year = {2019},
  url = {https://openreview.net/forum?id=4EFsZEkY7BX},
}
Figure