NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Bipartite graph capsule network

Xianhang Zhang, Hanchen Wang, Jianke Yu, Chen Chen, Xiaoyang Wang, Wenjie Zhang

Abstract

This paper introduces the Bipartite Capsule Graph Neural Network (BCGNN), a novel architecture specifically engineered for bipartite graph classification. By integrating a "one-mode projection" technique with a hierarchical capsule framework, BCGNN overcomes the limitations of standard Graph Neural Networks (GNNs) in capturing complex structural relationships within disjoint node sets. Experimental results on real-world Wikipedia datasets demonstrate that BCGNN significantly outperforms existing state-of-the-art models.

Introduction

Most contemporary graph research focuses on unipartite (homogeneous) graphs. However, many real-world systems—such as user-product interactions or Wikipedia edit logs—are inherently bipartite. In these structures, nodes are divided into two disjoint sets, and edges only exist between different sets.

Standard GNNs struggle with bipartite data because their message-passing mechanisms are restricted to existing edges. Consequently, a "User" node can only receive information from "Page" nodes, making it difficult to learn direct relationships between similar users. Furthermore, traditional GNNs utilize scalar node features, which often fail to represent the complex, hierarchical "hidden factors" necessary for accurate graph-level classification.

Methodology

The BCGNN framework addresses these challenges through a multi-stage pipeline designed to extract and route hierarchical features.

The complete BCGNN architecture, illustrating the flow from bipartite input to hierarchical capsule routing and reconstruction.

One-Mode Projection

To facilitate communication between vertices of the same type, BCGNN employs one-mode projection. This process creates artificial edges between nodes that share a threshold of common neighbors. For instance, if two users have edited the same set of pages, a direct link is established between them, transforming the bipartite structure into a format where peer-to-peer relationships are explicit.

One-mode projection creates artificial edges (green dashed lines) between nodes of the same type that share common neighbors.

Feature Disentanglement and Capsule Routing

Following projection, the model "disentangles" node features into multiple independent vectors, or "Primary Capsules." Each vector represents a distinct hidden property of the node. These capsules are processed via a "squash" activation function, where the vector's length indicates the probability of a feature's existence.

Information is then passed to higher-level "class capsules" through a GCN-based voting mechanism and dynamic routing. This hierarchical approach allows the network to identify complex motifs and community clusters. To ensure structural preservation, an auxiliary decoder attempts to reconstruct the original adjacency matrix from the final capsules.

Results and Discussion

The researchers evaluated BCGNN using a benchmark of 1,080 subgraphs derived from seven Wikipedia-related datasets (e.g., edit-nawiki, edit-tawikiquote). The task was to classify subgraphs based on their original source project.

  • Performance: BCGNN achieved an average accuracy of 22.78%, outperforming the strongest baseline, HCGNN (21.20%), and standard capsule networks like CapsGNN (19.17%).
  • Ablation Studies: Experiments confirmed that both the one-mode projection and the hierarchical capsule structure are critical; removing either component resulted in a significant drop in accuracy.
  • Robustness: The model showed stability across hyperparameter variations, with optimal performance observed at four disentangled features ($K=4$) and three routing iterations ($R=3$).

Conclusion

BCGNN represents a significant step forward in bipartite graph analysis by combining structural projection with the representational power of capsule networks. While the computational cost of constructing projections for massive graphs remains a consideration, the model's ability to capture hierarchical relationships provides a robust framework for complex classification tasks. Future work may explore more efficient routing mechanisms or extend the framework to recommendation systems and link prediction.

Summary updated

BibTeX
@article{zhang2023bipartite,
  author = {Xianhang Zhang and Hanchen Wang and Jianke Yu and Chen Chen and Xiaoyang Wang and Wenjie Zhang},
  title = {{Bipartite graph capsule network}},
  journal = {WWW},
  year = {2023},
  doi = {10.1007/s11280-022-01009-2},
}
Figure