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

Radu Tudor Ionescu, Andrei M. ButnaruNAACL 2019

Introduction

The Vector of Locally-Aggregated Word Embeddings (VLAWE) is a novel document representation method that adapts the "Vector of Locally-Aggregated Descriptors" (VLAD) from computer vision to the field of natural language processing. By aggregating the differences (residuals) between word embeddings and their nearest semantic cluster centroids, VLAWE creates a powerful, unsupervised document-level feature vector. This approach significantly outperforms standard baselines and sets new state-of-the-art results on several sentiment analysis tasks.

Problem Statement

In NLP, representing a collection of words as a single "document vector" is a fundamental challenge. Simple approaches like averaging word vectors (bag-of-embeddings) often lose semantic nuances. Conversely, deep learning models like LSTMs or Transformers capture complex dependencies but require substantial data and computational resources. VLAWE addresses this gap by providing a "simple yet effective" aggregation method that captures more information than a simple mean without the overhead of deep architectural complexity.

Methodology

The VLAWE representation is constructed through four primary stages:

  1. Codebook Learning: A large collection of word embeddings is clustered using k-means. Each cluster centroid acts as a "codeword" representing a specific semantic region.
  2. Residual Accumulation: For a given document, each word is assigned to its nearest cluster centroid. The residual vector—the difference between the word's embedding and its assigned centroid—is calculated and summed for each cluster.
  3. Concatenation: These summed residuals are concatenated into a single long vector. For $k$ clusters and embeddings of dimension $d$, the resulting VLAWE vector has $k \times d$ dimensions.
  4. Normalization: To mitigate the impact of word frequency (Zipf’s Law), power normalization is applied, followed by $L_2$ normalization.

Finally, this unsupervised representation is used as input for a standard Support Vector Machine (SVM) for classification tasks.

Experimental Results

The authors evaluated VLAWE on five diverse benchmark datasets: Reuters-21578 (topic categorization), RT-2k (movie reviews), Movie Review (MR) (short sentences), TREC (question classification), and Subjectivity (Subj).

Comparative performance of VLAWE against various baseline and state-of-the-art methods across five benchmark datasets.

As shown in the results table, VLAWE consistently outperformed both simple baselines (Average Word Embeddings and Bag-of-Words) and many complex deep learning models. Notably, on the Movie Review (MR) dataset, VLAWE achieved 93.3% accuracy (at $k=10$), representing a significant improvement over previous methods. On the RT-2k dataset, it reached 94.1% accuracy, surpassing the previous state-of-the-art by approximately 4%.

Impact of Parameter k

The number of clusters $k$ is a critical hyperparameter in VLAWE. It determines the granularity of the semantic regions captured by the codebook.

The effect of the number of clusters (parameter k) on classification accuracy.

Analysis of the parameter $k$ reveals that accuracy generally improves as the number of clusters increases. As illustrated in the figure, performance on the MR dataset peaks at approximately 93.6% when $k=20$. While higher $k$ values capture more detailed semantic information, they also increase the dimensionality of the document vector, necessitating a balance between representational power and computational efficiency.

Discussion and Conclusion

VLAWE demonstrates that the "residual" information—how a document's vocabulary deviates from semantic averages—is highly discriminative. By treating word embeddings as local descriptors, the method successfully translates a proven computer vision technique to the NLP domain. It offers a robust alternative to traditional models, particularly in its ability to handle out-of-vocabulary words and mitigate the dominance of frequent terms through normalization. Future work may involve integrating contextualized embeddings like BERT or applying VLAWE to large-scale information retrieval and document clustering tasks.

Summary updated

BibTeX
@inproceedings{ionescu2019vector,
  author = {Radu Tudor Ionescu and Andrei M. Butnaru},
  title = {{Vector of Locally-Aggregated Word Embeddings (VLAWE): A Novel Document-level Representation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/n19-1033},
}
Figure