Introduction
Word embeddings are often treated as universal representations of meaning, yet their internal structure is deeply influenced by the specific language they process. This research, presented at ACL 2016, provides an "under the hood" look at these vectors, demonstrating that what a model learns is tied to the structural "flavor" of the target language. By "decoding" linguistic properties from dense vectors, the authors reveal that while context-based models (like word2vec) excel at syntax and semantics, character-based models are surprisingly powerful at capturing morphology. Crucially, a language's typological structure—how it handles word order and word formation—dictates how effectively these models encode information.
Methodology: The Decoding Paradigm
The researchers employed a "decoding" paradigm to investigate the contents of word embeddings. They hypothesized that if a word embedding implicitly contains linguistic information (such as part-of-speech or grammatical number), there should be a mapping that can translate the dense embedding into a sparse, interpretable feature vector.
The Models
The study compared three representative types of embeddings:
- C&W: Uses ordered context, where word order is a primary signal.
- Skip-gram (SG): Uses unordered context, effectively a bag-of-words approach.
- Character-based LSTM Autoencoder (AE): Learns purely from the internal "form" of the word (character sequences) without any surrounding context.
To probe these embeddings, a 4-layer Multi-Layer Perceptron (MLP) was used to decode features. Additionally, the researchers calculated a "Selectivity" score for individual neurons to identify if specific dimensions in the vector acted as "detectors" for specific linguistic triggers.
Key Insights: Typology Over Phylogeny
A language's structural type (typology) proved to be a better predictor of model performance than its genetic family (phylogeny). For example, Bulgarian is a Slavic language, but because it has lost much of its complex morphology (becoming more "analytic"), models behave differently on it compared to other Slavic languages like Czech.
In character-based models, the authors found highly selective "grandmother neurons." In Indonesian, for instance, a single neuron might reach 0.9 selectivity for the verb-marking prefix me-. For "inflectional" languages, where word endings change to show grammar, the internal form of the word is often a more efficient predictor of its function than the surrounding context.
Key Results
Syntax and Morphology
Context-based models (C&W and Skip-gram) generally outperformed character-based models on POS tagging and dependency parsing. However, for Russian and Czech, the character-based model (AE) performed nearly as well, proving that word form carries massive syntactic weight in those languages. Conversely, character-based models were the clear winners for decoding verbal features like tense, mood, and voice in Slavic languages.
Word Order and Typology
The C&W model, which respects word order, showed distinct performance clusters that aligned with WALS (World Atlas of Language Structures) word-order classifications. This proves that the model's internal state is sensitive to a language's specific grammar rules.
Semantics
Skip-gram was the champion for sentiment analysis. Character-based models failed here, as sentiment is rarely "baked into" the spelling of a word in a predictable way across the vocabulary.
Conclusion
The study concludes that embeddings are not language-neutral black boxes. Instead of universal architectures, the findings suggest that NLP practitioners should consider "typology-aware" models that prioritize word form or context based on the specific needs of the target language. Future work may explore the "tug-of-war" between form and context within hybrid models like BERT, which combine these signals.
Summary updated