CARL: Content-Aware Representation Learning for Heterogeneous Networks

Chuxu Zhang, Ananthram Swami, Nitesh V. ChawlaarXiv 2018

CARL (Content-Aware Representation Learning) is a novel framework for embedding heterogeneous networks that jointly optimizes for both structural connectivity and unstructured semantic content. By combining a heterogeneous SkipGram model with a deep GRU-based semantic encoder, it captures complex relationships that structural-only models miss, while providing an efficient "online update" mechanism for growing networks.

The Challenge of Heterogeneous and Dynamic Networks

Most network embedding techniques, such as DeepWalk or node2vec, were designed for homogeneous networks where all nodes and edges are of the same type. However, real-world data is often heterogeneous (HetNets), containing multiple types of nodes and relations—for example, an academic network with authors, papers, and venues.

Existing research faces three major gaps:

  1. Heterogeneous Structure: Standard models struggle with the varying semantics of different edge types.
  2. Unstructured Content: Nodes often contain rich text (like paper abstracts) that carries vital semantic information not always reflected in the graph's link structure.
  3. Network Dynamics: Real networks grow. Re-running a massive embedding model every time a new node arrives is computationally prohibitive.
Network evolution and the arrival of new nodes across a time split T.

The CARL Framework

The CARL framework addresses these challenges through a multi-pronged approach that integrates structural walks with deep semantic encoding.

The CARL architecture: (a) Deep semantic encoder, (b) Meta-path based walks in the academic network, and (c) Joint optimization for content-aware representations.

1. Heterogeneous SkipGram (HSG)

Building on the authors' previous work (metapath2vec), this component uses meta-path-based random walks to capture the structural closeness of different node types. For instance, a walk following the pattern Author-Paper-Venue-Paper-Author preserves the semantic logic of academic collaboration and publication.

2. Deep Semantic Encoder

To handle unstructured text, CARL employs Gated Recurrent Units (GRUs). This encoder (f) transforms sequences of word embeddings (e.g., from a paper's abstract) into a fixed-length vector. This allows the model to "bridge the gap" between nodes that are semantically similar but structurally distant in the graph.

3. Joint Optimization

CARL fuses structure and content through two proposed variants:

  • HSG-SR (Regularization): Uses the semantic vector as a Gaussian prior to regularize the structural embedding.
  • SE-HSG (Enhanced): Concatenates the semantic output directly into the SkipGram objective, allowing the model to learn "content-aware" transitions. The authors found that this "Enhanced" version generally outperformed the regularized one.

4. Online Update Module

For new nodes, CARL provides a way to infer their embeddings using the pre-trained semantic encoder and a localized optimization based on the new node's immediate neighbors, avoiding a full model retrain.

Experimental Evaluation

The researchers evaluated CARL using the AMiner computer science dataset, a massive academic graph. They split it into two temporal subsets to test the model's robustness:

  • AMiner-I (1996–2005): 160k authors, 111k papers, 150 venues.
  • AMiner-II (2006–2015): 571k authors, 483k papers, 492 venues.

Key Results

CARL consistently outperformed state-of-the-art baselines (DeepWalk, LINE, node2vec, and metapath2vec) across several tasks:

  • Link Prediction: In predicting future collaborations, CARL (SE-HSG variant) showed average improvements ranging from 10.9% to 41% over baselines on the AMiner-I dataset.
  • Document Retrieval: When finding relevant papers based on co-citation, CARL achieved significantly higher HitRatio@10 scores, proving its semantic embeddings are more precise.
  • Online Updates: Qualitative visualizations (using t-SNE) showed that the online update module successfully clustered new nodes into their correct research categories (e.g., Data Mining vs. Computer Vision) without needing to re-process the entire graph.

Conclusion

CARL demonstrates that integrating deep semantic encoding with heterogeneous structural modeling significantly improves the quality and scalability of network embeddings. By treating content as a core part of the representation, CARL effectively handles the complexity and growth of real-world heterogeneous networks.

Summary updated

BibTeX
@misc{zhang2018carl,
  author = {Chuxu Zhang and Ananthram Swami and Nitesh V. Chawla},
  title = {{CARL: Content-Aware Representation Learning for Heterogeneous Networks}},
  year = {2018},
  eprint = {1805.04983},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.04983},
}
Figure