Abstract
NetHash is a novel, non-learning algorithm for attributed network embedding that replaces expensive iterative training with recursive randomized hashing. By sketching a node's local neighborhood into a "digest" using MinHash, it achieves orders-of-magnitude speedups over state-of-the-art methods while maintaining—and often exceeding—their accuracy in classification and link prediction tasks.
Introduction
In network analysis, "embedding" involves representing each node as a low-dimensional vector that captures both structure (connectivity) and attributes (features). Existing state-of-the-art methods, such as TADW or CANE, are typically "learning-based," relying on heavy matrix factorizations or deep learning architectures. While accurate, these methods struggle to scale to massive graphs or keep up with evolving networks where embeddings need to be updated quickly.
NetHash addresses this by shifting the paradigm from learning to hashing, providing a lightweight alternative that can run on modest hardware without sacrificing precision.
The NetHash Framework
NetHash shifts the paradigm from iterative optimization to a single-pass hashing procedure. The algorithm follows a structured recursive approach to capture the local neighborhood of each node:
- Rooted Trees: For every node, NetHash builds a shallow tree (typically depth 2 or 3) representing its local neighborhood.
- Recursive Sketching: Instead of training weights, the algorithm uses MinHash (a Locality-Sensitive Hashing technique) to summarize information. It starts at the "leaves" (the most distant neighbors) and recursively hashes their attributes into a "digest." This digest is then passed up to the parent node.
- Information Diffusion: To mimic how information naturally flows through a network, the algorithm applies an exponential decay. Information from a neighbor two hops away is "discounted" more than information from a direct neighbor.
- Entropy-based Decay: A key innovation is using the entropy of node degrees to set the decay rate. This allows the algorithm to automatically adjust how much it trusts distant neighbors based on the stability of information flow in that specific network.
Experimental Evaluation
The researchers evaluated NetHash on five diverse real-world datasets, including citation networks (Cora, Wikipedia, ACM) and social networks (Flickr, BlogCatalog). The ACM dataset, containing over 1.1 million nodes and 6 million edges, was used specifically to test scalability.
Key Results
- Massive Speedups: On the Cora dataset, NetHash generated embeddings in 0.4 seconds. For comparison, the deep learning approach CANE took over 93 minutes.
- Superior Scalability: On the 1.1-million-node ACM dataset, NetHash completed the task in 723 seconds. Most competing methods either timed out (exceeding 24 hours) or crashed due to memory limits.
- Competitive Accuracy: Despite being a non-learning method, NetHash outperformed or matched state-of-the-art models in node classification (Micro-F1 and Macro-F1 scores) and link prediction (AUC).
Discussion and Insights
The most striking insight is that randomized hashing can capture complex structural and attribute relationships just as well as gradient-based learning. By hashing child nodes into parent nodes, the graph's structure is implicitly "baked into" the final hash vector. Furthermore, the authors found that a tree depth of $D=2$ is often the "sweet spot," as deeper trees can introduce more noise than useful signal.
Conclusion
NetHash's linear time complexity relative to the number of nodes makes it one of the few attributed embedding methods truly ready for "Big Data" scales. While it produces discrete hash vectors, its efficiency and accuracy make it a powerful tool for large-scale network analysis. Future work could involve extending this recursive hashing framework to dynamic graphs where nodes and edges are added in real-time.
Summary updated