Abstract
Efficient retrieval in large-scale multi-view graph datasets remains a significant challenge. Existing methods often fail to simultaneously account for complex graph topologies, diverse information views, and the computational efficiency required for massive datasets. This paper introduces CMGHash (Contrastive Multi-View Graph Hashing), an end-to-end framework designed to transform multi-view graph data into compact binary codes. By integrating graph filtering, neighborhood-based contrastive learning, and adaptive view weighting, CMGHash achieves state-of-the-art retrieval accuracy while maintaining scalability.
Introduction
In modern data ecosystems, information is rarely isolated. Data often exists as multi-view graphs, where nodes represent entities and multiple types of edges represent different relationships. For instance, in a movie database, one view might link films by shared directors, while another links them by shared actors. To search these vast repositories, researchers utilize hashing—a process that maps high-dimensional data into short binary strings. This enables similarity searches via high-speed bitwise operations in Hamming space.
However, current hashing techniques face a tripartite dilemma. Multi-view hashing often ignores graph structures; graph hashing is typically restricted to single-view relationships; and multi-view graph learning methods produce continuous embeddings that are too storage-intensive for large-scale retrieval. CMGHash addresses these gaps by providing a specialized framework for hashing data characterized by multiple graph topologies.
The CMGHash Framework
CMGHash utilizes a three-stage pipeline to generate high-quality binary codes that preserve both local and global structural information across multiple views.
1. Representation Smoothing via Graph Filtering
Real-world graph data is frequently characterized by noise. To mitigate this, CMGHash employs a graph Laplacian-based filter, approximated through Taylor series expansion. This process "smooths" node attributes, effectively denoising the data while preserving the underlying geometric structure of each individual graph view. This step ensures that the subsequent learning phases operate on high-fidelity structural representations.
2. Contrastive Multi-view Learning
To fuse disparate views into a unified consensus space, the framework implements a $k$-Nearest Neighbor ($k$NN) contrastive loss. Unlike standard contrastive learning, which focuses on aligning different views of the same instance, CMGHash enforces consistency across neighborhoods. It pulls a node’s neighbors from all views closer together in the shared space while pushing non-neighbors away, capturing deeper semantic relationships that instance-wise alignment might miss.
3. Adaptive View Weighting and Binarization
Recognizing that not all views are equally informative, CMGHash automatically learns to assign weights to each view. This prevents noisy or irrelevant views from degrading the final binary code. To ensure the transition from continuous embeddings to binary bits is seamless, the model incorporates two specific constraints during training:
- Quantization Loss: Minimizes the distance between continuous values and the target binary values (-1 or 1).
- Bit Balance Loss: Encourages an even distribution of bits across the dataset to maximize the information entropy of the hash codes.
Experimental Evaluation
Datasets and Metrics
The authors evaluated CMGHash against several benchmark datasets, including academic networks (ACM, DBLP), movie networks (IMDB), and co-purchase networks (Amazon Photos, Amazon Computers). Performance was primarily measured using mean Average Precision (mAP@all).
Results
CMGHash demonstrated significant performance gains over existing baselines:
- Accuracy: On the ACM dataset (16-bit), CMGHash achieved an mAP of 0.832, substantially outperforming the best baseline, HashGNN, which achieved 0.529.
- Scalability: CMGHash successfully processed the large-scale Amazon datasets, whereas several advanced multi-view baselines (e.g., LHGN and D-MVE-Hash) failed due to memory constraints.
- Robustness: The framework showed consistent performance improvements as bit lengths increased from 8 to 32 bits, indicating efficient utilization of the additional bit space.
Discussion and Key Insights
Ablation studies highlighted that graph filtering is the most critical component of the pipeline; without it, retrieval accuracy drops significantly, confirming that raw graph data is often too noisy for direct hashing. Furthermore, the end-to-end nature of CMGHash—integrating binarization directly into the training loop—minimizes the information loss typically associated with post-hoc quantization methods.
Conclusion and Future Work
CMGHash represents a significant advancement in multi-view graph retrieval, offering a scalable and accurate solution for complex datasets. While the current framework is robust, future research may address the pre-processing cost of $k$NN graph construction for billion-node scales and the adaptation of the model for dynamic graphs where connections evolve over time. Additionally, exploring the utility of these binary codes for downstream tasks like large-scale clustering remains a promising direction.
Summary updated