On Extending NLP Techniques from the Categorical to the Latent Space: KL Divergence, Zipf's Law, and Similarity Search

Adam Hare, Yu Chen, Yinan Liu, Zhenming Liu, Christopher G. Brinton
12/2/2020
cs.CLcs.LG

Official code: ahare63/categorical-to-latent (1 star, Jupyter Notebook, last commit 2020-12-02).

Abstract

Despite the recent successes of deep learning in natural language processing (NLP), there remains widespread usage of and demand for techniques that do not rely on machine learning. The advantage of these techniques is their interpretability and low cost when compared to frequently opaque and expensive machine learning models.

Show full abstract

Although they may not be be as performant in all cases, they are often sufficient for common and relatively simple problems. In this paper, we aim to modernize these older methods while retaining their advantages by extending approaches from categorical or bag-of-words representations to word embeddings representations in the latent space. First, we show that entropy and Kullback-Leibler divergence can be efficiently estimated using word embeddings and use this estimation to compare text across several categories. Next, we recast the heavy-tailed distribution known as Zipf's law that is frequently observed in the categorical space to the latent space. Finally, we look to improve the Jaccard similarity measure for sentence suggestion by introducing a new method of identifying similar sentences based on the set cover problem. We compare the performance of this algorithm against several baselines including Word Mover's Distance and the Levenshtein distance.

View on arXivView PDF

Code Implementations(1)

Code for ongoing research paper

10Jupyter Notebook, PythonOct 7, 20206 years ago

Similar Papers

Cite this paper

@article{hare2020extending,
  title  = {On Extending NLP Techniques from the Categorical to the Latent Space: KL Divergence, Zipf's Law, and Similarity Search},
  author = {Adam Hare and Yu Chen and Yinan Liu and Zhenming Liu and Christopher G. Brinton},
  year   = {2020},
  eprint = {2012.01941},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.01941}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2012.01941.svg)](https://codeofpaper.com/paper/2012.01941)

Discussion