Abstract
The streaming bipartite graph is widely used to model the dynamic relationship between two types of entities in various real-world applications, including movie recommendations, location-based services, and online shopping. Since it contains abundant information, discovering the dense subgraph with high structural cohesiveness (i.e., community detection) in the bipartite streaming graph is becoming a valuable problem. In this paper, we study the structure of the community on the butterfly motif in the bipartite graph. We propose a novel problem, named Community Detection over Streaming Bipartite Network (CD-SBN), which aims to retrieve qualified communities with user-specific query keywords and high structural cohesiveness at snapshot and continuous scenarios. In particular, we formulate the user relationship score in the weighted bipartite network via the butterfly pattern and define a novel $(k,r,σ)$-bitruss as the community structure. To efficiently tackle the CD-SBN problem, we design effective pruning strategies to rule out false alarms of $(k,r,σ)$-bitruss and propose a hierarchical synopsis to facilitate the CD-SBN processing. We develop efficient algorithms to answer snapshot and continuous CD-SBN queries by traversing the synopsis and applying pruning strategies. With extensive experiments, we demonstrate the performance of our CD-SBN approach on real/synthetic streaming bipartite networks.
Introduction
Bipartite graphs, which model relationships between two distinct types of entities (e.g., users and websites, or customers and products), are ubiquitous in modern data science. However, real-world data is rarely static; it arrives as a continuous stream of updates. Detecting "communities"—structurally cohesive groups with shared interests—in these streams is a major challenge. Existing methods often struggle with dynamic updates, structural complexity, and keyword awareness. Re-calculating communities from scratch as new edges arrive or old ones expire is computationally prohibitive for real-time applications.
Methodology
The proposed solution hinges on the novel $(k, r, σ)$-bitruss community structure. A community is defined as a connected subgraph where every edge belongs to at least $k$ butterflies, all user nodes are within a radius $r$ of a center node, and user pairs maintain a relationship score of at least $σ$.
The Butterfly Motif
In standard graphs, triangles are the gold standard for measuring cohesiveness. In bipartite graphs, where triangles cannot exist, the "butterfly" motif (a 2x2 complete bipartite subgraph) serves as the fundamental building block for dense communities.
Hierarchical Synopsis and Pruning
To avoid scanning the entire graph for every query, we build a Hierarchical Synopsis ($Syn$), a tree-based index. Each node in the tree stores aggregated metadata, such as the maximum possible support and relationship scores for its underlying subgraph. The framework applies five distinct pruning strategies—Keyword, Support, Layer Size, Radius, and Score—to quickly discard candidate subgraphs that cannot possibly satisfy the query constraints. This hierarchical approach allows the search algorithm to "early exit," significantly improving efficiency.
Experimental Evaluation
We evaluated our approach on nine real-world datasets from the KONECT project (including AmazonW, BibSonomy, Movielens, and TripAdvisor) and six synthetic datasets.
Key Results
- Massive Speedup: The proposed CD-SBN algorithm consistently outperformed the baseline Bitrussness-Based Decomposition (BBD) by more than two orders of magnitude (100x+) in wall-clock time.
- Real-Time Performance: Even on large datasets with millions of edges, the system maintained low query latency, often returning results in under a second.
- Effective Pruning: Ablation studies demonstrated that combining all pruning strategies increased the number of filtered "false alarm" candidates by an order of magnitude compared to using basic support pruning alone.
- Scalability: The approach scales gracefully with increasing window sizes, higher edge weights, and larger keyword domains.
Conclusion
This paper introduces an efficient framework for detecting communities in fast-evolving bipartite networks. By defining the $(k, r, σ)$-bitruss structure and utilizing a hierarchical indexing system with multi-level pruning, we achieve significant performance gains over existing methods. Future work will explore extending this model to other complex motifs and adapting the hierarchical synopsis for distributed or GPU-accelerated environments.
Summary updated