Learning Context-Specific Word/Character Embeddings

Xiaoqing Zheng, Jiangtao Feng, Yi Chen, Haoyuan Peng, Wenqing Zhang

Abstract

Early word embedding models like Word2Vec and GloVe represent each word with a single vector, failing to account for polysemy and ignoring word order in context. This paper introduces the Context-Specific Vector (CSV) model, which utilizes a convolutional architecture to capture compositionality and a dynamic system to induce multiple sense vectors per word. Evaluation on similarity tasks and downstream NLP applications demonstrates that the CSV model significantly outperforms traditional single-vector baselines and existing multi-prototype models.

Introduction

Traditional word embedding models (e.g., Skip-gram, CBOW) typically rely on a "bag-of-words" approach, representing context through simple averaging or summation. This method ignores the structural importance of word order and compositionality. Furthermore, the "one-word, one-vector" paradigm conflates multiple meanings of polysemous words (e.g., "bank") into a single, "muddy" average vector. While multi-prototype models have been proposed, they often lack a principled way to determine the number of senses or fail to leverage structural context effectively.

Methods

The proposed Context-Specific Vector (CSV) model addresses these issues through a multi-layered architecture that integrates global word representations with context-sensitive sense induction.

Architecture of the Context-Specific Vector (CSV) model showing the lookup table, convolutional layer, and sense vector selection.

The model maintains a global vector for general meaning and multiple sense vectors for specific meanings. A 1D convolutional layer operates over a window of global vectors to generate a context representation, acting as a linguistic feature detector that respects word order.

A winner-takes-all strategy is used during training: the model selects the sense vector most similar to the current context for updating. Crucially, the model supports dynamic sense induction. If the current context is sufficiently distinct from existing sense vectors (determined by a threshold $\delta$), a new sense vector is automatically created. Training proceeds in three stages: initial context learning, sense induction, and fine-tuning.

Results and Evaluation

The model was trained on English and Chinese Wikipedia and evaluated across several benchmarks, including WordSim-353, SimLex-999, and the Stanford Contextual Word Similarity (SCWS) dataset.

On SimLex-999, the CSV-S model achieved a Spearman’s $\rho$ of 0.481, significantly higher than GloVe and Word2Vec. On the SCWS dataset, the multi-prototype version (CSV-M) reached a correlation of 0.699, surpassing previous state-of-the-art multi-sense models. The practical utility of these embeddings was further validated through downstream NLP tasks.

Performance comparison of CSV models against baselines on downstream NLP tasks like POS tagging and NER.

As shown in the table above, CSV-M consistently provides a performance boost in tasks such as Part-of-Speech (POS) tagging, Chunking, Chinese Word Segmentation (CWS), and Named Entity Recognition (NER). For instance, it achieved 97.15% accuracy in POS tagging, a notable improvement over the 95.40% baseline.

Conclusion

The CSV model successfully bridges the gap between static word embeddings and context-aware representations. By combining convolutional context modeling with dynamic sense induction, it provides a more accurate reflection of linguistic polysemy and compositionality. While the model introduces higher computational complexity and sensitivity to sense-induction hyperparameters, its superior performance on both similarity benchmarks and downstream tasks marks a significant advancement in embedding technology, particularly for character-based languages like Chinese.

Summary updated

BibTeX
@inproceedings{zheng2017learning,
  author = {Xiaoqing Zheng and Jiangtao Feng and Yi Chen and Haoyuan Peng and Wenqing Zhang},
  title = {{Learning Context-Specific Word/Character Embeddings}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.10985},
}
Figure