Skip to main content
QUICK REVIEW

[Paper Review] Updating Pre-trained Word Vectors and Text Classifiers using Monolingual Alignment

Piotr Bojanowski, Onur Çelebi|arXiv (Cornell University)|Oct 14, 2019
Topic ModelingComputer Science11 references8 citations
TL;DR

This paper proposes a simple, efficient method to adapt pre-trained word vectors and text classifiers to new, smaller corpora with shifted language distributions by aligning them via the RCSLS criterion and averaging the aligned models. The approach outperforms fine-tuning and matches the performance of model ensembling while requiring only a single model to be stored.

ABSTRACT

In this paper, we focus on the problem of adapting word vector-based models to new textual data. Given a model pre-trained on large reference data, how can we adapt it to a smaller piece of data with a slightly different language distribution? We frame the adaptation problem as a monolingual word vector alignment problem, and simply average models after alignment. We align vectors using the RCSLS criterion. Our formulation results in a simple and efficient algorithm that allows adapting general-purpose models to changing word distributions. In our evaluation, we consider applications to word embedding and text classification models. We show that the proposed approach yields good performance in all setups and outperforms a baseline consisting in fine-tuning the model on new data.

Motivation & Objective

  • To address the challenge of adapting general-purpose pre-trained NLP models to new data with different language distributions.
  • To overcome limitations of fine-tuning, such as loss of statistics from the original pre-training data and incomplete vector updates.
  • To enable model adaptation without retraining from scratch or storing the original training data.
  • To explore a lightweight, data-efficient method that combines pre-trained and new-data-specific models via vector alignment and averaging.

Proposed method

  • The method frames model adaptation as a monolingual word vector alignment problem using the RCSLS (Reciprocal Consistent Soft Labeling) criterion to learn a linear transformation matrix Q.
  • It trains a new model on the small target corpus S₁ to obtain word vectors Y, while retaining the pre-trained model’s vectors X from corpus S₀.
  • The final word vectors Z are computed by averaging the aligned XQ and Y vectors, with separate formulas for words in V₀∖V₁, V₀∩V₁, and V₁∖V₀.
  • A weighted average (1−α)XQ + αY is used to control confidence in the new data, with α ∈ [0,1].
  • The approach is applied to both word embeddings and text classifiers, using low-rank parametrization for linear classifiers.
  • The method avoids storing the original training data and enables efficient model updates by only requiring the pre-trained model and the new data.

Experimental results

Research questions

  • RQ1Can we effectively adapt pre-trained word vectors to a new corpus with a different language distribution without retraining from scratch?
  • RQ2Does aligning word vectors from a pre-trained model and a new-data-specific model via RCSLS yield better performance than fine-tuning?
  • RQ3Can this method achieve performance comparable to model ensembling while storing only a single model?
  • RQ4How does the method handle vocabulary shifts, including rare or new words not present in the original corpus?

Key findings

  • The proposed method, RCSLS+Fine-tune, achieves performance comparable to model ensembling (Vote baseline) across all datasets, including Sogou, Amazon, and Yelp.
  • On the Sogou dataset with 3k samples, the method reaches 92.0% accuracy, matching the Vote baseline and outperforming fine-tuning (91.5%) and single-split training (91.4%).
  • On the full Yelp dataset, the method achieves 64.0% accuracy, closely matching the Vote baseline (63.9%) and surpassing fine-tuning (62.9%).
  • The method reduces the performance gap between single-split training and joint training on S₀∪S₁, especially on small datasets (3k and 30k samples).
  • The approach maintains strong performance across all test sets, demonstrating robustness to vocabulary shifts and distributional changes.
  • The method enables efficient model updates without storing the original training data, offering a significant computational advantage.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.