Bayesian Hierarchical Words Representation Learning

Oren Barkan, Idan Rejwan, Avi Caciularu, Noam Koenigstein

Abstract

Oren Barkan, Idan Rejwan, Avi Caciularu, Noam Koenigstein. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics.

2020.

Introduction

Standard word embedding models like Word2Vec or GloVe rely heavily on large-scale co-occurrence statistics. While effective for frequent terms, these "data-hungry" models struggle with the "long tail" of language—rare words with insufficient statistical evidence. Consequently, embeddings for these terms are often noisy and unreliable. Furthermore, traditional models typically ignore external semantic knowledge, such as human-curated taxonomies like WordNet.

The authors propose Bayesian Hierarchical Words Representation (BHWR), a novel framework that addresses these limitations by integrating Variational Bayes learning with hierarchical priors derived from semantic taxonomies. By allowing related words to share information through common ancestors in a knowledge graph, BHWR significantly improves representations for rare words and models trained on limited data.

Methodology

BHWR introduces two primary technical innovations to the word embedding pipeline:

  1. Variational Bayes (VB) Framework: Instead of point estimates, BHWR maps words to probability densities. This probabilistic approach allows the model to represent uncertainty, which is critical for rare words where data is sparse.
  2. Hierarchical Priors: The model utilizes a semantic taxonomy to set priors for word vectors. For instance, the vector for "anode" is regularized toward the vector of its parent "electrode." This creates a mechanism for information propagation: a well-represented sibling (e.g., "cathode") helps define the parent, which in turn provides a sensible default for a rare sibling.
The graphical model of BHWR illustrating the hierarchical dependencies between word vectors ($u_i, v_j$) and their semantic priors ($h_n^u, h_m^v$).

To maintain mathematical tractability, the authors employ a "logistic bound" to approximate the sigmoid functions used in Skip-Gram. This ensures "conjugacy," allowing complex probability updates to result in manageable Gaussian distributions.

Experimental Setup

The model was trained on SemCor, a relatively small annotated corpus (37,000 sentences), to demonstrate its effectiveness in data-constrained scenarios. Word relationships were extracted from WordNet hypernyms. Evaluation was conducted across five standard word similarity benchmarks: WS-353, SCWS, Rare Words (RW), MEN, and SimLex-999 (SL).

Results and Discussion

BHWR consistently outperformed both the standard Skip-Gram (SG) and the previous state-of-the-art Bayesian Skip-Gram (BSG).

Comparison of BHWR against baseline models across multiple benchmarks. The left table shows results on the training corpus, while the right table shows results after retrofitting (-P).

Key findings include:

  • Rare Word Robustness: On the RW dataset, BHWR achieved a Spearman correlation of 28.2%, a significant improvement over Skip-Gram's 23.0%.
  • Superiority over Post-Processing: BHWR (without post-processing) outperformed versions of Skip-Gram that were refined with taxonomy information after training. This suggests that incorporating hierarchical knowledge during the learning process is more effective than post-hoc "retrofitting."
  • Synergy with Retrofitting: While BHWR is powerful on its own, it can be combined with retrofitting to incorporate additional information types (like synonyms), leading to further performance gains (BHWR-P).

Conclusion

BHWR demonstrates that hierarchical Bayesian modeling is a powerful tool for learning high-quality word representations from small datasets and for rare terms. By leveraging existing human knowledge, the model "reasons" about words it hasn't seen frequently. Future work includes scaling BHWR to massive unannotated corpora and applying this hierarchical approach to other domains, such as medical ontologies or product recommendation hierarchies.

Summary updated

BibTeX
@inproceedings{barkan2020bayesian,
  author = {Oren Barkan and Idan Rejwan and Avi Caciularu and Noam Koenigstein},
  title = {{Bayesian Hierarchical Words Representation Learning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  url = {https://openreview.net/forum?id=vi9zUVFxAQb},
}
Figure