Abstract
Training high-quality word embeddings from scratch is computationally intensive, often requiring days or weeks of processing. This paper introduces a fast, convex optimization method to "re-embed" existing word vectors, adapting them for specific supervised tasks like sentiment analysis. By using pre-trained vectors as a prior and applying a distortion penalty, the method achieves significant performance gains in seconds while maintaining the semantic richness of the original source.
What Problem Does This Paper Address?
In the early 2010s, word embeddings became a cornerstone of NLP. However, they faced two significant hurdles: the high computational cost of training from massive unlabeled corpora and a lack of task specificity. General-purpose embeddings often fail to capture task-relevant nuances; for example, words like "dramatic" and "pleasant" might be grouped together as adjectives despite having opposite sentiment polarities in movie reviews. Traditional solutions like joint training or fine-tuning are often non-convex, computationally intensive, and prone to overfitting, especially on smaller datasets. This work addresses these issues by "nudging" existing embeddings toward a target task using a small amount of labeled data.
Methods
The proposed method treats existing embeddings as a starting point or "prior." The objective function combines a standard supervised learning goal (e.g., logistic regression for sentiment prediction) with a re-embedding regularizer.
Instead of standard L2 regularization which pulls vectors toward zero, this distortion penalty penalizes the squared Euclidean distance between the new "target" vectors and the original "source" vectors. Because the objective is a linear combination of log-likelihood and a quadratic penalty, the optimization problem is convex. This allows for a single global optimum to be found rapidly—typically within 5 seconds on standard hardware using L-BFGS.
Experimental Setup
The method was evaluated on the IMDB movie review dataset (50,000 reviews) for sentiment classification. The researchers tested several pre-trained source embeddings, including:
- C&W: Neural network-based embeddings from Collobert and Weston.
- HLBL: Hierarchical log-bilinear models.
- HUANG: Polysemous neural language models.
- LSA: Latent Semantic Analysis based on Project Gutenberg.
Key Insights and Ideas
The primary advantage of using pre-trained vectors is semantic smoothing. Even words appearing infrequently in the labeled data benefit from their proximity to other words in the source embedding, allowing for better generalization. This can be visualized as a "spring" system where the supervised task pulls vectors toward task-specific poles while the regularizer maintains the overall semantic structure.
As shown in the qualitative analysis above, the nearest neighbors for words like "BORING" or "BRILLIANT" shift from general semantic associates in the source to task-specific sentiment indicators in the target after re-embedding.
Key Results
Re-embedded vectors consistently outperformed their raw source counterparts across various training set sizes. For instance, using C&W-200 vectors directly yielded approximately 73% accuracy on a 20k training set, while re-embedding them boosted accuracy to 81.15%.
The results also demonstrate that re-embedding a meaningful source is significantly more effective than starting with random or null vectors, proving the importance of pre-existing semantic relationships. Furthermore, higher-dimensional embeddings (200-d) generally provided better performance than lower-dimensional ones (50-d).
Limitations and Future Work
A limitation of the current approach is the "unseen word" problem: only vectors for words present in the labeled training data are updated. Words not encountered during training remain in their original source state, potentially creating inconsistency in the embedding space. Future research could explore "Global Re-embedding" to propagate sentiment shifts to all words in the vocabulary, although this would likely move the problem into a more complex, non-convex optimization regime.
Summary updated