Measuring and modeling bipartite graphs with community structure

Sinan Aksoy, Tamara G. Kolda, Ali Pinar

TL;DR

This paper introduces two generative models for large-scale bipartite graphs. While a standard bipartite Chung-Lu model successfully matches real-world degree distributions, it fails to capture community structure. To solve this, the authors propose the Bipartite BTER model, which explicitly reproduces both degree distributions and the "metamorphosis coefficient" (a bipartite clustering metric), enabling the generation of highly realistic synthetic networks.

What Problem Does This Paper Address?

Network science relies heavily on generative graph models to create synthetic data. This is crucial for sharing realistic network data without violating privacy, and for stress-testing computational algorithms at scale. Many real-world systems are naturally bipartite (or two-mode) networks, meaning nodes are divided into two distinct sets (e.g., authors and papers, users and movies) and edges only connect nodes across the sets.

A major challenge in modeling these networks is capturing their cohesive community structure. In standard one-way graphs, community cohesion is often measured by the clustering coefficient (the prevalence of triangles). However, bipartite graphs cannot contain odd-length cycles, meaning they have zero triangles. To generate realistic synthetic bipartite graphs, researchers need a way to measure bipartite community structure and a model capable of reproducing it alongside the network's heavy-tailed degree distributions.

Methods

To measure community structure, the authors utilize the metamorphosis coefficient. This is the bipartite analog to the clustering coefficient: it measures the probability that a length-three path (a "caterpillar") participates in a length-four cycle (a "butterfly"). The authors introduce a novel extension of this metric called the degreewise metamorphosis coefficient, which calculates this clustering behavior specifically for nodes of a given degree.

The authors then evaluate two generative models:

  1. Fast Bipartite Chung-Lu (CL): A straightforward extension of the standard CL model. It generates edges by randomly connecting "stubs" based on the desired degree distributions of the two partitions.
  2. Bipartite BTER (Block Two-Level Erdős-Rényi): A novel model designed to capture both degree distribution and community structure. It groups nodes into dense bipartite Erdős-Rényi subgraphs called affinity blocks. Because the two partitions in a bipartite graph often have vastly different degree ranges, sizing these blocks is mathematically complex. The authors derive a method to balance partition sizes and internal connectivity to explicitly generate butterflies. Any remaining "excess" degrees not satisfied by the affinity blocks are wired together using the CL approach.

Datasets

The authors evaluated their models on seven publicly available real-world bipartite datasets of varying sizes and densities:

  • CondMat: Authors and papers (16K authors, 22K papers)
  • IMDB: Actors and movies (127K actors, 383K movies)
  • Flickr: Users and groups (1.7M users, 103K groups)
  • MovieLens: Movies and critics (65K movies, 71K critics)
  • MillionSong: Users and songs (1M users, 384K songs)
  • Peer2Peer: Peers and files (1.9M peers, 5.3M files)
  • LiveJournal: Users and groups (5.2M users, 7.4M groups)

Key Insights and Ideas

  • Butterflies are the new Triangles: Just as triangles indicate tight-knit communities in standard graphs, butterflies (4-cycles) are the fundamental unit of cohesion in bipartite graphs. Without butterflies, a bipartite graph lacks community structure.
  • Degree distributions don't guarantee communities: Random graphs that perfectly match real-world degree distributions (like those generated by the CL model) naturally contain almost zero butterflies. Community structure is a distinct feature that must be explicitly modeled.
  • Degreewise metrics reveal hidden social behaviors: By analyzing metamorphosis per degree, the authors uncovered nuanced network dynamics. For example, in the CondMat dataset, authors with fewer papers have a higher degreewise metamorphosis coefficient than highly published authors, indicating that less-prolific authors tend to have a higher proportion of repeat collaborations.

Key Results

  • Bipartite CL fails at community structure: While the CL model perfectly matched the degree distributions of the real-world datasets, it failed spectacularly at generating butterflies. For instance, the real CondMat graph has ~70,500 butterflies. The CL model generated only ~357.
  • Bipartite BTER succeeds at both: The BTER model successfully matched both the degree distributions and the degreewise metamorphosis coefficients. For the CondMat graph, BTER generated ~110,000 butterflies—a massive improvement over CL and much closer to the ground truth.
  • Across all seven datasets, BTER consistently reproduced the metamorphosis coefficients within a reasonable range, successfully capturing the tight-knit community structures that the baseline CL model missed entirely.

Limitations and Future Work

The authors note a few limitations. First, the models struggle with artificial "gaps" in degree distributions; for example, if a dataset excludes users with fewer than 20 interactions, the models will still generate some low-degree nodes due to the Poisson nature of their expectations. Second, the BTER model creates non-overlapping affinity blocks, which may not perfectly reflect the overlapping communities found in reality.

For future work, the authors suggest investigating how well these models reproduce other complex graph metrics (like graph diameter, assortativity, or singular values of the adjacency matrix). They also highlight the need to extend these models to capture time-evolving networks, as real-world bipartite graphs are rarely static.

Summary updated

BibTeX
@article{aksoy2017measuring,
  author = {Sinan Aksoy and Tamara G. Kolda and Ali Pinar},
  title = {{Measuring and modeling bipartite graphs with community structure}},
  journal = {J. Complex Networks},
  year = {2017},
  doi = {10.1093/comnet/cnx001},
}
Figure