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

A Simple Regularization-based Algorithm for Learning Cross-Domain Word Embeddings

Wei Yang, Wei Lu, Vincent ZhengEMNLP 2017

Abstract

Learning word embeddings has received a significant amount of attention recently. Often, word embeddings are learned in an unsupervised manner from a large collection of text. The genre of the text typically plays an important role in the effectiveness of the resulting embeddings. How to effectively train word embedding models using data from different domains remains a problem that is underexplored. In this paper, we present a simple yet effective method for learning word embeddings based on text from different domains. We demonstrate the effectiveness of our approach through extensive experiments on various down-stream NLP tasks.

Introduction

Most word embedding models, such as word2vec, assume that training text originates from a single, homogeneous domain. However, real-world applications often involve a small amount of data in a specific "target" domain (e.g., bioinformatics) and a massive amount of data in a "source" domain (e.g., Wikipedia).

The primary challenge is domain shift: a word's meaning or usage frequency can vary significantly between a medical journal and a general blog post. Simply mixing datasets often dilutes domain-specific nuances, while training exclusively on small target datasets leads to poor representations for infrequent words. This research proposes a method to leverage source-domain knowledge to bolster target-domain embeddings without sacrificing the target domain's unique characteristics.

Methodology

The proposed approach utilizes a two-stage training process based on the popular Skip-gram model:

  1. Source Training: Word embeddings ($w_s$) are first learned from a large source domain ($D_s$).
  2. Regularized Target Training: When training on the target domain ($D_t$), the objective function is modified. In addition to the standard skip-gram loss, a regularization term is added to penalize the target embedding ($w_t$) if it deviates significantly from the pre-trained source embedding ($w_s$).

The core of this method is the transfer weight ($\alpha_w$), calculated using the Sørensen-Dice coefficient. This significance function ensures that not all words are treated equally:

  • Stable Words: Words frequent in both domains receive a high $\alpha_w$, assuming they are semantically stable (e.g., "the", "report") and should remain similar.
  • Specialized Words: Words frequent in only one domain receive a low $\alpha_w$, allowing the model to learn specialized meanings (e.g., "cell") without being overly constrained by source data.

Experimental Results

The method was evaluated across diverse tasks, including entity recognition and sentiment classification, using source data like Wikipedia and Gigaword.

Entity Recognition

On the GENIA (Bioinformatics) and ACE-2005 datasets, the proposed method consistently outperformed baselines. As shown in the results table below, the model achieved an F1 score of 68.7 on GENIA, surpassing the "Target-only" baseline (67.9) and the previous state-of-the-art domain adaptation method, DARep (66.1).

Performance comparison on GENIA and ACE datasets showing the proposed method outperforming baselines.

Robustness and Scaling

The model also demonstrated superior robustness as the amount of training data increased. In sentiment analysis tasks, the proposed approach maintained a performance lead over discrete-feature models and other embedding techniques like CONCAT and ALL, regardless of the training set size.

F1 score improvement as the percentage of the training set increases, demonstrating the robustness of the proposed method.

Key Insights

  • Selective Knowledge Transfer: Using word frequency as a proxy for semantic stability allows the model to automatically decide which source knowledge to preserve.
  • Simplicity and Integration: The approach is a straightforward addition to the loss function, making it easy to integrate into existing SGD workflows with minimal overhead.
  • Language Agnostic: The method proved effective for multilingual tasks, achieving the highest F1 score (43.9) in Spanish targeted sentiment analysis.

Conclusion and Future Work

This regularization-based algorithm provides a powerful yet simple tool for cross-domain word embedding. While highly effective, the current method requires sequential training (source then target). Future research may explore joint training for bidirectional knowledge transfer and applying these regularization techniques to more complex neural architectures beyond word embeddings.

Summary updated

BibTeX
@inproceedings{yang2017simple,
  author = {Wei Yang and Wei Lu and Vincent Zheng},
  title = {{A Simple Regularization-based Algorithm for Learning Cross-Domain Word Embeddings}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2017},
  url = {https://openreview.net/forum?id=SyZqOfGOWr},
}
Figure