Vector of Locally-Aggregated Word Embeddings (VLAWE): A Novel Document-level Representation

Radu Tudor Ionescu, Andrei M. Butnaru
2/23/2019
cs.CL

Official code: raduionescu/vlawe-boswe (10 stars, MATLAB, GPL-3.0, last commit 2019-04-29).

Abstract

In this paper, we propose a novel representation for text documents based on aggregating word embedding vectors into document embeddings. Our approach is inspired by the Vector of Locally-Aggregated Descriptors used for image representation, and it works as follows.

Show full abstract

First, the word embeddings gathered from a collection of documents are clustered by k-means in order to learn a codebook of semnatically-related word embeddings. Each word embedding is then associated to its nearest cluster centroid (codeword). The Vector of Locally-Aggregated Word Embeddings (VLAWE) representation of a document is then computed by accumulating the differences between each codeword vector and each word vector (from the document) associated to the respective codeword. We plug the VLAWE representation, which is learned in an unsupervised manner, into a classifier and show that it is useful for a diverse set of text classification tasks. We compare our approach with a broad range of recent state-of-the-art methods, demonstrating the effectiveness of our approach. Furthermore, we obtain a considerable improvement on the Movie Review data set, reporting an accuracy of 93.3%, which represents an absolute gain of 10% over the state-of-the-art approach. Our code is available at https://github.com/raduionescu/vlawe-boswe/.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Code for VLAWE [Ionescu et al., NAACL 2019] and BOSWE [Butnaru et al., KES 2017] representations.

102MATLABApr 29, 20197 years agoGPL-3.0

Similar Papers

Cite this paper

@article{ionescu2019vector,
  title  = {Vector of Locally-Aggregated Word Embeddings (VLAWE): A Novel Document-level Representation},
  author = {Radu Tudor Ionescu and Andrei M. Butnaru},
  year   = {2019},
  eprint = {1902.08850},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1902.08850}
}

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

Discussion