Abstract
Network embedding is a critical task in graph analytics, aiming to represent nodes as low-dimensional vectors. Traditional methods often struggle to balance structural topology with node attributes. We present Flexible Attributed Network Embedding (FANE), a framework that unifies these heterogeneous data types by introducing virtual attribute nodes and a tunable random walk strategy. FANE offers a scalable and flexible approach to prioritize either property homophily or topological similarity, significantly outperforming state-of-the-art methods in node classification and visualization tasks.
Introduction
In graph analytics, network embedding transforms complex nodes and edges into low-dimensional vectors suitable for machine learning. Historically, these methods have been bifurcated into structure-preserving approaches (e.g., node2vec, DeepWalk) and property-preserving approaches (e.g., TADW). The former focuses on connectivity, while the latter emphasizes node attributes like user interests or keywords.
Combining these heterogeneous data sources is challenging due to high computational costs and a lack of flexibility. FANE addresses these issues by treating attributes as first-class citizens within the network, creating a unified embedding space that is both scalable and adaptable to specific dataset needs.
Methodology
FANE introduces two primary innovations to bridge the gap between structure and attributes:
Virtual Attribute Nodes
Rather than using complex mathematical links, FANE transforms attributes into "virtual nodes." For instance, if a node represents a research paper containing a specific keyword, a virtual edge is drawn between the node and a virtual node representing that keyword. This unification keeps the graph sparse and manageable, ensuring scalability.
Flexible Random Walking
The framework employs a random walk strategy to gather context for each node. A key hyperparameter, $r$, acts as a "bias slider":
- Small $r$: The walker is more likely to transition to attribute nodes, prioritizing property homophily (grouping nodes with similar traits).
- Large $r$: The walker stays within structural edges, prioritizing topological similarity (grouping nodes with similar neighbors).
The resulting sequences are processed using a standard Skip-gram model to generate final embedding vectors.
Key Results and Insights
The authors evaluated FANE across diverse benchmarks, including citation networks (Cora, CiteSeer), web content (WebKB), and social networks (Facebook, Twitter).
Performance and Scalability
FANE consistently outperformed benchmarks like node2vec and TADW. Notably, on the Cora dataset, classification accuracy improved by over 5%, and WebKB saw a jump of over 10%. Furthermore, FANE's computational time scales linearly with the number of nodes and attributes, making it suitable for graphs with millions of nodes.
Qualitative Analysis
Visualization via t-SNE demonstrates that FANE creates tighter, more distinct clusters compared to structural-only or attribute-only methods. This clarity is crucial for downstream tasks like community detection and node classification.
Conclusion
FANE provides a robust and flexible framework for attributed network embedding. By integrating attributes as virtual nodes and allowing for tunable random walks, it successfully balances structural and property-based representations. Future work will explore attribute weighting and extending the framework to directed graphs.
Summary updated