Joint Embedding of Words and Labels for Text Classification

Guoyin Wang, Chunyuan Li, Wenlin Wang, Yizhe Zhang, Dinghan Shen +3 more
5/10/2018
cs.CLcs.LG

Official code: guoyinwang/LEAM (323 stars, last commit 2019-05-24).

Abstract

Word embeddings are effective intermediate representations for capturing semantic regularities between words, when learning the representations of text sequences. We propose to view text classification as a label-word joint embedding problem: each label is embedded in the same space with the word vectors. We introduce an attention framework that measures the compatibility of embeddings between text sequences and labels. The attention is learned on a training set of labeled samples to ensure that, given a text sequence, the relevant words are weighted higher than the irrelevant ones. Our method maintains the interpretability of word embeddings, and enjoys a built-in ability to leverage alternative sources of information, in addition to input text sequences. Extensive results on the several large text datasets show that the proposed framework outperforms the state-of-the-art methods by a large margin, in terms of both accuracy and speed.

View on arXivView PDF

Code Implementations(1)

guoyinwang/LEAMOfficial100%
32389Python, Jupyter NotebookApr 22, 20187 years ago

Similar Papers

Cite this paper

@article{wang2018joint,
  title  = {Joint Embedding of Words and Labels for Text Classification},
  author = {Guoyin Wang and Chunyuan Li and Wenlin Wang and Yizhe Zhang and Dinghan Shen and Xinyuan Zhang and Ricardo Henao and Lawrence Carin},
  year   = {2018},
  eprint = {1805.04174},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1805.04174}
}

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/1805.04174.svg)](https://codeofpaper.com/paper/1805.04174)

Discussion