QUINT: Node Embedding Using Network Hashing

Debajyoti Bera, Rameshwar Pratap, Bhisham Dev Verma, Biswadeep Sen, Tanmoy ChakrabortyIEEE TKDE 2021

Abstract

Graph representation learning typically relies on computationally expensive neural architectures or matrix factorizations. We present QUINT (QUick thIN and biTty), a randomized binary hashing approach for node embedding. QUINT compresses node neighborhoods into compact bit-vectors in a single pass without iterative optimization. Our evaluation shows that QUINT achieves up to a 7000× speedup and 80× space reduction compared to standard methods like node2vec, while maintaining state-of-the-art accuracy on link prediction and node classification tasks.

Introduction

Node embedding aims to map nodes into low-dimensional vector spaces where structural proximity is preserved. Traditional methods such as DeepWalk, node2vec, and LINE often face three primary challenges: high computational cost due to iterative optimization (e.g., gradient descent), significant memory consumption from high-dimensional floating-point vectors, and a lack of theoretical guarantees regarding the specific structural properties preserved.

QUINT addresses these issues by replacing learning-based optimization with a randomized hashing framework. It is specifically designed for sparse networks where the maximum degree is significantly smaller than the total number of nodes, leveraging this sparsity to provide rigorous mathematical bounds on accuracy.

Methods

QUINT utilizes a technique called BinSketch to generate embeddings in an unsupervised, single-pass manner. Unlike learned embeddings, QUINT assigns each node to one of $d$ bins using a random mapping function. For a specific node $v$, the $j$-th bit of its embedding is set to 1 if any of its neighbors are mapped to bin $j$. This results in a $d$-dimensional binary vector (a bit-string).

The similarity between nodes is estimated using the EstCN algorithm, which leverages fast bitwise operations to approximate the number of common neighbors. This approach provides guarantees for preserving first-order, second-order, and even higher-order proximities, effectively approximating powers of the adjacency matrix without the overhead of matrix factorization.

Experimental Setup

The authors evaluated QUINT across various real-world and synthetic datasets for link prediction and node classification. The datasets range from small social networks like Facebook to large-scale graphs with over a million nodes like Youtube.

Summary of datasets used in the evaluation, highlighting node counts and network density.

The evaluation included standard benchmarks such as Gowalla, Flickr, and BlogCatalog, as well as synthetic LFR graphs to test scalability up to 10M edges. A key insight from the experiments is that the uncompressed adjacency matrix itself is a strong baseline; QUINT succeeds by acting as a structurally faithful, lossy compression of this raw data.

Results and Analysis

QUINT demonstrates remarkable efficiency in both time and space. In terms of memory, QUINT's binary representation is significantly more compact than the 64-bit floating-point vectors used by traditional methods.

Comparison of embedding dimensions and the resulting number of binary bits across different methods.

Key performance metrics include:

  • Massive Speedups: QUINT processed the BlogCatalog network in 1.6 seconds, compared to 23 minutes for node2vec. On the massive Flickr graph, QUINT finished in ~30 seconds, while node2vec failed to complete within 10 hours.
  • Extreme Space Savings: Because QUINT uses bits instead of 64-bit floats, a 1000-dimensional QUINT embedding requires approximately 1/8th the memory of a standard 128-dimensional node2vec embedding (1000 bits vs. 8192 bits).
  • State-of-the-Art Accuracy: Despite the extreme compression, QUINT consistently matched or beat baselines on AUC-ROC for link prediction and Macro-F1 for node classification.

Conclusion and Future Work

QUINT provides a highly scalable alternative for node embedding in sparse, unweighted, and undirected networks. Its success suggests that explicit learning is not always necessary for effective graph representation; randomized projections can capture essential structural invariants with far less overhead.

Future work includes extending the framework to dynamic networks, where bitwise updates are computationally trivial, and adapting the hashing mechanism for hypergraphs and attributed networks where node metadata must be integrated into the binary sketch.

Summary updated

BibTeX
@article{bera2021quint,
  author = {Debajyoti Bera and Rameshwar Pratap and Bhisham Dev Verma and Biswadeep Sen and Tanmoy Chakraborty},
  title = {{QUINT: Node Embedding Using Network Hashing}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2021},
  doi = {10.1109/tkde.2021.3111997},
}
Figure