Analyzing Structures in the Semantic Vector Space: A Framework for Decomposing Word Embeddings

Andreas Hanselowski, Iryna GurevycharXiv 2019

Abstract

This paper introduces a framework for breaking down dense word embeddings into smaller, interpretable "sub-vectors" that represent specific semantic or grammatical attributes. By treating word vectors as linear combinations of these units, the authors achieve state-of-the-art results on word analogy tasks and demonstrate a highly data-efficient approach to category completion that outperforms standard supervised classifiers.

Introduction

Word embeddings, such as word2vec and GloVe, are the bedrock of modern natural language processing, yet they remain largely "black boxes." While we understand that linear relationships exist within these spaces (e.g., king - man + woman ≈ queen), the underlying mechanics of how these relationships are structured remain opaque. This research proposes the Distributional Decomposition Hypothesis, which posits that word vectors are composed of meaningful, additive building blocks. By uncovering this inherent structure, the authors aim to make dense embeddings more interpretable without relying on external lexical resources.

Methodology

The authors introduce two primary structures to extract semantic components from vector spaces:

1. Semantic Tree Model

Given a set of "support vectors" (such as a list of months), this model identifies a root ($α$)—the shared semantic component representing the category (e.g., "month-ness")—and branches ($β$)—the unique attributes that distinguish each word (e.g., the specific identity of "January").

The Semantic Tree Model decomposes vectors into a shared root (α) and unique branches (β).

2. Semantic Space Networks (SSNs)

By recursively applying the tree model, the authors build complex hierarchies known as SSNs. These allow for the decomposition of vectors into specific sub-vectors for attributes like gender, tense, or category. Additionally, a Filtering Algorithm was developed for word analogy tasks; it uses SSNs to "filter" out noise from branch vectors, resulting in a cleaner representation of relational concepts like "capital of."

Experimental Setup

The framework was evaluated using pre-trained word2vec and GloVe embeddings on two main benchmarks:

  • Google Word Analogy Corpus: A standard benchmark containing 28 categories and 1,146 instances.
  • Closed-set Category Corpus: A new benchmark introduced by the authors containing 13 well-defined categories (e.g., planets, US states) designed to test "category completion."

Key Results and Insights

  • Word Analogy Performance: The proposed SSNfilter method significantly outperformed traditional methods. On the Google analogy task using GloVe embeddings, it achieved an accuracy of 0.797, compared to 0.717 for the standard vector-offset method.
  • Data Efficiency: For category completion, SSNs proved to be highly data-efficient. While standard SVMs require numerous positive and negative examples to learn a boundary, SSNs identify the shared structure of just a few examples. As the percentage of training data increased, SSNs significantly outperformed SVM baselines.
Performance comparison of SSNs against SVM baselines on category completion and analogy tasks.
  • The "Losing Meaning" Phenomenon: The authors noted that frequent, polysemous words often have shorter vector lengths. They suggest that different meaning components pull the vector in opposing directions, effectively canceling each other out—a phenomenon they call "losing a part of the words' meaning."

Conclusion

This framework demonstrates that semantic meaning in vector spaces is inherently additive and subtractive. By isolating shared roots and unique branches, researchers can better understand the geometry of word embeddings. Future work involves applying this framework to contextualized embeddings like BERT to perform "model diagnostics," allowing researchers to see which semantic features a model prioritizes during prediction.

Summary updated

BibTeX
@misc{hanselowski2019analyzing,
  author = {Andreas Hanselowski and Iryna Gurevych},
  title = {{Analyzing Structures in the Semantic Vector Space: A Framework for Decomposing Word Embeddings}},
  year = {2019},
  eprint = {1912.10434},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1912.10434},
}
Figure