Word Embedding Visualization Via Dictionary Learning
Juexiao Zhang, Yubei Chen, Brian Cheung, Bruno A Olshausen
TL;DR
The paper addresses the interpretability of word embeddings by applying dictionary learning to extract a sparse set of interpretable word factors. It uses non-negative overcomplete sparse coding to decompose word vectors into factor activations and employs spectral clustering to group similar factors, enabling meaningful visualizations. The approach yields factors with clear semantic or syntactic meaning, reveals polysemy, and enables factor-based vector manipulations; it also improves word analogy performance across multiple embedding models and supports automatic generation of new analogy tasks. The work suggests a new visualization and analysis paradigm for embeddings and points toward extensions to contextualized representations and transformers.
Abstract
Co-occurrence statistics based word embedding techniques have proved to be very useful in extracting the semantic and syntactic representation of words as low dimensional continuous vectors. In this work, we discovered that dictionary learning can open up these word vectors as a linear combination of more elementary word factors. We demonstrate many of the learned factors have surprisingly strong semantic or syntactic meaning corresponding to the factors previously identified manually by human inspection. Thus dictionary learning provides a powerful visualization tool for understanding word embedding representations. Furthermore, we show that the word factors can help in identifying key semantic and syntactic differences in word analogy tasks and improve upon the state-of-the-art word embedding techniques in these tasks by a large margin.
