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

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

Nicholas Dingwall, Christopher Potts

Abstract

Mittens is an extension of the GloVe word representation model designed to adapt general-purpose embeddings to specialized domains. By incorporating a "retrofitting" term into the GloVe objective, Mittens allows researchers to leverage massive pre-trained datasets while fine-tuning representations on smaller, domain-specific corpora. This approach results in faster learning and improved accuracy in specialized fields like clinical medicine and niche technical domains.

Introduction

In Natural Language Processing (NLP), general-purpose word vectors (e.g., GloVe or fastText) trained on massive datasets like Wikipedia are standard. However, these vectors often fail in specialized domains where word meanings diverge from general usage. For example, in a clinical setting, the word "discharge" has a distinct meaning compared to its use in general news. Specialized domains frequently suffer from a "data desert," lacking the volume required to train high-quality embeddings from scratch. Mittens addresses this by providing a "warm start," allowing a model to remain faithful to general linguistic knowledge while learning new, domain-specific patterns.

Methods

The authors introduce Mittens, which modifies the standard GloVe objective function in two primary ways:

  1. Vectorization: The GloVe objective is reformulated into a vectorized format, enabling efficient matrix operations on GPUs and achieving a ~100x speedup over traditional implementations.
  2. The Mittens Objective: A "retrofitting" term is added to the loss function, penalizing the squared Euclidean distance between the newly learned domain vector ($w_i$) and a pre-existing general-purpose "anchor" vector ($r_i$).

The balance between maintaining original representations and learning new domain features is controlled by a hyperparameter, $\mu$. As shown in Figure 1, $\mu$ directly influences the correlation between the specialized and original vectors.

Mean Pearson correlation between Mittens and original GloVe vectors as a function of the hyperparameter $\mu$.

Results and Key Insights

Mittens was evaluated across three scenarios: IMDB sentiment analysis, clinical text named entity recognition (NER), and medical relationship prediction in SNOMED CT.

Performance and Convergence

A key finding is that Mittens acts as a bridge, using low-variance information from general datasets to smooth out noise in smaller, specialized corpora. In clinical NER tasks, models initialized with Mittens reached peak performance significantly faster than those using random initialization or domain-only GloVe.

F1 scores over training epochs for various clinical entity categories, comparing Mittens to general and domain-specific baselines.

On the IMDB dataset, Mittens achieved 77.39% accuracy, outperforming External GloVe (72.19%) and IMDB-only GloVe (76.38%). In the SNOMED CT "procedure" subgraph, it achieved a macro-F1 of 66.59, surpassing the clinical-only baseline of 64.96. These results suggest that general and domain-specific knowledge sources are highly complementary.

Conclusion

Mittens provides an efficient method for domain adaptation of word embeddings. While the performance is sensitive to the hyperparameter $\mu$, the model consistently outperforms baselines by leveraging hybrid knowledge. Future work may extend this retrofitting-during-training approach to other architectures like Word2Vec or fastText.

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