Part-of-Speech Relevance Weights for Learning Word Embeddings

Quan Liu, Zhen-Hua Ling, Hui Jiang, Yu HuarXiv 2016

Introduction

The distributional hypothesis—the idea that words appearing in similar contexts share similar meanings—underpins most modern word embedding models like Word2Vec's Continuous Bag-of-Words (CBOW). However, standard CBOW architectures typically treat all words within a context window as equally informative, simply averaging their vectors to predict a target word. This approach overlooks the inherent syntactic structure of language, where specific word types (e.g., adjectives) may exert a stronger influence on a target word (e.g., a noun) than others.

This paper introduces Part-of-Speech Relevance Weights (PWE), a method to refine word embeddings by incorporating syntactic awareness. By weighting context words based on their Part-of-Speech (POS) tags and their relative distance to the target word, PWE captures structural dependencies that standard models ignore, without the computational overhead of full dependency parsing.

Methodology: The PWE Model

The PWE model extends the CBOW framework by replacing the uniform averaging of context vectors with a weighted sum. The weight assigned to each context word is determined by a learnable relevance factor that considers the POS tag of the context word, the POS tag of the target word, and the distance between them.

Architecture of the PWE model illustrating how POS relevance weights are applied at different distances to context words.

These weights are stored in Relevance Matrices ($\Phi$), which are optimized jointly with the word embeddings during training using Stochastic Gradient Descent (SGD). To maintain efficiency, the model utilizes negative sampling, ensuring that the POS tags of noise samples match those of the training tokens. This allows the model to learn which POS combinations are most "relevant" at specific spatial offsets, effectively modeling syntactic collocation patterns.

Evaluation and Results

The PWE model was trained on a 1-billion-token English Wikipedia corpus and evaluated against standard CBOW and Skip-gram baselines across several benchmarks.

Word Similarity

On semantic similarity tasks including WordSim-353, MEN, and MC, PWE consistently outperformed the baselines. For instance, on the MC dataset, PWE achieved a score of 81.87, compared to 73.75 for CBOW and 78.51 for Skip-gram.

Comparison of PWE against CBOW and Skip-gram models across three word similarity benchmarks.

Syntactic Analogy

The model's syntactic awareness was further validated using the MSR and SYN datasets. On the MSR dataset, which focuses on morpho-syntactic relationships, PWE achieved 59.59% accuracy, a significant improvement over CBOW's 52.16%. These results demonstrate that the inclusion of POS-based weighting significantly enhances the model's ability to capture syntactic regularities.

Key Insights and Limitations

Qualitative analysis shows that PWE produces more functionally coherent clusters. The model achieved a cluster purity of 74.3% when grouping words by POS, compared to 53.9% for CBOW, indicating that the vector space more clearly separates nouns, verbs, and adjectives.

Despite these gains, the model's performance is inherently tied to the quality of the POS tagger used during preprocessing. Furthermore, the use of position-dependent matrices increases the parameter count relative to vanilla Word2Vec. Future work may explore applying this POS-weighting framework to downstream tasks such as machine translation or sequence labeling to provide a broader "syntactic boost" to neural architectures.

Summary updated

BibTeX
@misc{liu2016part,
  author = {Quan Liu and Zhen-Hua Ling and Hui Jiang and Yu Hu},
  title = {{Part-of-Speech Relevance Weights for Learning Word Embeddings}},
  year = {2016},
  eprint = {1603.07695},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1603.07695},
}
Figure