Identity-sensitive Word Embedding through Heterogeneous Networks

Jian Tang, Meng Qu, Qiaozhu MeiarXiv 2016

Abstract

Standard word embedding models like Word2vec often fail to capture the nuances of polysemous words by assigning a single vector to each word regardless of context. This paper proposes Identity-sensitive Word Embeddings (ISE), a framework that leverages heterogeneous networks to learn distinct representations for words based on their "identity"—defined by topic, sentiment, or category. By integrating local context with global identity information, ISE significantly improves performance in text classification and contextual similarity tasks.

Introduction

The distributional hypothesis—the idea that words with similar meanings appear in similar contexts—underpins most modern natural language processing. However, popular models like Skip-gram and GloVe suffer from a fundamental limitation: they assign one vector per word. This "one-size-fits-all" approach collapses multiple word senses (e.g., "bank" as a financial institution vs. a riverbank) into a single, noisy average.

This paper introduces the concept of word "identities," inspired by social psychology. Just as individuals adopt different identities in different social groups, words exhibit different semantic properties depending on their situational context. ISE addresses the polysemy problem by learning identity-specific embeddings within a heterogeneous network framework.

Methodology: The ISE Framework

The ISE approach consists of three primary stages: identity labeling, network construction, and embedding.

1. Identity Labeling

Before training, every word token in the corpus is assigned an identity label. The authors explore three types of identities:

  • Topics: Extracted using Latent Dirichlet Allocation (LDA).
  • Sentiments: Derived from document-level labels and sentiment lexicons.
  • Categories: Obtained from document metadata (e.g., news sections like "Sports" or "Tech").

2. Heterogeneous Network Construction

A heterogeneous network is built to capture both local and global relationships. It includes two types of nodes (words and identities) and two types of edges:

  • Word-Context edges: These represent local co-occurrences within a sliding window, similar to standard Skip-gram models.
  • Word-Identity edges: These connect a specific word token to its assigned identity, capturing broader thematic or categorical information.
Construction of a heterogeneous network from identity-labeled text corpora.

3. Network Embedding

The model employs an adapted version of the LINE (Large-scale Information Network Embedding) algorithm. By optimizing an objective function that preserves second-order proximity, ISE ensures that words sharing similar contexts and similar identities are positioned closely in the vector space.

Experimental Setup

The model was evaluated across several benchmarks, including text classification (20Newsgroups, DBLP, WikiSample), sentiment analysis (Twitter, Movie Reviews, SST), and contextual similarity (SCWS). To handle unseen text at test time, the model uses Maximum A Posteriori (MAP) inference to predict a word's identity based on its surrounding context before selecting the corresponding embedding.

Results and Discussion

ISE consistently outperformed baseline models, including Skip-gram, LINE, and multi-sense models like MSSG. For instance, on the 20NG dataset, ISE (category) achieved a Micro-F1 of 84.64, a substantial improvement over Skip-gram’s 76.82.

Robustness and Stability

A key finding is ISE's stability compared to traditional topic models. While LDA's performance often fluctuates significantly depending on the pre-defined number of topics, ISE remains remarkably consistent. This is because ISE differentiates word meanings within topics through the embedding process, making it less sensitive to the granularity of the initial topic modeling.

Performance comparison (Micro-F1) between ISE(topic) and LDA across different numbers of topics on 20NG and DBLP datasets.

Qualitative Analysis

Visualization using t-SNE confirmed that ISE successfully separates distinct meanings. For example, the word "language" was split into clusters: one related to linguistics (near "vocabulary" and "speaking") and another related to computer science (near "java" and "compiler").

Conclusion

Identity-sensitive Word Embeddings offer a powerful solution to the polysemy problem by incorporating global identity information into the embedding process. While the model currently depends on external labeling processes and involves higher computational complexity, its superior performance across classification and similarity tasks demonstrates the value of context-aware, identity-specific representations.

Summary updated

BibTeX
@misc{tang2016identity,
  author = {Jian Tang and Meng Qu and Qiaozhu Mei},
  title = {{Identity-sensitive Word Embedding through Heterogeneous Networks}},
  year = {2016},
  eprint = {1611.09878},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.09878},
}
Figure