TL;DR
This paper introduces novel Graph Neural Network (GNN) models, QD-GNN and AQD-GNN, for community search in graphs. These models effectively handle non-attributed, attributed, and interactive community search by integrating local query-specific information with global graph embeddings, outperforming existing methods in both accuracy and efficiency.
What Problem Does This Paper Address?
Community Search (CS) aims to find densely connected subgraphs (communities) that contain given query vertices. A more challenging variant, Attributed Community Search (ACS), also requires these communities to have homogeneous attributes. Existing methods for CS often rely on rigid, pre-defined structural patterns (like k-cores or k-trusses), which may not align with real-world community structures. For ACS, many approaches treat attributes independently, failing to capture their crucial correlation with structure. Furthermore, some popular ACS methods use a two-stage process (structure finding then attribute filtering), which can be suboptimal. Finally, existing GNN-based approaches for interactive CS often require costly re-training for each query and struggle to extend to attributed scenarios. This paper addresses these limitations by proposing integrated, learning-based GNN models that handle structure and attributes simultaneously, are efficient for online queries, and can be adapted for interactive settings.
Methods
The paper proposes two main GNN models:
- Query Driven-GNN (QD-GNN): For non-attributed community search, QD-GNN uses a two-branch architecture. A Query Encoder captures local structural information around query vertices, while a Graph Encoder learns query-independent global graph embeddings using both structure and vertex attributes. A Feature Fusion operator then combines these embeddings to produce the final output. This design allows for query-specific results without re-training the entire model for each query.
- Attributed Query Driven-GNN (AQD-GNN): To extend QD-GNN to attributed community search, AQD-GNN introduces an Attribute Encoder. This encoder models vertex attributes as a bipartite graph (connecting vertices to their attributes) and uses a Bipartite Graph Neural Network (BGNN) to learn attribute-related information. AQD-GNN then fuses the outputs from the Graph Encoder, Query Encoder, and Attribute Encoder to simultaneously consider structure and attribute homogeneity.
Both models employ a query framework that separates model training from online querying, enabling efficient inference. For community identification from the model's output, a constrained Breadth-First Search (BFS) is used, ensuring connectivity with query vertices.
Datasets
The paper evaluates its models on 15 attributed graphs, including:
- Citation Networks: Cornell, Texas, Washington, Wisconsin, Cora, Citeseer.
- Social Networks: Reddit, and 8 Facebook ego-networks (FB-0, FB-107, FB-1684, FB-1912, FB-3437, FB-348, FB-414, FB-686).
These datasets contain ground-truth communities and vertex attributes. The paper also discusses generating query sets with different attribute configurations (empty, community-derived, node-derived) to test various scenarios.
Key Insights and Ideas
- Correlation is Key: The paper strongly emphasizes that the correlation between graph structure and vertex attributes is vital for effective attributed community search. Separating these aspects or treating attributes independently leads to suboptimal performance.
- Integrated Learning: By using GNNs and a Feature Fusion operator, the models learn to process structure and attributes simultaneously, leading to more accurate community detection.
- Query-Driven Efficiency: The proposed query framework decouples model training from online querying, allowing for fast inference without re-training, which is crucial for interactive applications.
- Bipartite Graph for Attributes: Modeling attributes as a bipartite graph and using BGNN is a novel way to effectively incorporate attribute information and learn attribute relationships for ACS.
- AQD-GNN as a Unified Framework: AQD-GNN demonstrates the ability to handle non-attributed (by setting empty attributes), attributed, and even interactive community search by adapting its components.
Key Results
- Non-Attributed CS: QD-GNN significantly outperforms baseline methods like CTC and k-ECC, showing an average F1-score improvement of 0.14 over Simple QD-GNN. AQD-GNN (when used for non-attributed search by setting empty attributes) achieved the best performance across most datasets.
- Attributed CS: AQD-GNN consistently outperforms ACQ and ATC, especially in challenging "Attribute from Node" (AFN) settings, achieving improvements of 0.46 and 0.53 on F1-score for one-vertex and multi-vertex queries, respectively.
- Query Efficiency: AQD-GNN exhibits very fast query times (around 5 milliseconds on average) across various datasets, making it suitable for online applications, and significantly faster than methods like CTC and ATC on large graphs.
- Interactive CS: Replacing the GNN in the ICS-GNN framework with QD-GNN and AQD-GNN led to improved F1-scores (2.37% for non-attributed, 6.29% for attributed) without increasing interaction time.
- Ablation Studies: Feature Fusion was shown to be crucial for performance, especially in AQD-GNN. The models were also found to be relatively insensitive to the threshold parameter
yand showed stable performance with sufficient training data.
Limitations and Future Work
- Model Re-training: While the proposed framework avoids re-training for each query, the initial model training can still be time-consuming, especially for large graphs.
- Query Selection: The paper suggests that future work could focus on more intelligent selection of training queries to improve model performance with limited data.
- Model Update Mechanism: The authors propose that the model update mechanism, as more historical queries become available, is an area worth further study.
- Large Graph Challenges: While AQD-GNN performs well on large graphs, the paper notes that some methods (like ACQ) can run into memory issues due to their specific algorithms. The proposed subgraph training mechanism is a step towards handling large graphs.
Summary updated