NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Mittens: an Extension of GloVe for Learning Domain-Specialized Representations

Nicholas Dingwall, Christopher Potts

Introduction

General-purpose word embeddings, such as GloVe or fastText, are typically trained on massive, diverse datasets like Wikipedia or Common Crawl. While these representations capture broad linguistic patterns, they often fail to represent the nuances of specialized domains—such as clinical medicine, law, or technical engineering—where terminology is highly specific and word meanings may shift.

The primary obstacle to training domain-specific embeddings from scratch is data scarcity. Specialized datasets are often too small to produce high-quality vectors, resulting in noisy representations. This paper introduces Mittens, a "warm-start" extension of the GloVe model designed to bridge the gap between massive general datasets and small, specialized ones.

Methodology: The Mittens Objective

Mittens adapts the concept of "retrofitting" directly into the GloVe training objective. The authors first reformulated GloVe into a vectorized version to leverage GPU acceleration, significantly improving training speed.

The core innovation is the addition of a regularization term to the standard GloVe loss function. This term penalizes the squared Euclidean distance between the new domain-specialized embedding and the original pre-trained "external" embedding. The balance between these two objectives is controlled by a hyperparameter, $\mu$.

The hyperparameter $\mu$ controls the trade-off between domain-specific patterns and general-purpose knowledge, as shown by the correlation with original embeddings.

A high $\mu$ value forces the model to remain close to the original Wikipedia-style embeddings, while a lower $\mu$ allows the model to prioritize the co-occurrence patterns found in the specialized data. This approach allows Mittens to use external embeddings as a "warm start," effectively smoothing out the noise inherent in small domain-specific datasets.

Evaluation and Results

The researchers evaluated Mittens across three scenarios: sentiment analysis (IMDB), clinical text labeling, and medical knowledge graph relationship prediction (SNOMED CT).

Clinical Labeling and Convergence

In clinical labeling tasks—identifying mentions of disease diagnoses as "Positive," "Concern," or "Ruled Out"—Mittens demonstrated superior performance and faster convergence. By synthesizing general knowledge with clinical specifics, Mittens outperformed both purely external embeddings (which lack domain context) and purely domain-trained embeddings (which suffer from data sparsity).

Mittens (red) consistently achieves higher F1 scores and faster convergence across various clinical labeling categories compared to clinical-only, external-only, or random initializations.

Computational Efficiency

Beyond accuracy, the vectorized TensorFlow implementation of Mittens offers significant performance gains. On a CPU, it is approximately 5x faster than non-vectorized versions. On a GPU, the gains are even more dramatic, reducing the processing time for a 20,000-word vocabulary from minutes to seconds.

Discussion and Conclusion

Mittens serves as a powerful tool for NLP practitioners working with specialized datasets. By acting as a regularizer, the pre-trained external embeddings prevent the model from over-fitting to the noise of small datasets while still allowing it to learn critical domain-specific terminology.

Future work may involve refining the handling of "out-of-vocabulary" terms—words present in the specialized domain but absent from the general pre-trained set—and extending the "warm-start" philosophy to other architectures, such as Skip-gram or transformer-based models.

Summary updated

BibTeX
@inproceedings{dingwall2018mittens,
  author = {Nicholas Dingwall and Christopher Potts},
  title = {{Mittens: an Extension of GloVe for Learning Domain-Specialized Representations}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/n18-2034},
}
Figure