Learning Word Embeddings for Low-Resource Languages by PU Learning

Chao Jiang, Hsiang-Fu Yu, Cho-Jui Hsieh, Kai-Wei Chang

Abstract

Standard word embedding models like Word2Vec and GloVe are notoriously "data hungry," typically requiring billions of tokens to generate effective semantic vectors. This paper introduces a Positive-Unlabeled (PU) Learning approach that treats unobserved word pairs not as missing data, but as a valuable signal. By leveraging these unobserved pairs, the model produces high-quality embeddings even when training on small corpora of only a few million tokens. Evaluations across English, Dutch, Danish, and Czech demonstrate that PU-learning consistently outperforms traditional methods like Skip-gram with Negative Sampling (SGNS) and GloVe in low-resource regimes.

The Challenge of Low-Resource Word Embeddings

Most modern Natural Language Processing (NLP) relies on word embeddings—mathematical vectors that capture the meaning of words. To learn these, models typically analyze co-occurrence frequencies in massive datasets, such as the 100-billion-token Google News corpus.

However, for "low-resource" languages (e.g., Inuit or Sindhi) or specialized domains (e.g., rare medical conditions), such massive datasets are unavailable. When training on only a few million tokens, the co-occurrence matrix—the map of which words appear near each other—becomes extremely sparse. Existing methods like SGNS or GloVe handle these zeros by either ignoring them or sub-sampling a tiny fraction as "negative" examples. The authors argue that in a small-data regime, these "zeros" contain critical information that shouldn't be discarded.

Methodology: Positive-Unlabeled Matrix Factorization

The authors propose a matrix factorization approach inspired by Positive-Unlabeled (PU) Learning, a technique used when one has some labeled positive data and a large pool of unlabeled data that could be either positive or negative.

  1. Building the Matrix: The process begins by constructing a Positive Point-wise Mutual Information (PPMI) matrix, a standard metric measuring how much more often two words appear together than expected by chance.
  2. The PU Objective: Instead of just factorizing observed (positive) entries, the authors designed a loss function that accounts for every entry in the matrix, including the millions of zeros.
  3. Smart Weighting: They introduce a weighting function ($C_{ij}$). Observed word pairs receive a weight based on frequency, while all unobserved pairs (the zeros) are assigned a small, uniform weight ($\rho$). This treats zeros as "likely negative but uncertain" rather than "definitely negative."
  4. Efficient Optimization: To handle the computational expense of factoring a dense matrix, the authors utilized a column-wise coordinate descent algorithm. This allows the model to train in roughly the same time as GloVe despite processing significantly more information.

Experimental Setup

The researchers evaluated their approach across four languages to simulate various resource levels:

  • English: Using the text8 corpus (17M tokens) and sub-sampled Wikipedia data.
  • Dutch, Danish, and Czech: Using Wikipedia corpora sub-sampled to simulate low-resource settings (ranging from 32M to 64M tokens).
  • Evaluation Benchmarks: Standard word similarity tasks (WS353, MEN, SimLex-999) and the Google Word Analogy dataset were used. For non-English languages, test sets were translated using the Google Cloud Translation API.

Results and Key Insights

The PU-learning approach consistently outperformed SGNS and GloVe across almost all tasks and languages when data was scarce.

Performance of PU-learning vs. baselines across different corpus sizes and languages.

Key Findings:

  • Zeros are Signal, Not Noise: In low-resource settings, the absence of co-occurrence is a strong indicator of a relationship. By assigning a small weight ($\rho$) to these zeros, the model learns a more robust boundary between related and unrelated words.
  • Significant Gains: On the text8 corpus, PU-learning achieved a score of 68.3 on the WS353 similarity task, significantly beating SGNS (67.2) and GloVe (48.7).
  • Small Data Performance: The most striking results appeared when the corpus was tiny. In the Dutch analogy task with only 1 million tokens, PU-learning was the only model to show a clear upward trajectory in accuracy.
Benchmark results for Similarity and Analogy tasks across four languages.
  • Consistency: The model was particularly strong in analogy tasks (e.g., "man is to woman as king is to queen"), suggesting that the PU approach captures the underlying linear structure of language better than sub-sampling methods.

Limitations and Future Directions

While effective, the model relies on tuning the confidence parameter $\rho$ and the regularization term $\lambda$. Although $\rho = 0.0625$ worked well generally, optimal performance still requires validation data. Furthermore, no algorithm can learn embeddings for words that never appear in the training corpus.

Future work involves applying this to other "small data" domains, such as legal documents or clinical notes, and exploring the incorporation of external information sources like knowledge graphs to further boost performance in low-resource settings.

Summary updated

BibTeX
@inproceedings{jiang2018learning,
  author = {Chao Jiang and Hsiang-Fu Yu and Cho-Jui Hsieh and Kai-Wei Chang},
  title = {{Learning Word Embeddings for Low-Resource Languages by PU Learning}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/n18-1093},
}
Figure